c-vasprintf: Fix "empty declaration" warning reported by GCC.
[gnulib.git] / ChangeLog
1 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
2
3         c-vasprintf: Fix "empty declaration" warning reported by GCC.
4         * lib/c-vasprintf.h: Remove stray semicolon.
5
6 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
7
8         gettext: avoid obsolete macro AM_PROG_MKDIR_P
9         It is obsolete and is planned to be removed from Automake 1.14; see
10         <http://lists.gnu.org/archive/html/automake/2012-12/msg00029.html>.
11         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
12         (installdirs-data, installdirs-data-yes):
13         Use $(MKDIR_P), not $(mkdir_p).
14         * m4/intl.m4 (AM_INTL_SUBDIR):
15         * m4/po.m4 (AM_PO_SUBDIRS):
16         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
17
18 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
19
20         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
21         On this platform, we are not optimizing but we are using
22         the substitute for extern inlines, so compile as if
23         C99-style extern inline, or a substitute, is available.
24         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
25         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
26         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
27         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
28         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
29         Declare as ARGP_FS_EI, not as extern.
30         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
31         (__option_is_short, _option_is_end, __option_is_end)
32         [!_LIBC && __USE_EXTERN_INLINES]:
33         Declare as ARGP_EI, not as extern.
34
35 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
36
37         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
38         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
39         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
40         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
41         ...), as the latter is fatal with older Autoconfs.
42         Problem reported and fix suggested by Eric Blake in thread starting at
43         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00097.html>.
44
45 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
46
47         AC_PROG_MKDIR_P: don't workaround if not buggy
48         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
49         Define only for Autoconf versions before 2.62.
50         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
51         undocumented m4_PACKAGE_VERSION, for consistency with the
52         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
53         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
54         was introduced in 2.62.
55
56 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
57
58         New 'c-*printf' modules for formatted output in C locale.
59
60         New module 'c-vasnprintf'.
61         * modules/c-vasnprintf: New file.
62         * lib/c-vasnprintf.c: New file.
63         * lib/c-vasnprintf.h: New file.
64
65         New module 'c-snprintf'.
66         * modules/c-snprintf: New file.
67         * modules/c-snprintf-tests: New file.
68         * lib/c-snprintf.c: New file.
69         * lib/c-snprintf.h: New file.
70         * tests/test-c-snprintf.c: New file.
71         * tests/test-c-snprintf.sh: New file.
72
73         New module 'c-vsnprintf'.
74         * modules/c-vsnprintf: New file.
75         * modules/c-vsnprintf-tests: New file.
76         * lib/c-vsnprintf.c: New file.
77         * lib/c-vsnprintf.h: New file.
78         * tests/test-c-vsnprintf.c: New file.
79         * tests/test-c-vsnprintf.sh: New file.
80
81         New module 'c-vasprintf'.
82         * modules/c-vasprintf: New file.
83         * modules/c-vasprintf-tests: New file.
84         * lib/c-asprintf.c: New file.
85         * lib/c-vasprintf.c: New file.
86         * lib/c-vasprintf.h: New file.
87         * tests/test-c-vasprintf.c  +: New file.
88         * tests/test-c-vasprintf.sh: New file.
89
90         New module 'c-xvasprintf'.
91         * modules/c-xvasprintf: New file.
92         * modules/c-xvasprintf-tests: New file.
93         * lib/c-xasprintf.c: New file.
94         * lib/c-xvasprintf.c: New file.
95         * lib/c-xvasprintf.h: New file.
96         * tests/test-c-xvasprintf.c: New file.
97         * tests/test-c-xvasprintf.sh: New file.
98
99 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
100
101         argp: better 'inline'
102         Use extern-inline module to declare extern inline functions.
103         This avoids some bogus warning diagnostics.  Problem discovered
104         when modifying GNU tar to use the manywarnings module.
105         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
106         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
107         Define based on extern-inline.
108         * modules/argp (Depends-on): Add extern-inline.
109
110 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
111
112         filemode, sys_stat: Handle MPX files a la AIX.
113         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
114         * lib/sys_stat.in.h (S_ISMPX): New macro.
115         * tests/test-sys_stat.c: Add tests for MPX files.
116
117 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
118
119         x-to-1: honor $PERL
120         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
121         a chance to use his preferred version of Perl.  This is typically
122         required by Darwin users whose default /usr/bin/perl does not have all
123         the libraries required by help2man, and who need to use their MacPorts
124         installation of Perl instead.
125
126 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
127
128         gnu-web-doc-update: add all the new files, even in new directories
129         See http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00057.html
130         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
131         Use it.
132         (main): Don't use cvsutils to get the list of unknown files,
133         just add all the existing files and directories.
134
135 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
136
137         gnu-web-doc-update: improve --help
138         * build-aux/gnu-web-doc-update: Move comments into --help.
139
140 2012-12-07  Eric Wong  <normalperson@yhbt.net>
141
142         mountlist: recognize more "dummy" file systems
143         * lib/mountlist.c (ME_DUMMY_0):
144         Add these dummy FS names to the list:
145         - "debugfs" virtual filesystem for kernel debugging
146         - "devpts" PTY slave filesystem
147         - "devtmpfs" device filesystem on top of tmpfs/ramfs
148         - "fusectl" control filesystem for FUSE
149         - "mqueue" enumerates POSIX message queues
150         - "rpc_pipefs" kernel <-> userspace bridge for NFS
151         - "sysfs" is for exporting kernel objects
152         - "devfs" device filesystem for Linux 2.4 and FreeBSD
153
154 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
155
156         extern-inline: avoid incompatibility with Darwin Libc
157         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
158         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
159         Problem reported by Akim Demaille in
160         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00023.html>.
161
162 2012-12-11  Simon Josefsson  <simon@josefsson.org>
163
164         gnupload: Work with GnuPG using gpg-agent (for smartcards).
165         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
166         let it handle password prompting.
167
168 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
169
170         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
171         * lib/canonicalize.c (canonicalize_filename_mode):
172         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
173         fetching the current directory.  Don't overrun the beginning of
174         rpath if there's no slashes after the MS-Windows drive letter.
175
176 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
177
178         maint.mk: avoid extra forks
179         * top/maint.mk (_cfg_mk): The GNU make manual documents that
180         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
181         So use that instead of "$(shell test -f FILE && echo FILE)".
182
183 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
184
185         vasnprintf: fix ASCII_ONLY typo
186         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
187         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
188         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
189         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
190         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00021.html>.
191
192 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
193
194         list, oset, xlist, xoset: fix extern inline issue with C99
195         This was introduced by my recent changes for 'inline'.
196         Problem reported for gettext by Daiki Ueno in
197         <http://lists.gnu.org/archive/html/bug-gnulib/2012-12/msg00000.html>.
198         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
199         (gl_list_nx_create, gl_list_size, gl_list_node_value)
200         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
201         (gl_list_previous_node, gl_list_get_at)
202         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
203         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
204         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
205         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
206         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
207         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
208         (gl_list_iterator_free, gl_sortedlist_search)
209         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
210         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
211         (gl_sortedlist_remove):
212         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
213         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
214         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
215         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
216         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
217         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
218         (gl_list_add_at, gl_sortedlist_add):
219         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
220         Wrap these extern decls inside "#if 0", because they are implemented
221         as inline functions, and extern inline is not what's wanted here.
222         It would simplify these .h files to remove the extern decls entirely,
223         although a downside would be less-clear separation between
224         specification and implementation.
225
226 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
227
228         sys_stat: no 'static inline'
229         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
230         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
231
232         extern-inline: no 'static inline'
233         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
234         Do not require AC_C_INLINE.
235         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
236         'static inline', for older compilers.
237
238         snippet/warn-on-use: no 'static inline'
239         * build-aux/snippet/warn-on-use.h:
240         Remove unnecessary 'inline' in comment.
241
242         rbtree-list, rbtreehash-list: no 'static inline'
243         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
244         * lib/gl_anytree_list2.h (node_at):
245         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
246         (gl_oset_first, add_nodes_to_buckets):
247         Now static, not static inline.
248
249         regex: no 'static inline'
250         * lib/regex_internal.c (calc_state_hash):
251         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
252         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
253         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
254         Now static, not static inline.
255         (inline) [__GNUC__ < 3 && _LIBC]:
256         Remove macro; no longer needed.
257
258         xvasprintf: no 'static inline'
259         * lib/xvasprintf.c (xstrcat):
260         Now static, not static inline.
261         * m4/xvasprintf.m4 (gl_XVASPRINTF):
262         Do not require AC_C_INLINE.
263
264         parse-datetime, parse-duration: no 'static inline'
265         * lib/parse-datetime.y (to_uchar):
266         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
267         (scale_n_add):
268         Now static, not static inline.
269         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
270         * modules/parse-duration (configure.ac):
271         Do not require AC_C_INLINE.
272
273         getaddrinfo: no 'static inline'
274         * lib/getaddrinfo.c (validate_family):
275         Now static, not static inline.
276         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
277         Do not require AC_C_INLINE.
278
279         ftruncate, fts, lstat, openat, raise: no 'static inline'
280         * lib/ftruncate.c (chsize_nothrow):
281         * lib/fts.c (opendirat, diropen):
282         * lib/lstat.c (orig_lstat):
283         * lib/openat.c (orig_openat):
284         * lib/raise.c (raise_nothrow):
285         Now static, not static inline.
286         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
287         * m4/fts.m4 (gl_FUNC_FTS_CORE):
288         * m4/lstat.m4 (gl_PREREQ_LSTAT):
289         * m4/openat.m4 (gl_PREREQ_OPENAT):
290         * m4/raise.m4 (gl_PREREQ_RAISE):
291         Do not require AC_C_INLINE.
292
293         fflush, stat: no 'static inline'
294         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
295         (clear_ungetc_buffer, disable_seek_optimization)
296         (restore_seek_optimization, update_fpos_cache):
297         * lib/stat.c (orig_stat):
298         Now static, not static inline.
299         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
300         (update_fpos_cache):
301         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
302         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
303         * m4/stat.m4 (gl_PREREQ_STAT):
304         Do not require AC_C_INLINE.
305
306         error, filevercmp: no 'static inline'
307         * lib/error.c (is_open, flush_stdout):
308         * lib/filevercmp.c (order):
309         Now static, not static inline.
310         * m4/error.m4 (gl_PREREQ_ERROR):
311         * modules/filevercmp (configure.ac):
312         Do not require AC_C_INLINE.
313
314         dup, execute, fatal-signal, etc.: no 'static inline'
315         * lib/dup.c (dup_nothrow):
316         * lib/execute.c (nonintr_close, nonintr_open):
317         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
318         * lib/fopen.c (orig_fopen):
319         * lib/freadseek.c (freadptrinc):
320         * lib/freopen.c (orig_freopen):
321         * lib/fstat.c (orig_fstat, fstat_nothrow):
322         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
323         (get_rusage_as_via_iterator):
324         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
325         * lib/getdtablesize.c (_setmaxstdio_nothrow):
326         * lib/isatty.c (_isatty_nothrow):
327         * lib/open.c (orig_open):
328         * lib/read.c (read_nothrow):
329         * lib/sigprocmask.c (signal_nothrow):
330         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
331         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
332         * lib/wait-process.c (unregister_slave_subprocess):
333         * lib/write.c (write_nothrow):
334         Now static, not static inline.
335         * lib/spawn-pipe.c (nonintr_open): Define only if
336         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
337         * m4/dup.m4 (gl_PREREQ_DUP):
338         * m4/execute.m4 (gl_EXECUTE):
339         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
340         * m4/fopen.m4 (gl_PREREQ_FOPEN):
341         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
342         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
343         * m4/fstat.m4 (gl_PREREQ_FSTAT):
344         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
345         * m4/isatty.m4 (gl_PREREQ_ISATTY):
346         * m4/open.m4 (gl_PREREQ_OPEN):
347         * m4/read.m4 (gl_PREREQ_READ):
348         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
349         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
350         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
351         * m4/wait-process.m4 (gl_WAIT_PROCESS):
352         * m4/write.m4 (gl_PREREQ_WRITE):
353         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
354         Do not require AC_C_INLINE.
355
356         c-strtod, memcoll, readutmp: no 'static inline'
357         * lib/c-strtod.c (c_locale):
358         * lib/memcoll.c (strcoll_loop):
359         * lib/readutmp.c (desirable_utmp_entry):
360         Now static, not static inline.
361         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
362         * m4/memcoll.m4 (gl_MEMCOLL):
363         * m4/readutmp.m4 (gl_READUTMP):
364         Do not require AC_C_INLINE.
365
366         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
367         * lib/arctwo.c (to_uchar):
368         * lib/md4.c (set_uint32):
369         * lib/md5.c (set_uint32):
370         * lib/sha1.c (set_uint32):
371         * lib/sha256.c (set_uint32):
372         * lib/sha512.c (set_uint64):
373         Now static, not static inline.  This is a bit simpler, and doesn't
374         affect performance with GCC and default optimization.
375         * m4/arctwo.m4 (gl_ARCTWO):
376         * m4/md4.m4 (gl_MD4):
377         * m4/md5.m4 (gl_MD5):
378         * m4/sha1.m4 (gl_SHA1):
379         * m4/sha256.m4 (gl_SHA256):
380         * m4/sha512.m4 (gl_SHA512):
381         Do not require AC_C_INLINE.
382
383         cond, lock, thread: better 'inline'
384         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
385         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
386         New macros.  Use them instead of static inline, for header functions.
387         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
388         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
389         * lib/glthread/lock.c (gl_waitqueue_init)
390         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
391         * lib/glthread/thread.c (get_current_thread_handle):
392         Change 'static inline' to 'inline'.
393         * lib/glthread/cond.h, lib/glthread/thread.h:
394         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
395         * m4/cond.m4 (gl_COND):
396         * m4/lock.m4 (gl_PREREQ_LOCK):
397         * m4/thread.m4 (gl_THREAD):
398         Do not require AC_C_INLINE.
399         * modules/cond, modules/thread (Depends-on): Add extern-inline.
400
401         chdir-long, cycle-check, savewd: better 'inline'
402         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
403         (find_non_slash):
404         * lib/cycle-check.c (is_zero_or_power_of_two):
405         * lib/savewd.c (savewd_delegating):
406         Change 'static inline' to 'inline'.
407         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
408         Replace all remaining uses of 'static inline' with it.
409         * lib/savewd.h:
410         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
411         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
412         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
413         * m4/savewd.m4 (gl_SAVEWD):
414         Do not require AC_C_INLINE.
415         * modules/savewd (Depends-on): Add extern-inline.
416
417         base32, base64: no need for 'inline'
418         * lib/base32.c (to_uchar, get_8, decode_8):
419         * lib/base64.c (to_uchar, get_4, decode_4):
420         Change 'static inline' to 'inline'.
421         * m4/base32.m4 (gl_PREREQ_BASE32):
422         * m4/base64.m4 (gl_PREREQ_BASE64):
423         Do not require AC_C_INLINE.
424
425         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
426         * lib/gl_array_oset.c (gl_array_nx_add_at):
427         (gl_array_remove_at):
428         * lib/gl_linkedhash_list.c (hash_resize_after_add)
429         (add_to_bucket, remove_from_bucket):
430         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
431         Change 'static inline' to 'static', as it's simpler to omit
432         'inline' unless there's a significant performance advantage.
433
434         list, oset, xlist, xoset, xsublist: simplify via extern inline
435         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
436         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
437         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
438         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
439         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
440         New macro.  Replace all uses of 'static inline' with it.
441         [HAVE_INLINE]: Implement functions as *_INLINE functions,
442         instead of as macros FOO that are defined to static inline
443         functions FOO_inline.
444         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
445         * lib/gl_xsublist.c:
446         Reimplement from scratch, by defining the corresponding *_INLINE
447         macro and including the corresponding .h file.  This is simpler.
448         * modules/list, modules/oset, modules/xlist, modules/xoset:
449         (Files): Remove m4/gl_list.m4.
450         (configure.ac): Remove gl_LIST.
451         * m4/gl_list.m4: Remove.
452         * modules/list, modules/oset, modules/xlist, modules/xoset:
453         * modules/xsublist:
454         (Depends-on): Depend on extern-inline, not inline.
455
456         xalloc: better 'inline'
457         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
458         New macro.  Replace all uses of 'static inline' with it.
459         (static_inline): Remove.
460         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
461         Let 'extern inline' do the work automatically, instead of doing
462         it by hand.
463         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
464         Remove.  All uses removed.
465         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
466
467         gethrxtime: better 'inline'
468         * lib/xtime.c: New file.
469         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
470         * lib/xtime.h (XTIME_INCLUDE):
471         New macros.  Replace all uses of 'static inline' with them.
472         * lib/gethrxtime.c (gethrxtime): Define only if
473         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
474         this source file is now always compiled, because of the extern inline.
475         * lib/gethrxtime.h, lib/xtime.h:
476         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
477         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
478         if gethrtime works, as they're not needed in that case.
479         (gl_XTIME): Do not require AC_C_INLINE.
480         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
481         compiled now.  Move the check into gl_GETHRXTIME.
482         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
483         (Depends-on): Add extern-inline.
484         (configure.ac): gethrxtime is always compiled now.
485         (lib_SOURCES): Add gethrxtime.c.
486
487         wctype-h: better 'inline'
488         * lib/wctype-h.c: New file.
489         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
490         New macro.  Replace all uses of 'static inline' with it.
491         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
492         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
493         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
494         (Depends-on): Add extern-inline.
495
496         unistd: better 'inline'
497         * lib/unistd.c: New file.
498         * lib/unistd.in.h (_GL_UNISTD_INLINE):
499         New macro.  Replace all uses of 'static inline' with it.
500         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
501         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
502         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
503         (Depends-on): Add extern-inline.
504
505         sys_socket: better 'inline'
506         * lib/sys_socket.c: New file.
507         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
508         New macro.  Replace all uses of 'static inline' with it.
509         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
510         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
511         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
512         (Depends-on): Add extern-inline.
513
514         stdio: better 'inline'
515         * lib/stdio.c: New file.
516         * lib/stdio.in.h (_GL_STDIO_INLINE):
517         New macro.  Replace all uses of 'static inline' with it.
518         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
519         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
520         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
521         (Depends-on): Add extern-inline.
522
523         sigaction: better 'inline'
524         * lib/sig-handler.c: New file.
525         * lib/sig-handler.h (SIG_HANDLER_INLINE):
526         New macro.  Replace all uses of 'static inline' with it.
527         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
528         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
529         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
530         (Depends-on): Add extern-inline.
531
532         selinux-h: better 'inline'
533         * lib/se-context.c, lib/se-selinux.c: New files.
534         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
535         * lib/se-context.in.h (SE_CONTEXT_INLINE):
536         New macro.  Replace all uses of 'static inline' with it.
537         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
538         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
539         New macro.  Replace all uses of 'static inline' with it.
540         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
541         * modules/selinux-h (Files, lib_SOURCES):
542         Add lib/se-context.c, lib/se-selinux.c.
543         (Depends-on): Add extern-inline.
544         (configure.ac): Do not require AC_C_INLINE.
545
546         pthread: better 'inline'
547         * lib/pthread.c: New file.
548         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
549         New macro.  Replace all uses of 'static inline' with it.
550         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
551         * m4/pthread.m4 (gl_PTHREAD_CHECK):
552         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
553         * modules/pthread (Files): Add lib/pthread.c.
554         (Depends-on): Add extern-inline.
555
556         math: better 'inline'
557         * lib/math.c: New file.
558         * lib/math.in.h (_GL_MATH_INLINE):
559         New macro.  Replace all uses of 'static inline' with it.
560         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
561         * m4/math_h.m4 (gl_MATH_H):
562         Do not require AC_C_INLINE.
563         * modules/math (Files, lib_SOURCES):
564         Add lib/math.c.
565         (Depends-on): Add extern-inline.
566
567         count-one-bits: better 'inline'
568         * lib/count-one-bits.c: New file.
569         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
570         New macro.  Replace all uses of 'static inline' with it.
571         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
572         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
573         Do not require AC_C_INLINE.
574         * modules/count-one-bits (Files, lib_SOURCES):
575         Add lib/count-one-bits.c.
576         (Depends-on): Add extern-inline.
577
578         count-leading-zeros: better 'inline'
579         * lib/count-leading-zeros.c: New file.
580         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
581         New macro.  Replace all uses of 'static inline' with it.
582         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
583         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
584         Do not require AC_C_INLINE.
585         * modules/count-leading-zeros (Files, lib_SOURCES):
586         Add lib/count-leading-zeros.c.
587         (Depends-on): Add extern-inline.
588
589         bitrotate: better 'inline'
590         * lib/bitrotate.c: New file.
591         * lib/bitrotate.h (BITROTATE_INLINE):
592         New macros.
593         Replace all uses of 'static inline' with them.
594         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
595         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
596         (Depends-on): Add extern-inline.
597         (configure.ac): Do not require AC_C_INLINE.
598
599 2012-11-20  Theophile Ranquet <ranquet@lrde.epita.fr>
600
601         maint.mk: avoid gratuitous failure
602         Reported by Stefano Lattarini in
603         <http://lists.gnu.org/archive/html/bug-bison/2012-11/msg00022.html>
604         * top/maint.mk (public-submodule-commit): Quote more safely.
605
606 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
607
608         canonicalize, canonicalize-lgpl: support MS-Windows file names
609         See <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00074.html>
610         for test cases, which it'd be nice to add at some point.
611         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
612         * lib/canonicalize.c (canonicalize_filename_mode):
613         * lib/canonicalize-lgpl.c (__realpath):
614         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
615         slash is at the beginning of the file name.  Use ISSLASH, instead
616         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
617         the first character with '/'.  Test for
618         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
619         with a drive letter.
620         * lib/canonicalize.c (SLASHES): New macro.
621         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
622
623 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
624
625         fts: introduce FTS_VERBATIM
626         * lib/fts_.h (FTS_VERBATIM): New bit flag.
627         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
628         * lib/fts.c (fts_open): Honor it.
629
630 2012-11-09  Pádraig Brady  <P@draigBrady.com>
631
632         getlogin-tests: allow errno == ENXIO
633         * tests/test-getlogin.c (main): Skip tests if getlogin fails
634         with errno == ENXIO (No controlling tty).
635         getlogin_r-tests: Likewise. Also allow errno == ENOENT
636         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
637         with errno == ENOENT.  This was reported to happen in various
638         situations on GNU/Linux.
639
640 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
641
642         getlogin-tests: allow errno == ENOENT
643         * tests/test-getlogin.c (main): Skip tests if getlogin fails
644         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
645         when running a test in an Emacs shell buffer.
646
647 2012-11-08  Jim Meyering  <jim@meyering.net>
648
649         tests/nap.h: avoid warning about unused variable
650         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
651
652         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
653         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
654         white space before each of the special-cased file names, to avoid
655         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
656         in http://bugs.gnu.org/12830.
657
658 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
659
660         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
661         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
662         fails with errno == EBADF when fd is opened with O_PATH.
663         Reported by Jim Meyering in
664         <http://lists.gnu.org/archive/html/bug-gnulib/2012-11/msg00026.html>.
665         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
666         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
667
668 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
669
670         test-utimens: speed up by taking shorter naps
671         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
672         New functions.
673         (nap): Use them, to do a better job of guessing the delay.
674         On Fedora 17 with ext4 atop md atop hard disks, this made
675         test-utimens run 10x faster, because the test napped for
676         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
677         <http://bugs.gnu.org/12820#11>.
678
679 2012-11-07  Jim Meyering  <jim@meyering.net>
680
681         mountlist.c: fix a compilation failure
682         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
683         I introduced while transforming commit v0.0-7683-g613bcb6
684
685 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
686
687         errno: port to LynxOS 178 2.2.2
688         Problem reported by Joel Brobecker in
689         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00088.html>.
690         * doc/posix-headers/errno.texi (errno.h): Document this.
691         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
692         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
693         Supply a string for EILSEQ.
694         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
695
696 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
697
698         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
699         Linux kernel 2.6.39 introduced O_PATH (see
700         <http://lwn.net/Articles/433854/>) and this is a better fallback
701         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
702         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
703         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
704         * lib/fcntl.in.h (O_ACCMODE):
705         * tests/test-fcntl-h.c (main):
706         Do not reject O_ACCMODE merely because it has more than the
707         minimal number of bits, as POSIX allows extensions here.
708
709 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
710
711         mountlist: do not classify a bind-mounted dir entry as "dummy"
712         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
713         the "none"-testing clause.
714         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
715         exception for bind-mounted directories.
716
717 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
718
719         quote: provide a means to escape strings with nul characters
720         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
721         (quote, quote_n): Rename formal arguments for consistency with
722         quotearg.
723
724 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
725
726         test-raise: don't assume 199 is an invalid signal
727         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
728
729         sh-quote-tests: port to Solaris 9
730         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
731         Problem reported by Dagobert Michelsen in
732         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00114.html>.
733
734 2012-10-28  Jim Meyering  <jim@meyering.net>
735
736         maint.mk: rename a new configurable variable
737         * top/maint.mk (_gl_translatable_string_re): Rename from
738         translation-markers: _gl_ prefix to insulate from user Makefile code,
739         and the _re suffix to inform that it's a regular expression.
740
741 2012-10-26  Eric Blake  <eblake@redhat.com>
742
743         maint.mk: let packages tweak sc_po_check pattern
744         * top/maint.mk (sc_po_check): Add translation-markers, to allow
745         finding files with other translation markers.
746
747 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
748
749         euidaccess: speed up 'configure' on GNU hosts
750         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
751         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
752         it's needed only in this case.  Use AC_CHECK_DECLS, not
753         AC_CHECK_DECLS_ONCE.
754         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
755         or AC_REQUIRE for AC_FUNC_GETGROUPS.
756
757         * lib/regexec.c (re_search_internal): Fix grammar in comment.
758
759 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
760
761         fchmodat, fchownat, fstatat: port to non-inlining compilers
762         Problem reported for FreeBSD 9 by Jim Meyering in
763         <http://lists.gnu.org/archive/html/bug-gnulib/2012-10/msg00070.html>.
764         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
765         New files, which define FCHMODAT_INLINE etc.
766         * lib/fchmodat.c (FCHMODAT_INLINE):
767         * lib/fchownat.c (FCHOWNAT_INLINE):
768         * lib/fstatat.c (FSTATAT_INLINE):
769         Remove, as chmodat.c etc. now do this.
770         * modules/fchmodat (Files): Add lib/chmodat.c.
771         * modules/fchownat (Files): Add lib/chownat.c.
772         * modules/fstatat (Files): Add lib/statat.c.
773
774 2012-10-15  Jim Meyering  <jim@meyering.net>
775
776         fchmodat.c, fchownat.c: compile-impeding typos
777         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
778         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
779         Introduced in commit v0.0-7636-gd202279.
780
781 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
782
783         fcntl-h: support GNU flags like O_IGNORE_CTTY
784         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
785         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
786         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
787         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
788         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
789         Define to 0 if not already defined.
790         * tests/test-fcntl-h.c: Test these new flags.
791
792 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
793
794         faccessat, etc.: support AT_FDCWD-only use
795         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
796         this function only if its first argument is AT_FDCWD.
797         Emacs wants faccessat for AT_EACCESS but not for any first-arg
798         values other than AT_FDCWD, so it doesn't want all the openat
799         machinery with fchdir etc.
800         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
801         * modules/fstatat, modules/mkdirat, modules/openat (Files):
802         * modules/unlinkat (Files):
803         Remove lib/openat-priv.h, as at-internal supplies this file.
804         Removing this file here allows us to support programs like Emacs
805         that avoid at-internal.
806
807         faccessat: speed up 'configure' on mainstream hosts
808         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
809         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
810         since it's only on unusual platforms that we need to check for
811         'access', and it's better not to slow 'configure' down on all
812         platforms.
813
814         faccessat: port to Solaris 10
815         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
816         Needed on Solaris 10, which doesn't have AT_EACCESS,
817         so we need the Gnulib fcntl.h, which defines it.
818
819 2012-10-14  Pádraig Brady  <P@draigBrady.com>
820         canonicalize: fix C89 compilation
821         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
822         declarations so C89 is supported.  Also remove the comment
823         referencing memorty allocation as the suggested feature could
824         not be implemented as suggested.
825         Reported by Michael Goffioul.
826
827 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
828
829         group-member: omit unnecessary dependencies
830         This is for Emacs, which has its own allocator and where we
831         don't want to use xalloc.
832         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
833         since we no longer use xmalloc.  Do not include stdbool.h, since
834         the changes below happen to remove the only use of bool.
835         (GROUPBUF_SIZE): New constant.
836         (struct group_info): Remove n_groups member.  Add groupbuf member.
837         This lets us get the groups without using malloc, usually.
838         (free_group_info, get_group_info): Adjust to this.
839         (get_group_info): Return the number of groups found, or -1 on error.
840         Use plain malloc not xmalloc, and treat its failure as if there
841         are no groups, as the user already loses in case of error.
842         (group_member): Simplify, based on changes to get_group_info.
843         * modules/group-member (Depends-on): Remove dependencies on
844         xalloc and stdbool.  Add dependency on xalloc-oversized.
845
846 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
847
848         gethrxtime: port to C++
849         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
850
851 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
852
853         ptsname: fix macro-name typo
854         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
855
856 2012-10-03  Simon Josefsson  <simon@josefsson.org>
857
858         inttostr: Relax license.
859         * modules/inttostr (License): Change from LGPL to LGPLv2+.
860
861 2012-10-03  Eric Blake  <eblake@redhat.com>
862
863         ptsname_r: support ptys returned by FreeBSD posix_openpt
864         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
865         lives in /dev/pts/.
866
867 2012-10-02  Eric Blake  <eblake@redhat.com>
868
869         pselect: reject invalid file descriptors
870         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
871         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
872         * modules/pselect (Depends-on): Add dup2.
873         * doc/posix-functions/pselect.texi (pselect): Document this.
874
875         select: reject invalid file descriptors
876         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
877         * lib/select.c (rpl_select) [!win32]: Work around it.
878         * modules/select (Depends-on): Add dup2.
879         * doc/posix-functions/select.texi (select): Document this.
880
881         select: enhance test
882         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
883         New functions.
884         (test_function): Enhance test.
885         (do_select_bad_fd): Avoid any stale errno values.
886
887         ptsname: reject invalid file descriptors
888         http://www.austingroupbugs.net/view.php?id=503
889         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
890         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
891         * modules/stdlib (Makefile.am): Replace witness.
892         * lib/stdlib.in.h (ptsname): Allow for replacement.
893         * modules/ptsname (configure.ac): Trigger replacement.
894         * doc/posix-functions/ptsname.texi (ptsname): Document this.
895
896 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
897
898         hash-pjw-bare: new module
899         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
900         * lib/hash-pjw-bare.h: Likewise.
901         * modules/hash-pjw-bare: New file.
902         * MODULES.html.sh (Misc): Add it.
903
904 2012-10-02  Eric Blake  <eblake@redhat.com>
905
906         manywarnings: cater to more gcc infelicities
907         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
908         -Wuninitialized without -O.
909
910 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
911
912         select, poll tests: Make setsockopt invocation effective.
913         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
914         the bind() call.
915         * tests/test-select.h (open_server_socket): Likewise.
916
917 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
918
919         sockets, sys_stat: restore AC_C_INLINE
920         This undoes the 2012-09-22 patch.
921         * m4/sockets.m4 (gl_SOCKETS):
922         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
923         Restore AC_C_INLINE, since MSVC requires __inline or _inline
924         and does not support plain 'inline'.  Reported by Bruno Haible in
925         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00183.html>.
926
927 2012-09-30  Bruno Haible  <bruno@clisp.org>
928
929         localeconv tests: Avoid test failure on OpenIndiana.
930         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
931         skip the 'grouping' and 'mon_grouping' tests.
932         Reported by Jim Meyering.
933
934 2012-09-30  Bruno Haible  <bruno@clisp.org>
935
936         havelib: Follow libtool developments.
937         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
938         Suggested by Simon Josefsson.
939
940 2012-09-29  Jim Meyering  <meyering@redhat.com>
941
942         fstatat.c: fix a compile-impeding typo
943         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
944         Introduced in commit v0.0-7636-gd202279.
945         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
946
947 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
948
949         extern-inline: provide a -Wundef safe config.h
950         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
951         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
952         to produce a -Wundef warning free config.h.
953
954 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
955
956         hash-pjw: relax license to LGPLv2+
957         * modules/hash-pjw (License): Relax, with consent of author.
958
959 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
960
961         maint.mk: fix strict vs. lazy variable issues with RELEASE
962         * top/maint.mk (_equal): New function.
963         (member_check): Strip the result to avoid spurious spaces.
964         (url_dir_list): Do not use ifeq, which is strict, as it will
965         require RELEASE_TYPE to be defined.
966         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
967         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
968         (announcement_Cc_alpha,announcement_mail_headers_alpha)
969         (announcement_Cc_beta,announcement_mail_headers_beta)
970         (announcement_Cc_stable,announcement_mail_headers_stable): these.
971         (release): Do not depend on $(release-type), as it forces its
972         evaluation.  Bounce to it.
973
974 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
975
976         maint.mk: formatting changes
977         * top/maint.mk: Indent bodies of if's.
978
979 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
980
981         maint.mk: factor the validation of RELEASE_TYPE
982         With help from Jim Meyering.
983         http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00132.html
984         * top/maint.mk (_empty, _sp): Move their definition earlier.
985         (member-check, release-type): New.
986         Use the latter instead of $(RELEASE_TYPE).
987         Remove now useless local checks.
988
989 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
990
991         maint.mk: provide "make upload" to ease uploading
992         See
993         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00028.html>.
994         Do not depend simply on the current $(VERSION), as there may have been
995         new commits since the tarball generation.  Rather, rely on $(RELEASE),
996         as "make release-commit" already does.
997
998         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
999         "make TYPE".
1000
1001         * top/maint.mk (upload_command, upload, release): New.
1002         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
1003         (VERSION): first word of $(RELEASE) is always right.
1004         (emit_upload_commands): Adjust.
1005         * top/README-release: Update.
1006
1007 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
1008
1009         maint.mk: silent rules
1010         With help from Stefano Lattarini.
1011         * top/maint.mk (writable-files): Use $(AM_V_GEN).
1012         (announcement): Use $(AM_V_at).
1013
1014 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
1015
1016         localename: port gl_locale_name_thread_unsafe to FreeBSD
1017         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
1018         and use the simpler FreeBSD implementation on Mac OS X as well.
1019         Original idea suggested by Ed Maste in
1020         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00094.html>.
1021
1022 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
1023
1024         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
1025         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
1026         * lib/mbuiter.c, lib/xsize.c: New files.
1027         * lib/binary-io.h (BINARY_IO_INLINE):
1028         * lib/eealloc.h (EEALLOC_INLINE):
1029         * lib/mbfile.h (MBFILE_INLINE):
1030         * lib/mbiter.h (MBITER_INLINE):
1031         * lib/mbuiter.h (MBUITER_INLINE):
1032         * lib/xsize.h (XSIZE_INLINE):
1033         New macros.
1034         Replace all uses of 'static inline' with them.
1035         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1036         * m4/eealloc.m4 (gl_EEALLOC):
1037         * m4/mbfile.m4 (gl_MBFILE):
1038         * m4/mbiter.m4 (gl_MBITER):
1039         * m4/xsize.m4 (gl_XSIZE):
1040         Do not require AC_C_INLINE.
1041         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
1042         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
1043         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
1044         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
1045         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
1046         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
1047         * modules/binary-io, modules/eealloc, modules/mbfile:
1048         * modules/mbiter, modules/mbuiter:
1049         (Depends-on): Add extern-inline.
1050
1051         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
1052         * lib/pipe-filter-aux.c: New file.
1053         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
1054         Replace all uses of 'static inline' with it.
1055         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1056         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
1057         (filter_retcode): No real need for inline here.
1058         * modules/pipe-filter-gi, modules/pipe-filter-ii:
1059         (Files): Add lib/pipe-filter-aux.c.
1060         (Depends-on): Add extern-inline.
1061         (configure.ac): Do not require AC_C_INLINE.
1062         (lib_SOURCES): Add pipe-filter-aux.c.
1063
1064         fdutimensat: omit unnecessary AC_C_INLINE
1065         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
1066
1067         fchmodat, fchownat, fstatat: use extern-inline
1068         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
1069         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
1070         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
1071         New macros.
1072         * lib/openat.h:
1073         Replace all uses of 'static inline' with them.
1074         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1075         * modules/fchmodat, modules/fchownat, modules/fstatat:
1076         * modules/openat-h:
1077         (Depends-on):
1078         Add extern-inline.
1079         (configure.ac): Remove AC_C_INLINE.
1080
1081         acl, mbchar, priv-set: use extern-inline
1082         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
1083         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
1084         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
1085         New macros.
1086         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
1087         Replace all uses of 'static inline' with it.
1088         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1089         * m4/acl.m4 (gl_FUNC_ACL):
1090         * m4/mbchar.m4 (gl_MBCHAR):
1091         * m4/priv-set.m4 (gl_PRIV_SET):
1092         Remove AC_C_INLINE, since 'inline' is no longer used directly.
1093         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
1094         Add extern-inline.
1095
1096         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
1097         * m4/sockets.m4 (gl_SOCKETS):
1098         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
1099         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
1100         environments where it's already guaranteed to work, so we needn't
1101         check for it at 'configure'-time.
1102
1103         tls-tests: omit unnecessary 'inline'
1104         * tests/test-tls.c (perhaps_yield): No longer inline.
1105         Simplicity and portability trump efficiency in test cases.
1106
1107         utimens-tests: avoid unnecessary 'inline'
1108         * modules/fdutimensat-tests (configure.ac):
1109         * modules/futimens-tests (configure.ac):
1110         * modules/utimens-tests (configure.ac):
1111         * modules/utimensat-tests (configure.ac):
1112         Remove AC_C_INLINE.
1113         * tests/test-utimens-common.h (ctime_compare):
1114         No longer inline.  Simplicity and portability trump efficiency here.
1115
1116         misc: don't limit commentary to inline functions
1117         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
1118         * lib/xalloc-oversized.h, lib/xsize.h:
1119         Contrast macros to functions in general, not just to inline functions,
1120         when the commentary does not apply only to inline functions.
1121
1122 2012-09-20  Jim Meyering  <meyering@redhat.com>
1123
1124         non-recursive-gnulib-prefix-hack: new module
1125         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
1126         the file that originated in Bison.
1127         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
1128         largely copied from a snippet that resided in bison's configure.ac.
1129         * modules/non-recursive-gnulib-prefix-hack: New file.
1130         * MODULES.html.sh (Support for maintaining and releasing projects):
1131         Add it.
1132
1133 2012-09-18  Jim Meyering  <meyering@redhat.com>
1134
1135         maint.mk: generalize _gl_tight_scope for non-recursive make
1136         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
1137         that *.h would describe additional .h files in the directory
1138         specified by $(_gl_TS_dir).  I.e., add this...
1139         (_gl_TS_other_headers): New variable.
1140
1141         maint.mk: exempt trailing blanks found in "binary" files
1142         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
1143         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
1144         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1145
1146 2012-09-17  Jim Meyering  <meyering@redhat.com>
1147
1148         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
1149         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
1150         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
1151         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1152
1153 2012-09-17  Jim Meyering  <meyering@redhat.com>
1154
1155         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
1156         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
1157         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
1158         It is not in the same category as "exit (0)" or "exit (1)", and
1159         besides, I know of no symbolic name for that 77.  Reported by
1160         Richard W.M. Jones in
1161         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1162
1163 2012-09-17  Jim Meyering  <meyering@redhat.com>
1164
1165         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
1166         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
1167         all uses of #define, not just those that start in column 1.
1168         Richard W.M. Jones reported a false positive in
1169         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
1170
1171 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
1172
1173         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
1174         * lib/localcharset.c (locale_charset) [DARWIN7]:
1175         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
1176         as these two values are incompatible.  Problem reported by Max Horn.
1177         For more discussion, please see
1178         <http://lists.gnu.org/archive/html/bug-gnulib/2012-09/msg00061.html>.
1179
1180         doc: document sticky-EOF issue
1181         * doc/posix-functions/fgetc.texi (fgetc):
1182         * doc/posix-functions/fgets.texi (fgets):
1183         * doc/posix-functions/fread.texi (fread):
1184         * doc/posix-functions/fscanf.texi (fscanf):
1185         * doc/posix-functions/getc.texi (getc):
1186         * doc/posix-functions/getchar.texi (getchar):
1187         * doc/posix-functions/scanf.texi (scanf):
1188         Mention that glibc and default Solaris do not conform to
1189         C99 and POSIX-2001 or later, with respect to how getchar
1190         etc. behave when feof reports nonzero.
1191
1192 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
1193
1194         poll: fix poll(0, NULL, msec)
1195         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
1196         but nfd is 0.  In that case poll should behave like select.
1197
1198 2012-09-13  Joachim Schmitz <jojo@schmitz-digital.de>  (tiny change)
1199             Paolo Bonzini <bonzini@gnu.org>
1200
1201         poll: fix for systems that can't recv() on a non-socket
1202         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
1203         is readable.  In this case POLLHUP will not be supported.
1204         * doc/posix-functions/poll.texi: Document this.
1205
1206 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
1207
1208         poll/select: document portability problems not fixed by Gnulib.
1209         * doc/posix-functions/poll.texi: poll does not work well on
1210         pipes under Windows.  It has the same limitations as select on
1211         BeOS.
1212         * doc/posix-functions/select.texi: select does not work well
1213         on pipes under Windows.
1214
1215 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
1216
1217         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
1218         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
1219         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
1220         <http://lists.gnu.org/archive/html/bug-tar/2012-07/msg00018.html>.
1221
1222 2012-09-06  Eric Blake  <eblake@redhat.com>
1223
1224         net_if: give more details about the bug being fixed
1225         * doc/posix-headers/net_if.texi: Add clarification.
1226
1227 2012-09-05  Eric Blake  <eblake@redhat.com>
1228
1229         net_if: new module
1230         * modules/net_if: New module, borrowing ideas from netinet_in.
1231         * m4/net_if_h.m4: New file.
1232         * lib/net_if.in.h: Likewise.
1233         * doc/posix-headers/net_if.texi (net/if.h): Document it.
1234         * MODULES.html.sh (lacking POSIX:2008): Likewise.
1235         * tests/test-net_if.c: Make function checks conditional.
1236         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
1237
1238 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
1239
1240         readutmp: fix non-portable UT_PID use
1241         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
1242         Use `UT_PID (u) > 0' as absolute condition.
1243
1244 2012-09-04  Jim Meyering  <meyering@redhat.com>
1245
1246         fts: reduce two or more trailing spaces to just one, usually
1247         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
1248         or more slashes, trim all but the final one.  But if a name consists
1249         solely of two slashes, don't modify it.  If it consists solely of
1250         three or more slashes, strip all but one.
1251
1252         This is part of the solution to a minor problem with rm:
1253         it would print a bogus ELOOP diagnostic when failing to remove
1254         the slash-decorated name of a symlink-to-directory:
1255
1256             $ mkdir d && ln -s d s && env rm -r s/
1257             rm: cannot remove 's': Too many levels of symbolic links
1258
1259         With the change below and a trivial don't-trim-trailing-slashes
1260         adjustment to remove.c, it does this:
1261
1262             $ env rm -r s/
1263             rm: cannot remove 's/': Not a directory
1264
1265         Improved by: Eric Blake
1266
1267         fts: when there is no risk of overlap, use memcpy, not memmove
1268         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
1269
1270 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
1271
1272         stdbool: be more compatible with mixed C/C++ compiles
1273         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
1274         Define to bool, true, false, respectively, as GCC's builtin
1275         stdbool.h does.  Problem reported by Michael Goffioul in
1276         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00143.html>.
1277
1278 2012-08-28  Jim Meyering  <meyering@redhat.com>
1279
1280         revert last change: it was not needed
1281         * tests/test-vc-list-files-git.sh: There's already a test for
1282         a working git, just below.
1283
1284 2012-08-28  Jim Meyering  <meyering@redhat.com>
1285
1286         tests: test-vc-list-files-git.sh: skip if git is not available
1287         * tests/test-vc-list-files-git.sh: Skip this test when git is
1288         not available.
1289
1290 2012-08-26  Bruno Haible  <bruno@clisp.org>
1291
1292         gnulib-tool: Remove no-op option --no-changelog.
1293         * gnulib-tool (func_usage): Don't mention --no-changelog.
1294         (do_changelog): Remove variable.
1295         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1296
1297 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1298
1299         doc: remove fdl-1.2.texi
1300         It is no longer used or maintained, and its use of @acronym
1301         is problematic.  See the thread containing
1302         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00134.html>.
1303         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
1304         * doc/old-licenses/fdl-1.2.texi: Remove.
1305
1306         execinfo: port to FreeBSD
1307         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
1308         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
1309         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00113.html>.
1310         * modules/execinfo (Link): Add $(LIB_EXECINFO).
1311
1312 2012-08-23  Jim Meyering  <meyering@redhat.com>
1313
1314         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
1315         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
1316         to placate gcc's -Wold-style-declaration.
1317
1318 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
1319
1320         doc: do not use @acronym
1321         * doc/inet_ntoa.texi (inet_ntoa):
1322         * doc/parse-datetime.texi (Seconds since the Epoch)
1323         (Specifying time zone rules):
1324         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
1325         Don't use @acronym.  Problem reported by John Darlington in
1326         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
1327
1328 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
1329
1330         stdnoreturn: port to newer GCCs
1331         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
1332         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
1333         Problem reported by Jim Meyering in
1334         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
1335         Also, rename the 'test' function to a void a clash with the
1336         already-supplied 'main' function; this fixes a bug that incorrectly
1337         rejected GCC 4.7.1's <stdnoreturn.h>.
1338         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
1339         Document GCC problem.
1340
1341 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
1342
1343         pipe-filter: fix comment typo
1344         * lib/pipe-filter.h: Mention correct function.
1345
1346 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
1347
1348         execinfo: new module
1349         This is for Emacs.  Currently, it provides a no-effect stub
1350         on all platforms where it does not already work.
1351         It already works on glibc-based systems, and on Solaris 11.
1352         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
1353         New files.
1354         * doc/glibc-headers/execinfo.texi (execinfo.h):
1355         * MODULES.html.sh (Misc): Document it.
1356
1357 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
1358
1359         extern-inline: support old GCC 'inline'
1360         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
1361         if available.  This applies to GCC versions 2.7 through 4.2, or
1362         when newer GCC is using -fgnu89-inline.  The goal is to address
1363         some of the performance issues mentioned by Bruno Haible in
1364         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
1365
1366 2012-08-20  Eric Blake  <eblake@redhat.com>
1367
1368         maint.mk: avoid redundant file name in message
1369         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
1370         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
1371         (sc_makefile_path_separator_check): Remove bogus $(ME).
1372
1373 2012-08-20  Mike Frysinger <vapier@gentoo.org>
1374
1375         timer-time: fix link order when static linking on glibc
1376         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
1377         _after_ -lrt so that it's significant.
1378
1379 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
1380
1381         timespec: omit unnecessary AC_C_INLINE
1382         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
1383
1384         stat-time: omit unnecessary AC_C_INLINE
1385         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
1386         Do not require AC_C_INLINE.
1387
1388         ignore-value: omit unnecessary AC_C_INLINE
1389         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
1390
1391         sys_select: avoid 'static inline'
1392         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
1393
1394         mktime: avoid 'static inline'
1395         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
1396         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
1397
1398 2012-08-19  Bruno Haible  <bruno@clisp.org>
1399
1400         gnulib-tool: Improve coding style.
1401         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
1402         func_emit_lib_Makefile_am.
1403         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1404
1405 2012-08-19  Bruno Haible  <bruno@clisp.org>
1406
1407         gnulib-tool: Fix indentation.
1408         * gnulib-tool (func_import): Fix indentation.
1409
1410 2012-08-19  Bruno Haible  <bruno@clisp.org>
1411
1412         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
1413         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
1414         on the list of removed files.
1415
1416 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
1417
1418         test-parse-datetime: avoid glibc leap-second glitch
1419         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
1420         with the 2012 rules.  Problem reported by Bruce Dubbs in
1421         <http://bugs.gnu.org/12206>.
1422
1423 2012-08-14  Bruno Haible  <bruno@clisp.org>
1424
1425         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
1426         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
1427         from argument.
1428         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1429
1430 2012-08-14  Eric Blake  <eblake@redhat.com>
1431
1432         ldexp: relax license
1433         * modules/ldexp (License): Trivial relax, since the module only
1434         provides a permissively licensed m4 file.
1435
1436 2012-08-13  Bruno Haible  <bruno@clisp.org>
1437
1438         gnulib-tool: Fix persistence of --witness-c-macro option.
1439         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
1440         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1441
1442 2012-08-11  Eric Blake  <eblake@redhat.com>
1443
1444         count-leading-zeros: use a lookup table on non-gcc compilers
1445         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
1446         alternate implementation, suggested by Jim Meyering.
1447
1448 2012-08-10  Eric Blake  <eblake@redhat.com>
1449
1450         count-leading-zeros: new module
1451         * modules/count-leading-zeros: New module.
1452         * m4/count-leading-zeros.m4: New file.
1453         * lib/count-leading-zeros.h: Likewise.
1454         * modules/count-leading-zeros-tests: New test.
1455         * tests/test-count-leading-zeros.c: New file.
1456         * MODULES.html.sh (Integer arithmetic functions): Document it.
1457
1458 2012-08-07  Simon Josefsson  <simon@josefsson.org>
1459             Jim Meyering  <meyering@redhat.com>
1460
1461         maintainer-makefile: Fix syntax error with dash.
1462         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
1463         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
1464
1465 2012-08-05  Jim Meyering  <meyering@redhat.com>
1466
1467         extern-inline: also ignore -Wmissing-declarations
1468         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
1469         required with gcc-4.8.0-to-be.
1470
1471         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
1472         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
1473         for /error ?([^,]*)/.  This avoids false-positives for strings like
1474         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
1475
1476 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
1477
1478         gnumakefile: better interaction with Automake-NG
1479         * modules/gnumakefile [Makefile.am]: The makefiles generated by
1480         Automake-NG always contain a definition of VPATH, even in non-VPATH
1481         builds (its value being simply '.' in that case).  So, in the
1482         'clean-GNUmakefile' rule, to determine whether running under a
1483         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
1484         '$(VPATH)' expands to the empty string.
1485
1486 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
1487
1488         base64: Use extern C scope in header file, for C++.
1489         * lib/base64.h: Add C++ namespace protection.
1490
1491 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
1492
1493         stat-time, timespec, u64: support naive out-of-dir builds
1494         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
1495         Use '#include "foo.h"', not '#include <foo.h>', when including
1496         one's own interface.  This works better when configuring with
1497         out-of-directory builds, since packages need not add an
1498         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
1499
1500 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
1501
1502         utimens: use extern-inline
1503         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
1504         * lib/utimens.h: Add copyright notice, since this is now large enough
1505         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1506         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
1507         * modules/utimens (Depends-on): Add extern-inline.
1508
1509         u64: use extern-inline
1510         * lib/u64.c: New file.
1511         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1512         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
1513         * modules/u64 (Files): Add lib/u64.c.
1514         (Depends-on): Add extern-inline.
1515         (configure.ac): No need to require AC_C_INLINE, since extern-inline
1516         does that now.
1517         (lib_SOURCES): Add u64.c.
1518
1519         timespec: use extern-inline
1520         * lib/timespec.c: New file.
1521         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1522         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
1523         * modules/timespec (Files): Add lib/timespec.c.
1524         (Depends-on): Add extern-inline.
1525         (lib_SOURCES): Add timespec.c.
1526
1527         stat-time: use extern-inline
1528         * lib/stat-time.c: New file.
1529         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
1530         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
1531         * modules/stat-time (Files): Add lib/stat-time.c.
1532         (Depends-on): Add extern-inline.
1533         (lib_SOURCES): Add stat-time.c.
1534
1535         extern-inline: new module
1536         * modules/extern-inline, m4/extern-inline.m4: New files.
1537         This is for better support of 'extern inline' a la ISO C99,
1538         with a portable alternative on compilers that do not support
1539         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
1540         of the Emacs executable, when compiled with debugging disabled,
1541         which is a typical way that Emacs is built while developing.
1542
1543 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
1544
1545         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
1546         * build-aux/do-release-commit-and-tag: Move variable definitions
1547         together.
1548         ($branch): Instead of defaulting to "master", default to the current
1549         branch (as gnu-web-doc-update does).
1550         (help): Display the current values of the option arguments.
1551         * top/maint.mk (release-commit): New.
1552         * top/README-release: Simplify the corresponding step.
1553
1554 2012-07-30  Eric Blake  <eblake@redhat.com>
1555
1556         passfd: fix comment on recvfd
1557         * lib/passfd.c (recvfd): Fix comment.
1558         Reported by Jann Horn <jannhorn@googlemail.com>.
1559
1560 2012-07-30  Jim Meyering  <meyering@redhat.com>
1561
1562         maint.mk: avoid a sub-shell
1563         * top/maint.mk (release-prep): Remove unneeded sub-shell.
1564
1565 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1566
1567         maint.mk: use silent-rules support from Automake
1568         * top/maint.mk (news-check, vc-diff-check, announcement)
1569         (no-submodule-changes, alpha beta stable, release-prep)
1570         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
1571
1572 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1573
1574         maint.mk: provide a web-manual-update target
1575         * top/maint.mk: here.
1576         * top/README-release: Use it to simplify the web manual update step.
1577
1578 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1579
1580         README-release: shorten the circuit to post a news
1581         * top/README-release: Point directly to the news submission form.
1582
1583 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1584
1585         gnu-web-doc-update: fix --help
1586         * build-aux/gnu-web-doc-update: The information "top level" was written
1587         twice.
1588
1589 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
1590
1591         maint.mk: absolute VPATH issue
1592         * top/maint.mk (release-prep): Help Git find .git/.
1593         From Jim Meyering.
1594
1595 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1596
1597         gitlog-to-changelog: fix previous change
1598         * build-aux/gitlog-to-changelog: Fix condition.
1599         Add missing ";".
1600
1601 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1602
1603         gitlog-to-changelog: don't expect .git to be in $srcdir
1604         Reported by Bruno Haible.
1605         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
1606         * build-aux/gitlog-to-changelog (&git_dir_option): New.
1607         Use it.
1608
1609 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
1610
1611         maint.mk: absolute VPATH build fix
1612         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
1613         $(srcdir) is not a parent of $(builddir).
1614
1615 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
1616
1617         clean-temp: Fix memory leak.
1618         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
1619         'files' members of tmpdir.
1620
1621 2012-07-27  Jim Meyering  <meyering@redhat.com>
1622
1623         maint.mk: new rule: refresh-gnulib-patches
1624         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
1625         Use this rule to refresh them.
1626         * top/maint.mk (refresh-gnulib-patches): New rule.
1627
1628 2012-07-24  Bruno Haible  <bruno@clisp.org>
1629
1630         gnulib-tool: Fix handling of inctests variable.
1631         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
1632         Reported by Nick Bowler <nbowler@elliptictech.com>.
1633
1634 2012-07-22  Bruno Haible  <bruno@clisp.org>
1635
1636         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
1637         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
1638         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
1639         Remove exemption for getpass.h.
1640         Suggested by Eric Blake.
1641
1642 2012-07-20  Eric Blake  <eblake@redhat.com>
1643
1644         verify: document conflict with -Wnested-externs
1645         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
1646
1647         maint.mk: forbid exit(-1)
1648         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
1649
1650 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
1651
1652         fsusage: port back to Solaris
1653         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
1654         error (fsd not declared) on Solaris 10.  Reported privately by
1655         Andrew Borodin.
1656
1657 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
1658
1659         gnu-web-doc-update: fix error messages
1660         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
1661
1662         gnu-web-doc-update: check the requirements.
1663         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
1664         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
1665         * build-aux/bootstrap (find_tool): Comment change.
1666
1667 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
1668
1669         maint.mk: minor simplication.
1670         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
1671         for default values.
1672
1673 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
1674
1675         gitlog-to-changelog: VPATH build issues
1676         If builddir is not a subdirectory of srcdir, running git from it will
1677         fail.
1678         * build-aux/gitlog-to-changelog (--srcdir): New option.
1679
1680 2012-07-15  Bruno Haible  <bruno@clisp.org>
1681
1682         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
1683         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
1684         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
1685         Remove exemption for fpending.h.
1686         Suggested by Eric Blake.
1687
1688 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
1689
1690         pthread_sigmask: fix bug on FreeBSD 9
1691         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
1692         Include string.h.
1693         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
1694         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
1695         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
1696         but pthread_sigmask (1729, NULL, NULL) returns zero.
1697         See <http://bugs.gnu.org/11884>.
1698         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
1699         by inspecting whether the main call changed the old mask.
1700
1701 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
1702
1703         README-release: make it more legible
1704         * top/README-release: Improve typography slightly.
1705
1706 2012-07-15  Jim Meyering  <meyering@redhat.com>
1707
1708         maint: require that each sc_... command start with "@"
1709         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
1710         "make sc_maint" helps us avoid this nit.
1711
1712 2012-07-15  Jim Meyering  <meyering@redhat.com>
1713
1714         maint.mk: add leading "@" to quiet new "make syntax-check" rule
1715         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
1716
1717 2012-07-13  Eric Blake  <eblake@redhat.com>
1718
1719         maint.mk: new syntax check for HAVE_DECL checks
1720         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
1721         * cfg.mk
1722         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
1723         Exempt some false positives.
1724         Based on a report by Karel Zak.
1725
1726         argp: make HAVE_DECL usage consistent
1727         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
1728         macros, not whether they are defined.
1729         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
1730         convention with other declaration checks.
1731         Reported by Karel Zak, with suggestions from Paul Eggert.
1732
1733         stat-time: relax license to LGPLv2+
1734         * modules/stat-time (License): Relax, with consent of all authors.
1735
1736         strndup: fix m4 usage error
1737         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
1738         defined, to either 0 or 1.
1739         Reported by Karel Zak.
1740
1741 2012-07-11  Jim Meyering  <meyering@redhat.com>
1742
1743         maint: enable the sc_avoid_if_before_free syntax-check rule
1744         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
1745         (if_before_free_offenders_): Define.
1746         (if_before_free_basename_re_): Define.
1747         Exempt current files with useless if-before-free.
1748
1749 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
1750
1751         gettext: do not assume '#define ... defined ...' behavior
1752         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
1753         Do not use '#define FOO ... defined BAR ...', as the C standard says
1754         it's not portable to expect that this works after macro expansion.
1755         Problem reported for gzip by Steven M. Schweda in
1756         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
1757
1758 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
1759
1760         getloadavg: clean out old Emacs and Autoconf cruft
1761         See Glenn Morris in <http://bugs.gnu.org/11905>.
1762         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
1763         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
1764         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
1765         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
1766
1767 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
1768
1769         bootstrap: let warn be like tests/init.sh's warn_
1770         Reported by Jim Meyering.
1771         * build-aux/bootstrap (warn): Remove, replaced by...
1772         (warnf_, warn_): these.
1773         Adjust callers.
1774         Shorten messages that no longer fit in 80 columns.
1775
1776 2012-07-09  Bruno Haible  <bruno@clisp.org>
1777
1778         getopt: Simplify after Emacs changed.
1779         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
1780         (gl_GETOPT_IFELSE): Remove macro.
1781
1782 2012-07-09  Jim Meyering  <meyering@redhat.com>
1783
1784         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
1785         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
1786
1787         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
1788         Bugs in both of those conspired to make the
1789         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
1790         _sc_search_regexp's handling of non-empty $in_files would filter
1791         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
1792         choice of in_files value meant there would be no match in most
1793         projects, due to the presence of two or more Makefile.in files.
1794         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
1795         Fix a bug in how a non-empty $$in_files was processed:
1796         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
1797         in spite of the name, it's a regexp, not a list of file names.
1798
1799 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
1800
1801         getloadavg, getopt: fix commentary re configure.in
1802         Autoconf is deprecating the name 'configure.in', so change it to
1803         to the new name 'configure.ac' in a couple of places.
1804         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
1805         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
1806         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
1807         Emacs has renamed it to configure.ac, and it no longer refers
1808         to these macros anyway.
1809
1810         timespec: mark functions with const attributes
1811         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
1812         Mark with _GL_ATTRIBUTE_CONST.
1813
1814 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
1815
1816         canonicalize[-lgpl]: handle "guessing" values when cross-building
1817         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
1818         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
1819         matches "*yes" instead of just "yes".  Regression introduced in commit
1820         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
1821
1822 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
1823             Bruno Haible  <bruno@clisp.org>
1824
1825         canonicalize: make the right guess when cross-compiling to GNU
1826         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
1827         determine whether cross-compiling to glibc systems, so as to
1828         include GNU/Hurd.
1829
1830 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
1831
1832         timespec-sub: avoid duplicate include
1833         * lib/timespec-sub.c: Do not include <config.h> twice.
1834         Reported by Juanma Barranquero.
1835
1836 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
1837
1838         bootstrap: use a more consistent error reporting scheme
1839         * build-aux/bootstrap (warn, die): New.
1840         Use them.
1841
1842 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
1843
1844         sys_time: allow too-wide tv_sec
1845         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
1846         timeval even if tv_sec is wider than time_t.  This allows
1847         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
1848         as without this patch gnulib replaces struct timeval
1849         and OpenBSD futimes therefore has a type mismatch.
1850         * doc/posix-headers/sys_time.texi: Mention this.
1851
1852         pthread: check for both pthread_create and pthread_join
1853         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
1854         alter the check so that it tests for both pthread_create and
1855         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
1856         Suggested by Bruno Haible and Richard Yao in
1857         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
1858
1859         parse-datetime: doc tuneup
1860         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
1861         spacing issues.
1862
1863 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
1864
1865         do-release-commit-and-tag: fix the previous commit
1866         * build-aux/do-release-commit-and-tag: Actually the test was right,
1867         but the comment and the error message were misleading.
1868         Fix comment, and improve error message.
1869         Perform check first, so that NEWS is not modified uselessly.
1870
1871         do-release-commit-and-tag: fix typo
1872         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
1873         _not_ start with a stub.
1874
1875 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
1876
1877         pthread: check for pthread_create, not pthread_join
1878         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
1879         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
1880         pthread_join in libc.  I hope this removes the need for all the
1881         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
1882         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
1883
1884 2012-07-04  Jim Meyering  <meyering@redhat.com>
1885
1886         parse-datetime: fix failure to diagnose invalid input
1887         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
1888         rather than diagnosing the invalid input.  Now it reports this:
1889         date: invalid date '\260'
1890         * lib/parse-datetime.y (to_uchar): Define.
1891         (yylex): Don't sign-extend "other" bytes.
1892         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
1893         Thanks to Bruno Haible for the patch to this file.
1894         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
1895         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
1896
1897 2012-07-03  Jim Meyering  <meyering@redhat.com>
1898
1899         bootstrap: do not require now-removed build-aux/missing
1900         Now that build-aux/missing is, er, missing, bootstrap would
1901         silently fail.
1902         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
1903         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
1904         no longer part of gnulib.
1905         Diagnose the failure.
1906
1907 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
1908
1909         alloca: add support for HP NonStop TNS/E native
1910         * lib/alloca.in.h (alloca): Support the new host.
1911         From a suggestion by Joachim Schmitz in
1912         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
1913
1914 2012-07-02  Pádraig Brady  <P@draigBrady.com>
1915
1916         fsusage: remove code not needed on non GNU/Linux systems.
1917
1918         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
1919         Don't include headers no longer needed in this case.
1920         * lib/fsusage.c [STAT_STATVFS &&
1921         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
1922         STAT_STATFS2_FRSIZE to exclude code not used in this case.
1923
1924 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
1925
1926         fsusage: include files needed for glibc 2.6 fallback
1927         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
1928         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
1929         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
1930         Problem reported by Ludovic Courtès in
1931         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
1932
1933         fsusage: avoid needless check on GNU/Linux
1934         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
1935         on GNU/Linux systems, since it can't possibly work.
1936
1937 2012-07-01  Bruno Haible  <bruno@clisp.org>
1938
1939         log: Fix an autoconf >= 2.64 warning.
1940         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
1941         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
1942
1943 2012-06-28  Bruno Haible  <bruno@clisp.org>
1944
1945         log10f: Fix possible configuration problem.
1946         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
1947         $LOGF_LIBM.
1948         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
1949
1950 2012-06-28  Bruno Haible  <bruno@clisp.org>
1951
1952         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
1953         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
1954         not gl_cv_func_unlink_works.
1955         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
1956
1957 2012-06-27  Eric Blake  <eblake@redhat.com>
1958
1959         config: drop scripts that automake says are not independent
1960         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
1961         * build-aux/elisp-comp: Delete.
1962         * build-aux/missing: Likewise.
1963         * build-aux/ylwrap: Likewise.
1964         * modules/elisp-comp: Likewise.
1965         * MODULES.html.sh: Drop mention of elisp-comp.
1966         * NEWS: Mention this.
1967
1968 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
1969
1970         root-uid: new module
1971         This is for portability to Tandem's NonStop Kernel.
1972         * lib/root-uid.h, modules/root-uid: New files.
1973         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
1974         * lib/write-any-file.c, tests/test-sethostname2.c:
1975         Include "root-uid.h".
1976         * lib/euidaccess.c (euidaccess):
1977         * lib/pt_chown.c (main):
1978         * lib/unlinkdir.c (cannot_unlink_dir):
1979         * lib/write-any-file.c (can_write_any_file):
1980         * m4/mknod.m4 (gl_FUNC_MKNOD):
1981         * tests/test-sethostname2.c (geteuid, main):
1982         Don't assume ROOT_UID == 0.
1983         * modules/euidaccess (Depends-on):
1984         * modules/pt_chown (Depends-on):
1985         * modules/sethostname-tests (Depends-on):
1986         * modules/unlinkdir (Depends-on):
1987         * modules/write-any-file (Depends-on):
1988         Add root-uid.
1989
1990         regex: use locale-independent comparison for codeset name
1991         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
1992         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
1993         for codeset name.
1994         * lib/regex_internal.h: Do not include <strings.h>, since we
1995         no longer use strcasecmp.
1996         * modules/regex (Depends-on): Remove strcase.
1997
1998 2012-06-23  Bruno Haible  <bruno@clisp.org>
1999
2000         getopt-posix: No longer guarantee that option processing is resettable.
2001         * doc/posix-functions/getopt.texi: Drop description of problem with
2002         internal state. Fix info about mingw and msvc9.
2003         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
2004         option processing by getopt(). Run three test programs instead of one.
2005         Simplify cross-compilation guess.
2006         * NEWS: Mention the change.
2007         Reported by Rich Felker <dalias@aerifal.cx>.
2008
2009 2012-06-26  Bruno Haible  <bruno@clisp.org>
2010
2011         argp, regex: Ensure strcasecmp gets declared.
2012         * lib/argp-help.c: Include <strings.h>.
2013         * lib/regex_internal.h: Likewise.
2014         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
2015
2016 2012-06-24  Bruno Haible  <bruno@clisp.org>
2017
2018         ptsname_r: Make it consistent with ptsname on AIX.
2019         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
2020         implementation as for OSF/1.
2021         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
2022         a pty master.
2023
2024         ptsname_r: Make it consistent with ptsname on OSF/1.
2025         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
2026         OSF/1.
2027
2028 2012-06-24  Bruno Haible  <bruno@clisp.org>
2029
2030         ttyname_r: Fix result on OSF/1, Solaris.
2031         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
2032
2033 2012-06-24  Bruno Haible  <bruno@clisp.org>
2034
2035         ptsname_r: Add support for Solaris.
2036         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
2037         Solaris.
2038
2039         ptsname_r: Fix test failure on native Windows.
2040         * modules/ptsname_r (Depends-on): Add isatty.
2041
2042         ptsname_r: Fix test failures on IRIX, Solaris.
2043         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
2044         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
2045         accordingly.
2046         * lib/ptsname_r.c: Include <fcntl.h>.
2047         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
2048         set errno if fd is invalid.
2049         * tests/test-isatty.c (main): Update comments.
2050
2051 2012-06-24  Bruno Haible  <bruno@clisp.org>
2052
2053         ptsname test: Extend test.
2054         * tests/test-ptsname.c: Include <errno.h>.
2055         (main): Test behaviour with invalid file descriptor.
2056
2057 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
2058
2059         time: fix obsolete comment
2060         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
2061         reference to HAVE_STRUCT_TIMESPEC in comment.
2062
2063 2012-06-23  Bruno Haible  <bruno@clisp.org>
2064
2065         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
2066         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
2067         does not handle abbreviated long options with equivalent
2068         disambiguations, set gl_replace_getopt to yes.
2069         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
2070
2071 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
2072
2073         time_r: fix typo that always overrode localtime_r decl
2074         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
2075         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
2076         not in a standard include.
2077
2078 2012-06-22  Bruno Haible  <bruno@clisp.org>
2079
2080         Write "Mac OS X" instead of "MacOS X".
2081         * README: Write "Mac OS X" instead of "MacOS X".
2082         * build-aux/bootstrap: Likewise.
2083         * build-aux/install-reloc: Likewise.
2084         * lib/acl-internal.h: Likewise.
2085         * lib/acl_entries.c: Likewise.
2086         * lib/argp-ba.c: Likewise.
2087         * lib/argp-pv.c: Likewise.
2088         * lib/config.charset: Likewise.
2089         * lib/copy-acl.c: Likewise.
2090         * lib/csharpexec.c: Likewise.
2091         * lib/euidaccess.c: Likewise.
2092         * lib/fbufmode.c: Likewise.
2093         * lib/fflush.c: Likewise.
2094         * lib/file-has-acl.c: Likewise.
2095         * lib/filemode.h: Likewise.
2096         * lib/fpurge.c: Likewise.
2097         * lib/freadable.c: Likewise.
2098         * lib/freadahead.c: Likewise.
2099         * lib/freading.c: Likewise.
2100         * lib/freadptr.c: Likewise.
2101         * lib/freadseek.c: Likewise.
2102         * lib/fseeko.c: Likewise.
2103         * lib/fseterr.c: Likewise.
2104         * lib/fsusage.c: Likewise.
2105         * lib/fwritable.c: Likewise.
2106         * lib/fwriting.c: Likewise.
2107         * lib/get-rusage-as.c: Likewise.
2108         * lib/get-rusage-data.c: Likewise.
2109         * lib/getdomainname.c: Likewise.
2110         * lib/idpriv-drop.c: Likewise.
2111         * lib/idpriv-droptemp.c: Likewise.
2112         * lib/localcharset.c: Likewise.
2113         * lib/locale.in.h: Likewise.
2114         * lib/localename.c: Likewise.
2115         * lib/mbsrtowcs-state.c: Likewise.
2116         * lib/nproc.c: Likewise.
2117         * lib/passfd.c: Likewise.
2118         * lib/posix_openpt.c: Likewise.
2119         * lib/printf-parse.c: Likewise.
2120         * lib/progreloc.c: Likewise.
2121         * lib/safe-read.h: Likewise.
2122         * lib/safe-write.h: Likewise.
2123         * lib/sched.in.h: Likewise.
2124         * lib/set-mode-acl.c: Likewise.
2125         * lib/signal.in.h: Likewise.
2126         * lib/stdint.in.h: Likewise.
2127         * lib/stdio-impl.h: Likewise.
2128         * lib/stdlib.in.h: Likewise.
2129         * lib/strtod.c: Likewise.
2130         * lib/sys_select.in.h: Likewise.
2131         * lib/tcgetsid.c: Likewise.
2132         * lib/unistd.in.h: Likewise.
2133         * lib/unlockpt.c: Likewise.
2134         * lib/vasnprintf.c: Likewise.
2135         * lib/vma-iter.c: Likewise.
2136         * lib/wcsrtombs-state.c: Likewise.
2137         * m4/acl.m4: Likewise.
2138         * m4/acosl.m4: Likewise.
2139         * m4/asinl.m4: Likewise.
2140         * m4/atanl.m4: Likewise.
2141         * m4/c-stack.m4: Likewise.
2142         * m4/cosl.m4: Likewise.
2143         * m4/expl.m4: Likewise.
2144         * m4/extensions.m4: Likewise.
2145         * m4/fdatasync.m4: Likewise.
2146         * m4/fmal.m4: Likewise.
2147         * m4/frexp.m4: Likewise.
2148         * m4/frexpf.m4: Likewise.
2149         * m4/frexpl.m4: Likewise.
2150         * m4/fsusage.m4: Likewise.
2151         * m4/getdomainname.m4: Likewise.
2152         * m4/getloadavg.m4: Likewise.
2153         * m4/getopt.m4: Likewise.
2154         * m4/gettext.m4: Likewise.
2155         * m4/gnulib-common.m4: Likewise.
2156         * m4/intdiv0.m4: Likewise.
2157         * m4/intlmacosx.m4: Likewise.
2158         * m4/largefile.m4: Likewise.
2159         * m4/ldexpl.m4: Likewise.
2160         * m4/link-follow.m4: Likewise.
2161         * m4/locale-ar.m4: Likewise.
2162         * m4/locale-fr.m4: Likewise.
2163         * m4/locale-ja.m4: Likewise.
2164         * m4/locale-tr.m4: Likewise.
2165         * m4/locale-zh.m4: Likewise.
2166         * m4/locale_h.m4: Likewise.
2167         * m4/lock.m4: Likewise.
2168         * m4/logl.m4: Likewise.
2169         * m4/mathfunc.m4: Likewise.
2170         * m4/minus-zero.m4: Likewise.
2171         * m4/mktime.m4: Likewise.
2172         * m4/mmap-anon.m4: Likewise.
2173         * m4/multiarch.m4: Likewise.
2174         * m4/nanosleep.m4: Likewise.
2175         * m4/nocrash.m4: Likewise.
2176         * m4/poll.m4: Likewise.
2177         * m4/printf-frexpl.m4: Likewise.
2178         * m4/printf.m4: Likewise.
2179         * m4/signbit.m4: Likewise.
2180         * m4/sinl.m4: Likewise.
2181         * m4/sqrtl.m4: Likewise.
2182         * m4/strerror_r.m4: Likewise.
2183         * m4/tanl.m4: Likewise.
2184         * m4/threadlib.m4: Likewise.
2185         * m4/ttyname_r.m4: Likewise.
2186         * m4/unlink.m4: Likewise.
2187         * m4/visibility.m4: Likewise.
2188         * m4/wcwidth.m4: Likewise.
2189         * tests/minus-zero.h: Likewise.
2190         * tests/test-alloca-opt.c: Likewise.
2191         * tests/test-copy-acl.sh: Likewise.
2192         * tests/test-copy-file.sh: Likewise.
2193         * tests/test-fdatasync.c: Likewise.
2194         * tests/test-file-has-acl.sh: Likewise.
2195         * tests/test-flock.c: Likewise.
2196         * tests/test-fsync.c: Likewise.
2197         * tests/test-localename.c: Likewise.
2198         * tests/test-malloca.c: Likewise.
2199         * tests/test-nonblocking-pipe.h: Likewise.
2200         * tests/test-nonblocking-socket.h: Likewise.
2201         * tests/test-openpty.c: Likewise.
2202         * tests/test-posix_openpt.c: Likewise.
2203         * tests/test-ptsname.c: Likewise.
2204         * tests/test-ptsname_r.c: Likewise.
2205         * tests/test-sameacls.c: Likewise.
2206         * tests/test-select.h: Likewise.
2207         * tests/test-set-mode-acl.sh: Likewise.
2208         * tests/test-snprintf-posix.h: Likewise.
2209         * tests/test-sprintf-posix.h: Likewise.
2210         * tests/test-strtod.c: Likewise.
2211         * tests/test-time.c: Likewise.
2212         * tests/test-vasnprintf-posix.c: Likewise.
2213         * tests/test-vasprintf-posix.c: Likewise.
2214         * doc/acl-resources.txt: Likewise.
2215         * doc/**/*.texi: Likewise.
2216         Reported by Max Horn <max@quendi.de>.
2217
2218 2012-06-22  Bruno Haible  <bruno@clisp.org>
2219
2220         grantpt: Relax requirement regarding invalid file descriptors.
2221         * lib/grantpt.c: Don't include <fcntl.h>.
2222         (grantpt): Don't verify the validity of the file descriptor.
2223         * modules/grantpt (Depends-on): Remove fcntl-h.
2224         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
2225         file descriptors.
2226         * doc/posix-functions/grantpt.texi: Document more platforms on which
2227         grantpt succeeds for invalid file descriptors.
2228         Reported by Rich Felker <dalias@aerifal.cx>.
2229
2230 2012-06-22  Bruno Haible  <bruno@clisp.org>
2231
2232         fbufmode test: Don't test unportable behaviour.
2233         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
2234         (main): Invoke it three times.
2235         Reported by Szabolcs Nagy <nsz@port70.net>
2236         and Rich Felker <dalias@aerifal.cx>.
2237
2238 2012-06-21  Bruno Haible  <bruno@clisp.org>
2239
2240         gnulib-tool: Refactor inctests variable.
2241         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
2242         (func_modules_transitive_closure,
2243         func_modules_transitive_closure_separately,
2244         func_import, func_create_testdir): Update.
2245
2246         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
2247         * gnulib-tool: Accept option --without-tests.
2248         (func_usage): Document --without-tests option. Rearrange.
2249         (inctests): Normalize according to the mode.
2250         * NEWS: Mention the change.
2251         Suggested by Simon Josefsson.
2252
2253 2012-06-21  Bruce Korb  <bkorb@gnu.org>
2254
2255         parse-duration test: Avoid spurious output.
2256         * tests/test-parse-duration.sh: Reindent with leading tabs.
2257
2258 2012-06-21  Jim Meyering  <meyering@redhat.com>
2259
2260         maint: disable the strncpy prohibition
2261         * cfg.mk: Do not prohibit strncpy here.
2262
2263 2012-06-21  Bruno Haible  <bruno@clisp.org>
2264
2265         nonblocking: Avoid compilation error on mingw64.
2266         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
2267         fscanf.
2268         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
2269         * modules/vfscanf (configure.ac): Likewise.
2270         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
2271         definition only if stdio.h has prepared it.
2272         Reported by Daniel P. Berrange <berrange@redhat.com>.
2273
2274 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
2275
2276         gnulib-tool: Use readlink if it is available.
2277         * gnulib-tool (func_readlink): Choose function more appropriately.
2278
2279 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
2280
2281         posixtm-tests: port to buggy compiler
2282         Problem reported by Simon Josefsson in
2283         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
2284         * modules/posixtm-tests (Depends-on): Add stdint.
2285         * tests/test-posixtm.c (struct posixtm_test.t_expected):
2286         Now of type int_least64_t, not int64_t, both because that's
2287         what INT64_C returns and because int_least64_t works even
2288         on 72-bit hosts.
2289         (T): Use INT64_C on constants outside the traditional int range,
2290         to work around compiler bug noted by Simon.
2291
2292         mktime: fix integer overflow in 'configure'-time test
2293         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
2294         after integer overflow.  Problem reported by Rich Felker in
2295         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
2296         Also, don't look for further instances of a bug if we've already
2297         found one instance; this helps 'configure' run faster.
2298
2299 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
2300
2301         tmpfile, clean-temp: Fix invocation of GetVersionEx.
2302         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
2303         GetVersionEx correctly.
2304         * lib/clean-temp.c (supports_delete_on_close): Likewise.
2305
2306 2012-06-20  Bruno Haible  <bruno@clisp.org>
2307
2308         fdopen: Allow implementations that don't reject invalid fd arguments.
2309         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
2310         succeeds.
2311         Reported by Rich Felker <dalias@aerifal.cx>.
2312
2313 2012-06-20  Simon Josefsson  <simon@josefsson.org>
2314
2315         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
2316         bring in LIBINTL.
2317
2318 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
2319
2320         init.sh: do not rely on autoupated PWD
2321         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
2322         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
2323         Although Nelson's bug was not necessarily fixed by this patch,
2324         it seems wise to make the change for safety.
2325         * tests/init.sh (path_prepend_): Do not rely on PWD updating
2326         automagically after 'cd'; this is not reliable on older shells.
2327         (setup_): Fail if we cannot cd to temporary directory.
2328
2329 2012-06-19  Bruno Haible  <bruno@clisp.org>
2330
2331         stat, fstat: Avoid warnings on mingw64.
2332         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
2333         redefining.
2334         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
2335         Reported by Daniel P. Berrange <berrange@redhat.com>.
2336
2337 2012-06-19  Bruno Haible  <bruno@clisp.org>
2338
2339         stdioext: Add support for musl libc.
2340
2341         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
2342         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
2343
2344         * m4/fseterr.m4: New file.
2345         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
2346         function exists.
2347         * modules/fseterr (Files): Add m4/fseterr.m4.
2348         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
2349         __fseterr does not exist.
2350         (Makefile.am): Remove fseterr.c from lib_SOURCES.
2351
2352         * lib/freadable.h: Update comment.
2353
2354         * lib/fwritable.h: Update comment.
2355
2356         * lib/freading.h: Update comment.
2357
2358         * lib/fwriting.h: Update comment.
2359
2360         * m4/freadahead.m4: New file.
2361         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
2362         that function exists.
2363         * modules/freadahead (Files): Add m4/freadahead.m4.
2364         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
2365         __freadahead does not exist.
2366         (Makefile.am): Remove freadahead.c from lib_SOURCES.
2367
2368         * m4/freadptr.m4: New file.
2369         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
2370         function exists.
2371         * modules/freadptr (Files): Add m4/freadptr.m4.
2372         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
2373         __freadptr does not exist.
2374         (Makefile.am): Remove freadptr.c from lib_SOURCES.
2375
2376         * m4/freadseek.m4: New file.
2377         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
2378         exists.
2379         * modules/freadseek (Files): Add m4/freadseek.m4.
2380         (configure.ac): Invoke gl_FUNC_FREADSEEK.
2381
2382         * lib/fpurge.c (fpurge): Update comment.
2383
2384         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
2385
2386 2012-06-19  Bruno Haible  <bruno@clisp.org>
2387
2388         *printf-posix: Put more info into config.log.
2389         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
2390         exit code into config.log.
2391
2392 2012-06-19  Bruno Haible  <bruno@clisp.org>
2393
2394         getopt-gnu: Fix exit code overflow in autoconf test.
2395         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
2396         to keep them below < 128.
2397
2398 2012-06-17  Jim Meyering  <meyering@redhat.com>
2399
2400         maint.mk: fix typo in code to derive GPG key at release time
2401         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
2402
2403 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
2404
2405         regex: avoid warning when pointers are not long
2406         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
2407         and uintptr_t, not long, for portability to hosts where pointers and
2408         long have different sizes.  Issue noted by Daniel P. Berrange in
2409         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
2410         and fix suggested by Bruno Haible in
2411         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
2412
2413 2012-06-17  Bruno Haible  <bruno@clisp.org>
2414
2415         dummy: Relicense into the public domain.
2416         * modules/dummy (License): Set to "public domain".
2417         Suggested by Reuben Thomas.
2418
2419 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
2420
2421         announce-gen: VPATH issues
2422         * build-aux/announce-gen (--srcdir): New option, used to trim the
2423         $srcdir part of the path from $builddir to NEWS.
2424         * top/maint.mk (announcement): Adjust.
2425
2426 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
2427
2428         gnu-web-doc-update: VPATH builds
2429         * build-aux/gnu-web-doc-update (--builddir): New option.
2430         Revamp the handling of options.
2431         Prefer $(...) to `...`.
2432         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
2433         the template, and it is GNU mktemp specific.
2434         Prefer set -e to long series of &&.
2435         Restore the initial git branch, not "master".
2436         Properly initialize submodules (don't rely only on bootstrap).
2437         Do not reconfigure blindly, use config.status.
2438         * top/README-release: Update instructions for gnu-web-doc-update.
2439
2440 2012-06-11  Jim Meyering  <meyering@redhat.com>
2441
2442         maint.mk: revert most of the previous change re "all these"
2443         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
2444         For rationale, see the discussion at
2445         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
2446
2447 2012-06-10  Karl Berry  <karl@gnu.org>
2448
2449         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
2450
2451         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
2452
2453 2012-06-10  Bruce Korb  <bkorb@gnu.org>
2454
2455         parse-duration: Relicense under LGPLv2+.
2456         * modules/parse-duration (License): Change to LGPLv2+.
2457
2458 2012-06-10  Jim Meyering  <meyering@redhat.com>
2459
2460         maint.mk: prohibit common grammar error: "all these"
2461         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
2462         the list of prohibited word sequences.  It should be "all of these".
2463         * lib/tempname.c (__gen_tempname): Fix one of them.
2464
2465 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2466
2467         do-release-commit-and-tag: support VPATH builds
2468         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
2469         (noteworthy): Defined earlier to factor its value.
2470         (noteworthy_stub): New.
2471         Use it to factor.
2472         (help_version): Split into...
2473         (help, version): these.
2474         Adjust the option processing part.
2475         Support "--option=value" in addition to "--option value".
2476         (builddir): New.
2477         (--builddir): New option.
2478         * top/README-release: Document this.
2479         Reword slightly so that the reader cannot understand that he
2480         has to do these steps before calling do-release-commit-and-tag.
2481
2482 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2483
2484         readme-release: also require announce-gen and maintainer-makefile
2485         * modules/readme-release (Depends-on): here.
2486         * modules/announce-gen, modules/do-release-commit-and-tag,
2487         modules/gnu-web-doc-update, modules/maintainer-makefile
2488         (Description): Point to readme-release.
2489
2490 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
2491
2492         maint.mk: fix VPATH issues.
2493         * top/maint.mk (news-check): GNU Make understand $< very well.
2494         (release-prep): NEWS is in $(srcdir).
2495
2496 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
2497
2498         readme-release: require the promoted modules.
2499         * modules/readme-release (Depends-on): Add
2500         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
2501         in this text.
2502
2503 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2504             Bruno Haible  <bruno@clisp.org>
2505
2506         error, strerror-override: Support mingw64 from Fedora 17.
2507         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
2508         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
2509         EINPROGRESS.
2510         * lib/strerror-override.h (strerror_override): Test it.
2511         * lib/strerror-override.c (strerror_override): Likewise.
2512         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
2513
2514 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2515             Bruno Haible  <bruno@clisp.org>
2516
2517         error, strerror-override: Support mingw64 from Fedora 17.
2518         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
2519         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
2520         * lib/strerror-override.h (strerror_override): Test it.
2521         * lib/strerror-override.c (strerror_override): Likewise.
2522
2523 2012-06-03  Bruno Haible  <bruno@clisp.org>
2524
2525         error, strerror-override: Support new errno values from POSIX:2008.
2526         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
2527         ENOTRECOVERABLE.
2528         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
2529         platforms.
2530         * lib/strerror-override.c (strerror_override): Conditionalize the
2531         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
2532         * lib/strerror-override.h (strerror_override): Declare also if
2533         GNULIB_defined_EOWNERDEAD is defined.
2534         * tests/test-errno.c (e130, e131): New variables.
2535         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
2536         ENOTRECOVERABLE.
2537         Reported by Paolo Bonzini.
2538
2539 2012-05-31  Jim Meyering  <meyering@redhat.com>
2540
2541         savewd: add missing dependency on sys_wait module
2542         * modules/savewd (Depends-on): Add sys_wait, needed at least
2543         for MSVC.  Report and suggested change by Michael Goffioul.
2544
2545 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
2546
2547         system-quote-tests: port to CentOS 5
2548         Problem reported by Tom G. Christensen in
2549         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
2550         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
2551
2552 2012-05-29  Jim Meyering  <meyering@redhat.com>
2553
2554         maint: fix typos in comments and ChangeLog
2555         Culprits identified and fixed mostly automatically using these commands:
2556         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
2557         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
2558         using http://github.com/lyda/misspell-check
2559         * ChangeLog: Fix typos.
2560         * doc/solaris-versions: Likewise.
2561         * lib/regexec.c (re_search_stub): Likewise.
2562         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
2563
2564 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
2565
2566         manywarnings: remove duplicate -Wmultichar entry
2567         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
2568         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
2569         so keep the entry marked as documented.
2570
2571 2012-05-27  Karl Berry  <karl@gnu.org>
2572
2573         * config/srclist.txt (mktime.c): remove last libc sync,
2574         perhaps just temporarily.
2575
2576 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
2577
2578         regex: don't assume uint64_t or uint32_t
2579         * lib/regcomp.c (init_word_char): Don't assume that the types
2580         uint64_t and uint32_t exist.  The C standard doesn't guarantee
2581         them, and on some 32-bit compilers there is no uint64_t.
2582         Problem reported by Gianluigi Tiesi in
2583         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
2584
2585 2012-05-25  Jim Meyering  <meyering@redhat.com>
2586
2587         maint.mk: add strncpy-prohibiting syntax-check rule
2588         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
2589
2590 2012-05-24  Jim Meyering  <meyering@redhat.com>
2591
2592         maint.mk: compute $(gpg_key_ID) more portably
2593         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
2594         That use of sed is not portable to some fringe systems.
2595         Reported by Paul Eggert in
2596         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
2597
2598 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
2599
2600         mktime: sync from glibc
2601         * config/srclist.txt: Uncomment mktime.c.
2602         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
2603         First, indent with tabs, since glibc uses tabs and doesn't want to
2604         change and we'd rather be identical to glibc.  Also, two small
2605         coding changes:
2606         (isdst_differ): Use &&, not &, as && is the usual style.
2607         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
2608         for clarity.
2609
2610 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2611
2612         announce-gen: du -h is more portable than du --human
2613         * build-aux/announce-gen (sizes): Invoke du with -h instead
2614         of --human.  Accept leading white space in its output.
2615
2616 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2617
2618         announce-gen: Improve diagnostics.
2619         * build-aux/announce-gen: When parsing command line options,
2620         prefer "announce-gen: option --release-type requires an argument"
2621         to "Option release-type requires an argument".
2622
2623 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
2624
2625         maint.mk: gpg_key_ID: use sed more portably
2626         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
2627         the closing brace.
2628         (refresh-po): Fuse two sed invocations into one.
2629
2630 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
2631
2632         gitlog-to-changelog: support the log message format used in Bison.
2633         * build-aux/gitlog-to-changelog: Support --strip-tab and
2634         --strip-cherry-picked.
2635
2636 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
2637
2638         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
2639         the rest of the current time slice to another thread in the current
2640         process. So if the thread that feeds the file decscriptor we're
2641         polling is not in the current process, we get busy-waiting.
2642         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
2643         Patch from Theodore Leblond.
2644         * lib/select.c: Split polling out of the loop that sets the output
2645         fd_sets.  Check for zero result and loop if the wait timeout is
2646         infinite.
2647
2648 2012-05-21  Simon Josefsson  <simon@josefsson.org>
2649
2650         select: Fix build error on IRIX 6.5.
2651         * lib/select.c: Include stddef.h for NULL.
2652
2653 2012-05-21  Simon Josefsson  <simon@josefsson.org>
2654
2655         gc: fix libgcrypt detection on older machines.
2656         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
2657         copyright years because the file has been distributed every year
2658         since it was created.
2659
2660 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
2661
2662         crypto: fix bug in large buffer handling
2663         Problem reported by Serge Belyshev for glibc in
2664         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
2665         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
2666         * lib/md4.c (md4_process_block):
2667         * lib/md5.c (md5_process_block):
2668         * lib/sha1.c (sha1_process_block):
2669         * lib/sha256.c (sha256_process_block):
2670         Don't assume the buffer length is less than 2**32.
2671         * lib/sha512.c (sha512_process_block): Likewise.
2672         Here, the bug is present only in the rare case where the host does
2673         not support uint64_t or where size_t is wider than 64 bits.
2674         Use u64size to work around the problems.
2675         * lib/u64.h (u64size): New macro.
2676
2677 2012-05-15  Pádraig Brady  <P@draigBrady.com>
2678
2679         fsusage: fix block size returned on older Linux 2.6
2680
2681         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
2682         which is available since Linux 2.6.
2683         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
2684         when the member is available so it can be used as a fallback.
2685         * doc/posix-functions/statvfs.texi: Mention the hang issue
2686         on Linux < 2.6.36.
2687
2688 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
2689
2690         bootstrap: suppress stderr chatter
2691         * build-aux/bootstrap (insert_sorted_if_absent, main program):
2692         Omit unnecessary chatter to stderr.  The main program chatter
2693         was there only inadvertantly.
2694
2695         bootstrap: .gitignore files created by autopoint, libtool
2696         I ran into this problem when bootstrapping the latest diffutils.
2697         After './bootstrap', 'git status' reported lots of untracked files
2698         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
2699         autopoint and do not need to be version-controlled.
2700         * build-aux/bootstrap: Put into .gitignore the files that
2701         autopoint and libtool create, by keeping track of files that exist
2702         after but not before these programs are run.
2703         (version_controlled_file): Move up.  2nd arg is now full file
2704         name, not base name; this is more convenient.  Put CVS at the end,
2705         as it's now somewhat deprecated.
2706
2707 2012-05-14  Jim Meyering  <meyering@redhat.com>
2708
2709         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
2710         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
2711         definition.  Reported by Bruno Haible.
2712
2713 2012-05-13  Bruno Haible  <bruno@clisp.org>
2714             Paul Eggert  <eggert@cs.ucla.edu>
2715
2716         binary-io: Define set_binary_mode function.
2717         * lib/binary-io.h (set_binary_mode): New function.
2718         (SET_BINARY): Define in terms of set_binary_mode.
2719         * modules/binary-io (configure.ac): Require AC_C_INLINE.
2720         * tests/test-binary-io.c (main): Accept an argument, and test either
2721         set_binary_mode or SET_BINARY depending on the argument.
2722         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
2723         argument. Clean up also t-bin-out0.tmp.
2724
2725 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
2726
2727         bootstrap: take advantage of POSIX shell features
2728
2729         The 'bootstrap' script offered by Gnulib script already uses POSIX
2730         shell features (like $((...)) arithmetic expansions) that are not
2731         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
2732         means that bootstrap must already be run using a proper POSIX shell,
2733         which will thus provide more features, like ${var#pattern} parameter
2734         expansion or inversion of a command exit status with '!'.  We can
2735         thus use these features to improve the clarity and the performances
2736         of the bootstrap script.
2737
2738         Suggested by Eric Blake.
2739
2740         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
2741         of sed/expr plus command substitutions, to save some forks.  While
2742         we are at it, prefer the POSIX $(...) form of command substitution,
2743         rather than the legacy form `...` (since the former is visually
2744         clearer and interacts better with quoting), and prefer the idiom:
2745           "if ! CMD; then ACTION ..."
2746         over the idiom:
2747           "if CMD; then :; else ACTION ..."
2748         which was required by legacy Bourne shells not supporting '!'.
2749
2750 2012-05-12  Bruno Haible  <bruno@clisp.org>
2751
2752         system-quote: Add more comments.
2753         * lib/system-quote.h: Add more comments about wilcards and limitations.
2754         Suggested by Eli Zaretskii <eliz@gnu.org>.
2755
2756         sh-quote, system-quote: Add comments about wildcards.
2757         * lib/sh-quote.h: Clarify what happens with wildcard characters.
2758         * lib/system-quote.h: Likewise.
2759         Reported by Eli Zaretskii <eliz@gnu.org>.
2760
2761 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
2762
2763         fsusage: check for GNU/Linux statvfs problem dynamically
2764         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
2765         Define STAT_STATFS2_BSIZE too, since in this case the code now
2766         checks dynamically whether statvfs is reliable, falling back on
2767         Linux-style statfs otherwise.
2768         (statvfs_works): New function, for dynamically testing statvfs.
2769         (get_fs_usage) [STAT_STATVFS]: Use it.
2770         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
2771         statvfs on GNU/Linux hosts, since it's now done dynamically.
2772
2773 2012-05-10  Bruno Haible  <bruno@clisp.org>
2774
2775         system-quote, execute, spawn-pipe: Escape '?' on Windows.
2776         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
2777         '?' character.
2778         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
2779         * tests/test-system-quote-main.c (check_all): Check also strings like
2780         "??????????".
2781         Reported by Eli Zaretskii <eliz@gnu.org>.
2782
2783 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
2784
2785         _Noreturn: port config.h to gcc -Wundef
2786         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
2787         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
2788         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
2789
2790 2012-05-10  Bruno Haible  <bruno@clisp.org>
2791
2792         system-quote: Refactor.
2793         * lib/system-quote.h (system_quote_copy): Fix comment.
2794         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
2795         New functions, extracted from system_quote_copy.
2796         (system_quote_length, system_quote_copy): Use these functions.
2797         Reported by Paul Eggert.
2798
2799 2012-05-08  Bruno Haible  <bruno@clisp.org>
2800
2801         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
2802         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
2803
2804 2012-05-08  Bruno Haible  <bruno@clisp.org>
2805
2806         Tests for module 'system-quote'.
2807         * modules/system-quote-tests: New file.
2808         * tests/test-system-quote.sh: New file.
2809         * tests/test-system-quote-main.c: New file.
2810         * tests/test-system-quote-child.c: New file.
2811
2812         New module 'system-quote'.
2813         * lib/system-quote.h: New file.
2814         * lib/system-quote.c: New file.
2815         * modules/system-quote: New file.
2816
2817 2012-05-08  Bruno Haible  <bruno@clisp.org>
2818
2819         sh-quote: Make C++ safe and allow multiple inclusion.
2820         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
2821         declarations in extern "C".
2822
2823 2012-05-08  Bruno Haible  <bruno@clisp.org>
2824
2825         sh-quote tests: Make tests stricter.
2826         * tests/test-sh-quote.c (check_one): Check the return value of
2827         shell_quote_copy.
2828         (main): Check a string with a CR character. Check a string that
2829         contains UCHAR_MAX.
2830
2831 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
2832
2833         warnings.m4: provide a means to specify the program to compile.
2834         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
2835         (gl_WARN_ADD): here.
2836         Use gl_AS_VAR_APPEND.
2837         Support an argument to specify the program to compile.
2838         (gl_WARN_ADD): Accept an argument to specify the program to compile.
2839         AC_SUBST the WARN_CFLAGS when they are used.
2840         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
2841         leave this to gl_WARN_ADD.
2842
2843 2012-05-08  Eric Blake  <eblake@redhat.com>
2844
2845         doc: recommendations on gettext version
2846         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
2847         choice between versions.
2848         * DEPENDENCIES (gettext): Cover both approaches.
2849
2850 2012-05-08  Jim Meyering  <meyering@redhat.com>
2851
2852         init.sh: explain why EXEEXT support uses aliases rather than functions
2853         * tests/init.sh: Add a comment.
2854
2855         init.sh: don't let bash aliases interfere with tests
2856         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
2857         is bash.  This avoids problems for those who alias standard commands to
2858         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
2859         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
2860
2861 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
2862
2863         stdint: be more consistent with glibc, SunOS libc
2864         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
2865         (gl_int_fast16_t, gl_uint_fast16_t)
2866         (gl_int_fast32_t, gl_uint_fast32_t)
2867         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
2868         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
2869         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
2870         Be consistent with glibc by default, and with SunOS 5.10 and later
2871         if __sun is defined.  This lessens the likelihood of clashes if
2872         code compiled for older hosts is combined with code compiled for
2873         newer ones.  Problem reported by Niels Möller in
2874         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
2875
2876 2012-05-07  Eric Blake  <eblake@redhat.com>
2877
2878         isatty: relax license to LGPLv2+
2879         * modules/isatty (License): Relax license.
2880
2881 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
2882
2883         stat-size: comment fix
2884         * lib/stat-size.h: Remove obsolete comment about indenting.
2885
2886 2012-05-06  Bruno Haible  <bruno@clisp.org>
2887
2888         Tests for module 'sh-quote'.
2889         * modules/sh-quote-tests: New file.
2890         * tests/test-sh-quote.c: New file.
2891
2892 2012-05-06  Bruno Haible  <bruno@clisp.org>
2893
2894         sh-quote: Improve shell_quote_argv's signature.
2895         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
2896         * lib/sh-quote.c (shell_quote_argv): Likewise.
2897
2898 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
2899
2900         stdint: document issues with int_fast8_t etc.
2901         * doc/posix-headers/stdint.texi (stdint.h): Say that other
2902         stdint.h substitutes may define these types differently.  See
2903         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
2904
2905 2012-05-05  Bruno Haible  <bruno@clisp.org>
2906
2907         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
2908         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
2909         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
2910         or 'guessing no (mishandles large arguments)'.
2911
2912 2012-05-05  Bruno Haible  <bruno@clisp.org>
2913
2914         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
2915         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
2916         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
2917         set gl_cv_func_link_follows_symlink to "guessing no".
2918
2919 2012-05-05  Bruno Haible  <bruno@clisp.org>
2920
2921         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
2922         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
2923         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
2924         "guessing no".
2925         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
2926
2927 2012-05-05  Bruno Haible  <bruno@clisp.org>
2928
2929         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
2930         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
2931         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
2932         set gl_cv_struct_dirent_d_ino to "guessing yes".
2933
2934 2012-05-05  Bruno Haible  <bruno@clisp.org>
2935
2936         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
2937         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
2938         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
2939         "guessing yes".
2940
2941 2012-05-05  Bruno Haible  <bruno@clisp.org>
2942
2943         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
2944         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
2945         compiling to a glibc system, set gl_cv_func_signbit and
2946         gl_cv_func_signbit_gcc to "guessing yes".
2947
2948 2012-05-05  Bruno Haible  <bruno@clisp.org>
2949
2950         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
2951         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
2952         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
2953         to "guessing yes".
2954         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
2955         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
2956
2957 2012-05-05  Bruno Haible  <bruno@clisp.org>
2958
2959         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
2960         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
2961         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
2962         gl_cv_func_realpath_works to "guessing yes".
2963
2964 2012-05-05  Bruno Haible  <bruno@clisp.org>
2965
2966         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
2967         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
2968         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
2969
2970 2012-05-04  Bruno Haible  <bruno@clisp.org>
2971
2972         Tweak last commit.
2973         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
2974         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
2975
2976 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
2977
2978         unistd_h: make it easier to avoid sys_types_h
2979         This is useful for Emacs, which has its own method of porting to
2980         Windows, and which therefore does not need the sys_types_h module.
2981         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
2982         code moved here from gl_SYS_TYPES_H.
2983         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
2984         using the code directly.
2985         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
2986         gl_SYS_TYPES_H.
2987         * modules/sys_types (Files):
2988         * modules/unistd (Files): Add m4/off_t.m4.
2989
2990 2012-05-03  Bruno Haible  <bruno@clisp.org>
2991
2992         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
2993         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
2994         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
2995         "guessing yes" or "guessing no".
2996         (gl_FUNC_LSTAT): Update.
2997         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
2998         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
2999         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
3000
3001 2012-05-03  Bruno Haible  <bruno@clisp.org>
3002
3003         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
3004         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
3005         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
3006         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
3007         cross-compiling, choose the first alternative on glibc systems.
3008         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
3009
3010 2012-05-03  Bruno Haible  <bruno@clisp.org>
3011
3012         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
3013         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
3014         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
3015
3016 2012-05-03  Bruno Haible  <bruno@clisp.org>
3017
3018         chown: Avoid "guessing no" when cross-compiling to glibc systems.
3019         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
3020
3021 2012-05-03  Bruno Haible  <bruno@clisp.org>
3022
3023         Avoid "guessing no" guesses when cross-compiling to glibc systems.
3024         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
3025         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
3026         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
3027         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
3028         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
3029         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
3030         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
3031         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
3032         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
3033         compiling to glibc systems, set gl_cv_func_chown_slash_works,
3034         gl_cv_func_chown_ctime_works to "guessing yes".
3035         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
3036         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
3037         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
3038         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
3039         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
3040         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
3041         compiling to glibc systems, set gl_cv_func_open_directory_works to
3042         "guessing yes".
3043         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
3044         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
3045         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
3046         "guessing yes".
3047         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
3048         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
3049         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
3050         compiling to glibc systems, set gl_cv_func_floorf_ieee to
3051         "guessing yes".
3052         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
3053         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
3054         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
3055         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
3056         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
3057         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
3058         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
3059         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
3060         "guessing yes".
3061         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
3062         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
3063         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
3064         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
3065         "guessing yes".
3066         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
3067         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
3068         "guessing yes".
3069         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
3070         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
3071         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
3072         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
3073         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
3074         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
3075         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
3076         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
3077         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
3078         compiling to glibc systems, set gl_cv_func_log10f_ieee to
3079         "guessing yes".
3080         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
3081         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
3082         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
3083         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
3084         "guessing yes".
3085         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
3086         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
3087         "guessing yes".
3088         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
3089         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
3090         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
3091         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
3092         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
3093         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
3094         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
3095         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
3096         compiling to glibc systems, set gl_cv_func_mkfifo_works to
3097         "guessing yes".
3098         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
3099         compiling to glibc systems, set gl_cv_func_mknod_works to
3100         "guessing yes".
3101         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
3102         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
3103         "guessing yes".
3104         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
3105         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
3106         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
3107         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
3108         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
3109         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
3110         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
3111         compiling to glibc systems, set gl_cv_func_svid_putenv to
3112         "guessing yes".
3113         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
3114         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
3115         "guessing yes".
3116         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
3117         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
3118         "guessing yes".
3119         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
3120         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
3121         to "guessing yes".
3122         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
3123         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
3124         to "guessing yes".
3125         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
3126         compiling to glibc systems, set gl_cv_func_rmdir_works to
3127         "guessing yes".
3128         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
3129         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
3130         gl_cv_func_unlink_parent_fails to "guessing yes".
3131         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
3132         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
3133         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
3134         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
3135         gl_cv_func_rename_dest_works to "guessing yes".
3136         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
3137         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
3138         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
3139         compiling to glibc systems, set gl_cv_func_roundf_ieee to
3140         "guessing yes".
3141         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
3142         compiling to glibc systems, set gl_cv_func_roundl_ieee to
3143         "guessing yes".
3144         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
3145         compiling to glibc systems, set gl_cv_func_setenv_works to
3146         "guessing yes".
3147         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
3148         compiling to glibc systems, set gl_cv_func_unsetenv_works to
3149         "guessing yes".
3150         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
3151         compiling to glibc systems, set gl_cv_func_sleep_works to
3152         "guessing yes".
3153         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
3154         compiling to glibc systems, set gl_cv_func_stat_file_slash to
3155         "guessing yes".
3156         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
3157         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
3158         "guessing yes".
3159         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
3160         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
3161         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
3162         compiling to glibc systems, set gl_cv_func_truncf_ieee to
3163         "guessing yes".
3164         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
3165         compiling to glibc systems, set gl_cv_func_truncl_ieee to
3166         "guessing yes".
3167         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
3168         compiling to glibc systems, set gl_cv_func_usleep_works to
3169         "guessing yes".
3170         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
3171         compiling to glibc systems, set gl_cv_func_futimesat_works to
3172         "guessing yes".
3173
3174 2012-05-03  Bruno Haible  <bruno@clisp.org>
3175
3176         Say "guessing yes" or "guessing no" when cross-compiling.
3177         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
3178         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
3179         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
3180         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
3181         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
3182         am_cv_func_working_getline to "guessing yes" or "guessing no".
3183         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
3184         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
3185         (gl_FUNC_MEMMEM): When cross-compiling, set
3186         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
3187         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
3188         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
3189         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
3190         set gl_cv_func_strcasestr_works_always to "guessing yes" or
3191         "guessing no".
3192         (gl_FUNC_STRCASESTR): When cross-compiling, set
3193         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
3194         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
3195         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
3196         (gl_FUNC_STRSTR): When cross-compiling, set
3197         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
3198         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
3199         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
3200         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
3201         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
3202
3203 2012-05-01  Bruno Haible  <bruno@clisp.org>
3204
3205         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
3206         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
3207         * build-aux/reloc-ldflags: Likewise.
3208         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
3209
3210 2012-05-01  Bruno Haible  <bruno@clisp.org>
3211
3212         gnulib-tool: Remove transitional code.
3213         * gnulib-tool: Don't warn about --import with 0 arguments any more.
3214         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
3215
3216 2012-05-01  Bruno Haible  <bruno@clisp.org>
3217
3218         getcwd: Fix misindentation.
3219         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
3220
3221 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
3222
3223         exclude: process exclude and include directives in order
3224         This restores the pre-2009 behavior, and is part of a fix of a
3225         grep bug reported by Quentin Arce in
3226         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
3227         * lib/exclude.c (struct exclude): Remove 'tail' member.
3228         (new_exclude_segment): Prepend the new segment instead of appending.
3229         Return void, since that's now more convenient.
3230         (file_pattern_matches): Renamed from excluded_file_pattern_p.
3231         (file_name_matches): Renamed from excluded_file_name_p.
3232         (file_pattern_matches, file_name_matches):
3233         Return true if the pattern matches, not if it excludes.
3234         All callers changed.
3235         (excluded_file_name): Process the list in reverse order;
3236         since the list is now reversed this restores the pre-2009 behavior.
3237         (add_exclude): Adjust to new reversed-order list.  Use local var
3238         rather than macro, for clarity.
3239         * tests/test-exclude7.sh: Adjust to corrected behavior.
3240
3241         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
3242         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
3243         it's not possible here.  Handle the case of \ at end of pattern
3244         without dumping core.
3245         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
3246
3247         _Noreturn: future-proof non-GNU and non-MSVC compilers
3248         * build-aux/snippet/_Noreturn.h (_Noreturn):
3249         * m4/gnulib-common.m4 (gl_COMMON_BODY):
3250         Do not define _Noreturn if __STDC_VERSION__ indicates this is
3251         C11 or later.  This is more likely to work with random future C
3252         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
3253         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
3254
3255         exclude: handle wildcards with FNM_EXTMATCH
3256         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
3257         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
3258         comment that "has wildcards" really means "has or may have
3259         wildcards".  Simplify by avoiding the need to call strcspn.
3260
3261 2012-04-29  Bruno Haible  <bruno@clisp.org>
3262
3263         gnulib-tool: Fix list of authors.
3264         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
3265
3266 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
3267
3268         bootstrap: support Automake-NG in $buildreq
3269         * bootstrap (check_versions): Handle automake and aclocal from
3270         Automake-NG specially.  They can be specified as respectively
3271         the "automake-ng" and "aclocal-ng" requirements.
3272
3273 2012-04-25  Eric Blake  <eblake@redhat.com>
3274
3275         bootstrap: only force latest Makefile.in.in for gettext module
3276         * build-aux/bootstrap (with_gettext): Only install latest
3277         Makefile.in.in for projects requesting bleeding edge gettext.
3278
3279 2012-04-22  Bruno Haible  <bruno@clisp.org>
3280
3281         doc: Mention reason for replacement on glibc/Linux systems.
3282         * doc/posix-functions/dprintf.texi: Mention the problem with special
3283         'long double' values.
3284         * doc/posix-functions/fprintf.texi: Likewise.
3285         * doc/posix-functions/printf.texi: Likewise.
3286         * doc/posix-functions/snprintf.texi: Likewise.
3287         * doc/posix-functions/sprintf.texi: Likewise.
3288         * doc/posix-functions/vdprintf.texi: Likewise.
3289         * doc/posix-functions/vfprintf.texi: Likewise.
3290         * doc/posix-functions/vprintf.texi: Likewise.
3291         * doc/posix-functions/vsnprintf.texi: Likewise.
3292         * doc/posix-functions/vsprintf.texi: Likewise.
3293         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
3294         platforms with F_DUPFD_CLOEXEC problems.
3295         * doc/posix-functions/glob.texi: Mention which platforms are affected
3296         by the problem with symbolic links.
3297         * doc/posix-functions/linkat.texi: Mention the problem with
3298         AT_SYMLINK_FOLLOW on Linux.
3299
3300 2012-04-22  Bruno Haible  <bruno@clisp.org>
3301
3302         pwrite: Don't replace on all platforms.
3303         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
3304
3305 2012-04-22  Bruno Haible  <bruno@clisp.org>
3306
3307         rint* tests: Avoid gcc warnings.
3308         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
3309         * tests/test-rintf.c (INFINITY, NAN): Likewise.
3310         * tests/test-rintl.c (INFINITY, NAN): Likewise.
3311
3312 2012-04-21  Bruno Haible  <bruno@clisp.org>
3313
3314         users.txt: Update.
3315         * users.txt: Add freedink, wdiff. Update URLs for projects that have
3316         switched from CVS to git, bzr, or svn.
3317
3318 2012-04-21  Bruno Haible  <bruno@clisp.org>
3319
3320         Large File Support for native Windows platforms.
3321
3322         * m4/largefile.m4 (gl_LARGEFILE): New macro.
3323         * modules/largefile (configure.ac): Require gl_LARGEFILE.
3324
3325         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
3326         type.
3327         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
3328         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
3329         * doc/posix-headers/sys_types.texi: Mention the effect of the
3330         'largefile' module.
3331
3332         * lib/fcntl.in.h: Add comments about off_t.
3333         * modules/fcntl-h (Depends-on): Add sys_types.
3334
3335         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
3336         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
3337         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
3338         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
3339         * modules/unistd (Depends-on): Add sys_types.
3340         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
3341
3342         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
3343         instead of lseek.
3344         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
3345         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
3346         * modules/lseek (Depends-on): Add sys_types.
3347
3348         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
3349         msvc-nothrow.h.
3350         (SetFileSize): New function.
3351         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
3352         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
3353         if Large File Support is requested.
3354         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
3355         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
3356
3357         * lib/stdio.in.h: Add comments about off_t.
3358         * modules/stdio (Depends-on): Add sys_types.
3359
3360         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
3361         instead of ftello.
3362         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
3363         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
3364         (gl_PREREQ_FTELLO): New macro.
3365         * modules/ftello (Depends-on): Add sys_types.
3366         (configure.ac): Incoke gl_PREREQ_FTELLO.
3367
3368         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
3369         instead of fseeko.
3370         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
3371         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
3372         (gl_PREREQ_FSEEKO): New macro.
3373         * modules/fseeko (Depends-on): Add sys_types.
3374         (configure.ac): Invoke gl_PREREQ_FSEEKO.
3375
3376         * lib/sys_stat.in.h: Add comments about off_t.
3377         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
3378         64-bit integer for st_size in 'struct stat'.
3379         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
3380         Define _GL_WINDOWS_64_BIT_ST_SIZE.
3381         * modules/sys_stat (Depends-on): Add sys_types.
3382         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
3383
3384         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
3385         instead of stat or _stat.
3386
3387         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
3388         'struct _stati64' instead of fstat and 'struct stat'.
3389         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
3390         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
3391
3392         Reported by Ray Satiro <raysatiro@yahoo.com>.
3393
3394 2012-04-19  Eric Blake  <eblake@redhat.com>
3395
3396         bootstrap: accommodate older libtool
3397         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
3398         Reported by Daniel P. Berrange.
3399
3400 2012-04-19  Jim Meyering  <meyering@redhat.com>
3401
3402         announce-gen: avoid failure due to lack of Digest::SHA1
3403         Even with the preferred Digest::SHA available, this script
3404         would fail when the backup module, Digest::SHA1, was not installed.
3405         * build-aux/announce-gen: Quote the conditional use of "use".
3406         Reported by Reuben Thomas in:
3407         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
3408
3409         bootstrap: don't let a user's CDPATH setting affect this script
3410         When CDPATH is set, cd will sometimes generate output.
3411         When "cd" is run in a subshell whose output matters, that
3412         surprising-to-some output can cause malfunction.
3413         Unsetting CDPATH turns off this shell "feature."
3414         * build-aux/bootstrap (CDPATH): Unset.
3415         Reported by Reuben Thomas in:
3416         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
3417         and inspired by his patch here:
3418         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
3419
3420 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
3421         and Jim Meyering  <meyering@redhat.com>
3422
3423         maint.mk: catch "see @xref{}" and similar
3424         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
3425         prohibit "See also @xref{", "Also see @pxref{", and similar.
3426
3427 2012-04-16  Jim Meyering  <meyering@redhat.com>
3428
3429         bootstrap: really use gnulib's po/Makefile.in.in
3430         * build-aux/bootstrap: Correct the source file name in previous change.
3431         Reported by Akim Demaille.
3432
3433         configmake: correct minor inconsistency in Makefile rule
3434         * modules/configmake (Makefile.am): All other rules like this one
3435         run the final "mv -f ..." in the same backslash-continued command
3436         as the one that does everything else.  This one put the mv -f ...
3437         command on a separate, non-backslash-continued line.
3438         Make it like the others.
3439
3440         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
3441         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
3442         the one from gettext.  Reported by Akim Demaille.
3443
3444 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
3445
3446         Fix recursion of install-* into po directories.
3447         Bison's install-pdf bug reported by Hans Aberg at
3448         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
3449         * build-aux/po/Makefile.in.in (install-dvi, install-html)
3450         (install-info, install-pdf, install-ps): New targets.
3451
3452 2012-04-16  Jim Meyering  <meyering@redhat.com>
3453
3454         maint: avoid spurious "make sc_maint" failure
3455         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
3456         exempt all *.class file names, for lib/javaversion.class.
3457
3458 2012-04-15  Bruno Haible  <bruno@clisp.org>
3459
3460         lseek: Make configure test independent of environment.
3461         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
3462         Windows, we know that lseek() on pipes is broken; skip the runtime
3463         test.
3464
3465 2012-04-14  Bruno Haible  <bruno@clisp.org>
3466
3467         stat: Bypass buggy override in mingw64.
3468         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
3469         * lib/stat.c (stat) [mingw64]: Define to _stat.
3470         * doc/posix-functions/stat.texi: Mention mingw64 bug.
3471
3472 2012-04-14  Bruno Haible  <bruno@clisp.org>
3473
3474         pathmax: Fix compilation error on MSVC 9.
3475         * modules/pathmax (Depends-on): Add unistd.
3476
3477 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
3478
3479         README: document pointer comparison assumption
3480         * README (Portability guidelines): Document assumption about
3481         pointer comparisons, in response to a recent bug-gnulib comment by
3482         Jeffrey Kegler.
3483
3484 2012-04-12  Bruno Haible  <bruno@clisp.org>
3485
3486         Tests for module 'getrusage'.
3487         * modules/getrusage-tests: New file.
3488         * tests/test-getrusage.c: New file.
3489
3490         New module 'getrusage'.
3491         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
3492         warn-on-use.h.
3493         (getrusage): New declaration.
3494         * lib/getrusage.c: New file.
3495         * m4/getrusage.m4: New file.
3496         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
3497         is declared.
3498         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
3499         HAVE_GETRUSAGE.
3500         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
3501         snippet/c++defs, snippet/warn-on-use.
3502         (Makefile.am): Update generation of sys/resource.h. Substitute
3503         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
3504         * modules/getrusage: New file.
3505         * doc/posix-functions/getrusage.texi: Mention the new module.
3506
3507 2012-04-12  Bruno Haible  <bruno@clisp.org>
3508
3509         Tests for module 'sys_resource'.
3510         * modules/sys_resource-tests: New file.
3511         * tests/test-sys_resource.c: New file.
3512
3513         New module 'sys_resource'.
3514         * lib/sys_resource.in.h: New file.
3515         * m4/sys_resource_h.m4: New file.
3516         * modules/sys_resource: New file.
3517         * doc/posix-headers/sys_resource.texi: Mention the new module.
3518
3519 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
3520
3521         ioctl: Fix compilation error on mingw.
3522         * lib/ioctl.c: Include <windows.h>.
3523         Also reported by Ray Satiro <raysatiro@yahoo.com>.
3524
3525 2012-04-04  Jim Meyering  <meyering@redhat.com>
3526
3527         regex: correct #pragma guard expression
3528         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
3529         not 4.3.  Correct its cpp guard expression.
3530
3531 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
3532
3533         regex: remove unnecessary type punning
3534         Problem reported by Vladimir Serbinenko in
3535         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
3536         * lib/regex.h (struct re_pattern_buffer): Change the type of
3537         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
3538         Fix comment to match code.
3539         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
3540         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
3541         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
3542         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
3543         (set_regs):
3544         Omit no-longer-necessary casts.
3545
3546 2012-04-03  Bruno Haible  <bruno@clisp.org>
3547
3548         Tests for module 'ilogbl'.
3549         * modules/ilogbl-tests: New file.
3550         * tests/test-ilogbl.c: New file.
3551
3552         New module 'ilogbl'.
3553         * lib/math.in.h (ilogbl): New declaration.
3554         * lib/ilogbl.c: New file.
3555         * m4/ilogbl.m4: New file.
3556         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
3557         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
3558         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
3559         Split sed invocation, to avoid the limit of 100 substitutions of
3560         HP-UX 'sed'.
3561         * modules/ilogbl: New file.
3562         * tests/test-math-c++.cc: Check the declaration of ilogbl.
3563         * doc/posix-functions/ilogbl.texi: Mention the new module.
3564
3565 2012-04-03  Bruno Haible  <bruno@clisp.org>
3566
3567         Tests for module 'ilogbf'.
3568         * modules/ilogbf-tests: New file.
3569         * tests/test-ilogbf.c: New file.
3570
3571         New module 'ilogbf'.
3572         * lib/math.in.h (ilogbf): New declaration.
3573         * lib/ilogbf.c: New file.
3574         * m4/ilogbf.m4: New file.
3575         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
3576         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
3577         REPLACE_ILOGBF.
3578         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
3579         REPLACE_ILOGBF.
3580         * modules/ilogbf: New file.
3581         * tests/test-math-c++.cc: Check the declaration of ilogbf.
3582         * doc/posix-functions/ilogbf.texi: Mention the new module.
3583
3584 2012-04-03  Bruno Haible  <bruno@clisp.org>
3585
3586         Tests for module 'ilogb'.
3587         * modules/ilogb-tests: New file.
3588         * tests/test-ilogb.c: New file.
3589         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
3590         tests/test-logb-ieee.h.
3591
3592         New module 'ilogb'.
3593         * lib/math.in.h (ilogb): New declaration.
3594         * lib/ilogb.c: New file.
3595         * m4/ilogb.m4: New file.
3596         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
3597         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
3598         REPLACE_ILOGB.
3599         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
3600         REPLACE_ILOGB.
3601         * modules/ilogb: New file.
3602         * tests/test-math-c++.cc: Check the declaration of ilogb.
3603         * doc/posix-functions/ilogb.texi: Mention the new module.
3604
3605 2012-04-03  Bruno Haible  <bruno@clisp.org>
3606
3607         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
3608         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
3609         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
3610         (main): Check their values.
3611         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
3612         problem.
3613
3614 2012-04-03  Bruno Haible  <bruno@clisp.org>
3615
3616         Tests for module 'logbl-ieee'.
3617         * modules/logbl-ieee-tests: New file.
3618         * tests/test-logbl-ieee.c: New file.
3619
3620         New module 'logbl-ieee'.
3621         * modules/logbl-ieee: New file.
3622
3623         Tests for module 'logb-ieee'.
3624         * modules/logb-ieee-tests: New file.
3625         * tests/test-logb-ieee.c: New file.
3626
3627         New module 'logb-ieee'.
3628         * modules/logb-ieee: New file.
3629
3630         Tests for module 'logbf-ieee'.
3631         * modules/logbf-ieee-tests: New file.
3632         * tests/test-logbf-ieee.c: New file.
3633         * tests/test-logb-ieee.h: New file.
3634
3635         New module 'logbf-ieee'.
3636         * modules/logbf-ieee: New file.
3637
3638 2012-04-03  Bruno Haible  <bruno@clisp.org>
3639
3640         Tests for module 'logbl'.
3641         * modules/logbl-tests: New file.
3642         * tests/test-logbl.c: New file.
3643
3644         New module 'logbl'.
3645         * lib/math.in.h (logbl): New declaration.
3646         * lib/logbl.c: New file.
3647         * m4/logbl.m4: New file.
3648         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
3649         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
3650         REPLACE_LOGBL.
3651         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
3652         REPLACE_LOGBL.
3653         * modules/logbl: New file.
3654         * tests/test-math-c++.cc: Check the declaration of logbl.
3655         * doc/posix-functions/logbl.texi: Mention the new module.
3656
3657 2012-04-02  Bruno Haible  <bruno@clisp.org>
3658
3659         Tests for module 'logbf'.
3660         * modules/logbf-tests: New file.
3661         * tests/test-logbf.c: New file.
3662
3663         New module 'logbf'.
3664         * lib/math.in.h (logbf): New declaration.
3665         * lib/logbf.c: New file.
3666         * m4/logbf.m4: New file.
3667         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
3668         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
3669         REPLACE_LOGBF.
3670         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
3671         REPLACE_LOGBF.
3672         * modules/logbf: New file.
3673         * tests/test-math-c++.cc: Check the declaration of logbf.
3674         * doc/posix-functions/logbf.texi: Mention the new module.
3675
3676 2012-04-02  Bruno Haible  <bruno@clisp.org>
3677
3678         logb tests: More tests.
3679         * tests/test-logb.h: New file, based on tests/test-logb.c and
3680         tests/test-frexp.h.
3681         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
3682         (main): Just invoke test_function.
3683         * modules/logb-tests (Files): Add tests/test-logb.h,
3684         tests/minus-zero.h, tests/randomd.c.
3685         (Makefile.am): Add randomd.c to test_logb_SOURCES.
3686
3687         logb: Provide replacement and workarounds.
3688         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
3689         is 1.
3690         * lib/logb.c: New file.
3691         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
3692         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
3693         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
3694         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
3695         * modules/logb (Files): Add lib/logb.c.
3696         (Depends-on): Add isfinite, frexp, isnand.
3697         (configure.ac): Compile the replacement code logb.c if needed.
3698         * tests/test-math-c++.cc: Check the declaration of logb.
3699         * doc/posix-functions/logb.texi: Mention the replacement and the bug
3700         with subnormal numbers.
3701
3702 2012-04-02  Bruno Haible  <bruno@clisp.org>
3703
3704         log10* tests: Speed up.
3705         * tests/test-log10.h (test_function): Reduce amount of random numbers
3706         to test.
3707
3708 2012-04-01  Bruno Haible  <bruno@clisp.org>
3709
3710         logf-ieee: Fix test whether logf works.
3711         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
3712
3713 2012-04-01  Bruno Haible  <bruno@clisp.org>
3714
3715         log10l: Work around log10l-ieee test failure on IRIX 6.5.
3716         * lib/log10l.c: Include <float.h>
3717         (log10l): On IRIX, normalize the +Infinity value.
3718         * modules/log10l (Depends-on): Add 'float'.
3719         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
3720         +Infinity.
3721
3722         log10f-ieee: Work around test failure on NetBSD 5.1.
3723         * m4/log10f-ieee.m4: New file.
3724         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
3725         test whether log10f works with a negative argument. Replace it if not.
3726         * lib/log10f.c (log10f): For negative arguments, return NaN.
3727         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
3728         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
3729         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
3730
3731         log10f-ieee: Work around test failure on Solaris 9.
3732         * modules/log10f-ieee (Depends-on): Add log10-ieee.
3733         (configure.ac): Require gl_FUNC_LOG10F.
3734
3735         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
3736         * m4/log10-ieee.m4: New file.
3737         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
3738         whether log10 works with a negative argument. Replace it if not.
3739         * lib/log10.c (log10): For negative arguments, return NaN.
3740         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
3741         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
3742         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
3743
3744         Tests for module 'log10l-ieee'.
3745         * modules/log10l-ieee-tests: New file.
3746         * tests/test-log10l-ieee.c: New file.
3747
3748         New module 'log10l-ieee'.
3749         * modules/log10l-ieee: New file.
3750
3751         Tests for module 'log10-ieee'.
3752         * modules/log10-ieee-tests: New file.
3753         * tests/test-log10-ieee.c: New file.
3754
3755         New module 'log10-ieee'.
3756         * modules/log10-ieee: New file.
3757
3758         Tests for module 'log10f-ieee'.
3759         * modules/log10f-ieee-tests: New file.
3760         * tests/test-log10f-ieee.c: New file.
3761         * tests/test-log10-ieee.h: New file.
3762
3763         New module 'log10f-ieee'.
3764         * modules/log10f-ieee: New file.
3765
3766 2012-04-01  Bruno Haible  <bruno@clisp.org>
3767
3768         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
3769         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
3770         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
3771         workaround.
3772         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
3773         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
3774         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
3775         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
3776         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
3777         (Depends-on): Update conditions.
3778         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
3779         IRIX 6.5, OSF/1 5.1 problems.
3780
3781 2012-04-01  Bruno Haible  <bruno@clisp.org>
3782
3783         log10f: Work around OSF/1 5.1 bug.
3784         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
3785         * lib/log10f.c (log10f): If logf exists, use it and provide just the
3786         workaround.
3787         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
3788         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
3789         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
3790         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
3791         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
3792         (Depends-on): Update conditions.
3793         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
3794
3795 2012-04-01  Bruno Haible  <bruno@clisp.org>
3796
3797         log10: Work around OSF/1 5.1 bug.
3798         * lib/math.in.h (log10): New declaration.
3799         * lib/log10.c: New file.
3800         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
3801         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
3802         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
3803         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
3804         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
3805         * modules/log10 (Files): Add lib/log10.c.
3806         (Depends-on): Add math.
3807         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
3808         * tests/test-math-c++.cc: Check the declaration of log10.
3809         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
3810
3811 2012-03-31  Bruno Haible  <bruno@clisp.org>
3812
3813         log10l tests: More tests.
3814         * modules/log10l-tests (Files): Add tests/test-log10l.h,
3815         tests/minus-zero.h, tests/randoml.c.
3816         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
3817         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
3818         (main): Invoke test_function.
3819
3820         log10f tests: More tests.
3821         * modules/log10f-tests (Files): Add tests/test-log10.h,
3822         tests/minus-zero.h, tests/randomf.c.
3823         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
3824         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
3825         (main): Invoke test_function.
3826
3827         log10 tests: More tests.
3828         * tests/test-log10.h: New file.
3829         * modules/log10-tests (Files): Add tests/test-log10.h,
3830         tests/minus-zero.h, tests/randomd.c.
3831         (Makefile.am): Add randomd.c to test_log10_SOURCES.
3832         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
3833         (main): Invoke test_function.
3834
3835 2012-03-31  Simon Josefsson  <simon@josefsson.org>
3836
3837         fflush: Fix syntax error.
3838         * lib/fflush.c: Include unused-parameter.h, needed for
3839         _GL_UNUSED_PARAMETER.
3840         * modules/fflush (Depends-on): Add snippet/unused-parameter.
3841
3842 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
3843
3844         regex: pacify GCC when compiling GRUB
3845         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
3846         a diagnostic.  Reported by Vladimir Serbinenko in
3847         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
3848
3849 2012-03-29  Eric Blake  <eblake@redhat.com>
3850
3851         stdio: don't assume gets any more
3852         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
3853         support.
3854         * modules/stdio (Makefile.am): Likewise.
3855         * lib/stdio-read.c (gets): Likewise.
3856         * tests/test-stdio-c++.cc: Likewise.
3857         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
3858         * lib/stdio.in.h (gets): Make warning occur in more places.
3859         * doc/posix-functions/gets.texi (gets): Update documentation.
3860         Reported by Christer Solskogen.
3861
3862         maint.mk: fix syntax checks without exclusions
3863         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
3864         Reported by Daniel P. Berrange.
3865
3866         strerror_r: avoid compiler warning
3867         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
3868         level.
3869
3870         fflush: avoid compiler warning
3871         * lib/fflush.c (update_fpos_cache): Mark variables that are
3872         potentially unused.
3873
3874 2012-03-25  Bruno Haible  <bruno@clisp.org>
3875
3876         Tests for module 'localeconv'.
3877         * modules/localeconv-tests: New file.
3878         * tests/test-localeconv.c: New file.
3879
3880         New module 'localeconv'.
3881         * lib/locale.in.h (localeconv): New declaration.
3882         * lib/localeconv.c: New file.
3883         * m4/localeconv.m4: New file.
3884         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
3885         REPLACE_LOCALECONV.
3886         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
3887         REPLACE_LOCALECONV.
3888         * modules/localeconv: New file.
3889         * modules/nl_langinfo (Depends-on): Add localeconv.
3890         * modules/human (Depends-on): Likewise.
3891         * doc/posix-functions/localeconv.texi: Mention the new module.
3892
3893 2012-03-25  Bruno Haible  <bruno@clisp.org>
3894
3895         locale: Provide a complete 'struct lconv'.
3896         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
3897         'struct lconv' does not contain int_p_cs_precedes.
3898         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
3899         * doc/posix-headers/locale.texi: Update.
3900
3901         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
3902         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
3903         * doc/posix-headers/locale.texi: Update.
3904
3905         locale: Provide a working 'struct lconv'.
3906         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
3907         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
3908         'struct lconv' does not even contain decimal_point.
3909         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
3910         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
3911         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
3912         * doc/posix-headers/locale.texi: Mention the problems with
3913         'struct lconv'.
3914         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
3915
3916 2012-03-24  Bruno Haible  <bruno@clisp.org>
3917
3918         Enable common subexpression optimization in GCC.
3919         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
3920         macros.
3921         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
3922         GCC attribute 'const'.
3923         (uc_locale_language): Declare with GCC attribute 'pure'.
3924         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
3925         with GCC attribute 'const'.
3926         * lib/unictype.in.h (uc_is_general_category_withtable,
3927         uc_combining_class, uc_combining_class_name,
3928         uc_combining_class_long_name, uc_bidi_class_name,
3929         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
3930         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
3931         uc_decimal_value, uc_digit_value, uc_numeric_value,
3932         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
3933         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
3934         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
3935         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
3936         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
3937         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
3938         Declare with GCC attribute 'const'.
3939         (uc_general_category_name, uc_general_category_long_name,
3940         uc_general_category_byname, uc_general_category,
3941         uc_is_general_category, uc_combining_class_byname,
3942         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
3943         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
3944         Declare with GCC attribute 'pure'.
3945         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
3946         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
3947         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
3948         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
3949         with GCC attribute 'pure'.
3950         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
3951         'const'.
3952         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
3953         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
3954         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
3955         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
3956         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
3957         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
3958         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
3959         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
3960         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
3961         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
3962         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
3963         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
3964         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
3965         GCC attribute 'pure'.
3966         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
3967         'const'.
3968         * lib/uniwidth.in.h (uc_width): Simplify declaration.
3969         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
3970         u32_strwidth): Declare with GCC attribute 'pure'.
3971
3972         Enable common subexpression optimization in GCC.
3973         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
3974         (alphasort): Declare with GCC attribute 'pure'.
3975         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
3976         (atoll): Declare with GCC attribute 'pure'.
3977         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
3978         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
3979         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
3980         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
3981         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
3982         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
3983         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
3984
3985 2012-03-24  Bruno Haible  <bruno@clisp.org>
3986
3987         gnulib-tool: Avoid unintended error output from 'cmp'.
3988         * gnulib-tool (func_add_file, func_update_file, func_import): Use
3989         "cmp -s", not "cmp > /dev/null".
3990
3991 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
3992
3993         gnulib-tool: fix imprecise comments w.r.t. an automake bug
3994
3995         It's not just Automake versions < 1.9b that creates an empty
3996         pkgdatadir at installation time if pkgdata_DATA is specified
3997         to empty; modern automake versions do this as well, at least
3998         until automake 1.11.4 (not yet released at the moment of writing,
3999         but soon to appear).  That behaviour was generally considered a
4000         feature rather than a bug, at least until this discussion:
4001         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
4002
4003         See also automake bugs #10997 and #11030.
4004
4005         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
4006         reference to relevant automake bug numbers.
4007         (func_emit_tests_Makefile_am): Likewise.
4008
4009 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
4010
4011         announce-gen: use Digest::SHA when possible
4012         * build-aux/announce-gen: Use Digest::SHA when possible, falling
4013         back to Digest::SHA1 if necessary.
4014
4015 2012-03-20  Jim Meyering  <meyering@redhat.com>
4016
4017         tests: avoid gcc warnings about argv vs. const initializers
4018         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
4019         warnings about discarding 'const' qualifier from pointer target type.
4020         * tests/test-posix_spawn2.c (main): Likewise.
4021
4022 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
4023
4024         README-release: simplify slightly
4025         * top/README-release: Run "git checkout master" only once.
4026
4027 2012-03-15  Mark Wielaard  <mark@klomp.org>
4028
4029         git-merge-changelog: add specific example on how to use with hg.
4030         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
4031
4032 2012-03-18  Mark Wielaard  <mark@klomp.org>
4033
4034         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
4035
4036 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
4037
4038         git-version-gen: don't let "prefix" envvar cause trouble
4039         * build-aux/git-version-gen (prefix): Initialize properly,
4040         so as not to use a value specified via the environment.
4041         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
4042
4043 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
4044
4045         regex: diagnose too-large repeat counts in EREs
4046         Previously, the code did not diagnose the too-large repeat count
4047         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
4048         as if it were 'b\{1000000000}', which is unexpected.
4049         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
4050         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
4051         is a reasonable one for this problem.  Another option would be to
4052         create a new REG_OVERFLOW error for repeat counts that are too large.
4053         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
4054         count is too large, so that the caller can distinguish the two cases.
4055         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
4056         "Too large" return code, and that repeat counts are one example of this.
4057
4058 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
4059
4060         doc: some glibc x32 integer width issues
4061         * doc/posix-headers/sys_types.texi (sys/types.h):
4062         * doc/posix-headers/time.texi (time.h):
4063         Mention that glibc x32 does not conform to POSIX in a couple of
4064         areas related to integer widths.
4065
4066 2012-03-15  Bruno Haible  <bruno@clisp.org>
4067
4068         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
4069         * lib/fma.c (VOLATILE): New macro.
4070         (FUNC): Use it to work around a GCC compiler bug.
4071
4072 2012-03-13  Bruno Haible  <bruno@clisp.org>
4073
4074         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4075         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
4076         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
4077         REPLACE_HYPOTL to 1.
4078         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
4079
4080 2012-03-13  Bruno Haible  <bruno@clisp.org>
4081
4082         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4083         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
4084         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
4085         REPLACE_REMAINDERL to 1.
4086         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
4087         bug.
4088
4089 2012-03-13  Bruno Haible  <bruno@clisp.org>
4090
4091         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4092         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
4093         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
4094         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
4095         too big rounding errors.
4096         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
4097         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
4098         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
4099         (Depends-on): Update conditions.
4100         * tests/test-sqrtl.c (my_ldexpl): New function.
4101         (main): Add test of a particular value.
4102         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
4103
4104 2012-03-13  Pádraig Brady  <P@draigBrady.com>
4105
4106         doc: Update timer_* platform portability notes.
4107         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
4108         that always return ENOSYS.
4109         * doc/posix-functions/timer_delete.texi: Likewise.
4110         * doc/posix-functions/timer_gettime.texi: Likewise.
4111         * doc/posix-functions/timer_settime.texi: Likewise.
4112
4113 2012-03-13  Bruno Haible  <bruno@clisp.org>
4114
4115         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
4116         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
4117         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
4118         REPLACE_CBRTL to 1.
4119         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
4120
4121 2012-03-13  Bruno Haible  <bruno@clisp.org>
4122
4123         remainderl: Avoid compilation error on AIX >= 5.2.
4124         * lib/math.in.h (remainderl): Undefine macro from the system header.
4125
4126 2012-03-13  Bruno Haible  <bruno@clisp.org>
4127
4128         Avoid compilation errors with MSVC option -fp:strict.
4129         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
4130         * lib/cbrtf.c: Likewise.
4131         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4132
4133 2012-03-12  Bruno Haible  <bruno@clisp.org>
4134
4135         uninorm: Don't crash in out-of-memory conditions.
4136         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
4137         gracefully.
4138         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
4139         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
4140
4141 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
4142
4143         quote: fix syntax-check
4144         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
4145         also exports quote_quoting_options.
4146
4147 2012-03-12  Simon Josefsson  <simon@josefsson.org>
4148
4149         Collapse list of copyright years to ranges.  See
4150         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
4151         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
4152         build-aux/csharpexec.sh.in, build-aux/gnupload,
4153         build-aux/install-reloc, build-aux/javacomp.sh.in,
4154         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
4155         build-aux/move-if-change, build-aux/reloc-ldflags,
4156         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
4157
4158 2012-03-11  Bruno Haible  <bruno@clisp.org>
4159
4160         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
4161         * m4/log2f-ieee.m4: New file.
4162         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
4163         whether log2f works with a minus zero argument. Replace it if not.
4164         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
4165         (Depends-on): Add log2-ieee.
4166         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
4167         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
4168
4169         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
4170         * m4/log2-ieee.m4: New file.
4171         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
4172         whether log2 works with a minus zero argument. Replace it if not.
4173         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
4174         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
4175         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
4176
4177         Tests for module 'log2l-ieee'.
4178         * modules/log2l-ieee-tests: New file.
4179         * tests/test-log2l-ieee.c: New file.
4180
4181         New module 'log2l-ieee'.
4182         * modules/log2l-ieee: New file.
4183
4184         Tests for module 'log2-ieee'.
4185         * modules/log2-ieee-tests: New file.
4186         * tests/test-log2-ieee.c: New file.
4187
4188         New module 'log2-ieee'.
4189         * modules/log2-ieee: New file.
4190
4191         Tests for module 'log2f-ieee'.
4192         * modules/log2f-ieee-tests: New file.
4193         * tests/test-log2f-ieee.c: New file.
4194         * tests/test-log2-ieee.h: New file.
4195
4196         New module 'log2f-ieee'.
4197         * modules/log2f-ieee: New file.
4198
4199 2012-03-11  Bruno Haible  <bruno@clisp.org>
4200
4201         Tests for module 'log2l'.
4202         * modules/log2l-tests: New file.
4203         * tests/test-log2l.c: New file.
4204
4205         New module 'log2l'.
4206         * lib/math.in.h (log2l): New declaration.
4207         * lib/log2l.c: New file.
4208         * m4/log2l.m4: New file.
4209         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
4210         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
4211         REPLACE_LOG2L.
4212         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
4213         REPLACE_LOG2L.
4214         * modules/log2l: New file.
4215         * tests/test-math-c++.cc: Check the declaration of log2l.
4216         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
4217         and OSF/1 problems.
4218
4219 2012-03-11  Bruno Haible  <bruno@clisp.org>
4220
4221         Tests for module 'log2f'.
4222         * modules/log2f-tests: New file.
4223         * tests/test-log2f.c: New file.
4224
4225         New module 'log2f'.
4226         * lib/math.in.h (log2f): New declaration.
4227         * lib/log2f.c: New file.
4228         * m4/log2f.m4: New file.
4229         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
4230         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
4231         REPLACE_LOG2F.
4232         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
4233         REPLACE_LOG2F.
4234         * modules/log2f: New file.
4235         * tests/test-math-c++.cc: Check the declaration of log2f.
4236         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
4237         and OSF/1 and Cygwin problems.
4238
4239 2012-03-11  Bruno Haible  <bruno@clisp.org>
4240
4241         Tests for module 'log2'.
4242         * modules/log2-tests: New file.
4243         * tests/test-log2.c: New file.
4244         * tests/test-log2.h: New file.
4245
4246         New module 'log2'.
4247         * lib/math.in.h (log2): New declaration.
4248         * lib/log2.c: New file.
4249         * m4/log2.m4: New file.
4250         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
4251         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
4252         REPLACE_LOG2.
4253         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
4254         REPLACE_LOG2.
4255         * modules/log2: New file.
4256         * tests/test-math-c++.cc: Check the declaration of log2.
4257         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
4258         and OSF/1 and Cygwin problems.
4259
4260 2012-03-11  Bruno Haible  <bruno@clisp.org>
4261
4262         exp2* tests: More tests.
4263         * tests/test-exp2.h (test_function): Test all integral arguments that
4264         don't need to overflow or denormalized numbers.
4265         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
4266         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
4267         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
4268
4269 2012-03-10  Bruno Haible  <bruno@clisp.org>
4270
4271         log1pl-ieee: Work around test failure on AIX 7.1.
4272         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
4273
4274         log1pl-ieee: Work around test failure on IRIX 6.5.
4275         * m4/log1pl-ieee.m4: New file.
4276         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
4277         test whether log1pl works with a minus zero argument. Replace it if
4278         not.
4279         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
4280         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
4281         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
4282         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
4283         (Depends-on): Update conditions.
4284         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
4285         m4/signbit.m4.
4286         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
4287         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
4288
4289         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
4290         * m4/log1pf-ieee.m4: New file.
4291         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
4292         test whether log1pf works with a minus zero argument. Replace it if
4293         not.
4294         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
4295         m4/signbit.m4.
4296         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
4297         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
4298
4299         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
4300         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
4301         (configure.ac): Require gl_FUNC_LOG1PF.
4302
4303         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
4304         * m4/log1p-ieee.m4: New file.
4305         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
4306         whether log1p works with a minus zero argument. Replace it if not.
4307         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
4308         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
4309         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
4310         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
4311         (Depends-on): Update conditions.
4312         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
4313         m4/signbit.m4.
4314         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
4315         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
4316
4317         Tests for module 'log1pl-ieee'.
4318         * modules/log1pl-ieee-tests: New file.
4319         * tests/test-log1pl-ieee.c: New file.
4320
4321         New module 'log1pl-ieee'.
4322         * modules/log1pl-ieee: New file.
4323
4324         Tests for module 'log1p-ieee'.
4325         * modules/log1p-ieee-tests: New file.
4326         * tests/test-log1p-ieee.c: New file.
4327
4328         New module 'log1p-ieee'.
4329         * modules/log1p-ieee: New file.
4330
4331         Tests for module 'log1pf-ieee'.
4332         * modules/log1pf-ieee-tests: New file.
4333         * tests/test-log1pf-ieee.c: New file.
4334         * tests/test-log1p-ieee.h: New file.
4335
4336         New module 'log1pf-ieee'.
4337         * modules/log1pf-ieee: New file.
4338
4339 2012-03-10  Bruno Haible  <bruno@clisp.org>
4340
4341         Tests for module 'log1pl'.
4342         * modules/log1pl-tests: New file.
4343         * tests/test-log1pl.c: New file.
4344
4345         New module 'log1pl'.
4346         * lib/math.in.h (log1pl): New declaration.
4347         * lib/log1pl.c: New file.
4348         * m4/log1pl.m4: New file.
4349         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
4350         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
4351         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
4352         * modules/log1pl: New file.
4353         * tests/test-math-c++.cc: Check the declaration of log1pl.
4354         * doc/posix-functions/log1pl.texi: Mention the new module.
4355
4356 2012-03-10  Bruno Haible  <bruno@clisp.org>
4357
4358         Tests for module 'log1pf'.
4359         * modules/log1pf-tests: New file.
4360         * tests/test-log1pf.c: New file.
4361
4362         New module 'log1pf'.
4363         * lib/math.in.h (log1pf): New declaration.
4364         * lib/log1pf.c: New file.
4365         * m4/log1pf.m4: New file.
4366         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
4367         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
4368         REPLACE_LOG1PF.
4369         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
4370         REPLACE_LOG1PF.
4371         * modules/log1pf: New file.
4372         * tests/test-math-c++.cc: Check the declaration of log1pf.
4373         * doc/posix-functions/log1pf.texi: Mention the new module.
4374
4375 2012-03-10  Bruno Haible  <bruno@clisp.org>
4376
4377         log1p tests: More tests.
4378         * tests/test-log1p.h: New file.
4379         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
4380         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
4381         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
4382         (main): Invoke test_function.
4383
4384         log1p: Provide replacement for Minix and MSVC.
4385         * lib/math.in.h (log1p): New declaration.
4386         * lib/log1p.c: New file.
4387         * m4/log1p.m4: New file.
4388         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
4389         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
4390         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
4391         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
4392         (Depends-on): Add math, isnand, log, round.
4393         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
4394         HAVE_LOG1P is 0.
4395         * tests/test-math-c++.cc: Check the declaration of log1p.
4396         * doc/posix-functions/log1p.texi: Mention the replacement.
4397
4398 2012-03-10  Bruno Haible  <bruno@clisp.org>
4399
4400         math tests: Small simplification.
4401         * tests/test-exp.h (test_function): Use the same err_bound for
4402         'double' on platforms with sizeof (long double) == sizeof (double)
4403         than on platforms with sizeof (long double) > sizeof (double).
4404         * tests/test-exp2.h (test_function): Likewise.
4405         * tests/test-expm1.h (test_function): Likewise.
4406         * tests/test-log.h (test_function): Likewise.
4407
4408 2012-03-10  Bruno Haible  <bruno@clisp.org>
4409
4410         Fix some comments.
4411         * lib/expl.c: Fix an ambiguous comment.
4412         * lib/expm1.c: Likewise.
4413         * lib/expm1l.c: Likewise.
4414         * lib/exp2.c: Likewise.
4415         * lib/exp2l.c: Likewise.
4416
4417 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
4418
4419         regex: allow inclusion of <regex.h> before <limits.h>
4420         Without this patch, portable programs had to include <limits.h> before
4421         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
4422         I ran into this problem with a test version of GNU grep on Solaris 8.
4423         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
4424         This is done conditionally so that this change can be merged
4425         back to glibc.
4426         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
4427         using the included regex.
4428
4429         fts: depend on fdopendir
4430         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
4431         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
4432         problem was introduced when fdopendir was split out.
4433
4434 2012-03-10  Bruno Haible  <bruno@clisp.org>
4435
4436         Remove unused variables.
4437         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
4438         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
4439
4440 2012-03-10  Bruno Haible  <bruno@clisp.org>
4441
4442         isnanf-nolibm: Fix last commit.
4443         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
4444
4445         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
4446         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
4447
4448 2012-03-10  Bruno Haible  <bruno@clisp.org>
4449
4450         logf-ieee: Work around test failure on NetBSD 5.1.
4451         * m4/logf-ieee.m4: New file.
4452         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
4453         whether logf works with a negative argument. Replace it if not.
4454         * lib/logf.c (logf): For negative arguments, return NaN.
4455         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
4456         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
4457         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
4458
4459         logf-ieee: Work around test failure on Solaris 9.
4460         * modules/logf-ieee (Depends-on): Add log-ieee.
4461         (configure.ac): Require gl_FUNC_LOGF.
4462
4463         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
4464         * m4/log-ieee.m4: New file.
4465         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
4466         log works with a negative argument. Replace it if not.
4467         * lib/log.c (log): For negative arguments, return NaN.
4468         * modules/log-ieee (Files): Add m4/log-ieee.m4.
4469         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
4470         * doc/posix-functions/log.texi: Mention the log-ieee module.
4471
4472         Tests for module 'logl-ieee'.
4473         * modules/logl-ieee-tests: New file.
4474         * tests/test-logl-ieee.c: New file.
4475
4476         New module 'logl-ieee'.
4477         * modules/logl-ieee: New file.
4478
4479         Tests for module 'log-ieee'.
4480         * modules/log-ieee-tests: New file.
4481         * tests/test-log-ieee.c: New file.
4482
4483         New module 'log-ieee'.
4484         * modules/log-ieee: New file.
4485
4486         Tests for module 'logf-ieee'.
4487         * modules/logf-ieee-tests: New file.
4488         * tests/test-logf-ieee.c: New file.
4489         * tests/test-log-ieee.h: New file.
4490
4491         New module 'logf-ieee'.
4492         * modules/logf-ieee: New file.
4493
4494 2012-03-10  Bruno Haible  <bruno@clisp.org>
4495
4496         log: Fix bug introduced on 2012-03-09.
4497         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
4498
4499 2012-03-10  Pádraig Brady  <P@draigBrady.com>
4500
4501         timer-time: link explicitly with pthreads on glibc
4502         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
4503         to support static linking, when newer glibc is
4504         detected, as that contains pthread emulation of
4505         POSIX timer functions where required.
4506         * modules/timer-time: Depend on threadlib to
4507         pull in the appropriate library to link.
4508
4509 2012-03-10  Bruno Haible  <bruno@clisp.org>
4510
4511         log* tests: More tests.
4512         * tests/test-log.h: New file.
4513         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
4514         (main): Invoke test_function.
4515         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
4516         (main): Invoke test_function.
4517         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
4518         (main): Invoke test_function.
4519         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4520         tests/randomd.c.
4521         (Makefile.am): Add randomd.c to test_log_SOURCES.
4522         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4523         tests/randomf.c.
4524         (Makefile.am): Add randomf.c to test_logf_SOURCES.
4525         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
4526         tests/randoml.c.
4527         (Depends-on): Add 'float'.
4528         (Makefile.am): Add randoml.c to test_logl_SOURCES.
4529
4530 2012-03-09  Bruno Haible  <bruno@clisp.org>
4531
4532         logl: Work around OSF/1 5.1 bug.
4533         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
4534         * lib/logl.c (logl): If logl exists, use it and provide just the
4535         workaround.
4536         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
4537         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
4538         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
4539         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
4540         * modules/logl (configure.ac): Consider REPLACE_LOGL.
4541         (Depends-on): Update conditions.
4542         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
4543
4544 2012-03-09  Bruno Haible  <bruno@clisp.org>
4545
4546         logf: Work around OSF/1 5.1 bug.
4547         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
4548         * lib/logf.c (logf): If logf exists, use it and provide just the
4549         workaround.
4550         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
4551         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
4552         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
4553         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
4554         * modules/logf (configure.ac): Consider REPLACE_LOGF.
4555         (Depends-on): Update conditions.
4556         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
4557
4558 2012-03-09  Bruno Haible  <bruno@clisp.org>
4559
4560         log: Work around OSF/1 5.1 bug.
4561         * lib/math.in.h (log): New declaration.
4562         * lib/log.c: New file.
4563         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
4564         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
4565         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
4566         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
4567         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
4568         * modules/log (Files): Add lib/log.c.
4569         (Depends-on): Add math.
4570         (configure.ac): If REPLACE_LOG is 1, compile an override.
4571         * tests/test-math-c++.cc: Check the declaration of log.
4572         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
4573
4574 2012-03-09  Jim Meyering  <meyering@redhat.com>
4575
4576         readtokens.c: adjust wording in a comment
4577         * lib/readtokens.c: Insert omitted "that" in a comment.
4578
4579 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
4580
4581         modechange: add notations +40, 00440, etc.
4582         * lib/modechange.c (mode_compile): Support new notations
4583         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
4584
4585 2012-03-08  Bruno Haible  <bruno@clisp.org>
4586
4587         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
4588         * m4/exp2l-ieee.m4: New file.
4589         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
4590         test whether exp2l works with a NaN argument and with a negative
4591         infinity argument. Replace it if not.
4592         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
4593         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
4594         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
4595         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
4596         (Depends-on): Update conditions.
4597         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
4598         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
4599         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
4600
4601         Tests for module 'exp2l-ieee'.
4602         * modules/exp2l-ieee-tests: New file.
4603         * tests/test-exp2l-ieee.c: New file.
4604
4605         New module 'exp2l-ieee'.
4606         * modules/exp2l-ieee: New file.
4607
4608         Tests for module 'exp2-ieee'.
4609         * modules/exp2-ieee-tests: New file.
4610         * tests/test-exp2-ieee.c: New file.
4611
4612         New module 'exp2-ieee'.
4613         * modules/exp2-ieee: New file.
4614
4615         Tests for module 'exp2f-ieee'.
4616         * modules/exp2f-ieee-tests: New file.
4617         * tests/test-exp2f-ieee.c: New file.
4618         * tests/test-exp2-ieee.h: New file.
4619
4620         New module 'exp2f-ieee'.
4621         * modules/exp2f-ieee: New file.
4622
4623 2012-03-08  Bruno Haible  <bruno@clisp.org>
4624
4625         Tests for module 'exp2l'.
4626         * modules/exp2l-tests: New file.
4627         * tests/test-exp2l.c: New file.
4628
4629         New module 'exp2l'.
4630         * lib/math.in.h (exp2l): New declaration.
4631         * lib/exp2l.c: New file.
4632         * lib/expl-table.c: New file, extracted from lib/expl.c.
4633         * lib/expl.c (gl_expl_table): New declaration.
4634         (expl): Remove expl_table. Update reference.
4635         * m4/exp2l.m4: New file.
4636         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
4637         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
4638         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
4639         * modules/exp2l: New file.
4640         * modules/expl (Files): Add lib/expl-table.c.
4641         (configure.ac): Compile also expl-table.c.
4642         * tests/test-math-c++.cc: Check the declaration of exp2l.
4643         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
4644         problem.
4645
4646 2012-03-08  Bruno Haible  <bruno@clisp.org>
4647
4648         Tests for module 'exp2f'.
4649         * modules/exp2f-tests: New file.
4650         * tests/test-exp2f.c: New file.
4651
4652         New module 'exp2f'.
4653         * lib/math.in.h (exp2f): New declaration.
4654         * lib/exp2f.c: New file.
4655         * m4/exp2f.m4: New file.
4656         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
4657         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
4658         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
4659         * modules/exp2f: New file.
4660         * tests/test-math-c++.cc: Check the declaration of exp2f.
4661         * doc/posix-functions/exp2f.texi: Mention the new module and the
4662         IRIX problem.
4663
4664 2012-03-08  Bruno Haible  <bruno@clisp.org>
4665
4666         Tests for module 'exp2'.
4667         * modules/exp2-tests: New file.
4668         * tests/test-exp2.c: New file.
4669         * tests/test-exp2.h: New file.
4670
4671         New module 'exp2'.
4672         * lib/math.in.h (exp2): New declaration.
4673         * lib/exp2.c: New file.
4674         * m4/exp2.m4: New file.
4675         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
4676         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
4677         REPLACE_EXP2.
4678         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
4679         REPLACE_EXP2.
4680         * modules/exp2: New file.
4681         * tests/test-math-c++.cc: Check the declaration of exp2.
4682         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
4683         and OpenBSD problems.
4684
4685 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
4686
4687         savedir: fix comment typo
4688         * lib/savedir.c (savedirstream): Fix typo in comment.
4689
4690 2012-03-08  Bruno Haible  <bruno@clisp.org>
4691
4692         test-readtokens.c: use const; remove unwarranted cast
4693         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
4694
4695 2012-03-08  Bruno Haible  <bruno@clisp.org>
4696
4697         fmal: Avoid compilation error on AIX.
4698         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
4699         AIX 5.2..7.1.
4700
4701 2012-03-08  Bruno Haible  <bruno@clisp.org>
4702
4703         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
4704         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
4705         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
4706         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
4707         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
4708         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
4709         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
4710
4711 2012-03-08  Bruno Haible  <bruno@clisp.org>
4712
4713         remainderf: Override buggy system function on IRIX 6.5.
4714         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
4715         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
4716         when it exists.
4717         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
4718
4719 2012-03-08  Jim Meyering  <meyering@redhat.com>
4720
4721         test-readtokens.c: avoid const-related compilation warnings
4722         * tests/test-readtokens.c: Avoid const-related compilation warnings.
4723
4724 2012-03-07  Jim Meyering  <meyering@redhat.com>
4725             Bruno Haible  <bruno@clisp.org>
4726
4727         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
4728         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
4729         tests/randomd.c.
4730         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
4731         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
4732         tests/randoml.c.
4733         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
4734
4735 2012-03-07  Bruno Haible  <bruno@clisp.org>
4736
4737         expm1l: Avoid compilation error on AIX.
4738         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
4739         AIX 5.2..7.1.
4740
4741 2012-03-07  Bruno Haible  <bruno@clisp.org>
4742
4743         expm1l: Don't override undeclared system function on IRIX 6.5.
4744         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
4745         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
4746         it exists. Set HAVE_DECL_EXPM1L.
4747         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
4748         HAVE_EXPM1L.
4749         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
4750         HAVE_EXPM1L.
4751         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
4752
4753 2012-03-07  Bruno Haible  <bruno@clisp.org>
4754
4755         remainderl: Don't override undeclared system function on IRIX 6.5.
4756         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
4757         HAVE_REMAINDERL.
4758         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
4759         declared when it exists. Set HAVE_DECL_REMAINDERL.
4760         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
4761         not HAVE_REMAINDERL.
4762         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
4763         HAVE_REMAINDERL.
4764         * doc/posix-functions/remainderl.texi: Mention missing declaration
4765         problem.
4766
4767 2012-03-07  Bruno Haible  <bruno@clisp.org>
4768
4769         rintf: Don't override undeclared system function on IRIX 6.5.
4770         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
4771         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
4772         exists. Set HAVE_DECL_RINTF.
4773         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
4774         HAVE_RINTF.
4775         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
4776         HAVE_RINTF.
4777         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
4778
4779 2012-03-07  Bruno Haible  <bruno@clisp.org>
4780
4781         roundl: Avoid compilation error on AIX.
4782         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
4783         AIX 5.2..7.1.
4784
4785 2012-03-07  Bruno Haible  <bruno@clisp.org>
4786
4787         roundl: Don't override undeclared system function on IRIX 6.5.
4788         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
4789         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
4790         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
4791         * modules/roundl (configure.ac): For replacement code, test
4792         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
4793         (Depends-on): Update conditions.
4794         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
4795
4796 2012-03-07  Bruno Haible  <bruno@clisp.org>
4797
4798         roundf: Don't override undeclared system function on IRIX 6.5.
4799         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
4800         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
4801         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
4802         * modules/roundf (configure.ac): For replacement code, test
4803         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
4804         (Depends-on): Update conditions.
4805         * modules/roundf-ieee (Depends-on): Update conditions.
4806         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
4807
4808 2012-03-07  Bruno Haible  <bruno@clisp.org>
4809
4810         round: Don't override undeclared system function on IRIX 6.5.
4811         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
4812         argument.
4813         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
4814         also when it is not declared. Set HAVE_ROUND. For replacement code,
4815         test HAVE_ROUND, not HAVE_DECL_ROUND.
4816         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
4817         not HAVE_DECL_ROUND.
4818         (Depends-on): Update conditions.
4819         * modules/round-ieee (Depends-on): Update conditions.
4820         * doc/posix-functions/round.texi: Mention the IRIX problem.
4821
4822 2012-03-07  Bruno Haible  <bruno@clisp.org>
4823
4824         copysignf: Don't override undeclared system function on IRIX 6.5.
4825         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
4826         HAVE_COPYSIGNF.
4827         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
4828         declared when it exists. Set HAVE_DECL_COPYSIGNF.
4829         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
4830         not HAVE_COPYSIGNF.
4831         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
4832         HAVE_COPYSIGNF.
4833         * doc/posix-functions/copysignf.texi: Mention missing declaration
4834         problem.
4835
4836 2012-03-07  Jim Meyering  <meyering@redhat.com>
4837
4838         readtokens: add tests
4839         * modules/readtokens-tests: New file.
4840         * tests/test-readtokens.c: New file.
4841
4842 2012-03-07  Jim Meyering  <meyering@redhat.com>
4843
4844         quotearg: the module must now include quote.h
4845         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
4846         So must the module.
4847         * modules/quotearg (Files): Add quote.h.
4848
4849 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
4850
4851         readtokens: avoid core dumps with unusual calling patterns
4852         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
4853         * lib/readtokens.c: Include limits.h.
4854         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
4855         (readtoken): Don't cache the delimiters; the cache code was buggy
4856         if !delim && saved_delim, or if the new n_delim differs from the old.
4857         Also, it wasn't thread-safe.
4858
4859 2012-03-07  Bruno Haible  <bruno@clisp.org>
4860
4861         quote: Adhere to common module description layout.
4862         * modules/quote (Makefile.am): Add back empty section.
4863
4864 2012-03-06  Akim Demaille  <demaille@gostai.com>
4865
4866         quote: fuse into quotearg
4867         This patch is made for the benefit of Bison.
4868         quote does not leave the choice of the quoting style to the user.
4869         quoting_style provides poor customizability, yet quoting_options,
4870         which is very rich, is hidden inside quotearg.c.  So in order to
4871         allow quote customization, move its implementation to quotearg.c.
4872         * lib/quote.c: Remove.
4873         * modules/quote: Adjust.
4874         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
4875         warning: provide all the members of literal structs.
4876         (quote_quoting_options): New.
4877         (quote, quote_n): Import implementation from quote.c.
4878         * lib/quote.h: Import the comments from quote.c.
4879         (quote_quoting_options): New.
4880
4881 2012-03-06  Bruno Haible  <bruno@clisp.org>
4882
4883         Tests for module 'expm1l-ieee'.
4884         * modules/expm1l-ieee-tests: New file.
4885         * tests/test-expm1l-ieee.c: New file.
4886
4887         New module 'expm1l-ieee'.
4888         * modules/expm1l-ieee: New file.
4889
4890         Tests for module 'expm1f-ieee'.
4891         * modules/expm1f-ieee-tests: New file.
4892         * tests/test-expm1f-ieee.c: New file.
4893
4894         New module 'expm1f-ieee'.
4895         * modules/expm1f-ieee: New file.
4896
4897         Tests for module 'expm1-ieee'.
4898         * modules/expm1-ieee-tests: New file.
4899         * tests/test-expm1-ieee.c: New file.
4900         * tests/test-expm1-ieee.h: New file.
4901
4902         New module 'expm1-ieee'.
4903         * modules/expm1-ieee: New file.
4904         * m4/expm1-ieee.m4: New file.
4905         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
4906         whether expm1 works with a minus zero argument. Replace it if not.
4907         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
4908         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
4909         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
4910         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
4911         (Depends-on): Update conditions.
4912         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
4913         AIX problem.
4914
4915 2012-03-06  Bruno Haible  <bruno@clisp.org>
4916
4917         Work around expm1f bug on IRIX 6.5.
4918         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
4919         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
4920         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
4921         not work.
4922         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
4923         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
4924         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
4925         (Depends-on): Update conditions.
4926         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
4927
4928 2012-03-06  Bruno Haible  <bruno@clisp.org>
4929
4930         Tests for module 'expm1l'.
4931         * modules/expm1l-tests: New file.
4932         * tests/test-expm1l.c: New file.
4933
4934         New module 'expm1l'.
4935         * lib/math.in.h (expm1l): New declaration.
4936         * lib/expm1l.c: New file.
4937         * m4/expm1l.m4: New file.
4938         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
4939         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
4940         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
4941         * modules/expm1l: New file.
4942         * tests/test-math-c++.cc: Check the declaration of expm1l.
4943         * doc/posix-functions/expm1l.texi: Mention the new module.
4944
4945 2012-03-06  Bruno Haible  <bruno@clisp.org>
4946
4947         Tests for module 'expm1f'.
4948         * modules/expm1f-tests: New file.
4949         * tests/test-expm1f.c: New file.
4950
4951         New module 'expm1f'.
4952         * lib/math.in.h (expm1f): New declaration.
4953         * lib/expm1f.c: New file.
4954         * m4/expm1f.m4: New file.
4955         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
4956         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
4957         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
4958         * modules/expm1f: New file.
4959         * tests/test-math-c++.cc: Check the declaration of expm1f.
4960         * doc/posix-functions/expm1f.texi: Mention the new module.
4961
4962 2012-03-06  Bruno Haible  <bruno@clisp.org>
4963
4964         Tests for module 'expm1'.
4965         * modules/expm1-tests: New file.
4966         * tests/test-expm1.c: New file.
4967         * tests/test-expm1.h: New file.
4968
4969         New module 'expm1'.
4970         * lib/math.in.h (expm1): New declaration.
4971         * lib/expm1.c: New file.
4972         * m4/expm1.m4: New file.
4973         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
4974         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
4975         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
4976         * modules/expm1: New file.
4977         * tests/test-math-c++.cc: Check the declaration of expm1.
4978         * doc/posix-functions/expm1.texi: Mention the new module.
4979
4980 2012-03-06  Bruno Haible  <bruno@clisp.org>
4981
4982         math: Ensure declarations of math functions.
4983         * modules/acosf (Depends-on): Add 'extensions'.
4984         * modules/asinf (Depends-on): Likewise.
4985         * modules/atan2f (Depends-on): Likewise.
4986         * modules/atanf (Depends-on): Likewise.
4987         * modules/cbrt (Depends-on): Likewise.
4988         * modules/cbrtf (Depends-on): Likewise.
4989         * modules/cbrtl (Depends-on): Likewise.
4990         * modules/copysignf (Depends-on): Likewise.
4991         * modules/copysignl (Depends-on): Likewise.
4992         * modules/cosf (Depends-on): Likewise.
4993         * modules/coshf (Depends-on): Likewise.
4994         * modules/expf (Depends-on): Likewise.
4995         * modules/fabsf (Depends-on): Likewise.
4996         * modules/fabsl (Depends-on): Likewise.
4997         * modules/fmaf (Depends-on): Likewise.
4998         * modules/fmal (Depends-on): Likewise.
4999         * modules/fmodf (Depends-on): Likewise.
5000         * modules/fmodl (Depends-on): Likewise.
5001         * modules/frexpf (Depends-on): Likewise.
5002         * modules/frexpl (Depends-on): Likewise.
5003         * modules/hypot (Depends-on): Likewise.
5004         * modules/hypotf (Depends-on): Likewise.
5005         * modules/hypotl (Depends-on): Likewise.
5006         * modules/ldexpf (Depends-on): Likewise.
5007         * modules/ldexpl (Depends-on): Likewise.
5008         * modules/log10f (Depends-on): Likewise.
5009         * modules/log10l (Depends-on): Likewise.
5010         * modules/log1p (Depends-on): Likewise.
5011         * modules/logb (Depends-on): Likewise.
5012         * modules/logf (Depends-on): Likewise.
5013         * modules/modff (Depends-on): Likewise.
5014         * modules/modfl (Depends-on): Likewise.
5015         * modules/powf (Depends-on): Likewise.
5016         * modules/remainderf (Depends-on): Likewise.
5017         * modules/remainderl (Depends-on): Likewise.
5018         * modules/rintf (Depends-on): Likewise.
5019         * modules/rintl (Depends-on): Likewise.
5020         * modules/sinf (Depends-on): Likewise.
5021         * modules/sinhf (Depends-on): Likewise.
5022         * modules/sqrtf (Depends-on): Likewise.
5023         * modules/tanf (Depends-on): Likewise.
5024         * modules/tanhf (Depends-on): Likewise.
5025         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
5026         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
5027         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
5028         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
5029         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
5030         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
5031         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
5032         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
5033         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
5034         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
5035         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
5036         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
5037         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
5038         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
5039         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
5040         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
5041         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
5042         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
5043         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
5044         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
5045         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
5046         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
5047         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
5048         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
5049         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
5050         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
5051         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
5052         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
5053         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
5054         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
5055         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
5056         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
5057         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
5058         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
5059         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
5060         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
5061         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
5062         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
5063         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
5064         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
5065         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
5066
5067 2012-03-06  Bruno Haible  <bruno@clisp.org>
5068
5069         math: Update module names in warnings.
5070         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
5071         tanl): Use specific module name in warn-on-use warning.
5072
5073 2012-03-06  Bruno Haible  <bruno@clisp.org>
5074
5075         expl: Simplify computation.
5076         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
5077
5078 2012-03-05  Bruno Haible  <bruno@clisp.org>
5079
5080         exp* tests: More tests.
5081         * tests/test-exp.h: New file.
5082         * tests/test-exp.c: Include <float.h> and test-exp.h.
5083         (main): Invoke test_function.
5084         * tests/test-expf.c: Include <float.h> and test-exp.h.
5085         (main): Invoke test_function.
5086         * tests/test-expl.c: Include <float.h> and test-exp.h.
5087         (main): Invoke test_function.
5088         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
5089         (Makefile.am): Add randomd.c to test_exp_SOURCES.
5090         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
5091         (Makefile.am): Add randomf.c to test_expf_SOURCES.
5092         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
5093         (Depends-on): Add 'float'.
5094         (Makefile.am): Add randoml.c to test_expl_SOURCES.
5095
5096         expl: Fix precision of computed result.
5097         * lib/expl.c: Completely rewritten.
5098         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
5099         (Maintainer): Add me.
5100         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
5101
5102 2012-03-05  Bruno Haible  <bruno@clisp.org>
5103
5104         cbrt* tests: More tests.
5105         * tests/test-cbrt.h: New file.
5106         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
5107         (main): Invoke test_function.
5108         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
5109         (main): Invoke test_function.
5110         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
5111         (main): Invoke test_function.
5112         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
5113         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
5114         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
5115         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
5116         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
5117         (Depends-on): Add 'float'.
5118         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
5119
5120 2012-03-05  Bruno Haible  <bruno@clisp.org>
5121
5122         hypot* tests: More tests.
5123         * tests/test-hypot.h: New file, partially extracted from
5124         tests/test-hypotl.c.
5125         * tests/test-hypot.c: Include test-hypot.h.
5126         (main): Invoke test_function.
5127         * tests/test-hypotf.c: Include test-hypot.h.
5128         (main): Invoke test_function.
5129         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
5130         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
5131         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
5132         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
5133         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
5134         tests/randomf.c.
5135         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
5136         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
5137         tests/randoml.c.
5138         (Depends-on): Add 'fpucw', 'float'.
5139         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
5140
5141 2012-03-05  Bruno Haible  <bruno@clisp.org>
5142
5143         fpucw: Doc about FreeBSD.
5144         * lib/fpucw.h: Mention FreeBSD in comments.
5145
5146 2012-03-04  Bruno Haible  <bruno@clisp.org>
5147
5148         sqrt* tests: More tests.
5149         * tests/test-sqrt.h: New file.
5150         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
5151         (main): Invoke test_function.
5152         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
5153         (main): Invoke test_function.
5154         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
5155         (main): Invoke test_function.
5156         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
5157         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
5158         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
5159         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
5160         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
5161         (Depends-on): Add 'float'.
5162         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
5163
5164 2012-03-04  Bruno Haible  <bruno@clisp.org>
5165
5166         remainder* tests: More tests.
5167         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
5168         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
5169         (main): Invoke test_function.
5170         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
5171         (main): Invoke test_function.
5172         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
5173         (main): Invoke test_function.
5174         * modules/remainder-tests (Files): Add tests/test-remainder.h,
5175         tests/randomd.c.
5176         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
5177         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
5178         tests/randomf.c.
5179         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
5180         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
5181         tests/randoml.c.
5182         (Depends-on): Add 'float'.
5183         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
5184
5185 2012-03-04  Bruno Haible  <bruno@clisp.org>
5186
5187         remainder, remainderf, remainderl: Fix computation for large quotients.
5188         * lib/remainder.c: Completely rewritten.
5189         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
5190         USE_FLOAT.
5191         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
5192         USE_LONG_DOUBLE.
5193         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
5194         isnand, isinf. Remove round, fma.
5195         * modules/remainderf (Files): Add lib/remainder.c.
5196         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
5197         Remove roundf, fmaf.
5198         * modules/remainderl (Files): Add lib/remainder.c.
5199         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
5200         isinf. Remove roundl, fmal.
5201         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
5202         REMAINDER_LIBM.
5203         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
5204         REMAINDERF_LIBM.
5205         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
5206         REMAINDERL_LIBM.
5207
5208 2012-03-04  Bruno Haible  <bruno@clisp.org>
5209
5210         fmod* tests: More tests.
5211         * tests/test-fmod.h (my_ldexp): New function.
5212         (test_function): Reduce amount of random numbers to test. Add tests
5213         of very large quotients x / y.
5214         * tests/test-fmod.c (MAX_EXP): New macro.
5215         * tests/test-fmodf.c (MAX_EXP): Likewise.
5216         * tests/test-fmodl.c (MAX_EXP): Likewise.
5217
5218 2012-03-04  Bruno Haible  <bruno@clisp.org>
5219
5220         fmod, fmodl: Fix computation for large quotients x / y.
5221         * lib/fmod.c: Completely rewritten.
5222         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
5223         USE_LONG_DOUBLE.
5224         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
5225         isnand. Remove fma.
5226         * modules/fmodl (Files): Add lib/fmod.c.
5227         (Depends-on): Add float, isfinite, signbit, fabsl,
5228         frexpl, ldexpl, isnanl. Remove fma.
5229         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
5230         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
5231
5232 2012-03-03  Bruno Haible  <bruno@clisp.org>
5233
5234         fmod* tests: More tests.
5235         * tests/test-fmod.h: New file.
5236         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
5237         (main): Invoke test_function.
5238         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
5239         (main): Invoke test_function.
5240         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
5241         (main): Invoke test_function.
5242         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
5243         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
5244         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
5245         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
5246         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
5247         (Depends-on): Add 'float'.
5248         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
5249
5250 2012-03-03  Bruno Haible  <bruno@clisp.org>
5251
5252         rint* tests: More tests.
5253         * tests/test-rint.h: New file, partially extracted from
5254         tests/test-rintl.c.
5255         * tests/test-rint.c: Include test-rint.h.
5256         (main): Invoke test_function.
5257         * tests/test-rintf.c: Include test-rint.h.
5258         (main): Invoke test_function.
5259         * tests/test-rintl.c: Include test-rint.h.
5260         (main): Invoke test_function.
5261         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
5262         (Makefile.am): Add randomd.c to test_rint_SOURCES.
5263         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
5264         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
5265         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
5266         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
5267
5268 2012-03-03  Bruno Haible  <bruno@clisp.org>
5269
5270         modf* tests: More tests.
5271         * tests/test-modf.h: New file.
5272         * tests/test-modf.c: Include <float.h> and test-modf.h.
5273         (main): Invoke test_function.
5274         * tests/test-modff.c: Include <float.h> and test-modf.h.
5275         (main): Invoke test_function.
5276         * tests/test-modfl.c: Include <float.h> and test-modf.h.
5277         (main): Invoke test_function.
5278         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
5279         (Makefile.am): Add randomd.c to test_modf_SOURCES.
5280         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
5281         (Makefile.am): Add randomf.c to test_modff_SOURCES.
5282         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
5283         (Depends-on): Add 'float'.
5284         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
5285
5286 2012-03-03  Bruno Haible  <bruno@clisp.org>
5287
5288         fabs* tests: More tests.
5289         * tests/test-fabs.h: New file, partially extracted from
5290         tests/test-fabsl.c.
5291         * tests/test-fabs.c (RANDOM): New macro.
5292         * tests/test-fabsf.c (RANDOM): New macro.
5293         * tests/test-fabsl.c (RANDOM): New macro.
5294         * modules/fabs-tests (Files): Add tests/randomd.c.
5295         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
5296         * modules/fabsf-tests (Files): Add tests/randomf.c.
5297         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
5298         * modules/fabsl-tests (Files): Add tests/randoml.c.
5299         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
5300
5301 2012-03-03  Bruno Haible  <bruno@clisp.org>
5302
5303         ldexp* tests: More tests.
5304         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
5305         * tests/test-ldexp.c (RANDOM): New macro.
5306         * tests/test-ldexpf.c (RANDOM): New macro.
5307         * tests/test-ldexpl.c (RANDOM): New macro.
5308         * modules/ldexp-tests (Files): Add tests/randomd.c.
5309         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
5310         * modules/ldexpf-tests (Files): Add tests/randomf.c.
5311         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
5312         * modules/ldexpl-tests (Files): Add tests/randoml.c.
5313         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
5314
5315 2012-03-03  Bruno Haible  <bruno@clisp.org>
5316
5317         frexp* tests: More tests.
5318         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
5319         * tests/test-frexp.c (RANDOM): New macro.
5320         * tests/test-frexpf.c (RANDOM): New macro.
5321         * tests/test-frexpl.c (RANDOM): New macro.
5322         * modules/frexp-tests (Files): Add tests/randomd.c.
5323         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
5324         * modules/frexpf-tests (Files): Add tests/randomf.c.
5325         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
5326         * modules/frexpl-tests (Files): Add tests/randoml.c.
5327         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
5328
5329 2012-03-03  Bruno Haible  <bruno@clisp.org>
5330
5331         Support for pseudo-random numbers in tests.
5332         * tests/randomf.c: New file.
5333         * tests/randomd.c: New file.
5334         * tests/randoml.c: New file.
5335         * tests/macros.h (randomf, randomd, randoml): New declarations.
5336
5337 2012-03-03  Bruno Haible  <bruno@clisp.org>
5338
5339         frexp* tests: Refactor.
5340         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
5341         * tests/test-frexp.c: Include and use it.
5342         * tests/test-frexpf.c: Likewise.
5343         * tests/test-frexpl.c: Likewise.
5344         * modules/frexp-tests (Files): Add tests/test-frexp.h.
5345         * modules/frexpf-tests (Files): Likewise.
5346         * modules/frexpl-tests (Files): Likewise.
5347
5348 2012-03-02  Jim Meyering  <meyering@redhat.com>
5349
5350         maint: don't specify XZ_OPT=-9ev in dist-related rule
5351         Using xz's -9 option is warranted only if you have a very large
5352         tarball (see xz's documentation for the sizes vs. presets), and
5353         requires 64MiB of memory at decompression time.
5354         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
5355         Automake's default of just "-e" is fine.  Override on a
5356         per-package basis by setting XZ_OPT e.g., in cfg.mk.
5357
5358 2012-03-01  Eric Blake  <eblake@redhat.com>
5359
5360         maint.mk: allow announcement for non-gnulib project
5361         * maint.mk (announcement): Skip gnulib version if not used.
5362
5363 2012-03-01  Jim Meyering  <meyering@redhat.com>
5364
5365         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
5366         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
5367         envvar settings cannot interfere.  Otherwise, setting envvars like
5368         prohibit=foo require=bar, etc. would cause spurious test failures.
5369
5370 2012-03-01  Eric Blake  <eblake@redhat.com>
5371
5372         maint.mk: add per-line exclusions to prohibitions
5373         * maint.mk (_sc_search_regexp): Add $exclude parameter.
5374         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
5375         (sc_const_long_option): Use it.
5376
5377 2012-03-01  Bruno Haible  <bruno@clisp.org>
5378
5379         Tests for module 'expl-ieee'.
5380         * modules/expl-ieee-tests: New file.
5381         * tests/test-expl-ieee.c: New file.
5382
5383         New module 'expl-ieee'.
5384         * modules/expl-ieee: New file.
5385
5386         Tests for module 'exp-ieee'.
5387         * modules/exp-ieee-tests: New file.
5388         * tests/test-exp-ieee.c: New file.
5389
5390         New module 'exp-ieee'.
5391         * modules/exp-ieee: New file.
5392
5393         Tests for module 'expf-ieee'.
5394         * modules/expf-ieee-tests: New file.
5395         * tests/test-expf-ieee.c: New file.
5396         * tests/test-exp-ieee.h: New file.
5397
5398         New module 'expf-ieee'.
5399         * modules/expf-ieee: New file.
5400
5401 2012-02-29  Bruno Haible  <bruno@clisp.org>
5402
5403         cbrtl-ieee: Work around test failure on IRIX 6.5.
5404         * m4/cbrtl-ieee.m4: New file.
5405         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
5406         test whether cbrtl works with a minus zero argument. Replace it if not.
5407         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
5408         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
5409         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
5410         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
5411         (Depends-on): Update conditions.
5412         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
5413         m4/signbit.m4.
5414         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
5415         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
5416         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
5417
5418         Tests for module 'cbrtl-ieee'.
5419         * modules/cbrtl-ieee-tests: New file.
5420         * tests/test-cbrtl-ieee.c: New file.
5421
5422         New module 'cbrtl-ieee'.
5423         * modules/cbrtl-ieee: New file.
5424
5425         Tests for module 'cbrt-ieee'.
5426         * modules/cbrt-ieee-tests: New file.
5427         * tests/test-cbrt-ieee.c: New file.
5428
5429         New module 'cbrt-ieee'.
5430         * modules/cbrt-ieee: New file.
5431
5432         Tests for module 'cbrtf-ieee'.
5433         * modules/cbrtf-ieee-tests: New file.
5434         * tests/test-cbrtf-ieee.c: New file.
5435         * tests/test-cbrt-ieee.h: New file.
5436
5437         New module 'cbrtf-ieee'.
5438         * modules/cbrtf-ieee: New file.
5439
5440 2012-02-29  Bruno Haible  <bruno@clisp.org>
5441
5442         cbrtf: Work around bug in IRIX 6.5 system function.
5443         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
5444         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
5445         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
5446         work.
5447         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
5448         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
5449         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
5450         (Depends-on): Update conditions.
5451         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
5452
5453 2012-02-29  Bruno Haible  <bruno@clisp.org>
5454
5455         Tests for module 'cbrtl'.
5456         * modules/cbrtl-tests: New file.
5457         * tests/test-cbrtl.c: New file.
5458
5459         New module 'cbrtl'.
5460         * lib/math.in.h (cbrtl): New declaration.
5461         * lib/cbrtl.c: New file.
5462         * m4/cbrtl.m4: New file.
5463         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
5464         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
5465         HAVE_DECL_CBRTL.
5466         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
5467         HAVE_DECL_CBRTL.
5468         * modules/cbrtl: New file.
5469         * tests/test-math-c++.cc: Check the declaration of cbrtl.
5470         * doc/posix-functions/cbrtl.texi: Mention the new module.
5471
5472 2012-02-29  Bruno Haible  <bruno@clisp.org>
5473
5474         Tests for module 'cbrtf'.
5475         * modules/cbrtf-tests: New file.
5476         * tests/test-cbrtf.c: New file.
5477
5478         New module 'cbrtf'.
5479         * lib/math.in.h (cbrtf): New declaration.
5480         * lib/cbrtf.c: New file.
5481         * m4/cbrtf.m4: New file.
5482         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
5483         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
5484         HAVE_DECL_CBRTF.
5485         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
5486         HAVE_DECL_CBRTF.
5487         * modules/cbrtf: New file.
5488         * tests/test-math-c++.cc: Check the declaration of cbrtf.
5489         * doc/posix-functions/cbrtf.texi: Mention the new module.
5490
5491 2012-02-29  Bruno Haible  <bruno@clisp.org>
5492
5493         cbrt: Provide replacement on MSVC and Minix.
5494         * lib/math.in.h (cbrt): New declaration.
5495         * lib/cbrt.c: New file.
5496         * m4/cbrt.m4: New file.
5497         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
5498         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
5499         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
5500         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
5501         (Depends-on): Add dependencies.
5502         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
5503         * tests/test-math-c++.cc: Check the declaration of cbrt.
5504         * doc/posix-functions/cbrt.texi: Mention that the module provides a
5505         replacement.
5506
5507 2012-02-29  Bruno Haible  <bruno@clisp.org>
5508
5509         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
5510         * m4/hypotl-ieee.m4: New file.
5511         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
5512         test whether hypotl works with mixed NaN and Infinity arguments.
5513         Replace it if not.
5514         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
5515         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
5516         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
5517         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
5518         (Depends-on): Update conditions.
5519         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
5520         (Depends-on): Add hypot-ieee.
5521         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
5522         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
5523
5524         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
5525         * m4/hypotf-ieee.m4: New file.
5526         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
5527         test whether hypotf works with mixed NaN and Infinity arguments.
5528         Replace it if not.
5529         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
5530         (Depends-on): Add hypot-ieee.
5531         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
5532         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
5533
5534         hypot-ieee: Work around test failure on OSF/1 and native Windows.
5535         * lib/math.in.h (hypot): New declaration.
5536         * lib/hypot.c: New file.
5537         * m4/hypot-ieee.m4: New file.
5538         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
5539         whether hypot works with mixed NaN and Infinity arguments. Replace it
5540         if not.
5541         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
5542         REPLACE_HYPOT.
5543         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
5544         * modules/hypot (Files): Add lib/hypot.c.
5545         (Depends-on): Add dependencies.
5546         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
5547         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
5548         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
5549         * tests/test-math-c++.cc: Check the declaration of hypot.
5550         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
5551
5552         Tests for module 'hypotl-ieee'.
5553         * modules/hypotl-ieee-tests: New file.
5554         * tests/test-hypotl-ieee.c: New file.
5555
5556         New module 'hypotl-ieee'.
5557         * modules/hypotl-ieee: New file.
5558
5559         Tests for module 'hypot-ieee'.
5560         * modules/hypot-ieee-tests: New file.
5561         * tests/test-hypot-ieee.c: New file.
5562
5563         New module 'hypot-ieee'.
5564         * modules/hypot-ieee: New file.
5565
5566         Tests for module 'hypotf-ieee'.
5567         * modules/hypotf-ieee-tests: New file.
5568         * tests/test-hypotf-ieee.c: New file.
5569         * tests/test-hypot-ieee.h: New file.
5570
5571         New module 'hypotf-ieee'.
5572         * modules/hypotf-ieee: New file.
5573
5574 2012-02-29  Bruno Haible  <bruno@clisp.org>
5575
5576         Remove unused variables.
5577         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
5578         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
5579         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
5580         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
5581
5582 2012-02-29  Eric Blake  <eblake@redhat.com>
5583
5584         termios: fix pid_t always, not just for tcgetsid
5585         * doc/posix-headers/termios.texi (termios.h): Mention problem.
5586         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
5587         just when building tcgetsid.
5588
5589 2012-02-29  Bruno Haible  <bruno@clisp.org>
5590
5591         Tests for module 'hypotl'.
5592         * modules/hypotl-tests: New file.
5593         * tests/test-hypotl.c: New file.
5594
5595         New module 'hypotl'.
5596         * lib/math.in.h (hypotl): New declaration.
5597         * lib/hypotl.c: New file.
5598         * m4/hypotl.m4: New file.
5599         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
5600         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
5601         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
5602         * modules/hypotl: New file.
5603         * tests/test-math-c++.cc: Check the hypotl declaration.
5604         * doc/posix-functions/hypotl.texi: Mention the new module.
5605
5606 2012-02-29  Eric Blake  <eblake@redhat.com>
5607
5608         tcgetsid: fix cygwin header bug
5609         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
5610
5611         docs: update cygwin progress
5612         * doc/posix-functions/llround.texi (llround): Added in cygwin
5613         1.7.8.
5614         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
5615         * doc/glibc-functions/program_invocation_name.texi
5616         (program_invocation_name): Likewise.
5617         * doc/glibc-functions/program_invocation_short_name.texi
5618         (program_invocation_short_name): Likewise.
5619         * doc/glibc-functions/madvise.texi (madvise): Likewise.
5620         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
5621         Likewise.
5622         * doc/posix-functions/pthread_spin_destroy.texi
5623         (pthread_spin_destroy): Added in cygwin 1.7.10.
5624         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
5625         Likewise.
5626         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
5627         Likewise.
5628         * doc/posix-functions/pthread_spin_trylock.texi
5629         (pthread_spin_trylock): Likewise.
5630         * doc/posix-functions/pthread_spin_unlock.texi
5631         (pthread_spin_unlock): Likewise.
5632         * doc/posix-functions/pthread_setschedprio.texi
5633         (pthread_setschedprio): Likewise.
5634         * doc/posix-functions/pthread_attr_getstack.texi
5635         (pthread_attr_getstack): Likewise.
5636         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
5637         (pthread_attr_getstackaddr): Likewise.
5638         * doc/glibc-functions/pthread_getattr_np.texi
5639         (pthread_getattr_np): Likewise.
5640         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
5641         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
5642         * doc/posix-functions/clock_settime.texi (clock_settime):
5643         Likewise.
5644         * doc/posix-functions/pthread_attr_getguardsize.texi
5645         (pthread_attr_getguardsize): Likewise.
5646         * doc/posix-functions/pthread_attr_setguardsize.texi
5647         (pthread_attr_setguardsize): Likewise.
5648         * doc/posix-functions/pthread_attr_setstack.texi
5649         (pthread_attr_setstack): Likewise.
5650         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
5651         (pthread_attr_setstackaddr): Likewise.
5652         * doc/posix-functions/clock_getcpuclockid.texi
5653         (clock_getcpuclockid): Likewise.
5654         * doc/posix-functions/pthread_getcpuclockid.texi
5655         (pthread_getcpuclockid): Likewise.
5656         * doc/glibc-functions/error.texi (error): Likewise.
5657         * doc/glibc-functions/error_at_line.texi (error_at_line):
5658         Likewise.
5659         * doc/glibc-functions/error_message_count.texi
5660         (error_message_count): Likewise.
5661         * doc/glibc-functions/error_one_per_line.texi
5662         (error_one_per_line): Likewise.
5663         * doc/glibc-functions/error_print_progname.texi
5664         (error_print_progname): Likewise.
5665         * doc/posix-functions/pthread_condattr_getclock.texi
5666         (pthread_condattr_getclock): Likewise.
5667         * doc/posix-functions/pthread_condattr_setclock.texi
5668         (pthread_condattr_setclock): Likewise.
5669         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
5670         Likewise.
5671         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
5672         * doc/glibc-functions/getpt.texi (getpt): Likewise.
5673         * doc/glibc-functions/get_current_dir_name.texi
5674         (get_current_dir_name): Likewise.
5675         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
5676         Likewise.
5677         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
5678         wrong return type.
5679         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
5680         1.7.11.
5681
5682 2012-02-29  Bruno Haible  <bruno@clisp.org>
5683
5684         Tests for module 'hypotf'.
5685         * modules/hypotf-tests: New file.
5686         * tests/test-hypotf.c: New file.
5687
5688         New module 'hypotf'.
5689         * lib/math.in.h (hypotf): New declaration.
5690         * lib/hypotf.c: New file.
5691         * m4/hypotf.m4: New file.
5692         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
5693         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
5694         REPLACE_HYPOTF.
5695         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
5696         REPLACE_HYPOTF.
5697         * modules/hypotf: New file.
5698         * tests/test-math-c++.cc: Check the hypotf declaration.
5699         * doc/posix-functions/hypotf.texi: Mention the new module.
5700
5701         hypot: Prepare for hypotf module.
5702         * m4/hypot.m4: New file.
5703         * modules/hypot (Files): Add m4/hypot.m4.
5704         (configure.ac): Invoke gl_FUNC_HYPOT.
5705
5706 2012-02-29  Bruno Haible  <bruno@clisp.org>
5707
5708         hypot tests: More tests.
5709         * tests/test-hypot.c: Include <float.h>.
5710         (main): Add tests about overflow and underflow.
5711
5712 2012-02-29  Bruno Haible  <bruno@clisp.org>
5713
5714         math code: Add comments.
5715         * lib/acosl.c: Add comment about related glibc source files.
5716         * lib/asinl.c: Likewise.
5717         * lib/atanl.c: Likewise.
5718         * lib/expl.c: Likewise.
5719         * lib/logl.c: Likewise.
5720         * lib/sincosl.c: Likewise.
5721         * lib/sinl.c: Likewise.
5722         * lib/tanl.c: Likewise.
5723         * lib/trigl.c: Likewise.
5724         * lib/cosl.c: Likewise. Fix comments.
5725
5726 2012-02-28  Bruno Haible  <bruno@clisp.org>
5727
5728         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
5729         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
5730         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
5731         HUGE_VALL are defined.
5732         (numeric_equald): Renamed from numeric_equal.
5733         (numeric_equalf, numeric_equall): New functions.
5734         (main): Check also HUGE_VALF, HUGE_VALL.
5735         * modules/math-tests (Files): Add tests/macros.h.
5736         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
5737         HUGE_VALL.
5738
5739 2012-02-28  Bruno Haible  <bruno@clisp.org>
5740
5741         doc: Move ISO C11 feature notes into POSIX chapters.
5742         * doc/posix-functions/aligned_alloc.texi: Renamed from
5743         doc/glibc-functions/aligned_alloc.texi.
5744         * doc/posix-functions/quick_exit.texi: Renamed from
5745         doc/glibc-functions/quick_exit.texi.
5746         * doc/posix-headers/uchar.texi: Renamed from
5747         doc/glibc-headers/uchar.texi.
5748         * doc/posix-functions/c16rtomb.texi: Renamed from
5749         doc/glibc-functions/c16rtomb.texi.
5750         * doc/posix-functions/c32rtomb.texi: Renamed from
5751         doc/glibc-functions/c32rtomb.texi.
5752         * doc/posix-functions/mbrtoc16.texi: Renamed from
5753         doc/glibc-functions/mbrtoc16.texi.
5754         * doc/posix-functions/mbrtoc32.texi: Renamed from
5755         doc/glibc-functions/mbrtoc32.texi.
5756         * doc/gnulib.texi: Update.
5757         (Glibc uchar.h): Remove section.
5758         Suggested by Eric Blake.
5759
5760 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
5761
5762         stdnoreturn: port to MSVC better
5763         MSVC standard headers use __declspec(noreturn), so #define noreturn
5764         to empty on that platform.  Reported by Bruno Haible in
5765         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
5766         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
5767         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
5768
5769 2012-02-28  Bruno Haible  <bruno@clisp.org>
5770
5771         doc: Mention new glibc headers and functions.
5772         * doc/glibc-headers/uchar.texi: New file.
5773         * doc/glibc-functions/aligned_alloc.texi: New file.
5774         * doc/glibc-functions/c16rtomb.texi: New file.
5775         * doc/glibc-functions/c32rtomb.texi: New file.
5776         * doc/glibc-functions/clock_adjtime.texi: New file.
5777         * doc/glibc-functions/fanotify_init.texi: New file.
5778         * doc/glibc-functions/fanotify_mark.texi: New file.
5779         * doc/glibc-functions/inet6_opt_append.texi: New file.
5780         * doc/glibc-functions/inet6_opt_find.texi: New file.
5781         * doc/glibc-functions/inet6_opt_finish.texi: New file.
5782         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
5783         * doc/glibc-functions/inet6_opt_init.texi: New file.
5784         * doc/glibc-functions/inet6_opt_next.texi: New file.
5785         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
5786         * doc/glibc-functions/inet6_rth_add.texi: New file.
5787         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
5788         * doc/glibc-functions/inet6_rth_init.texi: New file.
5789         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
5790         * doc/glibc-functions/inet6_rth_segments.texi: New file.
5791         * doc/glibc-functions/inet6_rth_space.texi: New file.
5792         * doc/glibc-functions/login.texi: New file.
5793         * doc/glibc-functions/mbrtoc16.texi: New file.
5794         * doc/glibc-functions/mbrtoc32.texi: New file.
5795         * doc/glibc-functions/name_to_handle_at.texi: New file.
5796         * doc/glibc-functions/ntp_gettimex.texi: New file.
5797         * doc/glibc-functions/open_by_handle_at.texi: New file.
5798         * doc/glibc-functions/prlimit.texi: New file.
5799         * doc/glibc-functions/process_vm_readv.texi: New file.
5800         * doc/glibc-functions/process_vm_writev.texi: New file.
5801         * doc/glibc-functions/recvmmsg.texi: New file.
5802         * doc/glibc-functions/scandirat.texi: New file.
5803         * doc/glibc-functions/sendmmsg.texi: New file.
5804         * doc/glibc-functions/setns.texi: New file.
5805         * doc/glibc-functions/timespec_get.texi: New file.
5806         * doc/gnulib.texi: Include them.
5807         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
5808         sections.
5809         Reported by Eric Blake.
5810
5811 2012-02-28  Bruno Haible  <bruno@clisp.org>
5812
5813         Avoid compilation errors with MSVC option -fp:strict.
5814         * lib/floor.c: Use MSVC specific pragma fenv_access.
5815         * lib/ceil.c: Likewise.
5816         * lib/trunc.c: Likewise.
5817         * lib/round.c: Likewise.
5818         * lib/rint.c: Likewise.
5819         * lib/fma.c: Likewise.
5820         * lib/integer_length.c: Likewise.
5821         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
5822         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
5823         * tests/test-floor2.c: Likewise.
5824         * tests/test-floorf2.c: Likewise.
5825         * tests/test-ceil2.c: Likewise.
5826         * tests/test-ceilf2.c: Likewise.
5827         * tests/test-trunc2.c: Likewise.
5828         * tests/test-truncf2.c: Likewise.
5829         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
5830
5831 2012-02-27  Bruno Haible  <bruno@clisp.org>
5832
5833         Tests for module 'sqrtl-ieee'.
5834         * modules/sqrtl-ieee-tests: New file.
5835         * tests/test-sqrtl-ieee.c: New file.
5836
5837         New module 'sqrtl-ieee'.
5838         * modules/sqrtl-ieee: New file.
5839
5840         Tests for module 'sqrt-ieee'.
5841         * modules/sqrt-ieee-tests: New file.
5842         * tests/test-sqrt-ieee.c: New file.
5843
5844         New module 'sqrt-ieee'.
5845         * modules/sqrt-ieee: New file.
5846
5847         Tests for module 'sqrtf-ieee'.
5848         * modules/sqrtf-ieee-tests: New file.
5849         * tests/test-sqrtf-ieee.c: New file.
5850         * tests/test-sqrt-ieee.h: New file.
5851
5852         New module 'sqrtf-ieee'.
5853         * modules/sqrtf-ieee: New file.
5854
5855 2012-02-27  Bruno Haible  <bruno@clisp.org>
5856
5857         remainderl-ieee: Work around test failure on OSF/1.
5858         * m4/remainderl-ieee.m4: New file.
5859         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
5860         present, test whether remainderl works with a zero second argument.
5861         Replace it if not.
5862         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
5863         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
5864         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
5865         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
5866         (Depends-on): Update conditions.
5867         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
5868         (Depends-on): Add remainder-ieee.
5869         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
5870         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
5871         module.
5872
5873         remainderf-ieee: Work around test failure on OSF/1.
5874         * m4/remainderf-ieee.m4: New file.
5875         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
5876         present, test whether remainderf works with a zero second argument.
5877         Replace it if not.
5878         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
5879         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
5880         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
5881         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
5882         (Depends-on): Update conditions.
5883         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
5884         (Depends-on): Add remainder-ieee.
5885         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
5886         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
5887         module.
5888
5889         remainder-ieee: Work around test failure on OSF/1.
5890         * m4/remainder-ieee.m4: New file.
5891         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
5892         present, test whether remainder works with a zero second argument.
5893         Replace it if not.
5894         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
5895         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
5896         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
5897         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
5898         (Depends-on): Update dependencies.
5899         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
5900         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
5901         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
5902
5903         Tests for module 'remainderl-ieee'.
5904         * modules/remainderl-ieee-tests: New file.
5905         * tests/test-remainderl-ieee.c: New file.
5906
5907         New module 'remainderl-ieee'.
5908         * modules/remainderl-ieee: New file.
5909
5910         Tests for module 'remainder-ieee'.
5911         * modules/remainder-ieee-tests: New file.
5912         * tests/test-remainder-ieee.c: New file.
5913
5914         New module 'remainder-ieee'.
5915         * modules/remainder-ieee: New file.
5916
5917         Tests for module 'remainderf-ieee'.
5918         * modules/remainderf-ieee-tests: New file.
5919         * tests/test-remainderf-ieee.c: New file.
5920         * tests/test-remainder-ieee.h: New file.
5921
5922         New module 'remainderf-ieee'.
5923         * modules/remainderf-ieee: New file.
5924
5925 2012-02-27  Bruno Haible  <bruno@clisp.org>
5926
5927         modff, modfl: Fix configure syntax error.
5928         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
5929         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
5930
5931 2012-02-27  Bruno Haible  <bruno@clisp.org>
5932
5933         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
5934         * m4/fmodl-ieee.m4: New file.
5935         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
5936         whether fmodl works with zero arguments. Replace it if not.
5937         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
5938         (Depends-on): Add fmod-ieee.
5939         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
5940         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
5941
5942         fmodf-ieee: Work around test failure on OSF/1.
5943         * m4/fmodf-ieee.m4: New file.
5944         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
5945         whether fmodf works with zero arguments. Replace it if not.
5946         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
5947         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
5948         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
5949         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
5950         (Depends-on): Update dependencies.
5951         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
5952         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
5953         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
5954
5955         fmodf-ieee: Work around test failure on MSVC 9.
5956         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
5957         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
5958
5959         fmod-ieee: Work around test failures on OSF/1, mingw.
5960         * m4/fmod-ieee.m4: New file.
5961         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
5962         whether fmod works with zero arguments. Replace it if not.
5963         * lib/math.in.h (fmod): New declaration.
5964         * lib/fmod.c: New file.
5965         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
5966         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
5967         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
5968         * modules/fmod (Files): Add lib/fmod.c.
5969         (Depends-on): Add math, isinf, trunc, fma.
5970         (configure.ac): Arrange to compile lib/fmod.c if needed.
5971         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
5972         m4/signbit.m4.
5973         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
5974         * tests/test-math-c++.cc: Check the declaration of fmod.
5975         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
5976
5977         fmodl-ieee: Fix test failures.
5978         * lib/fmodl.c (fmodl): Treat Inf specially.
5979         * modules/fmodl (Depends-on): Add isinf.
5980
5981         Tests for module 'fmodl-ieee'.
5982         * modules/fmodl-ieee-tests: New file.
5983         * tests/test-fmodl-ieee.c: New file.
5984
5985         New module 'fmodl-ieee'.
5986         * modules/fmodl-ieee: New file.
5987
5988         Tests for module 'fmod-ieee'.
5989         * modules/fmod-ieee-tests: New file.
5990         * tests/test-fmod-ieee.c: New file.
5991
5992         New module 'fmod-ieee'.
5993         * modules/fmod-ieee: New file.
5994
5995         Tests for module 'fmodf-ieee'.
5996         * modules/fmodf-ieee-tests: New file.
5997         * tests/test-fmodf-ieee.c: New file.
5998         * tests/test-fmod-ieee.h: New file.
5999
6000         New module 'fmodf-ieee'.
6001         * modules/fmodf-ieee: New file.
6002
6003 2012-02-27  Bruno Haible  <bruno@clisp.org>
6004
6005         Tests for module 'rintl-ieee'.
6006         * modules/rintl-ieee-tests: New file.
6007         * tests/test-rintl-ieee.c: New file.
6008
6009         New module 'rintl-ieee'.
6010         * modules/rintl-ieee: New file.
6011
6012         Tests for module 'rint-ieee'.
6013         * modules/rint-ieee-tests: New file.
6014         * tests/test-rint-ieee.c: New file.
6015
6016         New module 'rint-ieee'.
6017         * modules/rint-ieee: New file.
6018
6019         Tests for module 'rintf-ieee'.
6020         * modules/rintf-ieee-tests: New file.
6021         * tests/test-rintf-ieee.c: New file.
6022         * tests/test-rint-ieee.h: New file.
6023
6024         New module 'rintf-ieee'.
6025         * modules/rintf-ieee: New file.
6026
6027 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
6028
6029         regex: re_search etc. should return -2 when memory exhausted
6030         This bug was uncovered when testing 'grep'.  Without the fix,
6031         re_search and friends return -1 when memory is exhausted, but -1
6032         means no match, and this causes grep to falsely report no-match
6033         instead of memory-exhaustion.  See
6034         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
6035         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
6036         trouble; this can occur if re_search_internal ran out of memory.
6037
6038 2012-02-26  Bruno Haible  <bruno@clisp.org>
6039
6040         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
6041         * m4/modfl-ieee.m4: New file.
6042         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
6043         whether modfl works with Inf. Replace it if not.
6044         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
6045         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
6046         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
6047         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
6048         (Depends-on): Update dependencies.
6049         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
6050         m4/signbit.m4.
6051         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
6052         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
6053
6054         modfl-ieee: Fix dependencies.
6055         * modules/modfl-ieee (Depends-on): Add modf-ieee.
6056
6057         modfl-ieee: Fix test failures.
6058         * lib/modfl.c (modfl): Treat NaN and Inf specially.
6059         * modules/modfl (Depends-on): Add isfinite, isinf.
6060
6061         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
6062         * m4/modff-ieee.m4: New file.
6063         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
6064         whether modff works with NaN and Inf. Replace it if not.
6065         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
6066         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
6067         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
6068         * modules/modff (configure.ac): Consider REPLACE_MODFF.
6069         (Depends-on): Update dependencies.
6070         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
6071         m4/signbit.m4.
6072         (Depends-on): Add modf-ieee.
6073         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
6074         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
6075
6076         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
6077         * m4/modf-ieee.m4: New file.
6078         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
6079         whether modf works with NaN and Inf. Replace it if not.
6080         * lib/math.in.h (modf): New declaration.
6081         * lib/modf.c: New file.
6082         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
6083         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
6084         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
6085         * modules/modf (Files): Add lib/modf.c.
6086         (Depends-on): Add math, isfinite, trunc, isinf.
6087         (configure.ac): Addrange to compile lib/modf.c if needed.
6088         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
6089         m4/signbit.m4.
6090         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
6091         * tests/test-math-c++.cc: Check the declaration of modf.
6092         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
6093
6094         Tests for module 'modfl-ieee'.
6095         * modules/modfl-ieee-tests: New file.
6096         * tests/test-modfl-ieee.c: New file.
6097
6098         New module 'modfl-ieee'.
6099         * modules/modfl-ieee: New file.
6100
6101         Tests for module 'modf-ieee'.
6102         * modules/modf-ieee-tests: New file.
6103         * tests/test-modf-ieee.c: New file.
6104
6105         New module 'modf-ieee'.
6106         * modules/modf-ieee: New file.
6107
6108         Tests for module 'modff-ieee'.
6109         * modules/modff-ieee-tests: New file.
6110         * tests/test-modff-ieee.c: New file.
6111         * tests/test-modf-ieee.h: New file.
6112
6113         New module 'modff-ieee'.
6114         * modules/modff-ieee: New file.
6115
6116 2012-02-26  Bruno Haible  <bruno@clisp.org>
6117
6118         Tests for module 'fabsl-ieee'.
6119         * modules/fabsl-ieee-tests: New file.
6120         * tests/test-fabsl-ieee.c: New file.
6121
6122         New module 'fabsl-ieee'.
6123         * modules/fabsl-ieee: New file.
6124
6125         Tests for module 'fabs-ieee'.
6126         * modules/fabs-ieee-tests: New file.
6127         * tests/test-fabs-ieee.c: New file.
6128
6129         New module 'fabs-ieee'.
6130         * modules/fabs-ieee: New file.
6131
6132         Tests for module 'fabsf-ieee'.
6133         * modules/fabsf-ieee-tests: New file.
6134         * tests/test-fabsf-ieee.c: New file.
6135         * tests/test-fabs-ieee.h: New file.
6136
6137         New module 'fabsf-ieee'.
6138         * modules/fabsf-ieee: New file.
6139
6140 2012-02-26  Bruno Haible  <bruno@clisp.org>
6141
6142         Tests for module 'fmal-ieee'.
6143         * modules/fmal-ieee-tests: New file.
6144         * tests/test-fmal-ieee.c: New file.
6145
6146         New module 'fmal-ieee'.
6147         * modules/fmal-ieee: New file.
6148
6149         Tests for module 'fma-ieee'.
6150         * modules/fma-ieee-tests: New file.
6151         * tests/test-fma-ieee.c: New file.
6152
6153         New module 'fma-ieee'.
6154         * modules/fma-ieee: New file.
6155
6156         Tests for module 'fmaf-ieee'.
6157         * modules/fmaf-ieee-tests: New file.
6158         * tests/test-fmaf-ieee.c: New file.
6159         * tests/test-fma-ieee.h: New file.
6160
6161         New module 'fmaf-ieee'.
6162         * modules/fmaf-ieee: New file.
6163
6164 2012-02-26  Bruno Haible  <bruno@clisp.org>
6165
6166         Tests for module 'ldexpl-ieee'.
6167         * modules/ldexpl-ieee-tests: New file.
6168         * tests/test-ldexpl-ieee.c: New file.
6169
6170         New module 'ldexpl-ieee'.
6171         * modules/ldexpl-ieee: New file.
6172
6173         Tests for module 'ldexp-ieee'.
6174         * modules/ldexp-ieee-tests: New file.
6175         * tests/test-ldexp-ieee.c: New file.
6176
6177         New module 'ldexp-ieee'.
6178         * modules/ldexp-ieee: New file.
6179
6180         Tests for module 'ldexpf-ieee'.
6181         * modules/ldexpf-ieee-tests: New file.
6182         * tests/test-ldexpf-ieee.c: New file.
6183         * tests/test-ldexp-ieee.h: New file.
6184
6185         New module 'ldexpf-ieee'.
6186         * modules/ldexpf-ieee: New file.
6187
6188 2012-02-26  Bruno Haible  <bruno@clisp.org>
6189
6190         Refactor frexp*-ieee tests.
6191         * tests/test-frexp-ieee.h: New file.
6192         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
6193         (main): Just call test_function.
6194         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
6195         (main): Just call test_function.
6196         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
6197         (main): Just call test_function.
6198         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
6199         * modules/frexp-ieee-tests (Files): Likewise.
6200         * modules/frexpl-ieee-tests (Files): Likewise.
6201
6202         Tests for module 'frexpl-ieee'.
6203         * modules/frexpl-ieee-tests: New file.
6204         * tests/test-frexpl-ieee.c: New file.
6205
6206         New module 'frexpl-ieee'.
6207         * modules/frexpl-ieee: New file.
6208
6209         Tests for module 'frexp-ieee'.
6210         * modules/frexp-ieee-tests: New file.
6211         * tests/test-frexp-ieee.c: New file.
6212
6213         New module 'frexp-ieee'.
6214         * modules/frexp-ieee: New file.
6215
6216         Tests for module 'frexpf-ieee'.
6217         * modules/frexpf-ieee-tests: New file.
6218         * tests/test-frexpf-ieee.c: New file.
6219
6220         New module 'frexpf-ieee'.
6221         * modules/frexpf-ieee: New file.
6222
6223 2012-02-26  Bruno Haible  <bruno@clisp.org>
6224
6225         roundl-ieee tests: More tests.
6226         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6227         (main): Add tests for [MX] shaded specification in POSIX.
6228         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6229         (Depends-on): Add isnanl-nolibm.
6230
6231         round-ieee tests: More tests.
6232         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6233         (main): Add tests for [MX] shaded specification in POSIX.
6234         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6235         (Depends-on): Add isnand-nolibm.
6236
6237         roundf-ieee tests: More tests.
6238         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6239         (main): Add tests for [MX] shaded specification in POSIX.
6240         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6241         (Depends-on): Add isnanf-nolibm.
6242
6243         truncl-ieee tests: More tests.
6244         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6245         (main): Add tests for [MX] shaded specification in POSIX.
6246         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6247         (Depends-on): Add isnanl-nolibm.
6248
6249         trunc-ieee tests: More tests.
6250         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6251         (main): Add tests for [MX] shaded specification in POSIX.
6252         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6253         (Depends-on): Add isnand-nolibm.
6254
6255         truncf-ieee tests: More tests.
6256         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6257         (main): Add tests for [MX] shaded specification in POSIX.
6258         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6259         (Depends-on): Add isnanf-nolibm.
6260
6261         ceill-ieee tests: More tests.
6262         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6263         (main): Add tests for [MX] shaded specification in POSIX.
6264         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6265         (Depends-on): Add isnanl-nolibm.
6266
6267         ceil-ieee tests: More tests.
6268         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6269         (main): Add tests for [MX] shaded specification in POSIX.
6270         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6271         (Depends-on): Add isnand-nolibm.
6272
6273         ceilf-ieee tests: More tests.
6274         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6275         (main): Add tests for [MX] shaded specification in POSIX.
6276         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6277         (Depends-on): Add isnanf-nolibm.
6278
6279         floorl-ieee tests: More tests.
6280         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
6281         (main): Add tests for [MX] shaded specification in POSIX.
6282         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6283         (Depends-on): Add isnanl-nolibm.
6284
6285         floor-ieee tests: More tests.
6286         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
6287         (main): Add tests for [MX] shaded specification in POSIX.
6288         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6289         (Depends-on): Add isnand-nolibm.
6290
6291         floorf-ieee tests: More tests.
6292         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
6293         (main): Add tests for [MX] shaded specification in POSIX.
6294         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
6295         (Depends-on): Add isnanf-nolibm.
6296
6297 2012-02-26  Bruno Haible  <bruno@clisp.org>
6298
6299         fpieee: More comments.
6300         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
6301
6302 2012-02-25  Bruno Haible  <bruno@clisp.org>
6303
6304         Tests for module 'log10l'.
6305         * modules/log10l-tests: New file.
6306         * tests/test-log10l.c: New file.
6307         * tests/test-math-c++.cc: Check the declaration of log10l.
6308
6309         New module 'log10l'.
6310         * lib/math.in.h (log10l): New declaration.
6311         * lib/log10l.c: New file.
6312         * m4/log10l.m4: New file.
6313         * modules/log10l: New file.
6314         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
6315         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
6316         HAVE_DECL_LOG10L.
6317         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
6318         HAVE_DECL_LOG10L.
6319         * doc/posix-functions/log10l.texi: Mention the new module.
6320
6321 2012-02-25  Bruno Haible  <bruno@clisp.org>
6322
6323         fmodl, remainder*: Avoid wrong results due to rounding errors.
6324         * lib/fmodl.c (fmodl): Correct the result if it is not within the
6325         expected bounds.
6326         * lib/remainderf.c (remainderf): Likewise.
6327         * lib/remainder.c (remainder): Likewise.
6328         * lib/remainderl.c (remainderl): Likewise.
6329
6330 2012-02-25  Bruno Haible  <bruno@clisp.org>
6331
6332         Tests for module 'remainderl'.
6333         * modules/remainderl-tests: New file.
6334         * tests/test-remainderl.c: New file.
6335         * tests/test-math-c++.cc: Check the declaration of remainderl.
6336
6337         New module 'remainderl'.
6338         * lib/math.in.h (remainderl): New declaration.
6339         * lib/remainderl.c: New file.
6340         * m4/remainderl.m4: New file.
6341         * modules/remainderl: New file.
6342         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
6343         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
6344         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
6345         HAVE_REMAINDERL.
6346         * doc/posix-functions/remainderl.texi: Mention the new module.
6347
6348 2012-02-25  Bruno Haible  <bruno@clisp.org>
6349
6350         Tests for module 'remainderf'.
6351         * modules/remainderf-tests: New file.
6352         * tests/test-remainderf.c: New file.
6353         * tests/test-math-c++.cc: Check the declaration of remainderf.
6354
6355         New module 'remainderf'.
6356         * lib/math.in.h (remainderf): New declaration.
6357         * lib/remainderf.c: New file.
6358         * m4/remainderf.m4: New file.
6359         * modules/remainderf: New file.
6360         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
6361         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
6362         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
6363         HAVE_REMAINDERF.
6364         * doc/posix-functions/remainderf.texi: Mention the new module.
6365
6366 2012-02-25  Bruno Haible  <bruno@clisp.org>
6367
6368         remainder: Support for MSVC.
6369         * lib/math.in.h (remainder): New declaration.
6370         * lib/remainder.c: New file.
6371         * m4/remainder.m4: New file.
6372         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
6373         (Depends-on): Add math, round, fma.
6374         (configure.ac): Use results of gl_FUNC_REMAINDER.
6375         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
6376         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
6377         HAVE_DECL_REMAINDER.
6378         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
6379         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
6380         * tests/test-math-c++.cc: Check the declaration of remainder.
6381         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
6382         problems are fixed.
6383
6384 2012-02-25  Bruno Haible  <bruno@clisp.org>
6385
6386         Tests for module 'fmodl'.
6387         * modules/fmodl-tests: New file.
6388         * tests/test-fmodl.c: New file.
6389         * tests/test-math-c++.cc: Check the declaration of fmodl.
6390
6391         New module 'fmodl'.
6392         * lib/math.in.h (fmodl): New declaration.
6393         * lib/fmodl.c: New file.
6394         * m4/fmodl.m4: New file.
6395         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
6396         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
6397         REPLACE_FMODL.
6398         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
6399         REPLACE_FMODL.
6400         * modules/fmodl: New file.
6401         * doc/posix-functions/fmodl.texi: Mention the new module.
6402
6403 2012-02-25  Bruno Haible  <bruno@clisp.org>
6404
6405         Tests for module 'modfl'.
6406         * modules/modfl-tests: New file.
6407         * tests/test-modfl.c: New file.
6408         * tests/test-math-c++.cc: Check the declaration of modfl.
6409
6410         New module 'modfl'.
6411         * lib/math.in.h (modfl): New declaration.
6412         * lib/modfl.c: New file.
6413         * m4/modfl.m4: New file.
6414         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
6415         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
6416         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
6417         * modules/modfl: New file.
6418         * doc/posix-functions/modfl.texi: Mention the new module.
6419
6420 2012-02-25  Bruno Haible  <bruno@clisp.org>
6421
6422         Tests for module 'fabsl'.
6423         * modules/fabsl-tests: New file.
6424         * tests/test-fabsl.c: New file.
6425         * tests/test-math-c++.cc: Check the declaration of fabsl.
6426
6427         New module 'fabsl'.
6428         * lib/math.in.h (fabsl): New declaration.
6429         * lib/fabsl.c: New file.
6430         * m4/fabsl.m4: New file.
6431         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
6432         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
6433         REPLACE_FABSL.
6434         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
6435         REPLACE_FABSL.
6436         * modules/fabsl: New file.
6437         * doc/posix-functions/fabsl.texi: Mention the new module.
6438
6439 2012-02-25  Bruno Haible  <bruno@clisp.org>
6440
6441         fabs tests: More tests.
6442         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
6443         (zero): New variable.
6444         (main): Add tests for signed zero.
6445         * modules/fabs-tests (Files): Add tests/minus-zero.h.
6446
6447         fabsf tests: More tests.
6448         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
6449         (zero): New variable.
6450         (main): Add tests for signed zero.
6451         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
6452
6453 2012-02-24  Bruno Haible  <bruno@clisp.org>
6454
6455         atanl: Provide function definition on MSVC.
6456         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
6457         function pointer.
6458         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
6459
6460 2012-02-24  Bruno Haible  <bruno@clisp.org>
6461
6462         acosl: Provide function definition on MSVC.
6463         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
6464         function pointer.
6465         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
6466
6467 2012-02-24  Bruno Haible  <bruno@clisp.org>
6468
6469         asinl: Provide function definition on MSVC.
6470         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
6471         function pointer.
6472         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
6473
6474 2012-02-24  Bruno Haible  <bruno@clisp.org>
6475
6476         tanl: Provide function definition on MSVC.
6477         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
6478         function pointer.
6479         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
6480
6481 2012-02-24  Bruno Haible  <bruno@clisp.org>
6482
6483         cosl: Provide function definition on MSVC.
6484         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
6485         function pointer.
6486         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
6487
6488 2012-02-24  Bruno Haible  <bruno@clisp.org>
6489
6490         sinl: Provide function definition on MSVC.
6491         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
6492         function pointer.
6493         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
6494
6495 2012-02-24  Bruno Haible  <bruno@clisp.org>
6496
6497         logl: Provide function definition on MSVC.
6498         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
6499         function pointer.
6500         * lib/math.in.h (logl): Undefine if it does not exist as a function.
6501
6502 2012-02-24  Bruno Haible  <bruno@clisp.org>
6503
6504         expl: Provide function definition on MSVC.
6505         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
6506         function pointer.
6507         * lib/math.in.h (expl): Undefine if it does not exist as a function.
6508
6509 2012-02-24  Bruno Haible  <bruno@clisp.org>
6510
6511         sqrtl: Provide function definition on MSVC.
6512         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
6513         a function pointer.
6514         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
6515
6516 2012-02-24  Bruno Haible  <bruno@clisp.org>
6517
6518         ceill: Provide function definition on MSVC.
6519         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
6520         used as a function pointer.
6521         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
6522
6523 2012-02-24  Bruno Haible  <bruno@clisp.org>
6524
6525         floorl: Provide function definition on MSVC.
6526         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
6527         used as a function pointer.
6528         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
6529
6530 2012-02-24  Bruno Haible  <bruno@clisp.org>
6531
6532         ceilf: Provide function definition on MSVC.
6533         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
6534         used as a function pointer.
6535         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
6536
6537 2012-02-24  Bruno Haible  <bruno@clisp.org>
6538
6539         floorf: Provide function definition on MSVC.
6540         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
6541         used as a function pointer.
6542         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
6543
6544 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
6545
6546         stdnoreturn: new module
6547         This implements a replacement for C11's <stdnoreturn.h>.
6548         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
6549         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
6550         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
6551         * tests/test-stdnoreturn.c: New files.
6552
6553 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
6554
6555         regex: fix false multibyte matches in some regular expressions
6556         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
6557         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
6558         * lib/regex_internal.c (re_string_skip_chars):
6559         Fix miscomputation of remain_len that may cause incomplete
6560         multi-byte character and false match.
6561
6562 2012-02-24  Jim Meyering  <meyering@redhat.com>
6563
6564         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
6565         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
6566         uses with "==" *before* the call, e.g., 0 == strcmp (...)
6567         Remove now-unnecessary str''cmp obfuscation.
6568         Suggested by Akim Demaille.
6569
6570 2012-02-24  Bruno Haible  <bruno@clisp.org>
6571
6572         streq: Rename macro.
6573         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
6574         * NEWS: Mention the change.
6575         * lib/mbrtowc.c (mbrtowc): Update.
6576         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
6577         * lib/wcwidth.c (wcwidth): Update.
6578         Suggested by Akim Demaille and Jim Meyering.
6579
6580 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
6581
6582         regex: fix typo in definition of MIN
6583         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
6584         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
6585
6586 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
6587             Bruno Haible  <bruno@clisp.org>
6588
6589         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
6590         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
6591         entries into a stack-allocated buffer directly.
6592         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
6593
6594 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
6595             Bruno Haible  <bruno@clisp.org>
6596
6597         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
6598
6599          - There were several instances of this pattern:
6600
6601              for (;;) {
6602                n = acl (f, GETACLCNT, 0, NULL);
6603                [ allocate an array A of size N ]
6604                if (acl (f, GETACL, n, a) == n)
6605                  break;
6606              }
6607
6608            This loop might never terminate if some other process is constantly
6609            manipulating the file's ACL.  The loop should be rewritten to
6610            terminate.
6611
6612          - The acl (... GETACLNT ...) call is merely an optimization; its value
6613            is merely a hint as to how big to make the array.  A better
6614            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
6615            and just guess a reasonably-big size, growing the size and trying
6616            again if it's not large enough.  This guarantees termination, and
6617            saves a system call.
6618
6619         * lib/acl-internal.h: Include <limits.h>.
6620         (MIN, SIZE_MAX): New macros.
6621         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
6622         a stack-allocated buffer, and use malloc if it does not fit. Don't
6623         use GETACLCNT.
6624         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
6625
6626 2012-02-19  Bruno Haible  <bruno@clisp.org>
6627
6628         acl: Fix endless loop on Solaris with vxfs.
6629         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
6630         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
6631         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
6632         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
6633         * tests/test-sameacls.c (main)[Solaris]: Likewise.
6634         Reported by Bill Jones in
6635         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
6636
6637 2012-02-19  Bruno Haible  <bruno@clisp.org>
6638
6639         acl: Fix copy-acl test failure on Solaris 11 2011-11.
6640         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
6641         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
6642         that this function returns 0 in some more cases.
6643
6644 2012-02-19  Bruno Haible  <bruno@clisp.org>
6645
6646         acl: Update doc references.
6647         * doc/acl-resources.txt: Update links to Solaris documentation.
6648
6649 2012-02-19  Bruno Haible  <bruno@clisp.org>
6650
6651         Fix test failure in many locales on Solaris 11.
6652         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
6653         'tr' arguments.
6654         * tests/test-pipe-filter-ii1.c (main): Likewise.
6655         * build-aux/bootstrap (check_versions): Run 'tr' command with range
6656         expressions in the C locale.
6657         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
6658         * m4/host-os.m4 (gl_HOST_OS): Likewise.
6659
6660 2012-02-19  Bruno Haible  <bruno@clisp.org>
6661
6662         gnulib-tool: Improve usage message.
6663         * gnulib-tool (func_usage): Move doc of --help and --version to the
6664         section "Operation modes".
6665
6666 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
6667
6668         README-release: make it easier to execute commands
6669         * top/README-release: break commands out on to separate lines.
6670
6671 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
6672
6673         GNUmakefile: simplify detection of unconfigured trees
6674         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
6675         whether the tree make is being run from is already configured or
6676         not.  Related simplifications.
6677
6678 2012-02-13  Simon Josefsson  <simon@josefsson.org>
6679
6680         * gnulib-tool (func_usage): Document --help and --version.
6681
6682 2012-02-11  Jim Meyering  <meyering@redhat.com>
6683
6684         bootstrap: don't exit 0 upon gnulib-tool failure
6685         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
6686         its exit status, not 0.
6687
6688 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
6689
6690         README-release: various improvements
6691         * top/README-release: Give a command to push changes for the
6692         release.  Add "distcheck" to list of other pre-release checks.
6693         Fix instance of "make stable" which should be "make TYPE".
6694
6695 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
6696
6697         maint: replace FSF snail-mail addresses with URLs
6698         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
6699         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
6700         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
6701         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
6702         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
6703         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
6704         * lib/check-version.c, lib/check-version.h, lib/config.charset:
6705         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
6706         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
6707         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
6708         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
6709         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
6710         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
6711         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
6712         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
6713         * lib/glthread/thread.c, lib/glthread/thread.h:
6714         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
6715         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
6716         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
6717         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
6718         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
6719         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
6720         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
6721         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
6722         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
6723         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
6724         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
6725         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
6726         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
6727         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
6728         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
6729         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
6730         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
6731         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
6732         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
6733         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
6734         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
6735         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
6736         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
6737         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
6738         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
6739         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
6740         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
6741         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
6742         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
6743         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
6744         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
6745         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
6746         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
6747         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
6748         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
6749         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
6750         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
6751         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
6752         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
6753         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
6754         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
6755         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
6756         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
6757         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
6758         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
6759         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
6760         * tests/test-poll.c, tests/test-quotearg-simple.c:
6761         * tests/test-quotearg.c, tests/test-quotearg.h:
6762         * tests/test-round-ieee.c, tests/test-round1.c:
6763         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
6764         * tests/test-roundl-ieee.c, tests/test-roundl.c:
6765         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
6766         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
6767         * tests/test-strerror.c, tests/test-strerror_r.c:
6768         * tests/test-strsignal.c, tests/test-strverscmp.c:
6769         * tests/test-xmemdup0.c:
6770         Replace FSF snail mail addresses with URLs, as per GNU coding
6771         standards.  See glibc bug
6772         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
6773
6774 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
6775
6776         README-release: capitalize a word and split a line
6777         * top/README-release: Fix punctuation and spacing.
6778
6779 2012-02-08  Akim Demaille  <demaille@gostai.com>
6780
6781         fatal-signal: use C prototypes (with explicit void).
6782         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
6783         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
6784
6785 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
6786
6787         regex: spelling fix
6788         * lib/regexec.c: spelling fix
6789
6790         regex: rely on stdint.h for SIZE_MAX
6791         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
6792
6793 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
6794
6795         regex: merge glibc changes
6796
6797         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
6798         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
6799         (init_word_char): Work even if bitset words are not exactly 32 or
6800         64 bits wide.  Don't assume there are no padding bits.
6801         * lib/regex.c [_LIBC]: Do not include <config.h>.
6802         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
6803         and -Wtype-limits.
6804         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
6805         needless disagreement with glibc.  All uses changed.  Define it to
6806         1 only if _GNU_SOURCE, to match glibc.
6807         (_REG_RM_NAME): Remove; no longer needed, since the names in
6808         question are now all protected by __USE_GNU.
6809         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
6810         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
6811         * lib/regex_internal.h (MIN): New macro.
6812
6813         2012-01-03 Ulrich Drepper <drepper@gmail.com>
6814         * lib/regcomp.c (init_word_char): Optimize regex a bit.
6815
6816         2011-12-30 Jakub Jelinek <jakub@redhat.com>
6817         * lib/regex_internal.c (re_string_fetch_byte_case):
6818         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
6819         is miscompiled, and it turns out it is because of an incorrect
6820         attribute on re_string_fetch_byte_case.  Unlike
6821         re_string_peek_byte_case, this one is really not pure, it modifies
6822         memory (increments pstr->cur_idx), and with the pure attribute GCC
6823         assumed it doesn't and it cached the presumed value of
6824         regexp->cur_idx in a variable across the
6825          for (;; ++i)
6826            {
6827              if (i >= BRACKET_NAME_BUF_SIZE)
6828                return REG_EBRACK;
6829              if (token->type == OP_OPEN_CHAR_CLASS)
6830                ch = re_string_fetch_byte_case (regexp);
6831              else
6832                ch = re_string_fetch_byte (regexp);
6833              if (re_string_eoi(regexp))
6834                return REG_EBRACK;
6835              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
6836                break;
6837              elem->opr.name[i] = ch;
6838            }
6839
6840         2011-11-29 Andreas Schwab <schwab@redhat.com>
6841         * lib/regcomp.c (build_equiv_class):
6842         Fix access after end of search string in regex matcher.
6843
6844         2011-11-12 Ulrich Drepper <drepper@redhat.com>
6845         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
6846
6847         2011-10-12 Ulrich Drepper <drepper@redhat.com>
6848         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
6849
6850         2011-10-11 Ulrich Drepper <drepper@redhat.com>
6851         * lib/regcomp.c (parse_branch, parse_sub_exp):
6852         More regex memory leak fixes and tests.
6853         (parse_sub_exp, parse_bracket_exp):
6854         Fix memory leak for some invalid regular expressions.
6855
6856         2011-05-28 Ulrich Drepper <drepper@gmail.com>
6857         * lib/regex_internal.c, lib/regexec.c:
6858         Fix unnecessary overallocation due to incomplete character.  When
6859         incomplete characters are found at the end of a string the code
6860         ran amok and allocated lots of memory.  Stricter limits are now in
6861         place.
6862
6863         2011-05-20 Reuben Thomas <rrt@sc3d.org>
6864         * lib/regex.h: Update documentation.
6865
6866         2011-05-16 Aharon Robbins <arnold@skeeve.com>
6867         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
6868
6869         2010-05-05 Andreas Schwab <schwab@redhat.com>
6870         * lib/regexec.c (find_collation_sequence_value):
6871         Fix lookup of collation sequence value during regexp matching.
6872
6873         2010-01-22 Ulrich Drepper <drepper@redhat.com>
6874         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
6875
6876         2008-01-16 Ulrich Drepper <drepper@redhat.com>
6877         * lib/regex.h: Cleanup namespace.
6878
6879         2007-11-26 Ulrich Drepper <drepper@redhat.com>
6880         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
6881
6882         2007-08-26 Ulrich Drepper <drepper@redhat.com>
6883         * lib/regex_internal.h: Prevent some declarations and definitions
6884         to be seen when used in tests.
6885
6886         2005-05-06 Ulrich Drepper <drepper@redhat.com>
6887         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
6888         __libc_lock_* macros if not _LIBC.
6889         (struct re_dfa_t): Add lock.
6890
6891 2012-02-07  Eric Blake  <eblake@redhat.com>
6892
6893         maint.mk: also prohibit lower-case @var@
6894         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
6895         lower case, like @top_srcdir@.
6896
6897 2012-02-04  Eric Blake  <eblake@redhat.com>
6898
6899         canonicalize: avoid uninitialized memory use
6900         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
6901         random '/' left in dest.
6902         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
6903
6904 2012-02-04  Bruno Haible  <bruno@clisp.org>
6905
6906         isatty: Fix test failure of ptsname_r on native Windows.
6907         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
6908         and don't set errno.
6909         (isatty): Test first whether fd is valid. Set errno when returning 0.
6910
6911 2012-02-04  Bruno Haible  <bruno@clisp.org>
6912
6913         spawn-pipe tests: Fix a NULL program name in a diagnostic.
6914         * tests/test-spawn-pipe-main.c: Include progname.h.
6915         (main): Invoke set_program_name.
6916         * modules/spawn-pipe-tests (Depends-on): Add progname.
6917
6918         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
6919         * tests/test-nonblocking-socket-main.c: Include progname.h.
6920         (main): Invoke set_program_name.
6921         * modules/nonblocking-socket-tests (Depends-on): Add progname.
6922
6923         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
6924         * tests/test-nonblocking-pipe-main.c: Include progname.h.
6925         (main): Invoke set_program_name.
6926         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
6927
6928 2012-02-04  Eric Blake  <eblake@redhat.com>
6929
6930         canonicalize-lgpl: fix // handling
6931         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
6932
6933         canonicalize: fix // handling
6934         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
6935         /// to //, since only // is special.
6936
6937 2012-02-04  Bruno Haible  <bruno@clisp.org>
6938
6939         ioctl: Fix test failure on native Windows.
6940         * lib/ioctl.c: Include msvc-nothrow.h.
6941         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
6942
6943 2012-02-04  Bruno Haible  <bruno@clisp.org>
6944
6945         fsync: Avoid test failure on native Windows.
6946         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
6947         read-only.
6948
6949 2012-02-04  Bruno Haible  <bruno@clisp.org>
6950
6951         sys_select: Avoid syntax error on OpenBSD 5.0.
6952         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
6953         currently being included, just include the system's <sys/select.h>.
6954
6955 2012-02-04  Bruno Haible  <bruno@clisp.org>
6956
6957         sys_select: Avoid syntax error on OpenBSD 5.0.
6958         * lib/sys_select.in.h: Include <signal.h> only after the include_next
6959         <sys/select.h>, not before.
6960         Reported by Jiri B <jirib@devio.us>.
6961
6962 2012-02-04  Bruno Haible  <bruno@clisp.org>
6963
6964         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
6965         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
6966         global variables.
6967         * tests/test-get-rusage-data.c (main): Likewise.
6968         Reported by Jim Meyering.
6969
6970 2012-02-04  Bruno Haible  <bruno@clisp.org>
6971
6972         stdioext: Fix last commit.
6973         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
6974
6975 2012-02-03  Bruno Haible  <bruno@clisp.org>
6976
6977         stdioext: Add tentative support for Plan9.
6978         * lib/stdio-impl.h: Include <errno.h>.
6979         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
6980         * lib/freadable.c (freadable): Likewise.
6981         * lib/fwritable.c (fwritable): Likewise.
6982         * lib/fbufmode.c (fbufmode): Likewise.
6983         * lib/freading.c (freading): Likewise.
6984         * lib/fwriting.c (fwriting): Likewise.
6985         * lib/freadptr.c (freadptr): Likewise.
6986         * lib/freadseek.c (freadptrinc): Likewise.
6987         * lib/freadahead.c (freadahead): Likewise.
6988         * lib/fpurge.c (fpurge): Likewise.
6989         * lib/fseeko.c (rpl_fseeko): Likewise.
6990         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
6991         Reported by Jens Staal <staal1978@gmail.com>.
6992
6993 2012-02-02  Jim Meyering  <meyering@redhat.com>
6994
6995         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
6996         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
6997         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
6998         not even to try to add the attribute.  Instead, add a pragma to suppress
6999         the suggestion/warning.
7000
7001 2012-01-31  Karl Berry  <karl@gnu.org>
7002
7003         setstate doc: typo.
7004         * doc/posix-functions/setstate.texi (setstate): { not (.
7005
7006 2012-01-31  Bruno Haible  <bruno@clisp.org>
7007
7008         popen: Make more robust on Windows.
7009         * lib/popen.c: On native Windows, use the _popen based code even if
7010         HAVE_POPEN is set.
7011         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
7012         environment variable on native Windows.
7013
7014 2012-01-30  Bruno Haible  <bruno@clisp.org>
7015
7016         pclose: Fix typo.
7017         * lib/stdio.in.h (pclose): Fix typo in warning message.
7018
7019 2012-01-30  Bruno Haible  <bruno@clisp.org>
7020
7021         doc about getlogin_r, setstate.
7022         * doc/posix-functions/getlogin_r.texi: List the incompatible
7023         declaration problem under "not fixed by gnulib".
7024         * doc/posix-functions/setstate.texi: Mention incompatible declaration
7025         problem on Solaris 11 and other platforms.
7026
7027 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
7028             Bruno Haible  <bruno@clisp.org>
7029
7030         poll tests: Make test more robust.
7031         * tests/test-poll.c: Include macros.h.
7032         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
7033         return value of various I/O operations.
7034         * modules/poll-tests (Files): Add tests/macros.h.
7035
7036 2012-01-30  Bruno Haible  <bruno@clisp.org>
7037
7038         sys_stat: Fix support for mingw64 and MSVC.
7039         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
7040         header files already do it.
7041         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
7042         stat itself.
7043         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
7044
7045 2012-01-30  Bruno Haible  <bruno@clisp.org>
7046
7047         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
7048         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
7049         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
7050
7051 2012-01-29  Bruno Haible  <bruno@clisp.org>
7052
7053         quotearg: Fix test failure on MacOS X 10.5.
7054         * tests/test-quotearg-simple.c: Include localcharset.h.
7055         (main): If the locale encoding is not ASCII, bypass the tests of
7056         locale_quoting_style and clocale_quoting_style.
7057         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
7058
7059 2012-01-29  Jim Meyering  <meyering@redhat.com>
7060
7061         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
7062         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
7063         detect uses of canonicalize_file_name.
7064
7065 2012-01-28  Bruno Haible  <bruno@clisp.org>
7066
7067         test-framework-sh: Fix test failure with AIX 7.1 diff.
7068         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
7069         in column 1, like 'diff -c' does.
7070         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
7071         whether 'diff -u' is used. Instead, test whether the output contains
7072         some '@' character.
7073
7074 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
7075
7076         strtoimax: eliminate need for stdint.h, inttypes.h checks
7077         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
7078         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
7079         the prerequisites for a recently-introduced strtoimax test.
7080         I guess this might cause strtoimax to be replaced when not
7081         strictly necessary on older hosts, but this shouldn't introduce
7082         any bugs and it should make Emacs 'configure' faster on typical
7083         modern hosts.  Problem discovered when importing the latest gnulib
7084         to an Emacs test version.
7085         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
7086
7087 2012-01-28  Bruno Haible  <bruno@clisp.org>
7088
7089         sys_time: Override 'struct timeval' on some native Windows platforms.
7090         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
7091         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
7092         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
7093         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
7094         needs to be overridden.
7095         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
7096         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
7097         * tests/test-sys_select.c: Check that the tv_sec member has the same
7098         size as a 'time_t'.
7099         * tests/test-sys_time.c: Likewise.
7100         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
7101         is set, set also REPLACE_GETTIMEOFDAY.
7102         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
7103         convert the resulting 'struct timeval' before returning.
7104         * lib/select.c: Include <sys/time.h>.
7105         (select, timeval): Undefine at the right place.
7106         * modules/select (Depends-on): Add sys_time.
7107         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
7108         some Windows platforms.
7109         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
7110
7111 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7112
7113         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
7114         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
7115         an integer.
7116         * lib/fcntl.c (dupfd): Likewise.
7117         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
7118
7119 2012-01-28  Bruno Haible  <bruno@clisp.org>
7120
7121         fcntl: Avoid compilation error on native Windows.
7122         * modules/fcntl (Depends-on): Add 'close'.
7123
7124 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7125
7126         select, poll, isatty: Avoid warnings on x86_64 mingw64.
7127         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
7128         pointer to an integer.
7129         * lib/poll.c (IsConsoleHandle): Likewise.
7130         * lib/isatty.c (IsConsoleHandle): Likewise.
7131
7132 2012-01-28  Jim Meyering  <meyering@redhat.com>
7133
7134         doc: clarify README-release
7135         * top/README-release: Clarify: you should make a point to have
7136         the latest stable versions of build tools in your PATH, and the
7137         reference to buildreq is solely for its list of tool names, not
7138         for its minimal-functional version numbers.
7139         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
7140
7141         maint.mk: use more readable (yet functionally equivalent) quoting
7142         It is common to quote a single quote in a single quoted string like
7143         this:  '...'\''...'.  Unless you know the idiom, that looks like
7144         gibberish, so prefer to double-quote the string when possible.
7145         Then you can use a more readable, lone single quote: "...'..."
7146         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
7147         "don't" is more readable than the equivalent 'don'\''t'.
7148         (sc_cast_of_x_alloc_return_value): Likewise.
7149         (sc_cast_of_alloca_return_value): Likewise.
7150         (sc_makefile_path_separator_check): Similar: use ":" in '...',
7151         rather than '\'':'\''.
7152
7153 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
7154
7155         stdalign: relax _Alignof and tighten _Alignas test
7156         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
7157         as it was too strict: alignof must divide offsetof, but it need
7158         not equal offsetof.  Inspired by Joseph S. Myers's comment
7159         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
7160         Conversely, tighten the _Alignas test a bit, as the resulting
7161         alignment must be exactly 8.
7162
7163 2012-01-27  Bruno Haible  <bruno@clisp.org>
7164
7165         stdalign: Document the last change.
7166         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
7167
7168 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
7169
7170         stdalign: check that alignof and offsetof are consistent
7171         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
7172         Problem reported for gnulib by Richard W.M. Jones in
7173         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
7174
7175 2012-01-27  Jim Meyering  <meyering@redhat.com>
7176
7177         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
7178         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
7179         convert a sequence with gaps to the minimal containing range.
7180         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
7181         * tests/test-update-copyright.sh: Test for this.
7182         The FSF confirmed it is ok to do this, assuming there is at
7183         least one significant change per year in the affected range:
7184         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
7185
7186 2012-01-26  Bruno Haible  <bruno@clisp.org>
7187
7188         pipe2: refine doc about thread-safety
7189         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
7190         multithread-safety problem.
7191         * doc/glibc-functions/accept4.texi: Likewise.
7192
7193 2012-01-26  Bruno Haible  <bruno@clisp.org>
7194
7195         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
7196         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
7197         In the test program, include <fcntl.h>, for O_RDONLY.
7198
7199 2012-01-26  Eric Blake  <eblake@redhat.com>
7200
7201         pipe2: document lack of thread-safety in replacement
7202         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
7203         issue in replacement.
7204         * doc/glibc-functions/accept4.texi (accept4): Likewise.
7205         Based on a report by Eric Wong.
7206
7207 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
7208             Bruno Haible  <bruno@clisp.org>
7209
7210         malloca: Avoid warnings on x86_64 mingw64.
7211         * lib/malloca.c: Include <stdint.h>.
7212         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
7213         * modules/malloca (Depends-on): Add stdint.
7214         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
7215
7216 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
7217
7218         obstack: remove __STDC__ conditionals
7219         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
7220         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
7221         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
7222         m4/include_next.m4 as the only gnulib-maintained places that still
7223         refer to __STDC__.
7224
7225 2012-01-24  Bruno Haible  <bruno@clisp.org>
7226
7227         havelib: Modern quoting.
7228         * build-aux/config.rpath: Quote 'like this', not `like this', as per
7229         the recent change to the GNU coding standards.
7230
7231 2012-01-24  Bruno Haible  <bruno@clisp.org>
7232
7233         stdint: Improve support for Android.
7234         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
7235         Reported by Simon Josefsson <simon@josefsson.org>.
7236
7237 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
7238
7239         doc: omit trailing empty lines from INSTALL etc.
7240         * doc/Makefile (INSTALL): Omit trailing empty lines.
7241         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
7242         omit trailing empty lines.  This simplifies the build procedure.
7243
7244 2012-01-23  Jim Meyering  <meyering@redhat.com>
7245
7246         tests: avoid spurious warnings about gl_sockets_startup
7247         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
7248         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
7249         reporting a "statement with no effect".
7250         * tests/test-accept.c (main): Mark as "(void)".
7251         * tests/test-accept4.c (main): Likewise.
7252         * tests/test-bind.c (main): Likewise.
7253         * tests/test-connect.c (main): Likewise.
7254         * tests/test-getpeername.c (main): Likewise.
7255         * tests/test-getsockname.c (main): Likewise.
7256         * tests/test-getsockopt.c (main): Likewise.
7257         * tests/test-listen.c (main): Likewise.
7258         * tests/test-recv.c (main): Likewise.
7259         * tests/test-recvfrom.c (main): Likewise.
7260         * tests/test-send.c (main): Likewise.
7261         * tests/test-sendto.c (main): Likewise.
7262         * tests/test-setsockopt.c (main): Likewise.
7263         * tests/test-shutdown.c (main): Likewise.
7264
7265 2012-01-21  Bruno Haible  <bruno@clisp.org>
7266
7267         locale-fr.m4: Fix for Android.
7268         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
7269         failure of the test program on Bionic libc.
7270
7271 2012-01-21  Jim Meyering  <meyering@redhat.com>
7272
7273         bootstrap: fail when bootstrap_post_import_hook fails
7274         Otherwise, it's far too easy to miss diagnostics emitted
7275         between gnulib-tool's output and that of running configure.
7276         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
7277
7278 2012-01-17  Jim Meyering  <meyering@redhat.com>
7279
7280         maint: enable sc_trailing_blank
7281         * build-aux/pmccabe.css: Remove trailing blanks.
7282         * doc/acl-cygwin.txt: Likewise.
7283         * doc/gnu-oids.texi: Likewise
7284         * cfg.mk: Enable sc_trailing_blank.
7285         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
7286
7287 2012-01-17  Jim Meyering  <meyering@redhat.com>
7288
7289         maint: enable sc_prohibit_openat_without_use
7290         * cfg.mk: Enable sc_prohibit_openat_without_use.
7291         Exempt lib/selinux-at.c.
7292
7293 2012-01-17  Jim Meyering  <meyering@redhat.com>
7294
7295         maint: enable sc_prohibit_cloexec_without_use
7296         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
7297         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
7298
7299 2012-01-17  Jim Meyering  <meyering@redhat.com>
7300
7301         maint: enable sc_prohibit_intprops_without_use
7302         * cfg.mk: Enable sc_prohibit_intprops_without_use
7303         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
7304
7305 2012-01-17  Jim Meyering  <meyering@redhat.com>
7306
7307         maint: enable sc_prohibit_hash_pjw_without_use
7308         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
7309         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
7310         to match any use of \<hash_pjw\>, i.e., not necessarily with a
7311         following " (".
7312
7313 2012-01-17  Jim Meyering  <meyering@redhat.com>
7314
7315         maint: enable double-word-prohibiting rule
7316         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
7317         Exempt three files.
7318
7319 2012-01-17  Jim Meyering  <meyering@redhat.com>
7320
7321         maint: remove empty lines at EOF, but excluding modules/*
7322         Apply syntax rules at home as well as abroad.  Most changes
7323         were induced by running this:
7324           make srcdir=. _build-aux=build-aux -f top/maint.mk \
7325             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
7326             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
7327         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
7328         Exempt modules/* and two binary files.
7329         Also exempt doc/INSTALL*, per request from Bruno Haible.
7330         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
7331         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
7332         * doc/Copyright/request-assign.future: Likewise.
7333         * doc/Copyright/request-disclaim.changes: Likewise.
7334         * doc/INSTALL: Likewise.
7335         * doc/INSTALL.ISO: Likewise.
7336         * doc/INSTALL.UTF-8: Likewise.
7337         * doc/acl-cygwin.txt: Likewise.
7338         * doc/acl-resources.txt: Likewise.
7339         * doc/fdl-1.2.texi: Likewise.
7340         * doc/fdl-1.3.texi: Likewise.
7341         * doc/fdl.texi: Likewise.
7342         * lib/argp-pin.c: Likewise.
7343         * lib/round.c: Likewise.
7344         * lib/unicase/u16-totitle.c: Likewise.
7345         * lib/unictype/block_test.c: Likewise.
7346         * lib/uninorm/canonical-decomposition.c: Likewise.
7347         * m4/README: Likewise.
7348         * m4/relocatable-lib.m4: Likewise.
7349         * tests/test-isnand-nolibm.c: Likewise.
7350         * tests/test-isnand.c: Likewise.
7351         * tests/uninorm/NormalizationTest.txt: Likewise.
7352
7353 2012-01-17  Jim Meyering  <meyering@redhat.com>
7354
7355         maint: add framework to run syntax-check rules against gnulib sources
7356         * cfg.mk: New file, to disable all currently-failing tests.
7357         We'll enable them one by one, as they are made to pass.
7358         * Makefile (sc_maint): New rule.
7359
7360 2012-01-21  Bruno Haible  <bruno@clisp.org>
7361
7362         stdint: Add support for Android.
7363         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
7364         include the system's <stdint.h>.
7365         Reported by Simon Josefsson <simon@josefsson.org>.
7366
7367 2012-01-19  Jim Meyering  <meyering@redhat.com>
7368
7369         bootstrap: add bootstrap_post_import_hook
7370         Bison does still need something like the gnulib_mk_hook whose
7371         invocation I had to remove along with slurp in commit 767ccd40.
7372         Technically, we could get along without it, but doing so would
7373         have required living with a warning and a mandatory post-bootstrap
7374         automake rerun.
7375         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
7376         (bootstrap_post_import_hook): New function.
7377         Invoke it after gnulib-tool --import and before autoreconf.
7378
7379 2012-01-18  Jim Meyering  <meyering@redhat.com>
7380
7381         gitlog-to-changelog: don't use "no_"-prefixed variable name
7382         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
7383         to enable both --cluster and --no-cluster.  Change variable name,
7384         s/\$no_cluster/$cluster/, and reverse usage to match.
7385
7386         gitlog-to-changelog: use "||", not "or" in expressions
7387         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
7388         expressions.
7389
7390 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
7391
7392         gitlog-to-changelog: new option --no-cluster
7393         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
7394         clustering of adjacent commit messages.
7395
7396 2012-01-17  Jim Meyering  <meyering@redhat.com>
7397
7398         maint: spell file systems with two words, not one
7399         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
7400         two words, not one.
7401
7402 2012-01-16  Jim Meyering  <meyering@redhat.com>
7403
7404         bootstrap: add a FIXME comment to ensure we eventually remove the hack
7405         * build-aux/bootstrap (gnulib_tool_options): Add comment.
7406
7407 2012-01-16  Eric Blake  <eblake@redhat.com>
7408
7409         bootstrap: cater to autoconf 2.59
7410         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
7411         is not available.
7412
7413         bootstrap: properly check for libtool
7414         * build-aux/bootstrap (libtoolize): Also run libtool when older
7415         usage is detected.
7416
7417 2012-01-15  Bruno Haible  <bruno@clisp.org>
7418
7419         Improve support for MSVC 9.
7420         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
7421         clashes on MSVC.
7422         * lib/fcntl.in.h: Likewise.
7423         * lib/stdlib.in.h: Likewise.
7424         * lib/sys_stat.in.h: Likewise.
7425
7426 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
7427
7428         gnupload: we hold the master copy of this script now
7429         For motivation and more information, see:
7430         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
7431         * build-aux/gnupload: Make it clear in the heading comments that the
7432         master copy of this file is maintained by gnulib.  Since we are at
7433         it, bump its copyright year and ...
7434         ($scriptversion): ... the date in its version.
7435         ($usage): Patches and bug reports should be sent to the gnulib list,
7436         not the automake one.
7437         * config/srclist.txt: Don't try to sync 'gnupload' from automake
7438         anymore.
7439
7440 2012-01-15  Bruno Haible  <bruno@clisp.org>
7441
7442         Fix module 'random'.
7443         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
7444         initstate, setstate are declared.
7445
7446 2012-01-14  Bruno Haible  <bruno@clisp.org>
7447
7448         Tests for module 'random'.
7449         * modules/random-tests: New file.
7450         * tests/test-random.c: New file, based on tests/test-random_r.c.
7451
7452         New module 'random'.
7453         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
7454         declarations.
7455         * lib/random.c: New file, based on glibc/stdlib/random.c.
7456         * m4/random.m4: New file.
7457         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
7458         HAVE_RANDOM.
7459         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
7460         * modules/random: New file.
7461         * config/srclist.txt: Add an entry for random.c.
7462         * doc/posix-functions/random.texi: Mention the 'random' module.
7463         * doc/posix-functions/initstate.texi: Likewise.
7464         * doc/posix-functions/setstate.texi: Likewise.
7465         * doc/posix-functions/srandom.texi: Likewise.
7466
7467 2012-01-12  Bruno Haible  <bruno@clisp.org>
7468
7469         random_r: Use common idioms.
7470         * lib/random_r.c: Include <stdlib.h> first.
7471
7472         random_r: Override incompatible API on AIX, OSF/1.
7473         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
7474         Override the system function if REPLACE_RANDOM_R is 1.
7475         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
7476         and OSF/1, set REPLACE_RANDOM_R.
7477         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
7478         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
7479         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
7480         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
7481         * doc/glibc-functions/random_r.texi: Likewise.
7482         * doc/glibc-functions/setstate_r.texi: Likewise.
7483
7484         random_r: Support for MSVC 9.
7485         * lib/random_r.c: Include stdint.h, not inttypes.h.
7486
7487 2012-01-12  Eric Blake  <eblake@redhat.com>
7488
7489         inet_ntop: guard extra work by IF_LINT
7490         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
7491         better code generation when not checking for warnings.
7492         Suggested by Paul Eggert and Jim Meyering.
7493
7494         strptime: fix regression on mingw
7495         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
7496         Fix regression.  Reported by Bruno Haible.
7497
7498 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
7499             Bruno Haible  <bruno@clisp.org>
7500
7501         copy-file: add error-code-returning variant.
7502         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
7503         (qcopy_file_preserving): New declaration.
7504         * lib/copy-file.c (qcopy_file_preserving): Renamed from
7505         copy_file_preserving. Change return type to 'int'. Don't emit an error
7506         message here.
7507         (copy_file_preserving): New function.
7508         * tests/test-copy-file.c: Include <stdlib.h>.
7509         (main): Test qcopy_file_preserving if the environment variable
7510         NO_STDERR_OUTPUT is set.
7511         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
7512         with NO_STDERR_OUTPUT
7513         * tests/test-copy-file-2.sh: Likewise.
7514
7515 2012-01-10  Bruno Haible  <bruno@clisp.org>
7516
7517         copy-file: Use 'quote' module consistently.
7518         * lib/copy-file.c (copy_file_preserving): Use quote().
7519
7520         copy-file: Refactor.
7521         * lib/copy-file.c: Include quote.h.
7522         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
7523         message here.
7524         * modules/copy-file (Depends-on): Add quote.
7525
7526         acl: Export qcopy_acl.
7527         * lib/acl.h (qcopy_acl): New declaration.
7528         * lib/copy-acl.c (qcopy_acl): Make non-static.
7529
7530         acl: Rename a local variable.
7531         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
7532
7533         acl: Align return values of copy_acl and qcopy_acl.
7534         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
7535         maybe < -1.
7536
7537 2012-01-11  Eric Blake  <eblake@redhat.com>
7538
7539         strptime: silence gcc warnings
7540         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
7541         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
7542         Reported by Daniel P. Berrange.
7543
7544         inet_ntop: silence gcc warning
7545         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
7546         Reported by Daniel P. Berrange.
7547
7548 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
7549
7550         getloadavg test: skip the test on GNU/Linux without /proc mounted
7551         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
7552         file.  When /proc is not mounted, it always fails with ENOENT.
7553         * tests/test-getloadavg.c (main): Treat ENOENT return code from
7554         getloadavg(3) the same way as ENOSYS and ENOTSUP.
7555
7556 2012-01-10  Bruno Haible  <bruno@clisp.org>
7557
7558         regex: Avoid link error on MSVC 9.
7559         * modules/regex (Depends-on): Add wctype.
7560
7561 2012-01-10  Bruno Haible  <bruno@clisp.org>
7562
7563         doc: Mention --with-tests option.
7564         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
7565         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
7566         --with-tests.
7567         Reported by Reuben Thomas.
7568
7569 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
7570
7571         users.txt: order package names lexicographically.
7572         * users.txt: Order package names lexicographically.
7573
7574 2012-01-10  Jim Meyering  <meyering@redhat.com>
7575
7576         maint.mk: fix description in comment
7577         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
7578
7579         ignore-value: remove deprecated ignore_ptr function
7580         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
7581         * NEWS: Note this.
7582
7583 2012-01-09  Jim Meyering  <meyering@redhat.com>
7584
7585         test-init.sh: avoid a subshell
7586         * tests/test-init.sh: Remove protective subshell.
7587         Suggested by Bernhard Voelker.  While a subshell is normally
7588         required to protect against older shells (Solaris, FreeBSD) that
7589         warn about a missing program before performing redirection, the
7590         shell-selection tests performed by init.sh probably exclude any
7591         offending shell.
7592
7593 2012-01-08  Bruno Haible  <bruno@clisp.org>
7594
7595         setlocale tests: Avoid test failure on Solaris 11 2011-11.
7596         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
7597         variable.
7598
7599 2012-01-08  Bruno Haible  <bruno@clisp.org>
7600
7601         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
7602         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7603         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
7604         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
7605         macro.
7606         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
7607         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
7608         * lib/spawn_faction_addopen.c: Add workaround implementation if
7609         HAVE_WORKING_POSIX_SPAWN.
7610         * modules/spawn (Makefile): Substitute
7611         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
7612         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
7613         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
7614         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
7615         (Depends-on): Update conditions.
7616         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
7617         the Solaris 11 bug.
7618
7619 2012-01-08  Bruno Haible  <bruno@clisp.org>
7620
7621         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
7622         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7623         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
7624         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
7625         macro.
7626         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
7627         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
7628         * lib/spawn_faction_adddup2.c: Add workaround implementation if
7629         HAVE_WORKING_POSIX_SPAWN.
7630         * modules/spawn (Makefile): Substitute
7631         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
7632         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
7633         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
7634         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
7635         (Depends-on): Update conditions.
7636         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
7637         the Solaris 11 bug.
7638
7639 2012-01-08  Bruno Haible  <bruno@clisp.org>
7640
7641         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
7642         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
7643         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
7644         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
7645         HAVE_WORKING_POSIX_SPAWN.
7646         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
7647         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
7648         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
7649         * lib/spawn_faction_addclose.c: Add workaround implementation if
7650         HAVE_WORKING_POSIX_SPAWN.
7651         * modules/spawn (Makefile): Substitute
7652         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
7653         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
7654         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
7655         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
7656         (Depends-on): Update conditions.
7657         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
7658         the Solaris 11 bug.
7659
7660 2012-01-08  Bruno Haible  <bruno@clisp.org>
7661
7662         doc: Update for Solaris 11 2011-11.
7663         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
7664         * m4/printf.m4: Update comments.
7665
7666 2012-01-08  Bruno Haible  <bruno@clisp.org>
7667
7668         mktime: Avoid compilation error on Solaris 11.
7669         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
7670
7671 2012-01-08  Bruno Haible  <bruno@clisp.org>
7672
7673         doc: Small fix.
7674         * doc/posix-headers/nl_types.texi: Correct platforms list.
7675
7676 2012-01-08  Simon Josefsson  <simon@josefsson.org>
7677
7678         Add lgpl-3.0 module.
7679         * MODULES.html.sh (Support for building documentation): Add
7680         lgpl-3.0.
7681         * modules/lgpl-3.0: New file.
7682
7683 2012-01-08  Jim Meyering  <meyering@redhat.com>
7684
7685         select.c: indent with spaces, not TABs
7686         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
7687
7688 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7689
7690         quotearg: do not use grave accent for left quote
7691         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
7692         locale_quoting_style.
7693         (quotearg_buffer_restyled): Fix example.
7694         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
7695
7696 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7697
7698         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
7699         Most programs do not have translation catalogs for English and much
7700         less separate catalogs for British and American English.  Drop the
7701         suggestion to translators about these two, and provide it
7702         automatically for Unicode locales.  Like most programs, even those
7703         using American English, we use single quotation marks.  This conflicts
7704         with the American typographic convention, but works better when you
7705         cite the entire error message within double quotes.  It also tries not
7706         to clash with established practice and with what non-gnulib programs
7707         will usually do.
7708         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
7709         using an UTF-8 or GB-18030 locale.  The list of other locales with
7710         quotes was provided by Bruno Haible.
7711         (quotearg_buffer_restyled): Adjust instructions to translators.
7712         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
7713         text, since this would be wrong when using Unicode.
7714         * modules/quotearg: Depend on c-strcaseeq.
7715
7716 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
7717
7718         quotearg: fix Wikipedia link
7719         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
7720
7721 2012-01-07  Simon Josefsson  <simon@josefsson.org>
7722
7723         Fix for mingw with MSVC9.
7724         * m4/ld-version-script.m4: Check that compiler rejects version
7725         scripts with syntax errors.  Reported by Bruno Haible
7726         <bruno@clisp.org>.
7727
7728 2012-01-06  Bruno Haible  <bruno@clisp.org>
7729
7730         Talk about "native Windows API", not "Woe32".
7731         * lib/accept4.c: Update comments to mention native Windows.
7732         * lib/execute.c: Likewise.
7733         * lib/fatal-signal.c: Likewise.
7734         * lib/localcharset.c: Likewise.
7735         * lib/nanosleep.c: Likewise.
7736         * lib/nl_langinfo.c: Likewise.
7737         * lib/pclose.c: Likewise.
7738         * lib/pipe-filter-gi.c: Likewise.
7739         * lib/pipe-filter-ii.c: Likewise.
7740         * lib/pipe.c: Likewise.
7741         * lib/pipe2.c: Likewise.
7742         * lib/popen.c: Likewise.
7743         * lib/progreloc.c: Likewise.
7744         * lib/relocatable.c: Likewise.
7745         * lib/sigaction.c: Likewise.
7746         * lib/sigprocmask.c: Likewise.
7747         * lib/spawn-pipe.h: Likewise.
7748         * lib/spawn-pipe.c: Likewise.
7749         * lib/spawni.c: Likewise.
7750         * lib/stat-time.h: Likewise.
7751         * lib/w32spawn.h: Likewise.
7752         * tests/test-isatty.c: Likewise.
7753         * lib/config.charset: More comments.
7754         * doc/gnulib-intro.texi: Mention native Windows.
7755         * doc/posix-functions/_Exit_C99.texi: Likewise.
7756         * doc/posix-headers/fcntl.texi: Likewise.
7757
7758 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
7759
7760         argp: Avoid crash if translator uses % characters in a translation.
7761         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
7762         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
7763
7764 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
7765
7766         doc: C11 and C++11 are now official
7767         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
7768         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
7769         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
7770         * modules/stdalign:
7771         Replace references to draft C1X to C11, and to draft C++0X to C++11.
7772
7773 2012-01-06  Bruno Haible  <bruno@clisp.org>
7774
7775         uc-is-grapheme-break tests: Tweak.
7776         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
7777         message.
7778
7779 2012-01-06  Bruno Haible  <bruno@clisp.org>
7780
7781         test-init.sh: correct the test for diff -u
7782         * tests/test-init.sh: Also redirect stdout to /dev/null.
7783
7784 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
7785
7786         Use ', not `, for quoting output.
7787         * build-aux/announce-gen (usage, sizes, print_news_deltas)
7788         (print_changelog_deltas, get_tool_versions, main program):
7789         * build-aux/git-version-gen:
7790         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
7791         * build-aux/move-if-change (help):
7792         * build-aux/useless-if-before-free (usage, main program):
7793         * check-module (parse_module_file, usage)
7794         (find_included_lib_files, check_module):
7795         * lib/argmatch.c (main) [TEST]:
7796         * lib/argp-help.c (_help):
7797         * lib/getopt1.c (main) [TEST]:
7798         * lib/git-merge-changelog.c (usage):
7799         * lib/xstrtol-error.c (xstrtol_error):
7800         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
7801         * m4/argz.m4 (gl_FUNC_ARGZ):
7802         * m4/bison.m4 (gl_BISON):
7803         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
7804         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
7805         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
7806         * m4/fpending.m4 (gl_PREREQ_FPENDING):
7807         * m4/gc-random.m4 (gl_GC_RANDOM):
7808         * m4/intl.m4 (gt_CHECK_DECL):
7809         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
7810         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
7811         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
7812         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
7813         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
7814         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
7815         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
7816         * tests/test-dirname.c (main):
7817         * tests/test-getpass.c (main):
7818         * tests/test-iconvme.c (main):
7819         * tests/test-parse-datetime.c (LOG):
7820         * tests/test-xstrtoimax.sh:
7821         * tests/test-xstrtol.sh:
7822         * tests/test-xstrtoll.sh:
7823         * tests/test-xstrtoumax.sh:
7824         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
7825         * top/GNUmakefile (abort-due-to-no-makefile):
7826         Quote 'like this', not `like this', as per the recent change to
7827         the GNU coding standards.
7828
7829 2012-01-05  Bruno Haible  <bruno@clisp.org>
7830
7831         strtoimax: Don't force a replacement on systems where intmax_t is int.
7832         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
7833         'intmax_t' is not larger than 'int'.
7834         Reported by Pádraig Brady <P@draigBrady.com>.
7835
7836 2012-01-05  Bruno Haible  <bruno@clisp.org>
7837
7838         doc: Mention NetBSD bugs.
7839         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
7840         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
7841
7842 2012-01-05  Bruno Haible  <bruno@clisp.org>
7843
7844         strtoumax tests: Enhance tests.
7845         * tests/test-strtoumax.c (main): Add tests for large values.
7846
7847 2012-01-05  Bruno Haible  <bruno@clisp.org>
7848
7849         strtoimax: Work around AIX 5.1 bug.
7850         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
7851         definition.
7852         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
7853         Set HAVE_STRTOIMAX.
7854         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
7855         REPLACE_STRTOIMAX.
7856         * modules/inttypes-incomplete (Makefile.am): Substitute
7857         REPLACE_STRTOIMAX.
7858         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
7859         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
7860         (Depends-on): Update conditions.
7861         * tests/test-strtoimax.c (main): Add tests for large values.
7862         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
7863
7864 2012-01-05  Bruno Haible  <bruno@clisp.org>
7865
7866         inttypes: Modernize.
7867         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
7868         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
7869         (Makefile.am): Update inttypes.h rule.
7870
7871 2012-01-05  Jim Meyering  <meyering@redhat.com>
7872
7873         init.sh: don't waste a subshell just to redirect stderr
7874         * tests/init.sh: In testing for diff -u and diff -c, use a
7875         stderr-redirecting exec inside `...` rather than a subshell.
7876
7877         test-init.sh: avoid failure on HP-UX 11.00
7878         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
7879         resolves to diff -c or cmp.  Reported by Bruno Haible.
7880
7881 2012-01-05  Bruno Haible  <bruno@clisp.org>
7882
7883         Tests for module 'strtoull'.
7884         * modules/strtoull-tests: New file.
7885         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
7886
7887 2012-01-05  Bruno Haible  <bruno@clisp.org>
7888
7889         Tests for module 'strtoll'.
7890         * modules/strtoll-tests: New file.
7891         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
7892
7893 2012-01-05  Bruno Haible  <bruno@clisp.org>
7894
7895         Tests for module 'strtoul'.
7896         * modules/strtoul-tests: New file.
7897         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
7898
7899 2012-01-05  Bruno Haible  <bruno@clisp.org>
7900
7901         Tests for module 'strtol'.
7902         * modules/strtol-tests: New file.
7903         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
7904
7905 2012-01-04  Jim Meyering  <meyering@redhat.com>
7906
7907         test-init.sh: accommodate Solaris 5.10's different diff -u output
7908         * tests/test-init.sh: Also exempt @@ lines from the comparison
7909         of diff output, since Solaris 5.10 and GNU diff formats differ.
7910         Reported by Stefano Lattarini.
7911
7912 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
7913
7914         test-posixtm: don't assume signed integer wraparound
7915         * tests/test-posixtm.c (main): Don't assume wraparound semantics
7916         after signed integer overflow.  Inspired by (though it may not
7917         fix) Bruno Haible's bug report in
7918         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
7919
7920         Spell out "Windows 9x" and "Windows XP".
7921         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
7922         "Windows 9x" and "WinXP" with "Windows XP".
7923
7924 2012-01-04  Jim Meyering  <meyering@redhat.com>
7925
7926         test-vc-list-files-cvs.sh: remove obsolete comment
7927         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
7928         double exit.  Now that's all encapsulated via skip_ and Exit.
7929
7930 2012-01-04  Bruno Haible  <bruno@clisp.org>
7931
7932         Talk about "native Windows API", not "Win32".
7933         * lib/classpath.c: Update comments to mention native Windows.
7934         * lib/csharpexec.c: Likewise.
7935         * lib/dup2.c: Likewise.
7936         * lib/error.c: Likewise.
7937         * lib/fcntl.c: Likewise.
7938         * lib/filename.h: Likewise.
7939         * lib/findprog.c: Likewise.
7940         * lib/get-rusage-as.c: Likewise.
7941         * lib/get-rusage-data.c: Likewise.
7942         * lib/getpagesize.c: Likewise.
7943         * lib/javaexec.c: Likewise.
7944         * lib/msvc-inval.c: Likewise.
7945         * lib/msvc-nothrow.c: Likewise.
7946         * lib/nanosleep.c: Likewise.
7947         * lib/nonblocking.c: Likewise.
7948         * lib/printf-parse.c: Likewise.
7949         * lib/setlocale.c: Likewise.
7950         * lib/sigaction.c: Likewise.
7951         * lib/strerror_r.c: Likewise.
7952         * lib/tmpdir.c: Likewise.
7953         * lib/vasnprintf.c: Likewise.
7954         * lib/w32spawn.h: Likewise.
7955         * lib/waitpid.c: Likewise.
7956         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
7957         * m4/locale-ar.m4: Likewise.
7958         * m4/locale-fr.m4: Likewise.
7959         * m4/locale-ja.m4: Likewise.
7960         * m4/locale-tr.m4: Likewise.
7961         * m4/locale-zh.m4: Likewise.
7962         * m4/printf.m4: Likewise.
7963         * tests/test-cloexec.c: Likewise.
7964         * tests/test-copy-acl.sh: Likewise.
7965         * tests/test-copy-file.sh: Likewise.
7966         * tests/test-file-has-acl.sh: Likewise.
7967         * tests/test-set-mode-acl.sh: Likewise.
7968         * tests/test-dup-safer.c: Likewise.
7969         * tests/test-dup2.c: Likewise.
7970         * tests/test-dup3.c: Likewise.
7971         * tests/test-fcntl.c: Likewise.
7972         * tests/test-nonblocking-pipe.h: Likewise.
7973         * tests/test-nonblocking-socket.h: Likewise.
7974         * tests/test-pipe.c: Likewise.
7975         * tests/test-pipe2.c: Likewise.
7976         * tests/test-spawn-pipe-child.c: Likewise.
7977         * doc/acl-resources.txt: Likewise.
7978         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
7979         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
7980         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
7981         * lib/localcharset.c: Update comments to mention native Windows.
7982         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
7983         * lib/localename.c: Likewise.
7984         * lib/progreloc.c: Likewise.
7985         * lib/relocatable.c: Likewise.
7986         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
7987         (windows_compute_revents): Renamed from win32_compute_revents.
7988         (windows_compute_revents_socket): Renamed from
7989         win32_compute_revents_socket.
7990         * lib/select.c: Update comments to mention native Windows.
7991         (windows_poll_handle): Renamed from win32_poll_handle.
7992         * m4/threadlib.m4: Update comments to mention native Windows.
7993         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
7994         --enable-threads=windows instead of --enable-threads=win32. Set
7995         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
7996         * lib/glthread/lock.h: Update comments to mention native Windows.
7997         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
7998         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
7999         USE_WIN32_THREADS.
8000         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
8001         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
8002         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
8003         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
8004         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
8005         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
8006         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
8007         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
8008         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
8009         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
8010         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
8011         * tests/test-tls.c: Likewise.
8012         Rationale:
8013         Microsoft renamed the "Win32 API" to "Windows API", as it is available
8014         on both 32-bit and 64-bit Windows systems.
8015         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
8016         line of distinction is between "native Windows" on one side and Unix/
8017         POSIX systems on the other side. More details in
8018         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
8019         Suggested by Paul Eggert.
8020
8021 2012-01-03  Bruno Haible  <bruno@clisp.org>
8022
8023         isatty: Support for MSVC 9.
8024         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
8025         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
8026         (_isatty_nothrow): New function.
8027         (isatty): Use it instead of _isatty.
8028         (IsConsoleHandle): Add comment, from Paolo Bonzini.
8029         * lib/poll.c (IsConsoleHandle): Likewise.
8030         * lib/select.c (IsConsoleHandle): Likewise.
8031         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
8032         (gl_PREREQ_ISATTY): New macro.
8033         * modules/isatty (Depends-on): Add msvc-inval.
8034         (configure.ac): Invoke gl_PREREQ_ISATTY.
8035
8036 2012-01-03  Jim Meyering  <meyering@redhat.com>
8037
8038         maint.mk: remove temporary transition aid from over 1.5 years ago
8039         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
8040         purpose was to aid in the transition (avoiding silent malfunction)
8041         from that old name to the new _sc_search_regexp.  This shim was
8042         added by commit 219c504b.
8043
8044         init.sh: do not try to accommodate compare arguments starting with "-"
8045         * tests/init.sh (compare_dev_null_): Do not try to accommodate
8046         compare arguments that start with "-".  Besides, we do not worry
8047         about this when invoking diff or cmp; why start now with sed?
8048         Using "--" to separate options from argument would trigger sed
8049         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
8050         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
8051
8052 2012-01-02  Bruno Haible  <bruno@clisp.org>
8053
8054         Enhance tests for module 'isatty'.
8055         * modules/isatty-tests (Depends-on): Add pipe-posix.
8056         * tests/test-isatty.c: Include <fcntl.h>.
8057         (DEV_NULL): New macro.
8058         (main): Test the resut of isatty() also on regular files, pipes, and
8059         /dev/null.
8060
8061         New module 'isatty'.
8062         * lib/unistd.in.h (isatty): New declaration.
8063         * lib/isatty.c: New file, based on an idea of
8064         Bastien Roucariès <roucaries.bastien@gmail.com>.
8065         * m4/isatty.m4: New file.
8066         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
8067         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
8068         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
8069         REPLACE_ISATTY.
8070         * modules/isatty: New file.
8071         * doc/posix-functions/isatty.texi: Mention the new module.
8072         Suggested by Paolo Bonzini.
8073
8074 2012-01-02  Bruno Haible  <bruno@clisp.org>
8075
8076         canonicalize: Tweak 2011-12-29 commit.
8077         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
8078         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
8079
8080 2012-01-02  Jim Meyering  <meyering@redhat.com>
8081
8082         gitlog-to-changelog: describe input syntax in --help output
8083         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
8084
8085         gitlog-to-changelog: fix typo in --help: show backslash before email @
8086         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
8087         in sources, but not in actual output.
8088
8089 2011-12-30  Jim Meyering  <meyering@redhat.com>
8090
8091         gitlog-to-changelog: don't malfunction when name contains %-directive
8092         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
8093         in a name string cause trouble.  E.g., with a user name of "%s",
8094         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
8095
8096 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
8097
8098         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
8099         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
8100         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
8101         the "  (tiny change)" notation that is appended to the standard
8102         ChangeLog "date  name  email" header line.
8103
8104 2012-01-01  Jim Meyering  <meyering@redhat.com>
8105
8106         test-framework-sh: init.sh: fix "make dist" failure
8107         When using gnulib-tool's --with-tests option and any module that
8108         depends on test-framework-sh, "make dist" would fail due to the
8109         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
8110         in the gltests directory, and not in the gllib/ directory.
8111         One way to work around that is to move the EXTRA_DIST += init.sh
8112         from the primary module to the -tests one:
8113         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
8114         * modules/test-framework-sh (Makefile.am): ...not here.
8115         Reported by Tom G. Christensen in
8116         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
8117
8118         version-etc: update copyright year reported by --version
8119         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
8120
8121 2011-12-31  Pádraig Brady  <P@draigBrady.com>
8122
8123         canonicalize: only stat() if required
8124         * lib/canonicalize.c (canonicalize_filename_mode):
8125         Avoid calling l?stat() when both CAN_MISSING,
8126         and CAN_NOLINKS are set, as we neither need
8127         to resolve symlinks or test component existence.
8128
8129 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
8130
8131         doc: cover st_ino issues once; add OpenVMS etc.
8132         * doc/posix-functions/stat.texi (stat):
8133         * doc/posix-functions/lstat.texi (lstat):
8134         * doc/posix-functions/fstatat.texi (fstatat):
8135         * doc/posix-functions/fstat.texi (fstat):
8136         Move general 'struct stat' stuff to sys_stat.texi,
8137         leaving behind a pointer.
8138         * doc/posix-headers/sys_stat.texi (sys/stat.h):
8139         Merge duplicate info about 'struct stat' problems into here.
8140         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
8141         and suggest partial workarounds.
8142
8143         same-inode: port to OpenVMS
8144         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
8145         three st_ino values.
8146
8147 2011-12-30  Pádraig Brady  <P@draigBrady.com>
8148
8149         canonicalize: fix references to stat() and lstat()
8150         * lib/canonicalize.c (canonicalize_filename_mode):
8151         Ensure references always resolve to a replacement
8152         function if required (even via a macro).
8153
8154 2011-12-30  Jim Meyering  <meyering@redhat.com>
8155
8156         gitlog-to-changelog: remove a little duplication
8157         * build-aux/gitlog-to-changelog (main): Grep @lines once,
8158         rather than twice.
8159
8160 2011-12-29  Pádraig Brady  <P@draigBrady.com>
8161
8162         canonicalize: add support for not resolving symlinks
8163         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
8164         indicate we don't want to follow symlinks.  Also
8165         provide CAN_MODE_MASK to aid setting these existing
8166         mutually exclusive values.
8167         * lib/canonicalize.c (canonicalize_filename_mode):
8168         Extract the flags from can_mode parameter, which
8169         are currently just used to select between stat()
8170         and lstat().  Also ensure that mutually exclusive
8171         values are flagged immediately as invalid.
8172         * tests/test-canonicalize.c: Verify symlinks are
8173         not followed, and that invalid flag combinations
8174         are diagnosed.
8175
8176 2011-12-25  Jim Meyering  <meyering@redhat.com>
8177
8178         gitlog-to-changelog: do not clump multi-paragraph entries
8179         Identical header lines (date,name,email+coauthors) are suppressed,
8180         thus putting all entries with those same characteristics under
8181         a single header.  However, when a log entry consists of two or
8182         more paragraphs, it may not be clear where it starts and ends.
8183         This change makes it so that such an entry is always separated
8184         from others by a header line, even when that header would
8185         otherwise be suppressed.
8186         * build-aux/gitlog-to-changelog: Implement the above.
8187         Inspired by a related request from Stefano Lattarini in
8188         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
8189
8190 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
8191
8192         announce-gen: fix `cmd' typo in diagnostic
8193         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
8194         diagnostic: a missing '$' meant that the command was not output.
8195
8196 2011-12-23  Jim Meyering  <meyering@redhat.com>
8197
8198         test-framework-sh: distribute init.sh
8199         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
8200         Otherwise, "make -C gnulib-tests check" (at least in grep) would
8201         fail due to the lack of init.sh.
8202
8203         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
8204         * modules/atexit-tests: Rather than listing tests/init.sh,
8205         now that there's a module for it, simply depend on that new module.
8206         * modules/closein-tests: Likewise.
8207         * modules/exclude-tests: Likewise.
8208         * modules/getcwd-tests: Likewise.
8209         * modules/perror-tests: Likewise.
8210         * modules/pread-tests: Likewise.
8211         * modules/pwrite-tests: Likewise.
8212         * modules/vc-list-files-tests: Likewise.
8213         * modules/verify-tests: Likewise.
8214         * modules/xalloc-die-tests: Likewise.
8215         * modules/xstrtoimax-tests: Likewise.
8216         * modules/xstrtol-tests: Likewise.
8217         * modules/xstrtoll-tests: Likewise.
8218         * modules/xstrtoumax-tests: Likewise.
8219         * modules/yesno-tests: Likewise.
8220
8221 2011-12-22  Jim Meyering  <meyering@redhat.com>
8222
8223         test-framework-sh: add minimal tests of init.sh's compare function
8224         * modules/test-framework-sh-tests: New file.
8225         * tests/test-init.sh: New file.
8226
8227         test-framework-sh: new module
8228         * modules/test-framework-sh: New file.
8229         * MODULES.html.sh (Support for maintaining and releasing projects):
8230         List it.
8231
8232         init.sh: do not emit simulated diff output to stderr
8233         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
8234
8235 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
8236
8237         .gitignore: ignore gnulib.dvi and regex.info
8238         * doc/.gitignore:add gnulib.dvi and regex.info
8239
8240 2011-12-22  Jim Meyering  <meyering@redhat.com>
8241
8242         init.sh: correct previous change
8243         * tests/init.sh (compare): My previous change was wrong.
8244         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
8245
8246         init.sh: avoid unwarranted test failure when using "set -e"
8247         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
8248         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
8249         a use like "compare exp out" would get evoke an unconditional failure.
8250
8251 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
8252
8253         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
8254         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
8255         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
8256         autoreconf that did not.
8257         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
8258         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
8259
8260 2011-12-17  Jim Meyering  <meyering@redhat.com>
8261
8262         bootstrap: remove some now-unneeded code
8263         This script arose back when gnulib-tool was young.
8264         Since then, it has seen improvements that render much of this
8265         script unnecessary.  In particular, it can now make symlinks
8266         to the files it uses.  Also, I no longer see as much value in
8267         marking files as read-only via comments.
8268         If you relied on the symlink-creation feature of the preceding
8269         version of this script, you can get most of that functionality
8270         by adding the --symlink option to the definition of
8271         gnulib_tool_option_extras in your bootstrap.conf file.
8272         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
8273         Run autopoint and libtoolize *before* gnulib-tool.
8274         After it, run an abbreviated autoreconf, rather than a loop around
8275         all tools.
8276         (slirp, bt_mark_as_generated): Remove functions.
8277
8278 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8279
8280         ftoastr: fix typo
8281         * lib/ftoastr.h: Fix misspelling in comment.
8282
8283 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
8284
8285         * top/README-release: fix punctuation.
8286
8287 2011-12-17  Jim Meyering  <meyering@redhat.com>
8288
8289         bootstrap: correct the recent buildreq change
8290         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
8291         had no effect.
8292         * build-aux/bootstrap (buildreq): Bracket each search term with
8293         "*...*", so that the shell "case" statement works as intended.
8294         Add comments.
8295
8296 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
8297
8298         build: let bootstrap resort to wget when downloading .po files
8299         * build-aux/bootstrap (download_po_files): Fallback to wget when
8300         downloading the .po files via rsync fails.  This is necessary to
8301         bootstrap from behind a strict firewall.
8302
8303 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
8304
8305         stdint: don't assume C++11 when compiling with g++
8306         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
8307         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
8308         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
8309         work also in C++ before C++11, as that improperly inhibits
8310         generating a substitute stdint.h for that case.
8311
8312 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
8313
8314         alloca: protect comment from gnulib-tool
8315         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
8316         that gnulib-tool doesn't think it's a license, and munge it to
8317         say "GCC version 3".
8318
8319 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
8320
8321         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
8322         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
8323         $(abs_top_builddir) instead of $(top_builddir).
8324
8325 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
8326
8327         strftime-tests: also test nanoseconds
8328         * tests/test-strftime.c (T): Add a test of %N.
8329
8330 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
8331
8332         inttypes, stdint: add C++11 support
8333         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
8334         when including inttypes.h and stdint.h.  Support this change to
8335         the standard.
8336         * doc/posix-headers/inttypes.texi (inttypes.h):
8337         * doc/posix-headers/stdint.texi (stdint.h): Document this.
8338         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
8339         Define if not defined already, for the benefit of pre-C++11 hosts.
8340         Define the standard format macros (e.g., PRId8) always.
8341         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
8342         Likewise, if __cpluspus.  Define the standard constant and limit
8343         macros (e.g., INT8_C, INT8_MAX) always.
8344         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
8345         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
8346         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
8347         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
8348         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
8349         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
8350         Likewise.
8351
8352 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
8353
8354         nonblocking tests: Fix test failure on Linux/PPC.
8355         Suggested by Prerna Saxena in
8356         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
8357         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
8358         Set to 1100000.
8359
8360 2011-12-12  Jim Meyering  <meyering@redhat.com>
8361
8362         argmatch: don't hard-code `' when listing valid option arguments
8363         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
8364         use the quote function to add quotes.  Use fputs rather than
8365         fprintf for the format string with no format directive.
8366
8367 2011-12-07  Eric Blake  <eblake@redhat.com>
8368
8369         bootstrap: detect tools required by gnulib-tool
8370         * build-aux/bootstrap (buildreq): Provide minimum implicit
8371         dependencies.
8372         * DEPENDENCIES: Mention patch as a prereq.
8373
8374 2011-12-04  Bruno Haible  <bruno@clisp.org>
8375
8376         sethostname: Port to Windows platforms.
8377         * lib/sethostname.c: Provide an alternate implementation for Windows
8378         platforms.
8379         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
8380         (main): Skip the test if sethostname() fails with EPERM. On Windows
8381         platforms, don't check the result of gethostname().
8382
8383 2011-12-04  Bruno Haible  <bruno@clisp.org>
8384             Jim Meyering  <meyering@redhat.com>
8385
8386         tests: Avoid spurious error message on platforms without mktemp program.
8387         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
8388
8389 2011-12-04  Bruno Haible  <bruno@clisp.org>
8390
8391         sethostname: Fix documentation.
8392         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
8393         "not fixed" section.
8394
8395 2011-12-03  Bruno Haible  <bruno@clisp.org>
8396
8397         gnulib-tool: Verify that the License field is present and non-empty.
8398         * gnulib-tool (func_get_license_raw): New function, extracted from
8399         func_get_license.
8400         (func_get_license): Use it. Warn if the module is not a test module and
8401         has no license.
8402         Suggested by Jim Meyering.
8403
8404 2011-12-03  Bruno Haible  <bruno@clisp.org>
8405
8406         sethostname tests: Fix link error on mingw.
8407         * tests/test-sethostname1.c: New file, extracted from
8408         tests/test-sethostname.c.
8409         * tests/test-sethostname2.c: New file, extracted from
8410         tests/test-sethostname.c.
8411         * tests/test-sethostname.c: Remove file.
8412         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
8413         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
8414         (Depends-on): Add gethostname.
8415         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
8416         Link the latter with $(GETHOSTNAME_LIB).
8417
8418         sethostname tests: Fix compilation error on mingw.
8419         * tests/test-sethostname.c: Don't include <sys/types.h>.
8420         (geteuid): Use a dummy value without uid_t.
8421         * modules/sethostname-tests (Depends-on): Remove sys_types.
8422
8423         sethostname tests: Avoid a gcc warning.
8424         * tests/test-sethostname.c (main): Remove an unused variable.
8425
8426         Tweak last commit.
8427         * modules/sethostname-tests (Files): Sort by decreasing importance.
8428         (configure.ac): Check for geteuid.
8429         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
8430         the test when there's nothing to test. Drop an unnecessary cast.
8431         Improve an error message. Verify that the final sethostname() call
8432         succeeds.
8433
8434 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8435
8436         Add a test suite for the sethostname module.
8437         * modules/sethostname-tests: New file.  A test program
8438         for the sethostname module.
8439         * tests/test-sethostname.c: Likewise.
8440
8441 2011-12-03  Bruno Haible  <bruno@clisp.org>
8442
8443         Tweak last commit.
8444         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
8445         Fix preprocessor directives indentation. Fix typos.
8446         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
8447         * modules/unistd (Makefile): Likewise.
8448
8449 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8450
8451         Integrate the sethostname module into unistd.
8452         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
8453         into the unistd.h header.
8454         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
8455         preprocessor directives.
8456         * modules/unistd: Setup the Makefile substitutions of the
8457         SETHOSTNAME preprocessor directives.
8458
8459 2011-12-03  Bruno Haible  <bruno@clisp.org>
8460
8461         Tweak last commit.
8462         * lib/sethostname.c: Don't include <string.h>.
8463         (sethostname): No need to copy the argument string to the stack. Don't
8464         call clearerr. Preserve errno when fprintf failed.
8465         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
8466         Don't invoke AC_REPLACE_FUNCS.
8467         * modules/sethostname (Link): Remove empty section.
8468         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
8469         failure problem.
8470
8471 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8472
8473         New module 'sethostname'.
8474         * lib/sethostname.c (sethostname): New file.  Provide sethostname
8475         for systems that lack it.
8476         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
8477         sethostname declaration and function.
8478         * modules/sethostname: New file.  Define the sethostname module.
8479
8480 2011-12-03  Bruno Haible  <bruno@clisp.org>
8481
8482         Tweak last commit.
8483         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
8484
8485 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
8486
8487         Split the HOST_NAME_MAX detection into a separate m4 macro.
8488         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
8489         macro so it can be used by the pending sethostname module.
8490
8491 2011-12-03  Bruno Haible  <bruno@clisp.org>
8492
8493         Fix module descriptions syntax.
8494         * modules/argv-iter (License): Fix syntax.
8495         * modules/di-set (License): Likewise.
8496         * modules/ino-map (License): Likewise.
8497         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
8498
8499 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
8500
8501         stdalign: port to Clang 3.0
8502         Problem reported by Simon Josefsson in
8503         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
8504         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
8505         which has <stdalign.h> but which does not define alignof.
8506         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
8507
8508 2011-12-01  Eric Blake  <eblake@redhat.com>
8509
8510         mktempd: silence dd usage
8511         * build-aux/mktempd (rand_bytes): Silence dd.
8512
8513 2011-11-30  Simon Josefsson  <simon@josefsson.org>
8514
8515         manywarnings: Don't mention gcc version in docstring.
8516         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
8517         Jim Meyering <meyering@redhat.com>.
8518
8519 2011-11-30  Jim Meyering  <meyering@redhat.com>
8520
8521         hash: mark a few floating point constants with "f" suffix
8522         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
8523         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
8524         floating point constants with "f", since they're destined to be
8525         saved/used as "float"s.
8526
8527 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
8528
8529         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
8530         * tests/test-float.c (test_long_double): Correct and re-enable the
8531         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
8532
8533 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
8534
8535         Avoid subtracting two pointers that don't point into the same block.
8536         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
8537         only pointers into the same memory block are subtracted. We cannot
8538         assume that sizeof (ptrdiff_t) == sizeof (void *).
8539
8540 2011-11-29  Eric Blake  <eblake@redhat.com>
8541
8542         maint.mk: add syntax check for use of compare from init.sh
8543         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
8544         moved here from coreutils.
8545
8546         manywarnings: drop -Wunsuffixed-float-constants
8547         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
8548         '1.0D', which is the only way to silence this warning for 'double'.
8549
8550 2011-11-29  Jim Meyering  <meyering@redhat.com>
8551
8552         hash: mark compute_bucket_size with the pure attribute
8553         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
8554
8555         quotearg, propername: correct pragma guard expression
8556         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
8557         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
8558
8559 2011-11-28  Jim Meyering  <meyering@redhat.com>
8560
8561         propername: do not mark proper_name with the const attribute
8562         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
8563         since it examines data pointed to by its parameter.
8564         * lib/propername.c (proper_name): Instead, add a pragma to suppress
8565         the suggestion from -Wsuggest-attribute=const.
8566
8567         propername: mark one more function as const
8568         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
8569
8570 2011-11-27  Jim Meyering  <meyering@redhat.com>
8571
8572         mark functions with const and pure attributes
8573
8574         Mark functions per suggestions from gcc-4.6 when using these options:
8575         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
8576         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
8577         Follow these guidelines: when possible, apply the attribute to
8578         an extern declaration, not to its definition.  Apply it to the
8579         definition only when the definition is static.
8580         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
8581         * lib/argv-iter.h (argv_iter_n_args): Likewise.
8582         * lib/base64.h (isbase64): Likewise.
8583         * lib/basename-lgpl.c (last_component, base_len): Likewise.
8584         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
8585         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
8586         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
8587         (c_tolower, c_toupper): Likewise.
8588         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
8589         * lib/chdir-long.c (find_non_slash): Likewise.
8590         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
8591         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
8592         * lib/file-type.h (file_type): Likewise.
8593         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
8594         * lib/filevercmp.c (verrevcmp): Likewise.
8595         * lib/freadahead.h (freadahead): Likewise.
8596         * lib/fts.c (fts_maxarglen): Likewise.
8597         * lib/hash-pjw.h (hash_pjw): Likewise.
8598         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
8599         * lib/hash.c (is_prime, next_prime): Likewise.
8600         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
8601         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
8602         (hash_table_ok, hash_get_first, hash_string): Likewise.
8603         (compute_bucket_size): Likewise.
8604         * lib/i-ring.h (i_ring_empty): Likewise.
8605         * lib/isnan.c (isnanl): Likewise.
8606         * lib/math.h (isnanl, rpl_isnanl): Likewise.
8607         * lib/memcasecmp.h (memcasecmp): Likewise.
8608         * lib/memchr2.h (memchr2): Likewise.
8609         * lib/memcmp2.h (memcmp2): Likewise.
8610         * lib/parse-datetime.y (lookup_zone): Likewise.
8611         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
8612         [!WINDOWS_SOCKETS]: Likewise.
8613         * lib/strnlen1.h (strnlen1): Likewise.
8614         * lib/uniwidth.in.h (uc_width): Likewise.
8615         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
8616         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
8617         (quoting_options_from_style): Add a comment.
8618         * lib/propername.h (proper_name): Add a comment.
8619
8620 2011-11-27  Bruno Haible  <bruno@clisp.org>
8621
8622         Remove unused macros from !_LIBC code in glibc-borrowed files.
8623         * lib/fnmatch.c (STRCOLL): Remove macro.
8624         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
8625         * lib/glob.c (__stat, __readdir64): Remove macros.
8626         * lib/tempname.c (__open64, __xstat64): Remove macros.
8627         Suggested by Paul Eggert.
8628
8629 2011-11-27  Bruno Haible  <bruno@clisp.org>
8630
8631         getcwd: Fix link error on MSVC 9.
8632         * modules/getcwd (Depends-on): Add readdir, rewinddir.
8633
8634 2011-11-27  Bruno Haible  <bruno@clisp.org>
8635
8636         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
8637         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
8638         HAVE_OPENDIR is 0.
8639         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
8640         HAVE_CLOSEDIR is 0.
8641         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
8642         is 0.
8643         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
8644
8645 2011-11-27  Bruno Haible  <bruno@clisp.org>
8646
8647         getcwd: Fix bug from 2011-08-17.
8648         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
8649         platforms that need it.
8650         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
8651         code of 4 to be a failure, not a success. This ensures that
8652         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
8653
8654 2011-11-27  Bruno Haible  <bruno@clisp.org>
8655
8656         binary-io tests: Avoid test failure on mingw when libtool is used.
8657         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
8658         Don't verify the size of t-bin-out1.tmp here.
8659         * tests/test-binary-io.sh: Verify it here.
8660         Reported by Simon Josefsson.
8661
8662 2011-11-26  Bruno Haible  <bruno@clisp.org>
8663
8664         Fix conflict between two instantiations of module 'unistd'.
8665         * gnulib-tool (func_emit_autoconf_snippet): Substitute
8666         ${include_guard_prefix} also in the autoconf snippet.
8667         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
8668         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
8669         GNULIB_UNISTD_H_GETOPT.
8670         * modules/getopt-posix (configure.ac): Set the
8671         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
8672         * modules/getopt-gnu (configure.ac): Likewise.
8673         * modules/unistd (Makefile.am): Change the substitution value of
8674         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
8675         Reported by Simon Josefsson.
8676
8677 2011-11-25  Bruno Haible  <bruno@clisp.org>
8678
8679         pagealign_alloc: Doc and comments.
8680         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
8681         module.
8682         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
8683
8684 2011-11-25  Jim Meyering  <meyering@redhat.com>
8685
8686         test-update-copyright.sh: avoid false-positive failure
8687         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
8688         around false positive failure on Cygwin/Windows.  The latter was
8689         matching erroneously-created files with names like
8690         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
8691
8692 2011-11-25  Simon Josefsson  <simon@josefsson.org>
8693
8694         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
8695         * m4/valgrind-tests.m4: Check that the parameters that will be
8696         used works, not just a subset of them.  Reported by Bruno Haible
8697         <bruno@clisp.org>.
8698
8699 2011-11-24  Jim Meyering  <meyering@redhat.com>
8700
8701         test-stdalign.c: comment out long double tests
8702         * tests/test-stdalign.c: Don't try to reduce alignment of long double
8703         variables.  That provokes errors like this from gcc-4.7.0 20111124:
8704         error: '_Alignas' specifiers cannot reduce alignment of \
8705         'static_longdouble_alignas'.
8706
8707 2011-11-22  Jim Meyering  <meyering@redhat.com>
8708
8709         init.sh: make "compare /dev/null FILE" output more readable
8710         * tests/init.sh (compare_): Document the preferred order of arguments.
8711         (emit_diff_u_header_): New function.
8712         (compare_dev_null_): Emit a simulated diff, rather than just the
8713         contents of the unexpected file.  Suggestion from Bruno Haible.
8714
8715 2011-11-21  Jim Meyering  <meyering@redhat.com>
8716             Eric Blake  <eblake@redhat.com>
8717
8718         init.sh: work around OSF/1 5.1's mishandling of /dev/null
8719         * tests/init.sh: Make our compare function slightly more portable.
8720         Reported by Bruno Haible in
8721         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
8722
8723 2011-11-21  Simon Josefsson  <simon@josefsson.org>
8724
8725         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
8726         before using it, in code that ends up in config.h.
8727
8728 2011-11-20  Bruno Haible  <bruno@clisp.org>
8729
8730         getcwd: Work around getcwd bug on AIX 5..7.
8731         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
8732         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
8733         Use a different value for gl_cv_func_getcwd_path_max. Move the
8734         definition of HAVE_PARTLY_WORKING_GETCWD from here...
8735         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
8736         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
8737         Define HAVE_MINIMALLY_WORKING_GETCWD.
8738         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
8739         where it is not even minimally working, that is, on AIX.
8740         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
8741         m4/getcwd-path-max.m4.
8742         (main): Update exit code computation.
8743         * doc/posix-functions/getcwd.texi: Mention list of platforms where
8744         getcwd does not handle long file names.
8745
8746 2011-11-20  Bruno Haible  <bruno@clisp.org>
8747
8748         getcwd: Fix bug from 2009-09-10.
8749         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
8750         like "no".
8751
8752 2011-11-20  Simon Josefsson  <simon@josefsson.org>
8753
8754         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
8755
8756 2011-11-20  Bruno Haible  <bruno@clisp.org>
8757
8758         fma tests: Avoid shadowing local variables.
8759         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
8760         expected.
8761
8762 2011-11-20  Bruno Haible  <bruno@clisp.org>
8763
8764         copysignf tests: Fix.
8765         * tests/test-copysignf.c: Fix signature check.
8766
8767 2011-11-20  Bruno Haible  <bruno@clisp.org>
8768
8769         fma: Remove unused code.
8770         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
8771         unused macros.
8772
8773 2011-11-20  Bruno Haible  <bruno@clisp.org>
8774
8775         sethostname: Fix doc about AIX.
8776         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
8777         sethostname; it has it.
8778
8779         sethostname: Mention more portability problems.
8780         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
8781         problem.
8782         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
8783
8784 2011-11-19  Bruno Haible  <bruno@clisp.org>
8785
8786         Depend on module fcntl-h when AT_FDCWD is used.
8787         * modules/utimens (Depends-on): Add fcntl-h.
8788         * modules/areadlinkat (Depends-on): Likewise.
8789         * modules/areadlinkat-with-size (Depends-on): Likewise.
8790         * modules/faccessat (Depends-on): Likewise.
8791         * modules/fchmodat (Depends-on): Likewise.
8792         * modules/fchownat (Depends-on): Likewise.
8793         * modules/getcwd (Depends-on): Likewise.
8794         * modules/mkdirat (Depends-on): Likewise.
8795         * modules/mkfifoat (Depends-on): Likewise.
8796         * modules/readlinkat (Depends-on): Likewise.
8797         * modules/symlinkat (Depends-on): Likewise.
8798         * modules/dup2-tests (Depends-on): Likewise.
8799         * modules/fdutimensat-tests (Depends-on): Likewise.
8800         * modules/futimens-tests (Depends-on): Likewise.
8801
8802 2011-11-19  Bruno Haible  <bruno@clisp.org>
8803
8804         euidaccess: Update a comment.
8805         * lib/euidaccess.c: Update comment about platforms with faccessat.
8806
8807 2011-11-19  Bruno Haible  <bruno@clisp.org>
8808
8809         openat: Fix file list.
8810         * modules/openat (Files): Remove lib/at-func.c.
8811
8812 2011-11-19  Bruno Haible  <bruno@clisp.org>
8813
8814         fstatat: Simplify.
8815         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
8816         gnulib should define rpl_fstatat, there is a
8817         "#define fstatat rpl_fstatat" in <sys/stat.h>.
8818
8819 2011-11-19  Bruno Haible  <bruno@clisp.org>
8820
8821         Ensure 'inline' can be used in tests/test-utimens-common.h.
8822         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
8823         * modules/futimens-tests (configure.ac): Likewise.
8824         * modules/utimens-tests (configure.ac): Likewise.
8825         * modules/utimensat-tests (configure.ac): Likewise.
8826
8827 2011-11-19  Simon Josefsson  <simon@josefsson.org>
8828
8829         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
8830         not hash_insert0.
8831         (hash_insert_if_absent): Doc fix.
8832
8833 2011-11-19  Simon Josefsson  <simon@josefsson.org>
8834
8835         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
8836
8837 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
8838
8839         test-getcwd: disambiguate exit status
8840         * tests/test-getcwd.c (test_long_name): Return 0..7.
8841         (main): Exit with an unambiguous exit status.  The old
8842         code yielded a mysterious mixture of two failure codes.
8843
8844         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
8845         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
8846         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
8847         rpl_fstatat or fstatat.  This should fix the other problem
8848         reported by Kai Habel in
8849         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
8850         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
8851         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
8852         and I reproduced it on a Solaris 8 host we still have in production.
8853
8854 2011-11-18  Jim Meyering  <meyering@redhat.com>
8855
8856         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
8857         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
8858         Add a sentence to the comment.
8859         (hash_insert0): New function that simply calls hash_insert_if_absent.
8860         * lib/hash.h (hash_insert_if_absent): Declare it.
8861         (hash_insert0): Add deprecation attribute.
8862         (_GL_ATTRIBUTE_DEPRECATED): Define.
8863         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
8864         not hash_insert0.
8865         * NEWS: Mention it, even though it's not really an incompatible change.
8866
8867 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
8868
8869         openat: avoid compilation failure due to lack of <errno.h> inclusion
8870         * lib/openat.c: Include <errno.h>.
8871
8872 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
8873
8874         * modules/getcwd (Depends-on): Add fdopendir.
8875         This fixes one of the two problems reported by Kai Habel in
8876         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
8877
8878         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
8879         stdalign problem reported by Ian Beckwith in
8880         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
8881         * modules/crypto/gc-arcfour (Depends-on):
8882         Depend conditionally on crypto/arcfour.
8883         * modules/crypto/gc-arctwo (Depends-on):
8884         Depend conditionally on crypto/arctwo.
8885         * modules/crypto/gc-des (Depends-on):
8886         Depend conditionally on crypto/des.
8887         * modules/crypto/gc-hmac-md5 (Depends-on):
8888         Depend conditionally on crypto/hmac-md5.
8889         * modules/crypto/gc-hmac-sha1 (Depends-on):
8890         Depend conditionally on crypto/hmac-sha1.
8891         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
8892         * modules/crypto/gc-md4 (Depends-on):
8893         Depend conditionally on crypto/md4.
8894         * modules/crypto/gc-md5 (Depends-on):
8895         Depend conditionally on crypto/md5.
8896         * modules/crypto/gc-rijndael (Depends-on):
8897         Depend conditionally on crypto/rijndael.
8898         * modules/crypto/gc-sha1 (Depends-on):
8899         Depend conditionally on crypto/sha1.
8900         * modules/crypto/gc-arcfour:
8901         * modules/crypto/gc-arctwo:
8902         * modules/crypto/gc-des:
8903         * modules/crypto/gc-hmac-md5:
8904         * modules/crypto/gc-hmac-sha1:
8905         * modules/crypto/gc-md2:
8906         * modules/crypto/gc-md4:
8907         * modules/crypto/gc-md5:
8908         * modules/crypto/gc-rijndael:
8909         * modules/crypto/gc-sha1:
8910         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
8911         now that the conditional dependencies do the work for us.
8912
8913 2011-11-17  Jim Meyering  <meyering@redhat.com>
8914
8915         tests: factor st_ctime-comparison out of two headers
8916         * tests/test-utimens-common.h (ctime_compare): Define.
8917         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
8918         * tests/test-lutimens.h (test_lutimens): Likewise.
8919         * tests/test-utimens.h (test_utimens): Likewise.
8920
8921         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
8922         Invoke the test program via an init.sh-using wrapper.
8923         * tests/test-getcwd.sh: New file.
8924         * modules/getcwd-tests (Files): Add it.
8925         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
8926
8927 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
8928
8929         gitlog-to-changelog: support multi-author commits.
8930         The FSF cares about keeping track of all authors of patches to its
8931         projects, but Git doesn't provide obvious support for multi-author
8932         changesets. Consensus seems to be forming around the use of extra
8933         Signed-off-by inspired lines in the log message formatted as
8934         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
8935         multi-author commits between version control systems.
8936         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
8937         log message and output in standard ChangeLog multi-author format.
8938         Reported by Peter Rosin <peda@lysator.liu.se>
8939
8940 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
8941             Bruno Haible  <bruno@clisp.org>
8942
8943         Fix some modules' file list.
8944         * modules/fstatat (Files): Add m4/lstat.m4.
8945         * modules/openat (Files): Likewise.
8946         * modules/unlinkat (Files): Likewise.
8947
8948 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
8949
8950         maint.mk: fix tight-scope.mk generation in VPATH builds.
8951         * top/maint.mk (tight-scope.mk): Make sure to prefix file
8952         reference with $(srcdir) so that the file is found correctly even
8953         when running `make syntax-check' in a VPATH build.
8954
8955 2011-11-13  Bruno Haible  <bruno@clisp.org>
8956             Jim Meyering  <meyering@redhat.com>
8957
8958         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
8959         * tests/init.sh (compare): Remove "No differences encountered" or
8960         synonymous output from the 'diff' program.
8961
8962 2011-11-13  Bruno Haible  <bruno@clisp.org>
8963
8964         Makefile: Tweak indentation.
8965         * Makefile: Use tab as first character in every line that contains rule
8966         commands.
8967
8968 2011-11-13  Bruno Haible  <bruno@clisp.org>
8969
8970         Syntax check for copyright statements.
8971         * check-copyright: New file.
8972         * Makefile (sc_check_copyright): New rule.
8973
8974 2011-11-13  Simon Josefsson  <simon@josefsson.org>
8975
8976         * build-aux/git-version-gen: Add --prefix to configure the tag
8977         match string.
8978
8979 2011-11-13  Simon Josefsson  <simon@josefsson.org>
8980
8981         * build-aux/git-version-gen: Add --help and --version.
8982
8983 2011-11-12  Jim Meyering  <meyering@redhat.com>
8984
8985         revamp the other test-exclude?.sh scripts to use init.sh, too
8986         * tests/test-exclude1.sh: Use init.sh.
8987         * tests/test-exclude2.sh: Likewise.
8988         * tests/test-exclude3.sh: Likewise.
8989         * tests/test-exclude4.sh: Likewise.
8990         * tests/test-exclude5.sh: Likewise.
8991         * tests/test-exclude6.sh: Likewise.
8992         * tests/test-exclude7.sh: Likewise.
8993         * tests/test-exclude8.sh: Likewise.
8994         * modules/exclude-tests (Files): List init.sh.
8995
8996         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
8997         These shell scripts ignored failure of the binary test-exclude,
8998         so making the latter return 77 didn't cause them to be skipped.
8999         * tests/test-exclude5.sh: Exit with test-exclude's error status
9000         when that program fails.  Revamp to use init.sh.
9001         * tests/test-exclude2.sh: Likewise.
9002
9003         test-exclude: fix a typo
9004         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
9005
9006 2011-11-11  Bruno Haible  <bruno@clisp.org>
9007
9008         obstack: Fix compilation error on MSVC 9.
9009         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
9010
9011 2011-11-11  Jim Meyering  <meyering@redhat.com>
9012
9013         test-exclude: skip tests rather than failing on deficient systems
9014         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
9015         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
9016         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
9017         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
9018
9019 2011-11-10  Bruno Haible  <bruno@clisp.org>
9020
9021         ptsname_r test: Avoid gcc warning on glibc systems.
9022         * tests/test-ptsname_r.c (null_ptr): New function.
9023         (test_errors): Use it.
9024
9025 2011-11-10  Bruno Haible  <bruno@clisp.org>
9026
9027         ptsname_r: Avoid compilation error on OSF/1 5.1.
9028         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
9029         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
9030         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
9031         function is not declared or incompatibly declared.
9032         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
9033         * modules/ptsname_r (Depends-on, configure.ac): Update.
9034         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
9035
9036 2011-11-10  Bruno Haible  <bruno@clisp.org>
9037
9038         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
9039         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
9040         When cross-compiling, guess yes on all platforms except AIX.
9041         Reported by Ludovic Courtès <ludo@gnu.org>.
9042
9043 2011-11-09  Bruno Haible  <bruno@clisp.org>
9044
9045         ptsname_r tests: Fix bugs.
9046         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
9047         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
9048
9049 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
9050
9051         fstatat: work with cross-compilation
9052         Problem reported by Ludovic Courtès in
9053         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
9054         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
9055         "cross-compiling" and assume the bug is present.  Replace
9056         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
9057         an inverted sense, to be more conservative about our assumptions.
9058         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
9059
9060 2011-11-09  Bruno Haible  <bruno@clisp.org>
9061
9062         Improve MODULES.html output.
9063         * modules/mkfifoat (Description): Use the word "function".
9064         * modules/readlinkat (Description): Likewise.
9065         * modules/symlinkat (Description): Likewise.
9066
9067 2011-11-09  Eric Blake  <eblake@redhat.com>
9068
9069         ptsname_r-tests: new test module
9070         * modules/ptsname_r-tests: New module.
9071         * tests/test-ptsname_r.c: New file.
9072
9073         ptsname_r: new module
9074         * modules/ptsname_r: New module.
9075         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
9076         * lib/ptsname.c (__ptsname_r): Split...
9077         * lib/ptsname_r.c: ...into new file.
9078         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
9079         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
9080         * modules/stdlib (Makefile.am): Substitute witnesses.
9081         * lib/stdlib.in.h (ptsname_r): Declare it.
9082         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
9083         * MODULES.html.sh (Misc): Likewise.
9084         * modules/ptsname (Depends-on): Alter dependency.
9085         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
9086
9087 2011-11-09  Jim Meyering  <meyering@redhat.com>
9088
9089         announce-gen: be more concise when there's only one URL+tarball
9090         * build-aux/announce-gen (get_tool_versions): When you distribute
9091         only one type of tarball, combine the first two "Here are..."
9092         sections and make the key-checking grammar independent of
9093         how many tarballs there are.
9094
9095 2011-11-09  Eric Blake  <eblake@redhat.com>
9096
9097         openpty: provide a stub on mingw
9098         * lib/pty.in.h (includes): Provide forward declarations.
9099         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
9100
9101         raise: fix mingw handling of SIGPIPE
9102         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
9103
9104 2011-11-08  Bruno Haible  <bruno@clisp.org>
9105
9106         More conditional dependencies.
9107         * modules/faccessat (Depends-on): Add conditions.
9108         * modules/fchmodat (Depends-on): Likewise.
9109         * modules/fchownat (Depends-on): Likewise.
9110         * modules/fstatat (Depends-on): Likewise.
9111         * modules/mkfifoat (Depends-on): Likewise.
9112         * modules/readlinkat (Depends-on): Likewise.
9113         * modules/symlinkat (Depends-on): Likewise.
9114         * modules/unlinkat (Depends-on): Likewise.
9115         * modules/utimensat (Depends-on): Likewise.
9116         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
9117         * modules/linkat (Depends-on): Refine the conditions.
9118         * modules/renameat (Depends-on): Likewise.
9119
9120 2011-11-08  Bruno Haible  <bruno@clisp.org>
9121
9122         faccessat: Move AC_LIBOBJ invocation to module description.
9123         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
9124         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
9125         invocation from here...
9126         * modules/faccessat (configure.ac): ... to here. Invoke
9127         gl_PREREQ_FACCESSAT.
9128
9129 2011-11-08  Bruno Haible  <bruno@clisp.org>
9130
9131         faccessat: Simplify autoconf macro.
9132         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
9133         gl_FUNC_EUIDACCESS.
9134
9135 2011-11-08  Bruno Haible  <bruno@clisp.org>
9136
9137         renameat: Fix dependencies.
9138         * modules/renameat (Depends-on): Add stdbool.
9139
9140 2011-11-08  Bruno Haible  <bruno@clisp.org>
9141
9142         mkfifoat: Fix module description.
9143         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
9144         not gl_UNISTD_MODULE_INDICATOR.
9145
9146 2011-11-08  Bruno Haible  <bruno@clisp.org>
9147
9148         fstatat: Remove unused dependency.
9149         * modules/fstatat (Depends-on): Remove fstat.
9150
9151 2011-11-08  Simon Josefsson  <simon@josefsson.org>
9152
9153         GNUmakefile: behave when Makefile is missing.
9154         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
9155
9156 2011-11-08  Bruno Haible  <bruno@clisp.org>
9157
9158         openat: Conditionalize dependencies.
9159         * lib/openat.c: Reduce the scope of some #includes.
9160         * modules/openat (Depends-on): Add conditions.
9161
9162 2011-11-07  Jim Meyering  <meyering@redhat.com>
9163
9164         maint.mk: extract GPG key ID without using a temporary file
9165         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
9166         without using a temporary file.  Based on a suggestion from Werner Koch
9167         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
9168
9169 2011-11-07  Eric Blake  <eblake@redhat.com>
9170
9171         grantpt: fix typo
9172         * lib/stdlib.in.h (grantpt): Check correct function.
9173
9174         maint.mk: silence new syntax check
9175         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
9176
9177 2011-11-06  Bruno Haible  <bruno@clisp.org>
9178
9179         Doc about floating-point and math API.
9180         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
9181         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
9182
9183 2011-11-06  Bruno Haible  <bruno@clisp.org>
9184
9185         stdalign tests: Skip the test when compiled by Sun C.
9186         * tests/test-stdalign.c (main): Skip the test on Sun C.
9187
9188 2011-11-06  Bruno Haible  <bruno@clisp.org>
9189
9190         ansi-c++-opt: Complete the 2011-06-05 change.
9191         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
9192         does not support namespaces, set the variable to "no", not to ":".
9193
9194 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
9195
9196         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
9197
9198 2011-11-06  Bruno Haible  <bruno@clisp.org>
9199
9200         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
9201         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
9202         (minus_zerol) [HP-UX]: New macro.
9203         (unary_minus) [HP-UX]: New function.
9204         (copysignl) [HP-UX]: Use unary_minus function.
9205
9206 2011-11-06  Bruno Haible  <bruno@clisp.org>
9207
9208         ldexp, ldexpf, ldexpl: Enhance tests.
9209         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
9210         and tests/test-ldexpl.c.
9211         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
9212         LDEXP, MIN_EXP, MAX_EXP): New macros.
9213         Include test-ldexp.h.
9214         (main): Just call test_function.
9215         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
9216         infinity.h, nan.h.
9217         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
9218         MAX_EXP): New macros.
9219         Include test-ldexp.h.
9220         (x, y): Remove variables.
9221         (main): Just call test_function.
9222         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
9223         infinity.h, nan.h.
9224         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
9225         MAX_EXP): New macros.
9226         Include test-ldexp.h.
9227         (x, y): Remove variables.
9228         (main): Just call test_function.
9229         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
9230         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
9231         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
9232         (Depends-on): Add isnand-nolibm, signbit, float.
9233         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
9234         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
9235         (Depends-on): Add isnanf-nolibm, signbit, float.
9236
9237 2011-11-06  Bruno Haible  <bruno@clisp.org>
9238
9239         math tests: Cosmetics.
9240         * tests/test-math-c++.cc: Reorder declarations.
9241
9242 2011-11-05  Bruno Haible  <bruno@clisp.org>
9243
9244         fma*: Simplify test.
9245         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
9246         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
9247
9248         Tests for module 'fmal'.
9249         * modules/fmal-tests: New file.
9250         * tests/test-fmal1.c: New file.
9251         * tests/test-fmal2.c: New file.
9252
9253         New module 'fmal'.
9254         * lib/math.in.h (fmal): New declaration.
9255         * lib/fmal.c: New file.
9256         * m4/fmal.m4: New file.
9257         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
9258         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
9259         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
9260         REPLACE_FMAL.
9261         * modules/fmal: New file.
9262         * doc/posix-functions/fmal.texi: Mention the new module and the various
9263         bugs.
9264
9265         Tests for module 'fmaf'.
9266         * modules/fmaf-tests: New file.
9267         * tests/test-fmaf1.c: New file.
9268         * tests/test-fmaf2.c: New file.
9269
9270         New module 'fmaf'.
9271         * lib/math.in.h (fmaf): New declaration.
9272         * lib/fmaf.c: New file.
9273         * m4/fmaf.m4: New file.
9274         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
9275         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
9276         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
9277         REPLACE_FMAF.
9278         * modules/fmaf: New file.
9279         * doc/posix-functions/fmaf.texi: Mention the new module and the various
9280         bugs.
9281
9282         Tests for module 'fma'.
9283         * modules/fma-tests: New file.
9284         * tests/test-fma1.c: New file.
9285         * tests/test-fma1.h: New file.
9286         * tests/test-fma2.c: New file.
9287         * tests/test-fma2.h: New file.
9288
9289         New module 'fma'.
9290         * lib/math.in.h (fma): New declaration.
9291         * lib/fma.c: New file.
9292         * m4/fma.m4: New file.
9293         * m4/fegetround.m4: New file.
9294         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
9295         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
9296         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
9297         REPLACE_FMA.
9298         * modules/fma: New file.
9299         * doc/posix-functions/fma.texi: Mention the new module and the various
9300         bugs.
9301
9302         Extend gl_MATHFUNC.
9303         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
9304         Support 'void' as argument type.
9305         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
9306
9307 2011-11-05  Jim Meyering  <meyering@redhat.com>
9308
9309         maint.mk: also prohibit inclusion of dirent.h without use
9310         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
9311
9312 2011-11-05  Bruno Haible  <bruno@clisp.org>
9313
9314         ldexpl tests: Avoid test failure on MSVC 9.
9315         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
9316         value. Needed in order to enforce the conversion from a value greater
9317         than LDBL_MAX to Infinity.
9318
9319 2011-11-05  Bruno Haible  <bruno@clisp.org>
9320
9321         New modules 'at-internal', 'openat-h', split off from module 'openat'.
9322         * modules/at-internal: New file, extracted from modules/openat.
9323         * modules/openat-h: New file.
9324         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
9325         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
9326         * modules/openat (Description): Add reference to POSIX function.
9327         (Files): Remove lib/openat.h, lib/openat-proc.c.
9328         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
9329         intprops, unistd.
9330         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
9331         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
9332         gl_FCNTL_MODULE_INDICATOR.
9333         (Include): Remove unistd.h, openat.h.
9334         * modules/areadlinkat (Files): Add lib/at-func.c.
9335         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9336         openat-die, openat-h, save-cwd.
9337         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
9338         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9339         openat-die, openat-h, save-cwd, unistd.
9340         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
9341         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9342         openat-h, save-cwd. Remove fcntl-h, openat.
9343         * modules/fchmodat (Files): Remove lib/openat.h.
9344         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9345         openat, stdbool, unistd.
9346         * modules/fchownat (Files): Remove lib/openat.h.
9347         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9348         openat, stdbool, sys_stat.
9349         * modules/fdopendir (Files): Remove lib/openat-priv.h,
9350         lib/openat-proc.c.
9351         (Depends-on): Add at-internal.
9352         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
9353         * modules/fstatat (Files): Remove lib/openat.h.
9354         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
9355         stdbool, unistd.
9356         * modules/fts (Depends-on): Add openat-h.
9357         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
9358         openat.
9359         * modules/mkdirat (Files): Remove lib/openat.h.
9360         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
9361         openat, stdbool, sys_stat.
9362         * modules/mkfifoat (Files): Add lib/at-func.c.
9363         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9364         openat-h, save-cwd. Remove fcntl-h, openat.
9365         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
9366         * modules/readlinkat (Files): Add lib/at-func.c.
9367         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9368         openat-h, save-cwd. Remove fcntl-h, openat.
9369         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
9370         openat.
9371         * modules/selinux-at (Files): Add lib/at-func.c.
9372         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
9373         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
9374         * modules/symlinkat (Files): Add lib/at-func.c.
9375         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
9376         openat-h, save-cwd. Remove fcntl-h, openat.
9377         * modules/unlinkat (Files): Remove lib/openat.h.
9378         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
9379         stdbool.
9380         * modules/utimensat (Files): Add lib/at-func.c.
9381         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
9382         openat-die, openat-h, save-cwd.
9383         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
9384         * modules/fdutimensat-tests (Depends-on): Add openat.
9385         * modules/fstatat-tests (Depends-on): Add openat-h.
9386         * modules/readlinkat-tests (Depends-on): Add openat.
9387         * modules/symlinkat-tests (Depends-on): Add openat.
9388
9389 2011-11-05  Bruno Haible  <bruno@clisp.org>
9390
9391         openat: Include <stdbool.h>.
9392         * lib/openat.c: Include <stdbool.h>.
9393
9394 2011-11-04  Bruno Haible  <bruno@clisp.org>
9395
9396         fchownat, renameat, unlinkat: Fix dependencies.
9397         * modules/fchownat (Depends-on): Add fstatat.
9398         * modules/renameat (Depends-on): Likewise.
9399         * modules/unlinkat (Depends-on): Likewise.
9400
9401 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
9402
9403         openat: remove direct dependency on dirent
9404         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
9405         and hasn't been needed ever since fdopendir was split into its own
9406         module on 2009-08-31.
9407         * modules/openat (Depends-on): Remove dirent.
9408
9409 2011-11-04  Bruno Haible  <bruno@clisp.org>
9410
9411         renameat: Optimize code size.
9412         * modules/renameat (configure.ac): Don't compile at-func2.c if
9413         REPLACE_RENAMEAT is 1.
9414
9415 2011-11-04  Bruno Haible  <bruno@clisp.org>
9416
9417         openat tests: Fix file list.
9418         * modules/openat-tests (Files): Add tests/test-open.h.
9419
9420 2011-11-04  Bruno Haible  <bruno@clisp.org>
9421
9422         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
9423         * modules/fchmodat (Depends-on): Add openat-die.
9424         * modules/fchownat (Depends-on): Likewise.
9425         * modules/linkat (Depends-on): Likewise.
9426         * modules/renameat (Depends-on): Likewise.
9427         * modules/openat (Depends-on): Add dirent.
9428
9429 2011-11-04  Jim Meyering  <meyering@redhat.com>
9430
9431         at-func*.c: fix comments
9432         * lib/at-func2.c: Correct/improve first-line comment.
9433         * lib/at-func.c: Correct grammar in first-line comment.
9434
9435 2011-11-04  Bruno Haible  <bruno@clisp.org>
9436
9437         New module 'mkdirat', split off from module 'openat'.
9438         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
9439         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
9440         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
9441         * modules/mkdirat: New file, extracted from modules/openat.
9442         * modules/openat (Files): Remove lib/mkdirat.c.
9443         (Depends-on): Remove mkdir.
9444         (configure.ac): Remove AC_LIBOBJ of mkdirat.
9445         (Include): Remove <sys/stat.h>.
9446         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
9447         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
9448         tests/test-mkdir.h.
9449         (Depends-on): Remove ignore-value.
9450         (Makefile.am): Remove rules for test-mkdirat.
9451         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
9452         of module 'openat'.
9453         * NEWS: Mention the change.
9454
9455 2011-11-04  Bruno Haible  <bruno@clisp.org>
9456
9457         closedir: Avoid warning on mingw.
9458         * lib/closedir.c: Include <unistd.h>.
9459
9460 2011-11-04  Bruno Haible  <bruno@clisp.org>
9461
9462         New module 'fstatat', split off from module 'openat'.
9463         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
9464         defined.
9465         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
9466         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
9467         gl_FUNC_FSTATAT.
9468         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
9469         * modules/fstatat: New file, extracted from modules/openat.
9470         * modules/openat (Files): Remove lib/fstatat.c.
9471         (Depends-on): Remove lstat.
9472         (configure.ac): Remove AC_LIBOBJ of fstatat.
9473         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
9474         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
9475         tests/test-lstat.h, tests/test-stat.h.
9476         (Depends-on): Remove getcwd-lgpl.
9477         (Makefile.am): Remove rules for test-fstatat.
9478         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
9479         of module 'openat'.
9480         * NEWS: Mention the change.
9481         * modules/getcwd (Depends-on): Add fstatat.
9482         * modules/linkat (Depends-on): Likewise.
9483         * modules/mkfifoat-tests (Depends-on): Likewise.
9484         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
9485
9486 2011-11-03  Bruno Haible  <bruno@clisp.org>
9487
9488         New module 'unlinkat', split off from module 'openat'.
9489         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
9490         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
9491         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
9492         * modules/unlinkat: New file, extracted from modules/openat. Correct
9493         the dependency conditions.
9494         * modules/openat (Files): Remove lib/unlinkat.c.
9495         (Depends-on): Remove rmdir, unlink.
9496         (configure.ac): Remove AC_LIBOBJ of unlinkat.
9497         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
9498         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
9499         tests/test-rmdir.h, tests/test-unlink.h.
9500         (Depends-on): Remove unlinkdir.
9501         (Makefile.am): Remove rules for test-unlinkat.
9502         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
9503         of module 'openat'.
9504         * NEWS: Mention the change.
9505         * modules/linkat-tests (Depends-on): Add unlinkat.
9506         * modules/mkfifoat-tests (Depends-on): Likewise.
9507         * modules/readlinkat-tests (Depends-on): Likewise.
9508
9509 2011-11-02  Bruno Haible  <bruno@clisp.org>
9510
9511         New module 'fchmodat', split off from module 'openat'.
9512         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
9513         defined.
9514         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
9515         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
9516         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
9517         * modules/fchmodat: New file, extracted from modules/openat.
9518         * modules/openat (Files): Remove lib/fchmodat.c.
9519         (configure.ac): Remove AC_LIBOBJ of fchmodat.
9520         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
9521         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
9522         (Makefile.am): Remove rules for test-fchmodat.
9523         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
9524         of module 'openat'.
9525         * NEWS: Mention the change.
9526
9527 2011-11-02  Jim Meyering  <meyering@redhat.com>
9528
9529         putenv: indent #definition of "environ" to placate cppi
9530         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
9531
9532         gitlog-to-changelog: provide a ChangeLog-repair mechanism
9533         Git logs are often treated as immutable, because editing them
9534         changes the SHA1 checksums of all descendants.  Thus, errors in
9535         git logs tend to stay there forever.  However, when we generate
9536         a ChangeLog file -- typically for distribution -- from that git log,
9537         we can actually make corrections in the generated file.  The key
9538         lies in recording in machine-readable/applicable form the desired
9539         corrections.  See --help for description and an example.
9540         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
9541         (usage): Describe it; alphabetize option descriptions.
9542         (main): Honor the new option, carefully.
9543
9544 2011-11-01  Jim Meyering  <meyering@redhat.com>
9545
9546         gitlog-to-changelog: avoid an infloop
9547         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
9548         that ends up being empty.
9549
9550 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
9551
9552         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
9553         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
9554         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
9555         contains (possibly-quoted) backslashes.  This should avoid
9556         all-too-common shell bugs if COMPLICATED contains backslashes in
9557         the "wrong" places.  Reported by David Evans in
9558         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
9559         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
9560         because we want ASCII ranges.  Is there some reason we don't use
9561         the C locale everywhere in this script?
9562         (func_module, top level): Avoid unwanted pathname expansion when
9563         $repo_url_prefix or $repo_url_suffix_repl contain shell
9564         metacharacters like '?' and '*'.
9565
9566 2011-11-01  Bruno Haible  <bruno@clisp.org>
9567
9568         fchownat: Improve description.
9569         * modules/fchownat (Description): Add link to function.
9570
9571 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
9572
9573         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
9574         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
9575         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
9576         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
9577
9578 2011-11-01  Bruno Haible  <bruno@clisp.org>
9579
9580         alignof: Avoid collision with stdalign module.
9581         * lib/alignof.h (alignof): Remove macro.
9582         * NEWS: Mention the change.
9583         Reported by Paul Eggert.
9584
9585 2011-11-01  Bruno Haible  <bruno@clisp.org>
9586
9587         New module 'fchownat', split off from module 'openat'.
9588         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
9589         defined.
9590         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
9591         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
9592         invoke gl_FUNC_FCHOWNAT.
9593         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
9594         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
9595         * modules/fchownat: New file, extracted from modules/openat.
9596         * modules/openat (Files): Remove lib/fchownat.c.
9597         (Depends-on): Remove lchown.
9598         (configure.ac): Remove AC_LIBOBJ of fchownat.
9599         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
9600         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
9601         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
9602         (Depends-on): Remove mgetgroups, usleep, stat-time.
9603         (configure.ac): Remove test for getegid.
9604         (Makefile.am): Remove rules for test-fchownat.
9605         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
9606         of module 'openat'.
9607         * NEWS: Mention the change.
9608
9609 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
9610
9611         stdalign: port better to MSVC and to Sun C 5.11
9612         This fixes some of the problems reported by Bruno Haible in
9613         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
9614         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
9615         shortcomings of MSVC and of Sun C 5.11.
9616         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
9617         around __declspec arg.
9618         * modules/stdalign-tests (Files): Add tests/macros.h.
9619         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
9620         Include macros.h, for ASSERT.
9621         (DECLARE_ALIGNED): Remove.
9622         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
9623         to catch bug), and to 1 if not (simplifies the rest of the code).
9624         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
9625         (CHECK_AUTO): Remove.
9626         (CHECK_ALIGNED): Check only the alignment of the static vars,
9627         since auto var alignment isn't supported by Sun C 5.11.
9628         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
9629         ASSERT failures are easier to diagnose.
9630
9631 2011-10-31  Bruno Haible  <bruno@clisp.org>
9632
9633         doc about some IRIX 5.3 problems.
9634         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
9635         on IRIX 5.3.
9636         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
9637         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
9638         5.3.
9639         * doc/posix-functions/grantpt.texi: Likewise.
9640         * doc/posix-functions/unlockpt.texi: Likewise.
9641         * doc/posix-functions/lgamma.texi: Likewise.
9642         * doc/posix-functions/nextafter.texi: Likewise.
9643         * doc/posix-functions/remainder.texi: Likewise.
9644         * doc/posix-functions/select.texi: Mention misplaced declaration on
9645         IRIX 5.3.
9646         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9647
9648 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
9649
9650         gitlog-to-changelog: fix git-log invocation.
9651         git-log mishandles date strings before 1970-01-01 UTC, and there is
9652         no use to specify --since=1970-01-01 by default anyway.
9653         * build-aux/gitlog-to-changelog: By default, when no --since option
9654         was given, do not specify explicit --since option to git-log.
9655
9656 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
9657
9658         gitlog-to-changelog: new option --append-dot.
9659         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
9660         first non-blank line of each commit message terminated with a dot.
9661
9662 2011-10-30  Bruno Haible  <bruno@clisp.org>
9663
9664         ffsl, ffsll: Avoid compilation error due to 'restrict'.
9665         * lib/ffsl.h: Include <config.h>.
9666         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
9667
9668 2011-10-30  Jim Meyering  <meyering@redhat.com>
9669
9670         GNUmakefile: reenable "make syntax-check" for most projects
9671         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
9672         build-aux variable", "syntax-check" would do nothing but succeed with
9673         the "No version control files detected..." diagnostic (unless you
9674         happened to override _build-aux via cfg.mk).
9675         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
9676         to precede inclusion of maint.mk.  Otherwise, these variables would
9677         be used undefined in any project that does not override the default.
9678
9679 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
9680
9681         gitlog-to-changelog: treat a message with only blank lines as empty.
9682         * build-aux/gitlog-to-changelog: Move the code that removes leading and
9683         trailing blank lines before the code that issues a warning about an
9684         empty commit message.
9685
9686 2011-10-30  Jim Meyering  <meyering@redhat.com>
9687
9688         test-parse-datetime.c: avoid new DST-related false positive test failure
9689         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
9690         based on the time/date we'll convert, not the current time.
9691         Otherwise, the moment we cross a DST boundary like today's in
9692         Europe, (CEST to CET), that offset ends up being one hour off.
9693
9694 2011-10-27  Bruno Haible  <bruno@clisp.org>
9695
9696         fstat: Tweak documentation.
9697         * modules/fstat (Description): More precise description.
9698
9699 2011-10-27  Bruno Haible  <bruno@clisp.org>
9700
9701         Update documentation regarding 'largefile' module.
9702         * doc/posix-functions/fstat.texi: Tweak wording.
9703         * doc/posix-functions/opendir.texi: Mention that the module fixes the
9704         problems with huge directories and/or small ino_t types.
9705         * doc/posix-functions/readdir.texi: Likewise.
9706         * doc/posix-functions/rewinddir.texi: Likewise.
9707
9708 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
9709
9710         maint.mk: don't maintain a second build-aux variable.
9711         * maint.mk (build_aux): Removed.  The maintainer-makefile module
9712         depends on GNUmakefile, which already maintains a cfg.mk
9713         overridable $(_build-aux) for projects with a non-standard
9714         build-aux directory location, although without the $(srcdir)
9715         prefix.  Use that variable consistently instead of introducing a
9716         second one.  Adjust all call sites.
9717
9718 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
9719
9720         Add stdalign module and use it in other modules.
9721         This is based on a previous proposal by Bruno Haible
9722         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
9723
9724         stdalign: new module
9725         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
9726         * modules/stdalign: New files.
9727         * MODULES.html.sh (c1x_core_properties): Add stdalign.
9728         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
9729
9730         stdalign-tests: new module
9731         * modules/stdalign-tests, tests/test-stdalign.c: New files.
9732
9733         argp: use stdalign
9734         * lib/argp-parse.c: Include <stdalign.h>.
9735         (alignof): Remove.
9736         * modules/argp (Depends-on): Add stdalign.
9737
9738         crypto libraries: use stdalign
9739         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
9740         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
9741         Do not include <stdlib.h> twice, in md4.c.
9742         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
9743         because we are accessing a pointer's bit-pattern, not a size.
9744         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
9745         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
9746         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
9747         * modules/crypto/sha512: Likewise.
9748
9749         sys_socket: use stdalign, not alignof
9750         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
9751         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
9752
9753 2011-10-27  Bruno Haible  <bruno@clisp.org>
9754
9755         raise test: Avoid a test failure on Linux/MIPS.
9756         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
9757         because 99 is a valid signal on Linux/MIPS.
9758
9759 2011-10-27  Bruno Haible  <bruno@clisp.org>
9760
9761         nonblocking tests: Fix test failure on Linux/MIPS.
9762         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
9763         Set to 270000.
9764
9765 2011-10-27  Bruno Haible  <bruno@clisp.org>
9766
9767         utimensat: Work around problem on Linux/hppa.
9768         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
9769         values.
9770         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
9771
9772 2011-10-25  Jim Meyering  <meyering@redhat.com>
9773
9774         maint.mk: fix a bug in sc_prohibit_stddef_without_use
9775         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
9776         after symbols like NULL, size_t, etc.
9777         Reported by Alfred M. Szmidt.
9778
9779         maint.mk: exempt ENODATA from a syntax-check rule
9780         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
9781         from the sc_prohibit_always-defined_macros syntax-check rule.
9782         Add a comment.  See this for more details:
9783         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
9784
9785 2011-10-23  Jim Meyering  <meyering@redhat.com>
9786
9787         fts: close parent dir FD before returning from post-traversal fts_read
9788         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
9789         unlink A, even though an FD open on A remained.  This is suboptimal
9790         (holding a file descriptor open longer than needed), but otherwise not
9791         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
9792         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
9793         that represents a real problem: it causes the removal of A to fail
9794         with e.g., "rm: cannot remove `A': Device or resource busy"
9795
9796         fts visits each directory twice and keeps a cache (fts_fd_ring) of
9797         directory file descriptors.  After completing the final, FTS_DP,
9798         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
9799         cache, but then proceeded to add a new FD to it via the subsequent
9800         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
9801         final file descriptor would be closed only via fts_close's call to
9802         fd_ring_clear.  Now, it is usually closed earlier, via the final
9803         FTS_DP-returning fts_read call.
9804         * lib/fts.c (restore_initial_cwd): New function, converted from
9805         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
9806         Update callers.
9807         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
9808         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
9809
9810 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
9811             Bruno Haible  <bruno@clisp.org>
9812             Jim Meyering  <jim@meyering.net>
9813
9814         readme-release: improve safety of release prep instructions.
9815         * README-release: Don't git pull all branches when only master
9816         is needed for the release process.
9817         Run make maintainer-clean before changing trees and merging.
9818         Don't try to run ./configure right after git pull in case files
9819         that influence the bootstrap process have changed, move the
9820         ./configure step to after running ./bootstrap.
9821         Don't bootstrap "one last time"... it's the first time!
9822
9823 2011-10-22  Bruno Haible  <bruno@clisp.org>
9824
9825         errno, strerror-override: Support for MSVC 10.
9826         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
9827         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
9828         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
9829         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
9830         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
9831         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
9832         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
9833         Assign values compatible with MSVC 10.
9834         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
9835         New macros.
9836         (GNULIB_defined_EWINSOCK): New macro.
9837         * lib/strerror-override.c (strerror_override): Update accordingly.
9838         * lib/strerror-override.h: Likewise.
9839         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
9840         longer equal to the corresponding errno value.
9841         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9842
9843 2011-10-22  Bruno Haible  <bruno@clisp.org>
9844
9845         perror: Recognize when test program crashes.
9846         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
9847         strerror, set gl_cv_func_perror_works to no.
9848         Reported by Daniel Richard G. <skunk@iskunk.org>.
9849
9850         perror: Fix indentation.
9851         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
9852
9853 2011-10-22  Bruno Haible  <bruno@clisp.org>
9854
9855         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
9856         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
9857         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
9858         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
9859         functions, not as a macro.
9860         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
9861         macros.
9862         (isfinite, isinf, isnan, signbit): Check overloaded functions and
9863         absence of macro.
9864         Suggested by Eric Blake.
9865         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
9866
9867 2011-10-21  Bruno Haible  <bruno@clisp.org>
9868
9869         relocatable-prog-wrapper: Don't leave object files behind.
9870         * build-aux/install-reloc: Re-synchronize list of .o files to be
9871         removed with list of compilation units.
9872
9873 2011-10-20  Bruno Haible  <bruno@clisp.org>
9874
9875         openpty, posix_openpt: Remove code duplication.
9876         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
9877         * lib/openpty.c: Include <stdlib.h>.
9878         (openpty): Use posix_openpt on all platforms except IRIX.
9879         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
9880
9881 2011-10-20  Bruno Haible  <bruno@clisp.org>
9882
9883         unlockpt: Detect invalid argument.
9884         * lib/unlockpt.c: Include <fcntl.h>.
9885         (unlockpt): Check whether fd is valid, using fcntl().
9886         * modules/unlockpt (Depends-on): Add fcntl-h.
9887
9888 2011-10-20  Bruno Haible  <bruno@clisp.org>
9889
9890         openpty: Avoid compilation error on AIX 6.1.
9891         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
9892
9893 2011-10-20  Bruno Haible  <bruno@clisp.org>
9894
9895         posix_openpt: Support for OpenBSD.
9896         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
9897         (posix_openpt) [OpenBSD]: New code.
9898         * lib/grantpt.c: Include <fcntl.h>.
9899         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
9900         * modules/grantpt (Depends-on): Add fcntl-h.
9901
9902 2011-10-20  Bruno Haible  <bruno@clisp.org>
9903
9904         posix_openpt test: Coding style.
9905         * tests/test-posix_openpt.c: Use GNU coding style.
9906
9907 2011-10-20  Bruno Haible  <bruno@clisp.org>
9908
9909         grantpt: Support --avoid=pt_chown.
9910         * modules/grantpt (Files): Add lib/pty-private.h.
9911
9912 2011-10-20  Bruno Haible  <bruno@clisp.org>
9913
9914         posix_openpt: Fix autoconf macro.
9915         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
9916         unneeded check for _getpty.
9917
9918 2011-10-20  Bruno Haible  <bruno@clisp.org>
9919
9920         openpty: Update comments.
9921         * lib/openpty.c: Add comments about Minix.
9922
9923 2011-10-19  Eric Blake  <eblake@redhat.com>
9924
9925         openpty: relax license
9926         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
9927
9928         pt_chown: use configmake to simplify build
9929         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
9930
9931         ptsname and others: relax license
9932         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
9933         * modules/unlockpt (License): Likewise.
9934         * modules/pt_chown (License): Likewise.
9935         * modules/ptsname (License): Likewise.
9936         * modules/ttyname_r (License): Likewise.
9937
9938 2011-10-19  Jim Meyering  <meyering@redhat.com>
9939
9940         posix_openpt: remove spurious #endif
9941         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
9942
9943 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
9944
9945         maint.mk: Respect $(build_aux) in web-manual rule.
9946         * top/maint.mk (web-manual): Find gen-announce script in user's
9947         $(build_aux) directory instead of hard-coding 'build-aux'.
9948
9949 2011-10-19  Bruno Haible  <bruno@clisp.org>
9950
9951         posix_openpt: Fix compilation error.
9952         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
9953         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
9954         Mention the openpty module as an alternative.
9955
9956 2011-10-19  Bruno Haible  <bruno@clisp.org>
9957
9958         Support for old NeXTstep 3.3 frexp().
9959         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
9960         execution time of the test to 5 seconds.
9961         Reported by Daniel Richard G. <skunk@iskunk.org>.
9962
9963 2011-10-19  Bruno Haible  <bruno@clisp.org>
9964
9965         Support for old NeXTstep 3.3 sed.
9966         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
9967         part, use /.../, not \|...|. Escape periods in the header file name.
9968         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
9969         Reported by Daniel Richard G. <skunk@iskunk.org>.
9970
9971 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
9972
9973         Support for old NeXTstep 3.3 gcc.
9974         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
9975         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
9976         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
9977         * lib/spawn.in.h (_Restrict_arr_): Likewise.
9978         * lib/regex.h (_Restrict_arr_): Likewise.
9979         * lib/regex_internal.h (re_token_t): Likewise.
9980         * lib/regexec.c (check_node_accept_bytes): Likewise.
9981         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
9982
9983 2011-10-18  Eric Blake  <eblake@redhat.com>
9984
9985         posix_openpt: new module
9986         * modules/posix_openpt: New module.
9987         * m4/posix_openpt.m4: New file.
9988         * lib/posix_openpt.c: Likewise.
9989         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
9990         (gl_STDLIB_H_DEFAULTS): Set defaults.
9991         * modules/stdlib (Makefile.am): Substitute macros.
9992         * lib/stdlib.in.h (posix_openpt): Declare.
9993         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
9994         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
9995         * modules/posix_openpt-tests: New test module.
9996         * tests/test-posix_openpt.c: New test.
9997
9998 2011-10-15  Bruno Haible  <bruno@clisp.org>
9999
10000         xstrtoll: Fix compilation failure.
10001         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
10002         from lib/strtol.c.
10003         * doc/posix-headers/limits.texi: Mention missing numerical limits on
10004         some platforms.
10005         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10006
10007 2011-10-15  Bruno Haible  <bruno@clisp.org>
10008
10009         vasnprintf: Optimize bit search operation.
10010         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
10011         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
10012         gl_DOUBLE_EXPONENT_LOCATION.
10013         * modules/vasnprintf (Files): Add m4/exponentd.m4.
10014         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10015         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10016         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10017         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10018         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10019         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10020         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10021         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
10022
10023 2011-10-15  Bruno Haible  <bruno@clisp.org>
10024
10025         vasnprintf: Fix comments.
10026         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
10027
10028 2011-10-14  Bruno Haible  <bruno@clisp.org>
10029
10030         Tests for module 'integer_length_ll'.
10031         * modules/integer_length_ll-tests: New file.
10032         * tests/test-integer_length_ll.c: New file.
10033
10034         New module 'integer_length_ll'.
10035         * lib/integer_length_ll.c: New file.
10036         * modules/integer_length_ll: New file.
10037
10038 2011-10-14  Bruno Haible  <bruno@clisp.org>
10039
10040         Tests for module 'integer_length_l'.
10041         * modules/integer_length_l-tests: New file.
10042         * tests/test-integer_length_l.c: New file.
10043
10044         New module 'integer_length_l'.
10045         * lib/integer_length_l.c: New file.
10046         * modules/integer_length_l: New file.
10047
10048 2011-10-14  Bruno Haible  <bruno@clisp.org>
10049
10050         Tests for module 'integer_length'.
10051         * modules/integer_length-tests: New file.
10052         * tests/test-integer_length.c: New file.
10053
10054         New module 'integer_length'.
10055         * lib/integer_length.h: New file.
10056         * lib/integer_length.c: New file.
10057         * modules/integer_length: New file.
10058
10059 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10060
10061         popen: Fix dependency conditions.
10062         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
10063
10064 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
10065
10066         perror: Fix autoconf test.
10067         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
10068         <stdlib.h> and <string.h>.
10069
10070 2011-10-14  Bruno Haible  <bruno@clisp.org>
10071
10072         ffsl: Optimize on 64-bit platforms.
10073         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
10074         unrolling.
10075
10076 2011-10-13  Bruno Haible  <bruno@clisp.org>
10077
10078         ffsl: Optimize on 32-bit platforms.
10079         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
10080         use ffs() without a loop.
10081
10082         ffsl, ffsll: Optimize for GCC.
10083         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
10084         * lib/ffsl.c (GCC_BUILTIN): New macro.
10085         * lib/ffsll.c (GCC_BUILTIN): Likewise.
10086
10087 2011-10-13  Bruno Haible  <bruno@clisp.org>
10088
10089         ffs, bcopy, memset: Support symbol renaming via config.h.
10090         * lib/ffs.c: Include <config.h>.
10091         * lib/bcopy.c: Likewise.
10092         * lib/memset.c: Likewise.
10093
10094 2011-10-10  Bruno Haible  <bruno@clisp.org>
10095
10096         atanl: Simplify for platforms where 'long double' == 'double'.
10097         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10098         alternative implementation.
10099         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10100         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10101         * modules/atanl (Depends-on): Add atan. Update conditions.
10102
10103 2011-10-10  Bruno Haible  <bruno@clisp.org>
10104
10105         acosl: Simplify for platforms where 'long double' == 'double'.
10106         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10107         alternative implementation.
10108         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10109         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10110         * modules/acosl (Depends-on): Add acos. Update conditions.
10111
10112 2011-10-10  Bruno Haible  <bruno@clisp.org>
10113
10114         asinl: Simplify for platforms where 'long double' == 'double'.
10115         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10116         alternative implementation.
10117         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10118         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10119         * modules/asinl (Depends-on): Add asin. Update conditions.
10120
10121 2011-10-10  Bruno Haible  <bruno@clisp.org>
10122
10123         tanl: Simplify for platforms where 'long double' == 'double'.
10124         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10125         implementation.
10126         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10127         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10128         * modules/tanl (Depends-on): Add tan. Update conditions.
10129         (configure.ac): Don't compile trigl.c if
10130         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10131
10132 2011-10-10  Bruno Haible  <bruno@clisp.org>
10133
10134         cosl: Simplify for platforms where 'long double' == 'double'.
10135         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10136         implementation.
10137         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10138         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10139         * modules/cosl (Depends-on): Add cos. Update conditions.
10140         (configure.ac): Don't compile sincosl.c and trigl.c if
10141         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10142
10143 2011-10-10  Bruno Haible  <bruno@clisp.org>
10144
10145         sinl: Simplify for platforms where 'long double' == 'double'.
10146         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10147         implementation.
10148         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10149         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10150         * modules/sinl (Depends-on): Add sin. Update conditions.
10151         (configure.ac): Don't compile sincosl.c and trigl.c if
10152         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10153
10154 2011-10-10  Bruno Haible  <bruno@clisp.org>
10155
10156         logl: Simplify for platforms where 'long double' == 'double'.
10157         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10158         implementation.
10159         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10160         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10161         * modules/logl (Depends-on): Add log. Update conditions.
10162
10163 2011-10-10  Bruno Haible  <bruno@clisp.org>
10164
10165         expl: Simplify for platforms where 'long double' == 'double'.
10166         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
10167         implementation.
10168         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10169         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10170         * modules/expl (Depends-on): Add exp. Update conditions.
10171
10172 2011-10-10  Bruno Haible  <bruno@clisp.org>
10173
10174         sqrtl: Simplify for platforms where 'long double' == 'double'.
10175         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10176         alternative implementation.
10177         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10178         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10179         * modules/sqrtl (Depends-on): Update conditions.
10180
10181 2011-10-10  Bruno Haible  <bruno@clisp.org>
10182
10183         ldexpl: Simplify for platforms where 'long double' == 'double'.
10184         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10185         alternative implementation.
10186         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10187         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10188         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
10189
10190 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
10191
10192         ffsll: set correct witness
10193         * modules/ffsll (configure.ac): Fix typo.
10194
10195 2011-10-10  Bruno Haible  <bruno@clisp.org>
10196
10197         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
10198         * lib/printf-frexpl.c: Include <config.h>.
10199         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10200         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
10201         second time.
10202         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
10203         gl_LONG_DOUBLE_VS_DOUBLE.
10204         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
10205         conditions.
10206
10207 2011-10-10  Bruno Haible  <bruno@clisp.org>
10208
10209         frexpl: Simplify for platforms where 'long double' == 'double'.
10210         * lib/frexpl.c: Include <config.h>.
10211         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10212         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10213         time.
10214         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10215         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10216         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
10217         * modules/frexpl (Depends-on): Add frexp. Update conditions.
10218         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
10219         conditions.
10220
10221 2011-10-10  Jim Meyering  <meyering@redhat.com>
10222
10223         test-renameat: don't leave behind a temporary file
10224         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
10225           ERROR: files left in build directory after distclean:
10226           ./gltests/test-renameat.too
10227           make[1]: *** [distcleancheck] Error 1
10228         Reported by Tom G. Christensen.
10229
10230 2011-10-09  Bruno Haible  <bruno@clisp.org>
10231
10232         rint: Determine RINT_LIBM correctly on AIX 7.
10233         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
10234         directly, not only through a function pointer. Also accept an optional
10235         4th argument with extra code.
10236         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
10237         rintf() call by gcc when optimizing.
10238
10239         mathfunc.m4: Refactor.
10240         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
10241         m4 variable.
10242
10243 2011-10-09  Bruno Haible  <bruno@clisp.org>
10244
10245         rintl: Simplify for platforms where 'long double' == 'double'.
10246         * lib/rintl.c: Include <config.h>.
10247         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10248         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10249         time.
10250         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10251         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10252         * modules/rintl (Depends-on): Add rint. Update conditions.
10253
10254 2011-10-09  Bruno Haible  <bruno@clisp.org>
10255
10256         roundl: Simplify for platforms where 'long double' == 'double'.
10257         * lib/roundl.c: Include <config.h>.
10258         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10259         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10260         time.
10261         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10262         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10263         * modules/roundl (Depends-on): Add round. Update conditions.
10264
10265 2011-10-09  Bruno Haible  <bruno@clisp.org>
10266
10267         truncl: Simplify for platforms where 'long double' == 'double'.
10268         * lib/truncl.c: Include <config.h>.
10269         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10270         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10271         time.
10272         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10273         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10274         * modules/truncl (Depends-on): Add trunc. Update conditions.
10275
10276 2011-10-09  Bruno Haible  <bruno@clisp.org>
10277
10278         ceill: Simplify for platforms where 'long double' == 'double'.
10279         * lib/ceill.c: Include <config.h>.
10280         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10281         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10282         time.
10283         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10284         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10285         * modules/ceill (Depends-on): Add ceil. Update conditions.
10286
10287 2011-10-09  Bruno Haible  <bruno@clisp.org>
10288
10289         floorl: Simplify for platforms where 'long double' == 'double'.
10290         * lib/floorl.c: Include <config.h>.
10291         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
10292         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
10293         time.
10294         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10295         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10296         * modules/floorl (Depends-on): Add floor. Update conditions.
10297
10298 2011-10-09  Bruno Haible  <bruno@clisp.org>
10299
10300         rint: Fix ordering constraints.
10301         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
10302         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
10303         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
10304
10305 2011-10-09  Bruno Haible  <bruno@clisp.org>
10306
10307         copysignl: Simplify for platforms where 'long double' == 'double'.
10308         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
10309         alternative.
10310         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10311         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
10312         * modules/copysignl (Depends-on): Add copysign. Update conditions.
10313
10314 2011-10-09  Bruno Haible  <bruno@clisp.org>
10315
10316         Tests for module 'rintl'.
10317         * modules/rintl-tests: New file.
10318         * tests/test-rintl.c: New file.
10319
10320         New module 'rintl'.
10321         * lib/math.in.h (rintl): New declaration.
10322         * lib/rintl.c: New file.
10323         * m4/rintl.m4: New file.
10324         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
10325         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
10326         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
10327         * modules/rintl: New file.
10328         * tests/test-math-c++.cc: Check the declaration of rintl.
10329         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10330         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
10331         * doc/posix-functions/rintl.texi: Mention the new module.
10332
10333 2011-10-09  Bruno Haible  <bruno@clisp.org>
10334
10335         Tests for module 'rintf'.
10336         * modules/rintf-tests: New file.
10337         * tests/test-rintf.c: New file.
10338
10339         New module 'rintf'.
10340         * lib/math.in.h (rintf): New declaration.
10341         * lib/rintf.c: New file.
10342         * m4/rintf.m4: New file.
10343         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
10344         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
10345         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
10346         * modules/rintf: New file.
10347         * tests/test-math-c++.cc: Check the declaration of rintf.
10348         * doc/posix-functions/rintf.texi: Mention the new module.
10349
10350 2011-10-09  Bruno Haible  <bruno@clisp.org>
10351
10352         rint: Support for MSVC.
10353         * lib/math.in.h (rint): New declaration.
10354         * lib/rint.c: New file.
10355         * m4/rint.m4: New file.
10356         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
10357         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
10358         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
10359         * modules/rint (Description): Fix.
10360         (Files): Add lib/rint.c, m4/rint.m4.
10361         (Depends-on): Add math.
10362         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
10363         gl_MATH_MODULE_INDICATOR.
10364         * tests/test-math-c++.cc: Check the declaration of rint.
10365         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10366         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
10367         * doc/posix-functions/rint.texi: Mention the replacement provided by
10368         the module.
10369
10370         rint tests: More tests.
10371         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
10372         minus-zero.h, infinity.h, nan.h.
10373         (main): Skip the test if the current rounding mode is not standard. Add
10374         tests for negative numbers, minus zero, infinity, NaN.
10375         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
10376         tests/nan.h.
10377         (Depends-on): Add isnand-nolibm.
10378
10379 2011-10-09  Bruno Haible  <bruno@clisp.org>
10380
10381         Tests for module 'copysignl'.
10382         * modules/copysignl-tests: New file.
10383         * tests/test-copysignl.c: New file.
10384
10385         New module 'copysignl'.
10386         * lib/math.in.h (copysignl): New declaration.
10387         * lib/copysignl.c: New file.
10388         * m4/copysignl.m4: New file.
10389         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
10390         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
10391         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
10392         HAVE_COPYSIGNL.
10393         * modules/copysignl: New file.
10394         * tests/test-math-c++.cc: Check the declaration of copysignl.
10395         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
10396         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
10397         * doc/posix-functions/copysignl.texi: Mention the new module.
10398
10399 2011-10-09  Bruno Haible  <bruno@clisp.org>
10400
10401         Tests for module 'copysignf'.
10402         * modules/copysignf-tests: New file.
10403         * tests/test-copysignf.c: New file.
10404
10405         New module 'copysignf'.
10406         * lib/math.in.h (copysignf): New declaration.
10407         * lib/copysignf.c: New file.
10408         * m4/copysignf.m4: New file.
10409         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
10410         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
10411         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
10412         HAVE_COPYSIGNF.
10413         * modules/copysignf: New file.
10414         * tests/test-math-c++.cc: Check the declaration of copysignf.
10415         * doc/posix-functions/copysignf.texi: Mention the new module.
10416
10417 2011-10-09  Bruno Haible  <bruno@clisp.org>
10418
10419         Ensure that HAVE_* variables are set to 1 before they are set to 0.
10420         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
10421         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
10422         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10423         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
10424         gl_SIGNAL_H_DEFAULTS.
10425
10426 2011-10-09  Bruno Haible  <bruno@clisp.org>
10427
10428         poll: Make macro safer.
10429         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
10430         ac_cv_header_poll_h is not set.
10431
10432 2011-10-09  Bruno Haible  <bruno@clisp.org>
10433
10434         copysign: Provide replacement.
10435         * lib/math.in.h (copysign): New declaration.
10436         * lib/copysign.c: New file.
10437         * m4/copysign.m4: New file.
10438         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
10439         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
10440         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
10441         HAVE_COPYSIGN.
10442         * modules/copysign (Description): Clarify.
10443         (Files): Add lib/copysign.c, m4/copysign.m4.
10444         (Depends-on): Add math, signbit.
10445         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
10446         gl_MATH_MODULE_INDICATOR.
10447         * tests/test-math-c++.cc: Check the declaration of copysign.
10448         * doc/posix-functions/copysign.texi: Mention the effects of the module
10449         on Minix and MSVC.
10450
10451 2011-10-09  Bruno Haible  <bruno@clisp.org>
10452
10453         isinf: Ensure macro on AIX 5.1.
10454         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
10455         macro.
10456         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
10457
10458 2011-10-09  Bruno Haible  <bruno@clisp.org>
10459
10460         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
10461         * modules/snprintf-posix-tests (configure.ac): Require
10462         gl_LONG_DOUBLE_VS_DOUBLE.
10463         * modules/sprintf-posix-tests (configure.ac): Likewise.
10464         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
10465         * modules/vasprintf-posix-tests (configure.ac): Likewise.
10466         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
10467         * modules/vsprintf-posix-tests (configure.ac): Likewise.
10468         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
10469         tests on platforms where 'long double' is the same as 'double'.
10470         * tests/test-sprintf-posix.h (test_function): Likewise.
10471         * tests/test-vasnprintf-posix.c (test_function): Likewise.
10472         * tests/test-vasprintf-posix.c (test_function): Likewise.
10473
10474         *printf: Fix for platforms where 'long double' == 'double'.
10475         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
10476         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
10477         * modules/dprintf-posix (Files): Add m4/math_h.m4.
10478         * modules/fprintf-posix (Files): Likewise.
10479         * modules/obstack-printf-posix (Files): Likewise.
10480         * modules/snprintf-posix (Files): Likewise.
10481         * modules/sprintf-posix (Files): Likewise.
10482         * modules/vasnprintf (Files): Likewise.
10483         * modules/vasnprintf-posix (Files): Likewise.
10484         * modules/vasprintf-posix (Files): Likewise.
10485         * modules/vdprintf-posix (Files): Likewise.
10486         * modules/vfprintf-posix (Files): Likewise.
10487         * modules/vsnprintf-posix (Files): Likewise.
10488         * modules/vsprintf-posix (Files): Likewise.
10489         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10490         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10491         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10492         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10493         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10494         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10495         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10496
10497         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
10498         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
10499         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
10500         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
10501         'long double'.
10502         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
10503
10504         isinf: Fix for platforms where 'long double' == 'double'.
10505         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
10506         Don't blindly assume 80-bit 'long double'.
10507
10508         isfinite: Fix for platforms where 'long double' == 'double'.
10509         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
10510         Don't blindly assume 80-bit 'long double'.
10511
10512         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
10513         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
10514         * modules/isfinite-tests (configure.ac): Require
10515         gl_LONG_DOUBLE_VS_DOUBLE.
10516         * modules/isinf-tests (configure.ac): Likewise.
10517         * modules/isnan-tests (configure.ac): Likewise.
10518         * modules/isnanl-tests (configure.ac): Likewise.
10519         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
10520         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
10521         tests on platforms where 'long double' is the same as 'double'.
10522         * tests/test-isinf.c (test_isinfl): Likewise.
10523         * tests/test-isnan.c (test_long_double): Likewise.
10524         * tests/test-isnanl.h (main): Likewise.
10525
10526 2011-10-08  Bruno Haible  <bruno@clisp.org>
10527
10528         Tests for module 'tanhf'.
10529         * modules/tanhf-tests: New file.
10530         * tests/test-tanhf.c: New file.
10531
10532         New module 'tanhf'.
10533         * lib/math.in.h (tanhf): New declaration.
10534         * lib/tanhf.c: New file.
10535         * m4/tanhf.m4: New file.
10536         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
10537         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
10538         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
10539         * modules/tanhf: New file.
10540         * tests/test-math-c++.cc: Check the declaration of tanhf.
10541         * doc/posix-functions/tanhf.texi: Mention the new module.
10542
10543         tanh: Use a .m4 file.
10544         * m4/tanh.m4: New file.
10545         * modules/tanh (Files): Add it.
10546         (configure.ac): Just invoke gl_FUNC_TANH.
10547
10548 2011-10-08  Bruno Haible  <bruno@clisp.org>
10549
10550         Tests for module 'coshf'.
10551         * modules/coshf-tests: New file.
10552         * tests/test-coshf.c: New file.
10553
10554         New module 'coshf'.
10555         * lib/math.in.h (coshf): New declaration.
10556         * lib/coshf.c: New file.
10557         * m4/coshf.m4: New file.
10558         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
10559         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
10560         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
10561         * modules/coshf: New file.
10562         * tests/test-math-c++.cc: Check the declaration of coshf.
10563         * doc/posix-functions/coshf.texi: Mention the new module.
10564
10565         cosh: Use a .m4 file.
10566         * m4/cosh.m4: New file.
10567         * modules/cosh (Files): Add it.
10568         (configure.ac): Just invoke gl_FUNC_COSH.
10569
10570 2011-10-08  Bruno Haible  <bruno@clisp.org>
10571
10572         Tests for module 'sinhf'.
10573         * modules/sinhf-tests: New file.
10574         * tests/test-sinhf.c: New file.
10575
10576         New module 'sinhf'.
10577         * lib/math.in.h (sinhf): New declaration.
10578         * lib/sinhf.c: New file.
10579         * m4/sinhf.m4: New file.
10580         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
10581         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
10582         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
10583         * modules/sinhf: New file.
10584         * tests/test-math-c++.cc: Check the declaration of sinhf.
10585         * doc/posix-functions/sinhf.texi: Mention the new module.
10586
10587         sinh: Use a .m4 file.
10588         * m4/sinh.m4: New file.
10589         * modules/sinh (Files): Add it.
10590         (configure.ac): Just invoke gl_FUNC_SINH.
10591
10592 2011-10-08  Bruno Haible  <bruno@clisp.org>
10593
10594         Tests for module 'atan2f'.
10595         * modules/atan2f-tests: New file.
10596         * tests/test-atan2f.c: New file.
10597
10598         New module 'atan2f'.
10599         * lib/math.in.h (atan2f): New declaration.
10600         * lib/atan2f.c: New file.
10601         * m4/atan2f.m4: New file.
10602         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
10603         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
10604         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
10605         * modules/atan2f: New file.
10606         * tests/test-math-c++.cc: Check the declaration of atan2f.
10607         * doc/posix-functions/atan2f.texi: Mention the new module.
10608
10609         atan2: Use a .m4 file.
10610         * m4/atan2.m4: New file.
10611         * modules/atan2 (Files): Add it.
10612         (configure.ac): Just invoke gl_FUNC_ATAN2.
10613
10614 2011-10-08  Bruno Haible  <bruno@clisp.org>
10615
10616         Tests for module 'atanf'.
10617         * modules/atanf-tests: New file.
10618         * tests/test-atanf.c: New file.
10619
10620         New module 'atanf'.
10621         * lib/math.in.h (atanf): New declaration.
10622         * lib/atanf.c: New file.
10623         * m4/atanf.m4: New file.
10624         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
10625         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
10626         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
10627         * modules/atanf: New file.
10628         * tests/test-math-c++.cc: Check the declaration of atanf.
10629         * doc/posix-functions/atanf.texi: Mention the new module.
10630
10631         atan: Use a .m4 file.
10632         * m4/atan.m4: New file.
10633         * modules/atan (Files): Add it.
10634         (configure.ac): Just invoke gl_FUNC_ATAN.
10635
10636 2011-10-08  Bruno Haible  <bruno@clisp.org>
10637
10638         Tests for module 'acosf'.
10639         * modules/acosf-tests: New file.
10640         * tests/test-acosf.c: New file.
10641
10642         New module 'acosf'.
10643         * lib/math.in.h (acosf): New declaration.
10644         * lib/acosf.c: New file.
10645         * m4/acosf.m4: New file.
10646         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
10647         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
10648         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
10649         * modules/acosf: New file.
10650         * tests/test-math-c++.cc: Check the declaration of acosf.
10651         * doc/posix-functions/acosf.texi: Mention the new module.
10652
10653         acos: Use a .m4 file.
10654         * m4/acos.m4: New file.
10655         * modules/acos (Files): Add it.
10656         (configure.ac): Just invoke gl_FUNC_ACOS.
10657
10658 2011-10-08  Bruno Haible  <bruno@clisp.org>
10659
10660         Tests for module 'asinf'.
10661         * modules/asinf-tests: New file.
10662         * tests/test-asinf.c: New file.
10663
10664         New module 'asinf'.
10665         * lib/math.in.h (asinf): New declaration.
10666         * lib/asinf.c: New file.
10667         * m4/asinf.m4: New file.
10668         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
10669         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
10670         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
10671         * modules/asinf: New file.
10672         * tests/test-math-c++.cc: Check the declaration of asinf.
10673         * doc/posix-functions/asinf.texi: Mention the new module.
10674
10675         asin: Use a .m4 file.
10676         * m4/asin.m4: New file.
10677         * modules/asin (Files): Add it.
10678         (configure.ac): Just invoke gl_FUNC_ASIN.
10679
10680 2011-10-08  Bruno Haible  <bruno@clisp.org>
10681
10682         Tests for module 'tanf'.
10683         * modules/tanf-tests: New file.
10684         * tests/test-tanf.c: New file.
10685
10686         New module 'tanf'.
10687         * lib/math.in.h (tanf): New declaration.
10688         * lib/tanf.c: New file.
10689         * m4/tanf.m4: New file.
10690         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
10691         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
10692         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
10693         * modules/tanf: New file.
10694         * tests/test-math-c++.cc: Check the declaration of tanf.
10695         * doc/posix-functions/tanf.texi: Mention the new module.
10696
10697         tan: Use a .m4 file.
10698         * m4/tan.m4: New file.
10699         * modules/tan (Files): Add it.
10700         (configure.ac): Just invoke gl_FUNC_TAN.
10701
10702 2011-10-08  Bruno Haible  <bruno@clisp.org>
10703
10704         Tests for module 'cosf'.
10705         * modules/cosf-tests: New file.
10706         * tests/test-cosf.c: New file.
10707
10708         New module 'cosf'.
10709         * lib/math.in.h (cosf): New declaration.
10710         * lib/cosf.c: New file.
10711         * m4/cosf.m4: New file.
10712         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
10713         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
10714         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
10715         * modules/cosf: New file.
10716         * tests/test-math-c++.cc: Check the declaration of cosf.
10717         * doc/posix-functions/cosf.texi: Mention the new module.
10718
10719         cos: Use a .m4 file.
10720         * m4/cos.m4: New file.
10721         * modules/cos (Files): Add it.
10722         (configure.ac): Just invoke gl_FUNC_COS.
10723
10724 2011-10-08  Bruno Haible  <bruno@clisp.org>
10725
10726         Tests for module 'sinf'.
10727         * modules/sinf-tests: New file.
10728         * tests/test-sinf.c: New file.
10729
10730         New module 'sinf'.
10731         * lib/math.in.h (sinf): New declaration.
10732         * lib/sinf.c: New file.
10733         * m4/sinf.m4: New file.
10734         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
10735         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
10736         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
10737         * modules/sinf: New file.
10738         * tests/test-math-c++.cc: Check the declaration of sinf.
10739         * doc/posix-functions/sinf.texi: Mention the new module.
10740
10741         sin: Use a .m4 file.
10742         * m4/sin.m4: New file.
10743         * modules/sin (Files): Add it.
10744         (configure.ac): Just invoke gl_FUNC_SIN.
10745
10746 2011-10-08  Bruno Haible  <bruno@clisp.org>
10747
10748         Tests for module 'powf'.
10749         * modules/powf-tests: New file.
10750         * tests/test-powf.c: New file.
10751
10752         New module 'powf'.
10753         * lib/math.in.h (powf): New declaration.
10754         * lib/powf.c: New file.
10755         * m4/powf.m4: New file.
10756         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
10757         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
10758         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
10759         * modules/powf: New file.
10760         * tests/test-math-c++.cc: Check the declaration of powf.
10761         * doc/posix-functions/powf.texi: Mention the new module.
10762
10763         pow: Use a .m4 file.
10764         * m4/pow.m4: New file.
10765         * modules/pow (Files): Add it.
10766         (configure.ac): Just invoke gl_FUNC_POW.
10767
10768 2011-10-08  Bruno Haible  <bruno@clisp.org>
10769
10770         Tests for module 'log10f'.
10771         * modules/log10f-tests: New file.
10772         * tests/test-log10f.c: New file.
10773
10774         New module 'log10f'.
10775         * lib/math.in.h (log10f): New declaration.
10776         * lib/log10f.c: New file.
10777         * m4/log10f.m4: New file.
10778         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
10779         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
10780         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
10781         * modules/log10f: New file.
10782         * tests/test-math-c++.cc: Check the declaration of log10f.
10783         * doc/posix-functions/log10f.texi: Mention the new module.
10784
10785         log10: Use a .m4 file.
10786         * m4/log10.m4: New file.
10787         * modules/log10 (Files): Add it.
10788         (configure.ac): Just invoke gl_FUNC_LOG10.
10789
10790 2011-10-08  Bruno Haible  <bruno@clisp.org>
10791
10792         Tests for module 'logf'.
10793         * modules/logf-tests: New file.
10794         * tests/test-logf.c: New file.
10795
10796         New module 'logf'.
10797         * lib/math.in.h (logf): New declaration.
10798         * lib/logf.c: New file.
10799         * m4/logf.m4: New file.
10800         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
10801         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
10802         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
10803         * modules/logf: New file.
10804         * tests/test-math-c++.cc: Check the declaration of logf.
10805         * doc/posix-functions/logf.texi: Mention the new module.
10806
10807         log: Use a .m4 file.
10808         * m4/log.m4: New file.
10809         * modules/log (Files): Add it.
10810         (configure.ac): Just invoke gl_FUNC_LOG.
10811
10812 2011-10-08  Bruno Haible  <bruno@clisp.org>
10813
10814         Tests for module 'expf'.
10815         * modules/expf-tests: New file.
10816         * tests/test-expf.c: New file.
10817
10818         New module 'expf'.
10819         * lib/math.in.h (expf): New declaration.
10820         * lib/expf.c: New file.
10821         * m4/expf.m4: New file.
10822         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
10823         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
10824         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
10825         * modules/expf: New file.
10826         * tests/test-math-c++.cc: Check the declaration of expf.
10827         * doc/posix-functions/expf.texi: Mention the new module.
10828
10829         exp: Use a .m4 file.
10830         * m4/exp.m4: New file.
10831         * modules/exp (Files): Add it.
10832         (configure.ac): Just invoke gl_FUNC_EXP.
10833
10834 2011-10-08  Bruno Haible  <bruno@clisp.org>
10835
10836         Tests for module 'sqrtf'.
10837         * modules/sqrtf-tests: New file.
10838         * tests/test-sqrtf.c: New file.
10839
10840         New module 'sqrtf'.
10841         * lib/math.in.h (sqrtf): New declaration.
10842         * lib/sqrtf.c: New file.
10843         * m4/sqrtf.m4: New file.
10844         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
10845         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
10846         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
10847         * modules/sqrtf: New file.
10848         * tests/test-math-c++.cc: Check the declaration of sqrtf.
10849         * doc/posix-functions/sqrtf.texi: Mention the new module.
10850
10851 2011-10-08  Bruno Haible  <bruno@clisp.org>
10852
10853         Tests: Avoid link failures w.r.t. libintl.
10854         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
10855         $(LIBINTL).
10856         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
10857         $(LIBINTL).
10858         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
10859         against $(LIBINTL).
10860         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
10861         $(LIBINTL).
10862         * modules/openat-tests (Makefile.am): Link test-fchmodat against
10863         $(LIBINTL).
10864         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
10865
10866 2011-10-08  Bruno Haible  <bruno@clisp.org>
10867
10868         pow tests: Defeat compiler optimizations.
10869         * tests/test-pow.c (main): Assign arguments to x and y before use.
10870
10871 2011-10-08  Bruno Haible  <bruno@clisp.org>
10872
10873         gnulib-tool: Improve last commit.
10874         * gnulib-tool (func_modules_transitive_closure): Simplify code.
10875         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
10876         ignore dependencies that are not among the modules list.
10877
10878 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
10879
10880         gnulib-tool: don't follow dependencies to avoided modules
10881         This fixes a bug that is related to the previous one.
10882         * gnulib-tool (func_modules_transitive_closure)
10883         (func_emit_autoconf_snippets):
10884         Check whether a dependency is acceptable before using it.
10885         (--extract-dependencies): Report an error if --avoid is also used,
10886         since this combination of options is not yet supported.
10887
10888         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
10889         Problem reported by Peter Dyballa in
10890         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
10891         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
10892         when echoing "$condition".
10893
10894 2011-10-07  Bruno Haible  <bruno@clisp.org>
10895
10896         Fix documentation about math functions on MacOS X.
10897         * doc/posix-functions/exp2.texi: Don't say the function is missing on
10898         MacOS X 10.5.
10899         * doc/posix-functions/fdim.texi: Likewise.
10900         * doc/posix-functions/feclearexcept.texi: Likewise.
10901         * doc/posix-functions/fegetenv.texi: Likewise.
10902         * doc/posix-functions/fegetround.texi: Likewise.
10903         * doc/posix-functions/feholdexcept.texi: Likewise.
10904         * doc/posix-functions/feraiseexcept.texi: Likewise.
10905         * doc/posix-functions/fesetenv.texi: Likewise.
10906         * doc/posix-functions/fesetround.texi: Likewise.
10907         * doc/posix-functions/fetestexcept.texi: Likewise.
10908         * doc/posix-functions/feupdateenv.texi: Likewise.
10909         * doc/posix-functions/fmax.texi: Likewise.
10910         * doc/posix-functions/fmin.texi: Likewise.
10911         * doc/posix-functions/log2.texi: Likewise.
10912         * doc/posix-functions/modff.texi: Likewise.
10913         * doc/posix-functions/nan.texi: Likewise.
10914         * doc/posix-functions/nanf.texi: Likewise.
10915         * doc/posix-functions/nextafterf.texi: Likewise.
10916         * doc/posix-functions/remquo.texi: Likewise.
10917
10918 2011-10-07  Bruno Haible  <bruno@clisp.org>
10919
10920         modff: Drop assumption about library that defines modff.
10921         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
10922         AC_CHECK_FUNCS.
10923         * modules/modff (Files): Add m4/mathfunc.m4.
10924
10925 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
10926
10927         raise tests: Avoid a GCC warning.
10928         * tests/test-raise.c (handler): Use _Noreturn.
10929
10930 2011-10-07  Bruno Haible  <bruno@clisp.org>
10931
10932         Tests for module 'ldexpf'.
10933         * modules/ldexpf-tests: New file.
10934         * tests/test-ldexpf.c: New file.
10935
10936         New module 'ldexpf'.
10937         * lib/math.in.h (ldexpf): New declaration.
10938         * lib/ldexpf.c: New file.
10939         * m4/ldexpf.m4: New file.
10940         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
10941         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
10942         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
10943         * modules/ldexpf: New file.
10944         * tests/test-math-c++.cc: Check the declaration of ldexpf.
10945         * doc/posix-functions/ldexpf.texi: Mention the new module.
10946
10947 2011-10-06  Bruno Haible  <bruno@clisp.org>
10948
10949         frexpf: Work around problems on IRIX and mingw.
10950         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
10951         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
10952         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
10953         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
10954         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
10955         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
10956         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
10957
10958 2011-10-06  Bruno Haible  <bruno@clisp.org>
10959
10960         fabsf: Drop assumption about library that defines fabsf.
10961         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
10962         AC_CHECK_FUNCS.
10963         * modules/fabsf (Files): Add m4/mathfunc.m4.
10964
10965 2011-10-06  Bruno Haible  <bruno@clisp.org>
10966
10967         frexpf: Drop assumption about library that defines frexpf.
10968         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
10969         'int *', 'float *', 'long double *', 'float', 'long double'.
10970         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
10971         AC_CHECK_FUNCS.
10972         * modules/frexpf (Files): Add m4/mathfunc.m4.
10973
10974         Tests for module 'frexpf'.
10975         * modules/frexpf-tests: New file.
10976         * tests/test-frexpf.c: New file.
10977
10978         New module 'frexpf'.
10979         * lib/math.in.h (frexpf): New declaration.
10980         * lib/frexpf.c: New file.
10981         * m4/frexpf.m4: New file.
10982         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
10983         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
10984         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
10985         * modules/frexpf: New file.
10986         * tests/test-math-c++.cc: Check the declaration of frexpf.
10987         * doc/posix-functions/frexpf.texi: Mention the new module.
10988
10989 2011-10-06  Bruno Haible  <bruno@clisp.org>
10990
10991         math: Sort function declarations of math.in.h.
10992         * lib/math.in.h (frexp, logb): Move declarations.
10993
10994 2011-10-05  Bruno Haible  <bruno@clisp.org>
10995
10996         Tests for module 'modff'.
10997         * modules/modff-tests: New file.
10998         * tests/test-modff.c: New file.
10999
11000         New module 'modff'.
11001         * lib/math.in.h (modff): New declaration.
11002         * lib/modff.c: New file.
11003         * m4/modff.m4: New file.
11004         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
11005         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
11006         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
11007         * modules/modff: New file.
11008         * tests/test-math-c++.cc: Check the declaration of modff.
11009         * doc/posix-functions/modff.texi: Mention the new module.
11010
11011         modf tests: Make test sharper.
11012         * tests/test-modf.c (main): Strengthen upper bound.
11013
11014         modf: Use a .m4 file.
11015         * m4/modf.m4: New file.
11016         * modules/modf (Files): Add it.
11017         (configure.ac): Just invoke gl_FUNC_MODF.
11018
11019 2011-10-05  Bruno Haible  <bruno@clisp.org>
11020
11021         Tests for module 'fmodf'.
11022         * modules/fmodf-tests: New file.
11023         * tests/test-fmodf.c: New file.
11024
11025         New module 'fmodf'.
11026         * lib/math.in.h (fmodf): New declaration.
11027         * lib/fmodf.c: New file.
11028         * m4/fmodf.m4: New file.
11029         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
11030         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
11031         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
11032         * modules/fmodf: New file.
11033         * tests/test-math-c++.cc: Check the declaration of fmodf.
11034         * doc/posix-functions/fmodf.texi: Mention the new module.
11035
11036         fmod: Use a .m4 file.
11037         * m4/fmod.m4: New file.
11038         * modules/fmod (Files): Add it.
11039         (configure.ac): Just invoke gl_FUNC_FMOD.
11040
11041 2011-10-05  Bruno Haible  <bruno@clisp.org>
11042
11043         Tests for module 'fabsf'.
11044         * modules/fabsf-tests: New file.
11045         * tests/test-fabsf.c: New file.
11046
11047         New module 'fabsf'.
11048         * lib/math.in.h (fabsf): New declaration.
11049         * lib/fabsf.c: New file.
11050         * m4/fabsf.m4: New file.
11051         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
11052         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
11053         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
11054         * modules/fabsf: New file.
11055         * tests/test-math-c++.cc: Check the declaration of fabsf.
11056         * doc/posix-functions/fabsf.texi: Mention the new module.
11057
11058         fabs: Use a .m4 file.
11059         * m4/fabs.m4: New file.
11060         * modules/fabs (Files): Add it.
11061         (configure.ac): Just invoke gl_FUNC_FABS.
11062
11063 2011-10-05  Jim Meyering  <meyering@redhat.com>
11064
11065         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
11066         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
11067         ls -lL regression introduced in coreutils-8.12, it does so at the
11068         cost of an additional stat call in the common case.  Besides, now
11069         that the kernel change that prompted commit 95f7c57f has been reverted
11070         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
11071         we have no use for commit 95f7c57f, "file-has-acl: use
11072         acl_extended_file_nofollow if available".
11073
11074 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
11075
11076         file-has-acl: revert unintended change in behavior of ls -L
11077         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
11078         derived from...
11079         (file_has_acl): ...code here.  Call it.
11080         This problem was introduced with 2011-07-22 commit 95f7c57f,
11081         "file-has-acl: use acl_extended_file_nofollow if available".
11082         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
11083
11084 2011-10-03  Bruno Haible  <bruno@clisp.org>
11085
11086         poll: Avoid link errors on MSVC.
11087         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
11088         * modules/poll (Depends-on): Add sockets.
11089         (Link): New section.
11090         * NEWS: Mention the change.
11091         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
11092         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
11093         $(LIB_POLL) instead of $(LIBSOCKET).
11094
11095 2011-10-03  Bruno Haible  <bruno@clisp.org>
11096
11097         sys_select tests: Fix link error on MSVC 9.
11098         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
11099         with $(LIB_SELECT) instead of $(LIBSOCKET).
11100
11101 2011-10-03  Bruno Haible  <bruno@clisp.org>
11102
11103         sys_select: Fix compilation error on mingw.
11104         * lib/sys_select.in.h: On native Windows, include <io.h>.
11105
11106 2011-10-03  Bruno Haible  <bruno@clisp.org>
11107
11108         wmemset: Support for MSVC.
11109         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
11110         whether wmemset() exists.
11111
11112 2011-10-03  Bruno Haible  <bruno@clisp.org>
11113
11114         wmemmove: Support for MSVC.
11115         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
11116         whether wmemmove() exists.
11117
11118 2011-10-03  Bruno Haible  <bruno@clisp.org>
11119
11120         wmemcpy: Support for MSVC.
11121         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
11122         whether wmemcpy() exists.
11123
11124 2011-10-03  Bruno Haible  <bruno@clisp.org>
11125
11126         wmemcmp: Support for MSVC.
11127         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
11128         whether wmemcmp() exists.
11129
11130 2011-10-03  Bruno Haible  <bruno@clisp.org>
11131
11132         wmemchr: Support for MSVC.
11133         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
11134         whether wmemchr() exists.
11135
11136 2011-10-03  Bruno Haible  <bruno@clisp.org>
11137
11138         glthread/*, strsignal: Support for MSVC.
11139         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
11140         including <winsock.h> on MSVC 9.
11141         * lib/glthread/lock.h: Likewise.
11142         * lib/glthread/thread.h: Likewise.
11143         * lib/glthread/tls.h: Likewise.
11144         * lib/glthread/yield.h: Likewise.
11145         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
11146         if HAVE_UNISTD_H is false.
11147         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
11148
11149 2011-10-03  Bruno Haible  <bruno@clisp.org>
11150
11151         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
11152         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
11153         Set to 100000.
11154
11155 2011-10-03  Bruno Haible  <bruno@clisp.org>
11156
11157         acl: Fix specification.
11158         * lib/file-has-acl.c (file_has_acl): Fix specification.
11159
11160 2011-10-03  Bruno Haible  <bruno@clisp.org>
11161
11162         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
11163         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
11164         (compute_curr_prefix, shared_library_fullname,
11165         find_shared_library_fullname, get_shared_library_fullname, relocate):
11166         Use it together with PIC && INSTALLDIR.
11167         Reported by <jojelino@gmail.com>
11168         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
11169
11170 2011-10-01  Jim Meyering  <meyering@redhat.com>
11171
11172         maint.mk: adjust a release-related rule not to require use of gzip
11173         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
11174         Instead, check each file in $(DIST_ARCHIVES).  This is better for
11175         projects that build only .tar.xz files.  Also fix an erroneous test.
11176
11177         test-linkat: don't leave behind a temporary file
11178         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
11179         Otherwise, coreutils' "make distcheck" would fail with this:
11180           Only in /c/cu/tests/torture/coreutils/test/\
11181             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
11182           make[2]: *** [my-distcheck] Error 1
11183
11184         float, math: add omitted file
11185         * lib/itold.c: Add file, required for yesterday's float change.
11186
11187 2011-10-01  Bruno Haible  <bruno@clisp.org>
11188
11189         isinf: Fix for OpenBSD/x86.
11190         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
11191         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
11192         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
11193
11194 2011-10-01  Bruno Haible  <bruno@clisp.org>
11195
11196         isfinite: Fix syntax error in configure test.
11197         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
11198
11199         isfinite: Fix typo.
11200         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
11201         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
11202
11203 2011-10-01  Bruno Haible  <bruno@clisp.org>
11204
11205         nonblocking tests: Fix test failure on Linux/IA-64.
11206         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
11207         Set to 270000.
11208
11209 2011-10-01  Bruno Haible  <bruno@clisp.org>
11210
11211         mkfifoat tests: Fix a test failure on mingw.
11212         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
11213         with error ENOSYS.
11214
11215 2011-09-30  Bruno Haible  <bruno@clisp.org>
11216
11217         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
11218         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
11219         'long double'. Set REPLACE_ITOLD.
11220         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
11221         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
11222         * lib/itold.c: New file.
11223         * modules/float (Files): Add lib/itold.c.
11224         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
11225         (Makefile.am): Substitute REPLACE_ITOLD.
11226         * modules/math (Depends-on): Add float.
11227         (Makefile.am): Substitute REPLACE_ITOLD.
11228         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
11229         * doc/posix-headers/math.texi: Likewise.
11230         * doc/posix-functions/logl.texi: Likewise.
11231
11232 2011-09-30  Bruno Haible  <bruno@clisp.org>
11233
11234         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
11235         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
11236         Set to 140000.
11237
11238 2011-09-30  Bruno Haible  <bruno@clisp.org>
11239
11240         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
11241         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
11242         invocation, say "right after AC_PROG_CC_STDC", not "right after
11243         AC_PROG_CC".
11244         Reported by Gary V. Vaughan <gary@gnu.org>.
11245
11246 2011-09-30  Bruno Haible  <bruno@clisp.org>
11247
11248         Centralize C99 requirement.
11249         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
11250         * modules/stdarg (configure.ac-early): Invoke it instead of
11251         AC_PROG_CC_STDC.
11252         Reported by Gary V. Vaughan and Paul Eggert.
11253
11254 2011-09-29  Bruno Haible  <bruno@clisp.org>
11255
11256         float: Fix LDBL_MAX value on Linux/PowerPC.
11257         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
11258         on Linux/PowerPC.
11259         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
11260         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
11261         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
11262         platform.
11263         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
11264
11265 2011-09-29  Bruno Haible  <bruno@clisp.org>
11266
11267         doc: Improve doc about gl_EARLY.
11268         * doc/gnulib-tool.texi (Initial import): Mention where to place an
11269         AC_PROG_CC_STDC invocation.
11270         Reported by Gary V. Vaughan <gary@gnu.org>.
11271
11272 2011-09-28  Bruno Haible  <bruno@clisp.org>
11273
11274         fgetc, fputc, fread, fwrite tests: Fix link error.
11275         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
11276         on non-MSVC platforms.
11277         * tests/test-fputc.c (main): Likewise.
11278         * tests/test-fread.c (main): Likewise.
11279         * tests/test-fwrite.c (main): Likewise.
11280         Reported by Jim Meyering.
11281
11282 2011-09-27  Bruno Haible  <bruno@clisp.org>
11283
11284         fputc, fwrite tests: Avoid test failure on MSVC.
11285         * tests/test-fgetc.c: Include msvc-inval.h.
11286         (main): Invoke gl_msvc_inval_ensure_handler.
11287         * tests/test-fputc.c: Include msvc-inval.h.
11288         (main): Invoke gl_msvc_inval_ensure_handler.
11289         * tests/test-fread.c: Include msvc-inval.h.
11290         (main): Invoke gl_msvc_inval_ensure_handler.
11291         * tests/test-fwrite.c: Include msvc-inval.h.
11292         (main): Invoke gl_msvc_inval_ensure_handler.
11293         * modules/fgetc-tests (Depends-on): Add msvc-inval.
11294         * modules/fputc-tests (Depends-on): Likewise.
11295         * modules/fread-tests (Depends-on): Likewise.
11296         * modules/fwrite-tests (Depends-on): Likewise.
11297
11298 2011-09-27  Bruno Haible  <bruno@clisp.org>
11299
11300         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
11301         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
11302         (raise): Remove older, duplicated declaration.
11303         (_gl_raise_SIGPIPE): New declaration.
11304         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
11305         (rpl_raise): Remove function.
11306         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
11307         a gnulib-defined SIGPIPE here.
11308         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
11309         'sigprocmask' has detected missing signal-blocking and the module
11310         'sigpipe' is enabled.
11311         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
11312
11313 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
11314
11315         base64-tests: avoid memory leak
11316         * tests/test-base64.c (main): Plug memory leak.
11317
11318         base32: new module
11319         * modules/base32: New module.
11320         * lib/base32.c: New file.
11321         * lib/base32.h: Likewise.
11322         * m4/base32.m4: Likewise.
11323         * modules/base32-tests: New test.
11324         * tests/test-base32.c: Likewise.
11325         * MODULES.html.sh (Misc): Mention it.
11326
11327 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
11328
11329         gnulib: use more-standard license notice wording
11330         * gnulib-tool (func_emit_copyright_notice): When emitting a
11331         license notice into a file, use the standard wording as suggested
11332         by the current information for GNU maintainers, except say "file"
11333         rather than "program".  The new wording gives a license version
11334         number, which addresses an issue raised by Glenn Morris in
11335         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
11336         * m4/onceonly.m4: Use that same wording here, too.
11337
11338         dup2: minor simplification
11339         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
11340         as lib/dup2.c no longer uses 'inline'.
11341
11342 2011-09-25  Bruno Haible  <bruno@clisp.org>
11343
11344         strings: Fix compilation error on MSVC.
11345         * lib/strings.in.h: Include <stddef.h> for size_t.
11346
11347 2011-09-25  Bruno Haible  <bruno@clisp.org>
11348
11349         fflush et al.: Document limitation on MSVC.
11350         * doc/posix-functions/fflush.texi: Document possible crash in handling
11351         mode other than DEFAULT_HANDLING.
11352         * doc/posix-functions/fgetc.texi: Likewise.
11353         * doc/posix-functions/fputc.texi: Likewise.
11354         * doc/posix-functions/fread.texi: Likewise.
11355         * doc/posix-functions/fwrite.texi: Likewise.
11356
11357 2011-09-25  Bruno Haible  <bruno@clisp.org>
11358
11359         msvc-inval: Allow three invalid parameter handling modes.
11360         * lib/msvc-inval.h: Don't include <stdlib.h> here.
11361         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
11362         macros.
11363         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
11364         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
11365         SANE_LIBRARY_HANDLING as a no-op.
11366         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
11367         <stdlib.h>.
11368         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
11369
11370 2011-09-25  Bruno Haible  <bruno@clisp.org>
11371
11372         msvc-inval: Make handler multithread-safe.
11373         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
11374         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
11375         declarations.
11376         (gl_msvc_inval_current): New declaration.
11377         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
11378         Operate on the structure returned by gl_msvc_inval_current().
11379         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
11380         Remove varaiables.
11381         (tls_index, tls_initialized): New variables.
11382         (not_per_thread): New variable.
11383         (gl_msvc_inval_current): New function.
11384         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
11385         returned by gl_msvc_inval_current().
11386
11387 2011-09-25  Bruno Haible  <bruno@clisp.org>
11388
11389         msvc-inval: Install handler globally.
11390         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
11391         !_MSC_VER.
11392         (gl_msvc_invalid_parameter_handler): Remove declaration.
11393         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
11394         declarations.
11395         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
11396         Install the handler globally, don't uninstall it.
11397         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
11398         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
11399         currently valid, call RaiseException instead.
11400         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
11401         for !_MSC_VER.
11402
11403 2011-09-25  Bruno Haible  <bruno@clisp.org>
11404
11405         strerror_r-posix: Fix for MSVC 9.
11406         * lib/strerror_r.c (local_snprintf): New function.
11407         (snprintf): Define to local_snprintf, not to _snprintf.
11408
11409 2011-09-25  Bruno Haible  <bruno@clisp.org>
11410
11411         ftruncate: Support for MSVC 9.
11412         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
11413         (chsize_nothrow): New function.
11414         (chsize): Redefine as a macro.
11415         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
11416         * modules/ftruncate (Depends-on): Add msvc-inval.
11417
11418 2011-09-25  Bruno Haible  <bruno@clisp.org>
11419
11420         New module 'fstat'.
11421         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
11422         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
11423         * lib/fchdir.c (rpl_fstat): Remove function.
11424         * m4/fstat.m4: New file.
11425         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
11426         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
11427         declared.
11428         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
11429         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
11430         * modules/fstat: New file.
11431         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
11432         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
11433         is set.
11434         * doc/posix-functions/fstat.texi: Mention the new module and the
11435         problem on MSVC.
11436         * NEWS: Mention the change.
11437         * modules/acl (Depends-on): Add fstat.
11438         * modules/chdir-safer (Depends-on): Likewise.
11439         * modules/chown (Depends-on): Likewise.
11440         * modules/copy-file (Depends-on): Likewise.
11441         * modules/fchdir (Depends-on): Likewise.
11442         * modules/fdopendir (Depends-on): Likewise.
11443         * modules/fopen (Depends-on): Likewise.
11444         * modules/fts (Depends-on): Likewise.
11445         * modules/getcwd (Depends-on): Likewise.
11446         * modules/isapipe (Depends-on): Likewise.
11447         * modules/linkat (Depends-on): Likewise.
11448         * modules/lseek (Depends-on): Likewise.
11449         * modules/mkdir-p (Depends-on): Likewise.
11450         * modules/open (Depends-on): Likewise.
11451         * modules/openat (Depends-on): Likewise.
11452         * modules/read-file (Depends-on): Likewise.
11453         * modules/renameat (Depends-on): Likewise.
11454         * modules/utimens (Depends-on): Likewise.
11455
11456 2011-09-25  Bruno Haible  <bruno@clisp.org>
11457
11458         linkat: Fix compilation on MSVC 9.
11459         * lib/linkat.c: Don't include <stdint.h>.
11460
11461 2011-09-25  Bruno Haible  <bruno@clisp.org>
11462
11463         fclose: Support for MSVC 9.
11464         * lib/fclose.c: Include msvc-inval.h.
11465         (fclose_nothrow): New function.
11466         (rpl_fclose): Use it.
11467         * modules/fclose (Depends-on): Add msvc-inval.
11468         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
11469
11470 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
11471
11472         dup2: minor simplifications
11473         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
11474         that it's a performance win.
11475         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
11476         ! defined __CYGWIN__)" to "ifdef F_GETFL".
11477
11478 2011-09-24  Jim Meyering  <meyering@redhat.com>
11479
11480         test-futimens: avoid a warning from gcc -Wshadow
11481         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
11482         to avoid a shadowing warning.
11483
11484 2011-09-24  Bruno Haible  <bruno@clisp.org>
11485
11486         fdopen: Support for MSVC 9.
11487         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
11488         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
11489         * lib/fdopen.c: Include msvc-inval.h.
11490         (fdopen_nothrow): New function.
11491         (rpl_fdopen): Use it.
11492         * modules/fdopen (Depends-on): Add msvc-inval.
11493         * modules/fclose-tests (Depends-on): Add fdopen.
11494         * modules/fflush-tests (Depends-on): Likewise.
11495         * modules/fgetc-tests (Depends-on): Likewise.
11496         * modules/fputc-tests (Depends-on): Likewise.
11497         * modules/fread-tests (Depends-on): Likewise.
11498         * modules/freopen-tests (Depends-on): Likewise.
11499         * modules/fseeko-tests (Depends-on): Likewise.
11500         * modules/ftello-tests (Depends-on): Likewise.
11501         * modules/fwrite-tests  (Depends-on): Likewise.
11502         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
11503
11504 2011-09-24  Bruno Haible  <bruno@clisp.org>
11505
11506         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
11507         * modules/fgetc-tests (Depends-on): Add unistd.
11508         * modules/fputc-tests (Depends-on): Likewise.
11509         * modules/fread-tests (Depends-on): Likewise.
11510         * modules/fwrite-tests (Depends-on): Likewise.
11511
11512 2011-09-24  Bruno Haible  <bruno@clisp.org>
11513
11514         dup: Simplify autoconf test.
11515         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
11516         on gl_MSVC_INVAL's result.
11517
11518 2011-09-24  Bruno Haible  <bruno@clisp.org>
11519
11520         Tests for function fwrite().
11521         * modules/fwrite-tests: New file.
11522         * tests/test-fwrite.c: New file.
11523         * modules/stdio-tests (Depends-on): Add fwrite-tests.
11524
11525         Tests for function fread().
11526         * modules/fread-tests: New file.
11527         * tests/test-fread.c: New file.
11528         * modules/stdio-tests (Depends-on): Add fread-tests.
11529
11530         Activate fputc tests.
11531         * modules/stdio-tests (Depends-on): Add fputc-tests.
11532
11533         Enhance fgetc, fputc tests.
11534         * tests/test-fgetc.c (main): Also test the stream's error indicator.
11535         * tests/test-fputc.c (main): Likewise.
11536
11537 2011-09-24  Bruno Haible  <bruno@clisp.org>
11538
11539         write: Support for MSVC 9.
11540         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
11541         is not 1.
11542         * lib/write.c (write_nothrow): New function.
11543         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
11544         not 1. Use write_nothrow.
11545         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
11546         invalid parameter handler.
11547         (gl_PREREQ_WRITE): New macro.
11548         * modules/write (Depends-on): Add msvc-inval.
11549         (configure.ac): Invoke gl_PREREQ_WRITE.
11550         * doc/posix-functions/write.texi: Mention the problem on MSVC.
11551
11552 2011-09-24  Bruno Haible  <bruno@clisp.org>
11553
11554         read: Fix last commit.
11555         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
11556
11557 2011-09-24  Bruno Haible  <bruno@clisp.org>
11558
11559         dup2: Fix last commit.
11560         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
11561         (rpl_dup2): Disable fcntl workaround on native Windows.
11562
11563         sigprocmask: Make code safer.
11564         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
11565         section that changes macro definitions for this compilation unit.
11566
11567 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
11568
11569         dup2: clarify by coalescing Windows-specific material
11570         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
11571         "msvc-nothrow.h"' to the Windows-specific section, so that the
11572         Emacs source need not contain these include files.
11573         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
11574         Windows-specific fixes into this function rather than just the
11575         nothrow fix, as this shortens and clarifies the code.  Always
11576         define as a function, as that's a bit cleaner than having it be
11577         sometimes a function and sometimes a macro.
11578         (rpl_dup2): Move the Windows-specific stuff out of here and into
11579         ms_windows_dup2.  Don't protect the Haiku-related fix with
11580         "#if !defined __linux__", as the same code also works around
11581         a Linux kernel bug, and it doesn't add any system calls on any
11582         platform.  Add comment about FreeBSD 6.1.
11583
11584         sigprocmask: move #include directive
11585         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
11586         Windows-specific section, so that the Emacs source need not
11587         contain msvc-inval.h.
11588
11589 2011-09-23  Bruno Haible  <bruno@clisp.org>
11590
11591         read: Support for MSVC 9.
11592         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
11593         is not 1.
11594         * lib/read.c (read_nothrow): New function.
11595         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
11596         read_nothrow.
11597         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
11598         invalid parameter handler.
11599         (gl_PREREQ_READ): New macro.
11600         * modules/read (Depends-on): Add msvc-inval.
11601         (configure.ac): Invoke gl_PREREQ_READ.
11602         * doc/posix-functions/read.texi: Mention the problem on MSVC.
11603
11604 2011-09-23  Bruno Haible  <bruno@clisp.org>
11605
11606         close: Support for MSVC 9.
11607         * lib/close.c: Include <errno.h>, msvc-inval.h.
11608         (close_nothrow): New function.
11609         (rpl_close): Use it.
11610         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
11611         invalid parameter handler.
11612         * modules/close (Depends-on): Add msvc-inval.
11613         * modules/dup2-tests (Depends-on): Add close.
11614         * modules/dup3-tests (Depends-on): Likewise.
11615         * modules/fcntl-tests (Depends-on): Likewise.
11616         * modules/spawn-pipe-tests (Depends-on): Likewise.
11617         * modules/unistd-safer-tests (Depends-on): Likewise.
11618         * doc/posix-functions/close.texi: Mention the problem on MSVC.
11619
11620 2011-09-23  Bruno Haible  <bruno@clisp.org>
11621
11622         New module 'dup'.
11623         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
11624         Allow replacement.
11625         * lib/dup.c: New file.
11626         * lib/fchdir.c (rpl_dup): Remove function.
11627         * m4/dup.m4: New file.
11628         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
11629         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
11630         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
11631         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
11632         * modules/dup: New file.
11633         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
11634         'dup' module is in use.
11635         * modules/fdopendir (Depends-on): Add dup.
11636         * modules/fdutimensat-tests (Depends-on): Likewise.
11637         * modules/fts (Depends-on): Likewise.
11638         * modules/futimens-tests (Depends-on): Likewise.
11639         * modules/posix_spawnp-tests (Depends-on): Likewise.
11640         * modules/unistd-safer-tests (Depends-on): Likewise.
11641         * modules/utimens-tests (Depends-on): Likewise.
11642         * doc/posix-functions/dup.texi: Mention the new module and the problem
11643         on MSVC.
11644
11645 2011-09-23  Bruno Haible  <bruno@clisp.org>
11646
11647         getdtablesize: Support for MSVC 9.
11648         * lib/getdtablesize.c: Include msvc-inval.h.
11649         (_setmaxstdio_nothrow): New function.
11650         (_setmaxstdio): Redefine it.
11651         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
11652         * modules/getdtablesize (Depends-on): Add msvc-inval.
11653         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
11654
11655 2011-09-23  Bruno Haible  <bruno@clisp.org>
11656
11657         signal-h: Rename from signal.
11658         * modules/signal-h: Renamed from modules/signal.
11659         * modules/pthread_sigmask (Depends-on): Update.
11660         * modules/raise (Depends-on): Likewise.
11661         * modules/sigaction (Depends-on): Likewise.
11662         * modules/sigpipe (Depends-on): Likewise.
11663         * modules/sigprocmask (Depends-on): Likewise.
11664         * modules/sys_select (Depends-on): Likewise.
11665         * modules/signal-h-tests: Renamed from modules/signal-tests.
11666         (Files, Depends-on, Makefile.am): Update.
11667         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
11668         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
11669         (Files, Makefile.am): Update.
11670         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
11671         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
11672         * modules/signal: New placeholder file.
11673         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
11674         * doc/posix-headers/signal.texi: Update.
11675         * NEWS: Mention the change.
11676
11677 2011-09-23  Bruno Haible  <bruno@clisp.org>
11678
11679         sigprocmask: Avoid crashes through signal() on MSVC 9.
11680         * lib/sigprocmask.c: Include msvc-inval.h.
11681         (signal_nothrow): New function.
11682         (signal): Redefine it.
11683         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
11684         * modules/sigprocmask (Depends-on): Add msvc-inval.
11685         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
11686
11687 2011-09-23  Bruno Haible  <bruno@clisp.org>
11688
11689         Tests for module 'raise'.
11690         * modules/raise-tests: New file.
11691         * tests/test-raise.c: New file.
11692
11693         raise: Support for MSVC.
11694         * lib/signal.in.h (raise): New declaration.
11695         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
11696         for native Windows platforms.
11697         * m4/raise.m4: New file.
11698         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
11699         HAVE_RAISE, REPLACE_RAISE.
11700         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
11701         REPLACE_RAISE.
11702         * modules/raise (Status, Notice): Remove fields.
11703         (Files): Add m4/raise.m4.
11704         (Depends-on): Add signal, msvc-inval.
11705         (configure.ac): Use the common idioms.
11706         (Maintainer): Add me.
11707         * tests/test-signal-c++.cc: Check the signature of raise.
11708         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
11709
11710 2011-09-23  Bruno Haible  <bruno@clisp.org>
11711
11712         pipe2: Fix compilation on pre-C99 compilers.
11713         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
11714
11715 2011-09-23  Bruno Haible  <bruno@clisp.org>
11716
11717         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
11718         * lib/msvc-nothrow.h: New file.
11719         * lib/msvc-nothrow.c: New file.
11720         * m4/msvc-nothrow.m4: New file.
11721         * modules/msvc-nothrow: New file.
11722         * lib/dup2.c: Include msvc-nothrow.h.
11723         (rpl_dup2): No need to protect _get_osfhandle call here.
11724         * lib/accept4.c: Include msvc-nothrow.h.
11725         * lib/error.c: Likewise.
11726         * lib/fcntl.c: Likewise.
11727         * lib/lseek.c: Likewise.
11728         * lib/nonblocking.c: Likewise.
11729         * lib/poll.c: Likewise.
11730         * lib/read.c: Likewise.
11731         * lib/select.c: Likewise.
11732         * lib/sockets.h: Likewise.
11733         * lib/sockets.c: Likewise.
11734         * lib/stdio-read.c: Likewise.
11735         * lib/stdio-write.c: Likewise.
11736         * lib/write.c: Likewise.
11737         * lib/w32sock.h: Likewise.
11738         * lib/w32spawn.h: Likewise.
11739         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
11740         * lib/fsync.c: Likewise.
11741         * lib/isapipe.c: Likewise.
11742         * modules/dup2 (Depends-on): Add msvc-nothrow.
11743         * modules/accept4 (Depends-on): Likewise.
11744         * modules/error (Depends-on): Likewise.
11745         * modules/fcntl (Depends-on): Likewise.
11746         * modules/lseek (Depends-on): Likewise.
11747         * modules/nonblocking (Depends-on): Likewise.
11748         * modules/poll (Depends-on): Likewise.
11749         * modules/read (Depends-on): Likewise.
11750         * modules/select (Depends-on): Likewise.
11751         * modules/sockets (Depends-on): Likewise.
11752         * modules/sigpipe (Depends-on): Likewise.
11753         * modules/write (Depends-on): Likewise.
11754         * modules/accept (Depends-on): Likewise.
11755         * modules/bind (Depends-on): Likewise.
11756         * modules/connect (Depends-on): Likewise.
11757         * modules/gethostname (Depends-on): Likewise.
11758         * modules/getpeername (Depends-on): Likewise.
11759         * modules/getsockname (Depends-on): Likewise.
11760         * modules/getsockopt (Depends-on): Likewise.
11761         * modules/ioctl (Depends-on): Likewise.
11762         * modules/listen (Depends-on): Likewise.
11763         * modules/recv (Depends-on): Likewise.
11764         * modules/recvfrom (Depends-on): Likewise.
11765         * modules/send (Depends-on): Likewise.
11766         * modules/sendto (Depends-on): Likewise.
11767         * modules/setsockopt (Depends-on): Likewise.
11768         * modules/shutdown (Depends-on): Likewise.
11769         * modules/socket (Depends-on): Likewise.
11770         * modules/execute (Depends-on): Likewise.
11771         * modules/spawn-pipe (Depends-on): Likewise.
11772         * modules/flock (Depends-on): Likewise.
11773         * modules/fsync (Depends-on): Likewise.
11774         * modules/isapipe (Depends-on): Likewise.
11775         * tests/test-cloexec.c: Include msvc-nothrow.h.
11776         * tests/test-dup-safer.c: Likewise.
11777         * tests/test-dup2.c: Likewise.
11778         * tests/test-dup3.c: Likewise.
11779         * tests/test-fcntl.c: Likewise.
11780         * tests/test-pipe.c: Likewise.
11781         * tests/test-pipe2.c: Likewise.
11782         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
11783         * modules/unistd-safer-tests (Depends-on): Likewise.
11784         * modules/dup2-tests (Depends-on): Likewise.
11785         * modules/dup3-tests (Depends-on): Likewise.
11786         * modules/fcntl-tests (Depends-on): Likewise.
11787         * modules/pipe-posix-tests (Depends-on): Likewise.
11788         * modules/pipe2-tests (Depends-on): Likewise.
11789
11790 2011-09-23  Bruno Haible  <bruno@clisp.org>
11791
11792         dup2: Make code more maintainable.
11793         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
11794         (rpl_dup2): Use it.
11795         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
11796         * modules/dup2 (configure.ac): Invoke it.
11797         Reported by Paul Eggert.
11798
11799 2011-09-23  Bruno Haible  <bruno@clisp.org>
11800
11801         msvc-inval: Fix compilation error.
11802         * lib/msvc-inval.h: Include <excpt.h>.
11803
11804 2011-09-23  Bruno Haible  <bruno@clisp.org>
11805
11806         mkdir: Tweak for MSVC 9.
11807         * lib/sys_stat.in.h: Update comments.
11808         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
11809
11810         Tests for module 'chdir'.
11811         * modules/chdir-tests: New file.
11812         * tests/test-chdir.c: New file.
11813
11814         New module 'chdir'.
11815         * modules/chdir: New file.
11816         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
11817         (chdir): New declaration.
11818         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
11819         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
11820         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
11821         * tests/test-unistd-c++.cc: Check signature of chdir.
11822         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
11823         * modules/chdir-long (Depends-on): Add chdir.
11824         * modules/fchdir (Depends-on): Likewise.
11825         * modules/rename (Depends-on): Likewise.
11826         * modules/savewd (Depends-on): Likewise.
11827
11828         rmdir: Support for mingw, MSVC 9.
11829         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
11830         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
11831
11832         getcwd: Tweak for MSVC 9.
11833         * lib/unistd.in.h: Update comments.
11834         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
11835
11836 2011-09-22  Bruno Haible  <bruno@clisp.org>
11837
11838         strerror_r-posix: Avoid a link error on MSVC.
11839         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
11840         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
11841
11842 2011-09-22  Bruno Haible  <bruno@clisp.org>
11843
11844         select: Avoid link errors on MSVC.
11845         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
11846         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
11847         * modules/pselect (Link): Likewise.
11848         * NEWS: Mention the change.
11849         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
11850         test-select-stdin against $(LIB_SELECT).
11851         * modules/pselect-tests (Makefile.am): Link test-pselect against
11852         $(LIB_SELECT).
11853
11854 2011-09-22  Bruno Haible  <bruno@clisp.org>
11855
11856         select: Avoid compilation error on MSVC.
11857         * lib/select.c: Don't include <stdbool.h>.
11858
11859 2011-09-21  Bruno Haible  <bruno@clisp.org>
11860
11861         Consolidate all uses of PATH_MAX in *.m4 files.
11862         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
11863         macros.
11864         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
11865         and gl_PATHMAX_SNIPPET.
11866         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
11867         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
11868         * modules/chdir-long (Files): Add m4/pathmax.m4.
11869         * modules/getcwd (Files): Likewise.
11870
11871 2011-09-21  Bruno Haible  <bruno@clisp.org>
11872
11873         ftruncate: Un-deprecate, concentrate on Win32 support.
11874         * modules/ftruncate (Status, Notice): Remove sections.
11875         (Depends-on): Add largefile.
11876         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
11877         non-mingw platforms.
11878         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
11879         include <io.h>.
11880         * modules/perror-tests (Depends-on): Add ftruncate.
11881         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
11882         'ftruncate' module.
11883
11884 2011-09-21  Bruno Haible  <bruno@clisp.org>
11885
11886         Add dependencies to new dirent related modules.
11887         * modules/opendir (Depends-on): Add closedir.
11888         * modules/getcwd (Depends-on): Add opendir, closedir.
11889         * modules/dirent-safer-tests (Depends-on): Likewise.
11890         * modules/fdopendir-tests (Depends-on): Likewise.
11891         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
11892         * modules/renameat-tests (Depends-on): Likewise.
11893
11894 2011-09-21  Bruno Haible  <bruno@clisp.org>
11895
11896         opendir: Avoid compilation error on mingw.
11897         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
11898         * modules/opendir (Depends-on): Add unistd.
11899
11900 2011-09-21  Bruno Haible  <bruno@clisp.org>
11901
11902         ftruncate tests: Avoid a test failure on mingw.
11903         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
11904
11905 2011-09-21  Bruno Haible  <bruno@clisp.org>
11906
11907         select tests: Avoid test failures on OSF/1 5.1 and mingw.
11908         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
11909         native Windows.
11910
11911 2011-09-21  Bruno Haible  <bruno@clisp.org>
11912
11913         New module 'fdopen'.
11914         * lib/stdio.in.h (fdopen): New declaration.
11915         * lib/fdopen.c: New file.
11916         * m4/fdopen.m4: New file.
11917         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
11918         REPLACE_FDOPEN.
11919         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
11920         REPLACE_FDOPEN.
11921         * modules/fdopen: New file.
11922         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
11923         * tests/test-stdio-c++.cc: Check signature of fdopen.
11924         * doc/posix-functions/fdopen.texi: Mention the new module.
11925
11926 2011-09-21  Bruno Haible  <bruno@clisp.org>
11927
11928         unlockpt tests: Avoid test failure on NetBSD 5.1.
11929         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
11930         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
11931
11932 2011-09-21  Bruno Haible  <bruno@clisp.org>
11933
11934         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
11935         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
11936         * tests/test-getlogin_r.c (main): Likewise.
11937
11938 2011-09-20  Bruno Haible  <bruno@clisp.org>
11939
11940         time tests: Don't require pid_t.
11941         * doc/posix-headers/time.texi: Revert last change.
11942         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
11943         * tests/test-time.c: Comment out the check for pid_t.
11944
11945 2011-09-20  Bruno Haible  <bruno@clisp.org>
11946
11947         fsync tests: Avoid a test failure on mingw.
11948         * tests/test-fsync.c (main): Allow a failure with EIO.
11949
11950 2011-09-20  Bruno Haible  <bruno@clisp.org>
11951
11952         euidaccess: Update comments.
11953         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
11954
11955 2011-09-20  Bruno Haible  <bruno@clisp.org>
11956
11957         Ensure EBADF returns for socket functions on mingw.
11958         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
11959         descriptor is invalid.
11960         * lib/bind.c (rpl_bind): Likewise.
11961         * lib/connect.c (rpl_connect): Likewise.
11962         * lib/getpeername.c (rpl_getpeername): Likewise.
11963         * lib/getsockname.c (rpl_getsockname): Likewise.
11964         * lib/getsockopt.c (rpl_getsockopt): Likewise.
11965         * lib/listen.c (rpl_listen): Likewise.
11966         * lib/recv.c (rpl_recv): Likewise.
11967         * lib/recvfrom.c (rpl_recvfrom): Likewise.
11968         * lib/send.c (rpl_send): Likewise.
11969         * lib/sendto.c (rpl_sendto): Likewise.
11970         * lib/setsockopt.c (rpl_setsockopt): Likewise.
11971         * lib/shutdown.c (rpl_shutdown): Likewise.
11972
11973 2011-09-20  Bruno Haible  <bruno@clisp.org>
11974
11975         select tests: EBADF tests.
11976         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
11977         test_bad_fd): New functions.
11978         (test_function): Invoke also test_bad_fd.
11979
11980 2011-09-20  Bruno Haible  <bruno@clisp.org>
11981
11982         Tests for module 'posix_spawn_file_actions_addopen.
11983         * modules/posix_spawn_file_actions_addopen-tests: New file.
11984         * tests/test-posix_spawn_file_actions_addopen.c: New file.
11985
11986         Tests for module 'posix_spawn_file_actions_adddup2'.
11987         * modules/posix_spawn_file_actions_adddup2-tests: New file.
11988         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
11989
11990         Tests for module 'posix_spawn_file_actions_addclose'.
11991         * modules/posix_spawn_file_actions_addclose-tests: New file.
11992         * tests/test-posix_spawn_file_actions_addclose.c: New file.
11993
11994 2011-09-20  Bruno Haible  <bruno@clisp.org>
11995
11996         Tests for module 'unlockpt'.
11997         * modules/unlockpt-tests: New file.
11998         * tests/test-unlockpt.c: New file.
11999         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
12000
12001         Tests for module 'grantpt'.
12002         * modules/grantpt-tests: New file.
12003         * tests/test-grantpt.c: New file.
12004         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
12005
12006 2011-09-20  Bruno Haible  <bruno@clisp.org>
12007
12008         freopen tests: EBADF tests.
12009         * tests/test-freopen.c: Include errno.h, unistd.h.
12010         (main): Add tests for EBADF, commented out for the moment.
12011
12012         fclose tests: EBADF tests.
12013         * tests/test-fclose.c (main): Add tests for EBADF.
12014
12015         fflush tests: EBADF tests.
12016         * tests/test-fflush.c: Include errno.h, macros.h.
12017         (main): Add tests for EBADF.
12018
12019         ftello tests: EBADF tests.
12020         * tests/test-ftello4.sh: New file.
12021         * tests/test-ftello4.c: New file.
12022         * modules/ftello-tests (Files): Add them.
12023         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
12024
12025         fseeko tests: EBADF tests.
12026         * tests/test-fseeko4.sh: New file.
12027         * tests/test-fseeko4.c: New file.
12028         * modules/fseeko-tests (Files): Add them.
12029         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
12030
12031         Tests for function fputc().
12032         * modules/fputc-tests: New file.
12033         * tests/test-fputc.c: New file.
12034         * modules/stdio-tests (Depends-on): Add fputc-tests.
12035
12036         Tests for function fgetc().
12037         * modules/fgetc-tests: New file.
12038         * tests/test-fgetc.c: New file.
12039         * modules/stdio-tests (Depends-on): Add fgetc-tests.
12040
12041         Tests for function fdopen().
12042         * modules/fdopen-tests: New file.
12043         * tests/test-fdopen.c: New file.
12044         * modules/stdio-tests (Depends-on): Add fdopen-tests.
12045
12046         Tests for module 'vdprintf'.
12047         * modules/vdprintf-tests: New file.
12048         * tests/test-vdprintf.c: New file.
12049
12050         Tests for module 'dprintf'.
12051         * modules/dprintf-tests: New file.
12052         * tests/test-dprintf.c: New file.
12053
12054 2011-09-20  Bruno Haible  <bruno@clisp.org>
12055
12056         Tests for module 'ioctl'.
12057         * modules/ioctl-tests: New file.
12058         * tests/test-ioctl.c: New file.
12059
12060 2011-09-20  Bruno Haible  <bruno@clisp.org>
12061
12062         fcntl tests: EBADF tests.
12063         * tests/test-fcntl.c (main): Add more tests for EBADF.
12064
12065 2011-09-20  Bruno Haible  <bruno@clisp.org>
12066
12067         utimensat tests: EBADF tests.
12068         * tests/test-utimensat.c (main): Add tests for EBADF.
12069
12070         renameat tests: EBADF tests.
12071         * tests/test-renameat.c (main): Add tests for EBADF.
12072
12073         mkfifoat tests: EBADF tests.
12074         * tests/test-mkfifoat.c (main): Add tests for EBADF.
12075
12076         readlinkat tests: EBADF tests.
12077         * tests/test-readlinkat.c (main): Add tests for EBADF.
12078
12079         symlinkat tests: EBADF tests.
12080         * tests/test-symlinkat.c (main): Add tests for EBADF.
12081
12082         linkat tests: EBADF tests.
12083         * tests/test-linkat.c (main): Add tests for EBADF.
12084
12085         Tests for module 'faccessat'.
12086         * modules/faccessat-tests: New file.
12087         * tests/test-faccessat.c: New file.
12088
12089         fdopendir tests: EBADF tests.
12090         * tests/test-fdopendir.c (main): Add more tests for EBADF.
12091
12092         openat tests: EBADF tests.
12093         * tests/test-fchownat.c (main): Add tests for EBADF.
12094         * tests/test-fstatat.c (main): Likewise.
12095         * tests/test-mkdirat.c (main): Likewise.
12096         * tests/test-openat.c (main): Likewise.
12097         * tests/test-unlinkat.c (main): Likewise.
12098         * tests/test-fchmodat.c: New file.
12099         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
12100         (Makefile.am): Also run 'test-fchmodat'.
12101
12102 2011-09-20  Bruno Haible  <bruno@clisp.org>
12103
12104         utimens, futimens, fdutimensat tests: EBADF tests.
12105         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
12106
12107         Tests for function fstat().
12108         * modules/fstat-tests: New file.
12109         * tests/test-fstat.c: New file.
12110         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
12111
12112 2011-09-20  Bruno Haible  <bruno@clisp.org>
12113
12114         test-ttyname_r tests: EBADF tests.
12115         * tests/test-ttyname_r.c (main): Add tests for EBADF.
12116
12117         Tests for module 'isatty'.
12118         * modules/isatty-tests: New file.
12119         * tests/test-isatty.c: New file.
12120
12121         Tests for module 'write'.
12122         * modules/write-tests: New file.
12123         * tests/test-write.c: New file.
12124
12125         Tests for module 'read'.
12126         * modules/read-tests: New file.
12127         * tests/test-read.c: New file.
12128
12129         pwrite tests: EBADF tests.
12130         * tests/test-pwrite.c (main): Add tests for EBADF.
12131
12132         pread tests: EBADF tests.
12133         * tests/test-pread.c (main): Add tests for EBADF.
12134
12135         lseek tests: EBADF tests.
12136         * tests/test-lseek.c (main): Add more tests for EBADF.
12137
12138         Tests for module 'ftruncate'.
12139         * modules/ftruncate-tests: New file.
12140         * tests/test-ftruncate.sh: New file.
12141         * tests/test-ftruncate.c: New file.
12142
12143         fsync tests: EBADF tests.
12144         * tests/test-fsync.c (main): Add more tests for EBADF.
12145
12146         fdatasync tests: EBADF tests.
12147         * tests/test-fdatasync.c (main): Add more tests for EBADF.
12148
12149         Tests for module 'fchown'.
12150         * modules/fchown-tests: New file.
12151         * tests/test-fchown.c: New file.
12152
12153         Tests for module 'fchmod'.
12154         * modules/fchmod-tests: New file.
12155         * tests/test-fchmod.c: New file.
12156
12157         fchdir tests: EBADF tests.
12158         * tests/test-fchdir.c (main): Add more tests for EBADF.
12159
12160         dup2 tests: EBADF tests.
12161         * tests/test-dup2.c (main): Add more tests for EBADF.
12162
12163         Tests for module 'dup'.
12164         * modules/dup-tests: New file.
12165         * tests/test-dup.c: New file.
12166
12167         Tests for module 'close'.
12168         * modules/close-tests: New file.
12169         * tests/test-close.c: New file.
12170
12171 2011-09-20  Bruno Haible  <bruno@clisp.org>
12172
12173         Tests for module 'shutdown'.
12174         * modules/shutdown-tests: New file.
12175         * tests/test-shutdown.c: New file.
12176
12177         Tests for module 'setsockopt'.
12178         * modules/setsockopt-tests: New file.
12179         * tests/test-setsockopt.c: New file.
12180
12181         Tests for module 'sendto'.
12182         * modules/sendto-tests: New file.
12183         * tests/test-sendto.c: New file.
12184
12185         Tests for module 'send'.
12186         * modules/send-tests: New file.
12187         * tests/test-send.c: New file.
12188
12189         Tests for module 'recvfrom'.
12190         * modules/recvfrom-tests: New file.
12191         * tests/test-recvfrom.c: New file.
12192
12193         Tests for module 'recv'.
12194         * modules/recv-tests: New file.
12195         * tests/test-recv.c: New file.
12196
12197         Tests for module 'listen'.
12198         * modules/listen-tests: New file.
12199         * tests/test-listen.c: New file.
12200
12201         Tests for module 'getsockopt'.
12202         * modules/getsockopt-tests: New file.
12203         * tests/test-getsockopt.c: New file.
12204
12205         Tests for module 'getsockname'.
12206         * modules/getsockname-tests: New file.
12207         * tests/test-getsockname.c: New file.
12208
12209         Tests for module 'getpeername'.
12210         * modules/getpeername-tests: New file.
12211         * tests/test-getpeername.c: New file.
12212
12213         Tests for module 'connect'.
12214         * modules/connect-tests: New file.
12215         * tests/test-connect.c: New file.
12216
12217         Tests for module 'bind'.
12218         * modules/bind-tests: New file.
12219         * tests/test-bind.c: New file.
12220
12221         accept4 tests: Fix for native Windows.
12222         * tests/test-accept4.c: Include sockets.h.
12223         (main): Invoke gl_sockets_startup.
12224         * modules/accept4-tests (Depends-on): Add sockets.
12225
12226         accept tests: Fix for native Windows.
12227         * tests/test-accept.c: Include sockets.h.
12228         (main): Invoke gl_sockets_startup.
12229         * modules/accept-tests (Depends-on): Add sockets.
12230
12231 2011-09-19  Bruno Haible  <bruno@clisp.org>
12232
12233         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
12234         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
12235         do...while(0).
12236         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
12237         Suggested by Paul Eggert.
12238
12239 2011-09-19  Bruno Haible  <bruno@clisp.org>
12240
12241         sched: Ensure pid_t is defined.
12242         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
12243         not define pid_t.
12244         * lib/sched.in.h: Include <sys/types.h>.
12245         * doc/posix-headers/sched.texi: Mention the pid_t problem.
12246         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12247
12248 2011-09-19  Bruno Haible  <bruno@clisp.org>
12249
12250         msvc-inval: Ensure the entire expansion is a single statement.
12251         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
12252         of braces.
12253
12254 2011-09-19  Jim Meyering  <meyering@redhat.com>
12255
12256         tests: use printf, not echo in init.sh's warn_ function
12257         * tests/init.sh (warn_): Use printf, not echo.  The latter would
12258         misbehave when given strings containing a backslash or starting
12259         with e.g., -n.  James Youngman suggested setting IFS.
12260
12261 2011-09-19  Eric Blake  <eblake@redhat.com>
12262
12263         futimens: enhance test
12264         * tests/test-futimens.h (test_futimens): Also check for EBADF on
12265         closed non-negative fd.
12266
12267         date: accept 'hence' as opposite of 'ago'
12268         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
12269         * tests/test-parse-datetime.c (main): Enhance test.
12270         Suggested by Jesse Wilson.
12271
12272 2011-09-19  Jim Meyering  <meyering@redhat.com>
12273
12274         getcwd: don't fail in a deep directory on a system without openat
12275         Before this change, getcwd would fail when called from a directory
12276         of depth PATH_MAX / 3 or greater.  That was due to the fact that
12277         the non-openat implementation used "..", "../..", "../../..", etc.
12278         to access ancestor directories.  With too many, that string would
12279         be longer than PATH_MAX.
12280         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
12281         using gnulib's openat replacement.
12282         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
12283         we're using the replacement function.
12284
12285 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
12286
12287         maint.mk: avoid warnings from perl about missing files
12288         * top/maint.mk (def_sym_regex): Ignore files listed in
12289         $(gl_other_headers_) that do not exist, say because a project
12290         does not use a corresponding module.
12291
12292 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
12293
12294         stat: use pathmax.h only if needed
12295         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
12296         This is better for Emacs, which does not have a mingw port and
12297         therefore can avoid the pathmax module.
12298
12299         utimens: remove dependency on dup2
12300         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
12301         to work around the Linux kernel bug.
12302         * modules/utimens (Depends-on): Remove dup2.
12303
12304 2011-09-18  Bruno Haible  <bruno@clisp.org>
12305
12306         inet_ntop, inet_pton: Look for it also in libresolv.
12307         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
12308         libnsl, search for it in libresolv.
12309         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12310         Needed on Solaris 7.
12311
12312 2011-09-18  Bruno Haible  <bruno@clisp.org>
12313
12314         accept, accept4 tests: Avoid link error on Solaris.
12315         * modules/accept-tests (Makefile.am): Link test-accept against
12316         $(LIBSOCKET).
12317         * modules/accept4-tests (Makefile.am): Link test-accept4 against
12318         $(LIBSOCKET).
12319
12320         accept4: Avoid link error on Solaris.
12321         * modules/accept4 (Link): New section.
12322
12323         socket functions: Avoid link errors on Solaris.
12324         * modules/accept (Depends-on): Add socketlib.
12325         (Link): New section.
12326         * modules/bind (Depends-on): Add socketlib.
12327         (Link): New section.
12328         * modules/connect (Depends-on): Add socketlib.
12329         (Link): New section.
12330         * modules/getpeername (Depends-on): Add socketlib.
12331         (Link): New section.
12332         * modules/getsockname (Depends-on): Add socketlib.
12333         (Link): New section.
12334         * modules/getsockopt (Depends-on): Add socketlib.
12335         (Link): New section.
12336         * modules/listen (Depends-on): Add socketlib.
12337         (Link): New section.
12338         * modules/recv (Depends-on): Add socketlib.
12339         (Link): New section.
12340         * modules/recvfrom (Depends-on): Add socketlib.
12341         (Link): New section.
12342         * modules/send (Depends-on): Add socketlib.
12343         (Link): New section.
12344         * modules/sendto (Depends-on): Add socketlib.
12345         (Link): New section.
12346         * modules/setsockopt (Depends-on): Add socketlib.
12347         (Link): New section.
12348         * modules/shutdown (Depends-on): Add socketlib.
12349         (Link): New section.
12350         * modules/socket (Depends-on): Add socketlib.
12351         (Link): New section.
12352
12353 2011-09-18  Bruno Haible  <bruno@clisp.org>
12354
12355         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
12356         * tests/test-ptsname.c (main): Terminate the test if it takes longer
12357         than 5 seconds.
12358         * modules/ptsname-tests (configure.ac): Test for alarm.
12359
12360 2011-09-18  Bruno Haible  <bruno@clisp.org>
12361
12362         posix_spawn_file_actions_add*: Fix module dependencies.
12363         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
12364         posix_spawn_file_actions_init.
12365         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
12366         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
12367
12368 2011-09-18  Bruno Haible  <bruno@clisp.org>
12369
12370         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
12371         * tests/test-rename.h (test_rename): Allow error code EEXIST.
12372         * tests/test-renameat.c (main): Likewise.
12373
12374 2011-09-18  Bruno Haible  <bruno@clisp.org>
12375
12376         Tests for module 'accept4'.
12377         * modules/accept4-tests: New file.
12378         * tests/test-accept4.c: New file.
12379
12380 2011-09-18  Bruno Haible  <bruno@clisp.org>
12381
12382         Tests for module 'accept'.
12383         * modules/accept-tests: New file.
12384         * tests/test-accept.c: New file.
12385
12386 2011-09-18  Bruno Haible  <bruno@clisp.org>
12387
12388         dup2: Support for MSVC.
12389         * lib/dup2.c: Include msvc-inval.h.
12390         (rpl_dup2): Handle invalid parameter notifications during dup2 and
12391         _get_osfhandle calls.
12392         * modules/dup2 (Depends-on): Add msvc-inval.
12393         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
12394
12395         New module 'msvc-inval'.
12396         * lib/msvc-inval.h: New file.
12397         * lib/msvc-inval.c: New file.
12398         * m4/msvc-inval.m4: New file.
12399         * modules/msvc-inval: New file.
12400
12401 2011-09-17  Bruno Haible  <bruno@clisp.org>
12402
12403         Tests for module 'pclose'.
12404         * modules/pclose-tests: New file.
12405
12406         New module 'pclose'.
12407         * lib/stdio.in.h (pclose): New declaration.
12408         * lib/pclose.c: New file.
12409         * m4/pclose.m4: New file.
12410         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
12411         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
12412         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
12413         * modules/pclose: New file.
12414         * modules/popen-tests (Depends-on): Add pclose.
12415         * modules/popen-safer-tests (Depends-on): Likewise.
12416         * doc/posix-functions/pclose.texi: Mention the new module.
12417
12418 2011-09-17  Bruno Haible  <bruno@clisp.org>
12419
12420         popen: Support for MSVC.
12421         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
12422         * lib/popen.c (popen): Provide alternate definition for native Windows.
12423         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
12424         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
12425         * modules/popen (Depends-on, configure.ac): Update condition.
12426         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
12427         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
12428         fixed.
12429
12430 2011-09-17  Bruno Haible  <bruno@clisp.org>
12431
12432         isnanl, isnand, isnanf: Work around MSVC bug.
12433         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
12434
12435 2011-09-17  Bruno Haible  <bruno@clisp.org>
12436
12437         sys_socket tests: Fix recent mistake.
12438         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
12439
12440 2011-09-17  Bruno Haible  <bruno@clisp.org>
12441
12442         putenv: Support for MSVC.
12443         * modules/putenv (Depends-on): Add environ.
12444         * lib/putenv.c (environ): Disable declaration.
12445         * lib/unistd.in.h: Update comment.
12446
12447 2011-09-17  Bruno Haible  <bruno@clisp.org>
12448
12449         math: Avoid macro redefinition warnings on MSVC.
12450         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
12451         Undefine before redefining.
12452
12453 2011-09-17  Bruno Haible  <bruno@clisp.org>
12454
12455         doc: Mention functions which are declared as macros.
12456         * doc/posix-functions/*[fl].texi: Mention that some functions are
12457         defined as macros with arguments only.
12458
12459 2011-09-17  Bruno Haible  <bruno@clisp.org>
12460
12461         Add dependencies to new dirent related modules.
12462         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
12463         * modules/fts (Depends-on): Likewise.
12464         * modules/glob (Depends-on): Likewise.
12465         * modules/savedir (Depends-on): Likewise.
12466         * modules/scandir (Depends-on): Likewise.
12467         * modules/dirent-safer (Depends-on): Add opendir, closedir.
12468         * modules/fdopendir (Depends-on): Add opendir.
12469
12470 2011-09-17  Bruno Haible  <bruno@clisp.org>
12471
12472         inet_pton: Support for MSVC on Windows Vista or newer.
12473         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
12474         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
12475         HAVE_DECL_INET_PTON is defined.
12476         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
12477         On platforms with <winsock2.h>, test whether inet_pton is declared in
12478         <ws2tcpip.h>. If so, arrange to replace it.
12479         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
12480         REPLACE_INET_PTON.
12481         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
12482         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
12483         (Depends-on, configure.ac): Update condition.
12484         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
12485
12486 2011-09-17  Bruno Haible  <bruno@clisp.org>
12487
12488         inet_ntop: Support for MSVC on Windows Vista or newer.
12489         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
12490         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
12491         HAVE_DECL_INET_NTOP is defined.
12492         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
12493         On platforms with <winsock2.h>, test whether inet_ntop is declared in
12494         <ws2tcpip.h>. If so, arrange to replace it.
12495         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
12496         REPLACE_INET_NTOP.
12497         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
12498         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
12499         (Depends-on, configure.ac): Update condition.
12500         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
12501
12502 2011-09-16  Eric Blake  <eblake@redhat.com>
12503
12504         test-fsync: yet another enhancement
12505         * tests/test-fsync.c (main): Also test behavior on read-only text
12506         file.
12507
12508 2011-09-16  Bruno Haible  <bruno@clisp.org>
12509
12510         Enhance fsync, fdatasync tests.
12511         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
12512         * tests/test-fdatasync.c (main): Likewise.
12513
12514 2011-09-16  Bruno Haible  <bruno@clisp.org>
12515
12516         Support for MSVC compiler: Ensure mode_t gets defined.
12517         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
12518         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12519         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
12520         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
12521         * tests/test-fcntl-h.c: Check that mode_t is defined.
12522         * tests/test-sys_stat.c: Likewise.
12523         * tests/test-sys_types.c: Likewise.
12524         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
12525         * doc/posix-headers/sys_stat.texi: Likewise.
12526         * doc/posix-headers/sys_types.texi: Likewise.
12527
12528 2011-09-16  Bruno Haible  <bruno@clisp.org>
12529
12530         sys_stat: Support for MSVC.
12531         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
12532         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
12533         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
12534         MSVC.
12535
12536 2011-09-16  Bruno Haible  <bruno@clisp.org>
12537
12538         Support for MSVC compiler: Ensure off_t gets defined.
12539         * lib/unistd.in.h: Include <sys/types.h>.
12540         * tests/test-fcntl-h.c: Check that off_t is defined.
12541         * tests/test-sys_stat.c: Likewise.
12542         * tests/test-sys_types.c: Likewise.
12543
12544 2011-09-16  Eric Blake  <eblake@redhat.com>
12545
12546         fdatasync: port to Solaris
12547         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
12548         * modules/fdatasync (Link): Document it.
12549         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
12550
12551         fdatasync: port to MacOS X 10.7
12552         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
12553         declared.
12554         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
12555         * modules/unistd (Makefile.am): Substitute it.
12556         * lib/unistd.in.h (fdatasync): Declare on MacOS.
12557         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
12558
12559         fdatasync: minor improvements
12560         * modules/fdatasync (Depends-on): Add condition for fsync.
12561         * lib/fdatasync.c (fdatasync): Add comment.
12562         * tests/test-unistd-c++.cc: Test fdatasync.
12563
12564         unistd: update refs to newer POSIX
12565         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
12566         Suggested by Bruno Haible.
12567
12568         fdatasync: new module
12569         * modules/fsync (Description): Document difference to fdatasync.
12570         * modules/fdatasync: New module.
12571         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
12572         * lib/fdatasync.c (fdatasync): Likewise.
12573         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
12574         defaults.
12575         * modules/unistd (Makefile.am): Set witnesses.
12576         * lib/unistd.in.h (fdatasync): Declare.
12577         * MODULES.html.sh: Document it.
12578         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
12579         * modules/fdatasync-tests: New test.
12580         * tests/test-fdatasync.c: Likewise.
12581
12582 2011-09-16  Eric Blake  <eblake@redhat.com>
12583
12584         test-fsync: enhance tests
12585         * modules/fsync-tests (Depends-on): Add errno, for mingw.
12586         * tests/test-fsync.c (main): Enhance test.
12587
12588 2011-09-15  Bruno Haible  <bruno@clisp.org>
12589
12590         Support for MSVC compiler: Ensure ssize_t gets defined.
12591         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
12592         * doc/posix-headers/stdio.texi: Likewise.
12593         * modules/stdio (Depends-on): Add ssize_t.
12594         * modules/sys_socket (Depends-on): Likewise.
12595         * modules/sys_types (Depends-on): Likewise.
12596         * modules/sys_uio (Depends-on): Likewise.
12597         * modules/unistd (Depends-on): Likewise.
12598         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
12599         * tests/test-sys_types.c: Check that ssize_t is defined.
12600
12601 2011-09-14  Bruno Haible  <bruno@clisp.org>
12602
12603         Avoid using #, the m4 comment starter character, near brackets.
12604         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
12605         delimiter character in sed expressions.
12606         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
12607         Suggested by Eric Blake.
12608
12609         Properly quote AC_CHECK_DECLS' 4th argument.
12610         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
12611         argument.
12612         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
12613         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
12614         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
12615         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
12616         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
12617         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
12618         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
12619         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
12620         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
12621         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
12622         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
12623         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
12624         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
12625         * m4/isinf.m4 (gl_ISINF): Likewise.
12626         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
12627         * m4/readutmp.m4 (gl_READUTMP): Likewise.
12628         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
12629         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
12630         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
12631         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
12632         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
12633         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
12634         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
12635         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
12636         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
12637         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
12638         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
12639         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
12640         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12641         Reported by Eric Blake.
12642
12643         Properly quote AC_CHECK_DECL's 4th argument.
12644         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
12645         argument.
12646         * m4/argp.m4 (gl_ARGP): Likewise.
12647         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
12648         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12649         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
12650         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
12651         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
12652         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
12653         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
12654         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
12655         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
12656         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
12657         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
12658         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
12659         Reported by Eric Blake.
12660
12661 2011-09-14  Eric Blake  <eblake@redhat.com>
12662
12663         opendir: avoid compile warning
12664         * lib/opendir.c (includes): Always include errno.h.
12665         Reported by Tatsuro MATSUOKA.
12666
12667 2011-09-14  Jim Meyering  <meyering@redhat.com>
12668
12669         maint.mk: sc_tight_scope: propagate failure from sub-make
12670         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
12671         Reported by Martin von Gagern.
12672
12673 2011-09-13  Bruno Haible  <bruno@clisp.org>
12674
12675         tempname: Support for MSVC.
12676         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
12677         MSVC.
12678         * modules/tempname (Depends-on): Add fcntl-h.
12679
12680 2011-09-13  Bruno Haible  <bruno@clisp.org>
12681
12682         sys_time: Support for MSVC.
12683         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
12684         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
12685         include <winsock2.h>.
12686         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
12687         function declarations that collide with POSIX.
12688         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
12689         (Makefile.am): Substitute HAVE_WINSOCK2_H.
12690
12691 2011-09-13  Bruno Haible  <bruno@clisp.org>
12692
12693         stat: Support for MSVC.
12694         * lib/stat.c: Include pathmax.h.
12695         * modules/stat (Depends-on): Add pathmax.
12696
12697         pathmax: Support for native Windows.
12698         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
12699
12700 2011-09-12  Bruno Haible  <bruno@clisp.org>
12701
12702         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
12703         * lib/dirent.in.h (struct dirent): New type.
12704         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
12705         DT_WHT): New macros.
12706         (DIR): New type.
12707         (opendir, closedir): Declare only if the module 'opendir' is enabled.
12708         (readdir, rewinddir): New declarations.
12709         * lib/dirent-private.h: New file.
12710         * lib/opendir.c: New file.
12711         * lib/readdir.c: New file.
12712         * lib/rewinddir.c: New file.
12713         * lib/closedir.c: New file.
12714         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
12715         * m4/opendir.m4: New file.
12716         * m4/readdir.m4: New file.
12717         * m4/rewinddir.m4: New file.
12718         * m4/closedir.m4: New file.
12719         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
12720         REPLACE_CLOSEDIR here.
12721         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
12722         readdir, rewinddir are declared.
12723         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
12724         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
12725         HAVE_REWINDDIR, HAVE_CLOSEDIR.
12726         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
12727         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
12728         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
12729         * modules/opendir: New file.
12730         * modules/readdir: New file.
12731         * modules/rewinddir: New file.
12732         * modules/closedir: New file.
12733         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
12734         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
12735         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
12736         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
12737         * NEWS: Mention the 'fchdir' change.
12738
12739 2011-09-11  Bruno Haible  <bruno@clisp.org>
12740
12741         asm-underscore.m4: Support for MSVC.
12742         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
12743         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
12744
12745 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
12746
12747         Doc about crypt functions.
12748         * doc/posix-functions/crypt.texi: Expand range of glibc versions
12749         needing for _GNU_SOURCE to get crypt.
12750         * doc/posix-functions/encrypt.texi: Likewise.
12751         * doc/posix-functions/setkey.texi: Likewise.
12752
12753 2011-09-11  Bruno Haible  <bruno@clisp.org>
12754
12755         doc: Update regarding MSVC 9.
12756         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
12757         tested".
12758         * doc/posix-functions/*.texi: Update with info about MSVC 9.
12759         * doc/posix-headers/*.texi: Likewise.
12760         * doc/pastposix-functions/*.texi: Likewise.
12761         * doc/glibc-functions/*.texi: Likewise.
12762         * doc/glibc-headers/*.texi: Likewise.
12763
12764 2011-09-11  Bruno Haible  <bruno@clisp.org>
12765
12766         unistd et al.: Don't assume <unistd.h> exists.
12767         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
12768         does not exist.
12769         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
12770         exist. But include <stdlib.h>.
12771         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
12772         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
12773         symlink() does not exist.
12774         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
12775         include <io.h> instead.
12776         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
12777         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
12778         include <direct.h> instead.
12779         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
12780         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12781         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
12782         <io.h> instead.
12783         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
12784         correctly if the system does not have hard links.
12785         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
12786         <direct.h> instead.
12787         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
12788         it when looking for function declarations.
12789         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
12790         <direct.h> and <io.h> instead.
12791         * doc/posix-headers/unistd.texi: More details about MSVC problem.
12792
12793 2011-09-11  Bruno Haible  <bruno@clisp.org>
12794
12795         strcase: Support for MSVC.
12796         * modules/strcase (Status, Notice): Remove obsoletion mark.
12797         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
12798         * doc/posix-functions/strncasecmp.texi: Likewise.
12799
12800         strings: Don't assume <strings.h> exists.
12801         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
12802         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
12803         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
12804         * doc/posix-headers/strings.texi: Mention the MSVC problem.
12805
12806 2011-09-11  Bruno Haible  <bruno@clisp.org>
12807
12808         dirent: Don't assume <dirent.h> exists.
12809         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
12810         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
12811         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
12812         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
12813
12814 2011-09-11  Bruno Haible  <bruno@clisp.org>
12815
12816         Fix wint_t on MSVC.
12817         * lib/wchar.in.h (wint_t): On MSVC, override it.
12818         * lib/wctype.in.h (wint_t): Likewise.
12819         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
12820         MSVC.
12821         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
12822         * doc/posix-headers/wctype.texi: Likewise.
12823
12824 2011-09-11  Bruno Haible  <bruno@clisp.org>
12825
12826         sys_types: Fix typo.
12827         * lib/sys_types.in.h: Fix typo in comment.
12828         Reported by Paul Eggert.
12829
12830         Support for MSVC compiler: Ensure size_t gets defined.
12831         * modules/strings (Depends-on): Add 'sys_types'.
12832         * modules/sys_uio (Depends-on): Likewise.
12833         * lib/sys_uio.in.h: Update comment.
12834
12835         C++ tests for module 'sys_types'.
12836         * modules/sys_types-c++-tests: New file.
12837         * tests/test-sys_types-c++.cc: New file.
12838
12839         Tests for module 'sys_types'.
12840         * modules/sys_types-tests: New file.
12841         * tests/test-sys_types.c: New file.
12842
12843         New module 'sys_types'.
12844         * lib/sys_types.in.h: New file.
12845         * m4/sys_types_h.m4: New file.
12846         * modules/sys_types: New file.
12847         * doc/posix-headers/sys_types.texi: Mention the new module and the
12848         size_t problem on MSVC 9.
12849
12850 2011-09-11  Bruno Haible  <bruno@clisp.org>
12851
12852         Support for MSVC compiler: Avoid division by a literal 0.
12853         * lib/math.in.h (NAN): Define through a function call also on MSVC.
12854         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
12855         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
12856         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
12857         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
12858         * tests/infinity.h: New file.
12859         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
12860         on MSVC.
12861         * tests/test-ceilf1.c: Include infinity.h.
12862         (main): Use Infinityf.
12863         * tests/test-ceil1.c: Include infinity.h.
12864         (main): Use Infinityd.
12865         * tests/test-ceill.c: Include infinity.h.
12866         (main): Use Infinityl.
12867         * tests/test-dprintf-posix.c: Include infinity.h.
12868         (test_function): Use Infinityd.
12869         * tests/test-floorf1.c: Include infinity.h.
12870         (main): Use Infinityf.
12871         * tests/test-floor1.c: Include infinity.h.
12872         (main): Use Infinityd.
12873         * tests/test-floorl.c: Include infinity.h.
12874         (main): Use Infinityl.
12875         * tests/test-fprintf-posix.c: Include infinity.h.
12876         (test_function): Use Infinityd.
12877         * tests/test-frexp.c: Include infinity.h.
12878         (main): Use Infinityd.
12879         * tests/test-frexpl.c: Include infinity.h.
12880         (main): Use Infinityl.
12881         * tests/test-isfinite.c: Include infinity.h.
12882         (test_isfinitef): Use Infinityf.
12883         (test_isfinited): Use Infinityd.
12884         (test_isfinitel): Use Infinityl.
12885         * tests/test-isinf.c: Include infinity.h.
12886         (test_isinff): Use Infinityf.
12887         (test_isinfd): Use Infinityd.
12888         (test_isinfl): Use Infinityl.
12889         * tests/test-isnan.c: Include infinity.h.
12890         (test_float): Use Infinityf.
12891         (test_double): Use Infinityd.
12892         (test_long_double): Use Infinityl.
12893         * tests/test-isnanf.h: Include infinity.h.
12894         (main): Use Infinityf.
12895         * tests/test-isnand.h: Include infinity.h.
12896         (main): Use Infinityd.
12897         * tests/test-isnanl.h: Include infinity.h.
12898         (main): Use Infinityl.
12899         * tests/test-ldexpl.c: Include infinity.h.
12900         (main): Use Infinityl.
12901         * tests/test-printf-posix.h: Include infinity.h.
12902         (test_function): Use Infinityd.
12903         * tests/test-roundf1.c: Include infinity.h.
12904         (main): Use Infinityf.
12905         * tests/test-round1.c: Include infinity.h.
12906         (main): Use Infinityd.
12907         * tests/test-roundl.c: Include infinity.h.
12908         (main): Use Infinityl.
12909         * tests/test-signbit.c: Include infinity.h.
12910         (test_signbitf): Use Infinityf.
12911         (test_signbitd): Use Infinityd.
12912         (test_signbitl): Use Infinityl.
12913         * tests/test-snprintf-posix.h: Include infinity.h.
12914         (test_function): Use Infinityd, Infinityl.
12915         * tests/test-sprintf-posix.h: Include infinity.h.
12916         (test_function): Use Infinityd, Infinityl.
12917         * tests/test-truncf1.c: Include infinity.h.
12918         (main): Use Infinityf.
12919         * tests/test-trunc1.c: Include infinity.h.
12920         (main): Use Infinityd.
12921         * tests/test-truncl.c: Include infinity.h.
12922         (main): Use Infinityl.
12923         * tests/test-vasnprintf-posix.c: Include infinity.h.
12924         (test_function): Use Infinityd, Infinityl.
12925         * tests/test-vasprintf-posix.c: Include infinity.h.
12926         (test_function): Use Infinityd, Infinityl.
12927         * modules/ceilf-tests (Files): Add tests/infinity.h.
12928         * modules/ceil-tests (Files): Likewise.
12929         * modules/ceill-tests (Files): Likewise.
12930         * modules/dprintf-posix-tests (Files): Likewise.
12931         * modules/floorf-tests (Files): Likewise.
12932         * modules/floor-tests (Files): Likewise.
12933         * modules/floorl-tests (Files): Likewise.
12934         * modules/fprintf-posix-tests (Files): Likewise.
12935         * modules/frexp-tests (Files): Likewise.
12936         * modules/frexp-nolibm-tests (Files): Likewise.
12937         * modules/frexpl-tests (Files): Likewise.
12938         * modules/frexpl-nolibm-tests (Files): Likewise.
12939         * modules/isfinite-tests (Files): Likewise.
12940         * modules/isinf-tests (Files): Likewise.
12941         * modules/isnan-tests (Files): Likewise.
12942         * modules/isnanf-tests (Files): Likewise.
12943         * modules/isnanf-nolibm-tests (Files): Likewise.
12944         * modules/isnand-tests (Files): Likewise.
12945         * modules/isnand-nolibm-tests (Files): Likewise.
12946         * modules/isnanl-tests (Files): Likewise.
12947         * modules/isnanl-nolibm-tests (Files): Likewise.
12948         * modules/ldexpl-tests (Files): Likewise.
12949         * modules/printf-posix-tests (Files): Likewise.
12950         * modules/roundf-tests (Files): Likewise.
12951         * modules/round-tests (Files): Likewise.
12952         * modules/roundl-tests (Files): Likewise.
12953         * modules/signbit-tests (Files): Likewise.
12954         * modules/snprintf-posix-tests (Files): Likewise.
12955         * modules/sprintf-posix-tests (Files): Likewise.
12956         * modules/truncf-tests (Files): Likewise.
12957         * modules/trunc-tests (Files): Likewise.
12958         * modules/truncl-tests (Files): Likewise.
12959         * modules/vasnprintf-posix-tests (Files): Likewise.
12960         * modules/vasprintf-posix-tests (Files): Likewise.
12961         * modules/vdprintf-posix-tests (Files): Likewise.
12962         * modules/vfprintf-posix-tests (Files): Likewise.
12963         * modules/vprintf-posix-tests (Files): Likewise.
12964         * modules/vsnprintf-posix-tests (Files): Likewise.
12965         * modules/vsprintf-posix-tests (Files): Likewise.
12966         * modules/xprintf-posix-tests (Files): Likewise.
12967
12968 2011-09-11  Bruno Haible  <bruno@clisp.org>
12969
12970         Ensure pid_t gets defined.
12971         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
12972         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
12973         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
12974         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
12975         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
12976         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
12977         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
12978         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
12979         * tests/test-fcntl-h.c: Check that pid_t is defined.
12980         * tests/test-sched.c: Likewise.
12981         * tests/test-termios.c: Likewise.
12982         * tests/test-time.c: Likewise.
12983         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
12984         * doc/posix-headers/signal.texi: Likewise.
12985         * doc/posix-headers/sys_types.texi: Likewise.
12986         * doc/posix-headers/time.texi: Likewise.
12987
12988 2011-09-11  Bruno Haible  <bruno@clisp.org>
12989
12990         acl: Fix compilation on Solaris 10 (older version).
12991         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
12992         of ACE_EVERYONE.
12993         * lib/set-mode-acl.c (qset_acl): Likewise.
12994         Reported by Christian Jullien <eligis@orange.fr>.
12995
12996 2011-09-10  Bruno Haible  <bruno@clisp.org>
12997
12998         iconv, unsetenv: Add support for MSVC compiler.
12999         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
13000         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
13001
13002 2011-09-10  Bruno Haible  <bruno@clisp.org>
13003
13004         *printf: Add support for MSVC compiler.
13005         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
13006         handles the exception caused by the %n directive. When cross-compiling,
13007         guess no on native Windows.
13008         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
13009         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
13010         emulate it through vsnprintf.
13011         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
13012         * doc/posix-functions/dprintf.texi: Update documentation regarding
13013         MSVC 9.
13014         * doc/posix-functions/fprintf.texi: Likewise.
13015         * doc/posix-functions/printf.texi: Likewise.
13016         * doc/posix-functions/snprintf.texi: Likewise.
13017         * doc/posix-functions/sprintf.texi: Likewise.
13018         * doc/posix-functions/swprintf.texi: Likewise.
13019         * doc/posix-functions/vdprintf.texi: Likewise.
13020         * doc/posix-functions/vfprintf.texi: Likewise.
13021         * doc/posix-functions/vprintf.texi: Likewise.
13022         * doc/posix-functions/vsnprintf.texi: Likewise.
13023         * doc/posix-functions/vsprintf.texi: Likewise.
13024         * doc/glibc-functions/asprintf.texi: Likewise.
13025         * doc/glibc-functions/obstack_printf.texi: Likewise.
13026         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
13027         * doc/glibc-functions/vasprintf.texi: Likewise.
13028
13029 2011-09-10  Bruno Haible  <bruno@clisp.org>
13030
13031         nocrash: Add support for native Windows.
13032         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
13033
13034 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
13035             Bruno Haible  <bruno@clisp.org>
13036
13037         absolute-header, include-next: Add support for MSVC compiler.
13038         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
13039         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
13040         directory separator in #line directives.
13041         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
13042         recognize also backslash as directory separator in #line directives.
13043
13044 2011-09-08  Jim Meyering  <meyering@redhat.com>
13045
13046         maint.mk: mark the post-release commit log with "maint: " prefix
13047         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
13048         one-line commit-log summary.
13049
13050 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
13051             Bruno Haible  <bruno@clisp.org>
13052
13053         Doc about crypt functions.
13054         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
13055         systems.
13056         * doc/posix-functions/encrypt.texi: Likewise.
13057         * doc/posix-functions/setkey.texi: Likewise.
13058
13059 2011-09-08  Simon Josefsson  <simon@josefsson.org>
13060
13061         * lib/gc.h: Fix copyright header.
13062
13063 2011-09-07  Bruno Haible  <bruno@clisp.org>
13064
13065         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
13066         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
13067         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
13068
13069 2011-09-07  Bruno Haible  <bruno@clisp.org>
13070
13071         openat: Work around compilation error with OSF/1 5.1 DTK cc.
13072         * lib/fopen.c: Use different syntax for include of <stdio.h>.
13073         * lib/freopen.c: Likewise.
13074         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
13075         * lib/lstat.c: Likewise.
13076         * lib/stat.c: Likewise.
13077         * lib/open.c: Use different syntax for include of <fcntl.h>.
13078         * lib/openat.c: Include fcntl.h again, explicitly.
13079
13080 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
13081
13082         parse-datetime: document the newly accepted format
13083         * doc/parse-datetime.texi (Combined date and time of day items):
13084         New section.
13085
13086 2011-09-06  Bruno Haible  <bruno@clisp.org>
13087
13088         acl: Fix a test failure on newer Solaris 10 with ZFS.
13089         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
13090         ENOSYS as no ACL.
13091         Reported by Jim Meyering.
13092
13093 2011-09-06  Bruno Haible  <bruno@clisp.org>
13094
13095         acl: Update for AIX >= 5.3 with NFS.
13096         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
13097         ENOSYS as no ACL.
13098
13099         acl: Fix a test failure on AIX >= 5.3 with NFS.
13100         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
13101         as no ACL.
13102
13103 2011-09-06  Bruno Haible  <bruno@clisp.org>
13104
13105         acl: Fix a test failure on IRIX 6.5 with NFS.
13106         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
13107         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
13108         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
13109         * lib/copy-acl.c (qcopy_acl): Likewise.
13110
13111 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
13112
13113         openat: port to AIX 7.1 with large files
13114         AIX 7.1 does a "#define openat open64at" if large files are in use,
13115         so we can't simply #undef openat.  Use the orig_openat trick (similar
13116         to orig_open in lib/open.c) to work around the problem.  Problem
13117         reported by Kevin Brott for GNU tar, in the thread containing
13118         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
13119         * lib/openat.c (__need_system_fcntl_h): Define first.
13120         Include <fcntl.h> and <sys/types.h> before undefining.
13121         (orig_openat) [HAVE_OPENAT]: New inline function.
13122         (openat) [HAVE_OPENAT]: Do not undef.
13123         (rpl_openat): Use orig_openat, not openat.
13124
13125 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
13126             Bruno Haible  <bruno@clisp.org>
13127
13128         acl: Avoid errors on NonStop Kernel.
13129         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
13130         ENOTSUP errors.
13131
13132 2011-09-05  Bruno Haible  <bruno@clisp.org>
13133
13134         acl: Clean up Solaris code.
13135         * lib/acl-internal.h: Remove no-op #if.
13136         * lib/file-has-acl.c: Likewise.
13137         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
13138         * lib/copy-acl.c (qcopy_acl): Likewise.
13139
13140 2011-09-05  Bruno Haible  <bruno@clisp.org>
13141
13142         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
13143         binaries built on the original Solaris 10.
13144         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
13145         trivial.
13146
13147 2011-09-05  Bruno Haible  <bruno@clisp.org>
13148
13149         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
13150         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
13151         10.
13152         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
13153         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
13154         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
13155         instead of acl_get, facl_get, acl_set, facl_set.
13156
13157 2011-09-05  Bruno Haible  <bruno@clisp.org>
13158
13159         copy-file: Try unit tests on more file systems.
13160         * tests/test-copy-file-1.sh: New file.
13161         * tests/test-copy-file-2.sh: New file.
13162         * modules/copy-file-tests (Files): Add them.
13163         (Makefile.am): Add them to TESTS.
13164
13165         acl: Try unit tests on more file systems.
13166         * tests/test-file-has-acl-1.sh: New file.
13167         * tests/test-file-has-acl-2.sh: New file.
13168         * tests/test-set-mode-acl-1.sh: New file.
13169         * tests/test-set-mode-acl-2.sh: New file.
13170         * tests/test-copy-acl-1.sh: New file.
13171         * tests/test-copy-acl-2.sh: New file.
13172         * modules/acl-tests (Files): Add them.
13173         (Makefile.am): Add them to TESTS.
13174
13175 2011-09-04  Bruno Haible  <bruno@clisp.org>
13176
13177         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
13178         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
13179         10.
13180         (OLD_ALLOW, OLD_DENY): New macros.
13181         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
13182         ACE_ACCESS_ALLOWED_ACE_TYPE.
13183         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
13184         ACE_ACCESS_DENIED_ACE_TYPE.
13185         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
13186         (NEW_ACE_EXECUTE): Fix value.
13187         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
13188         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
13189         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
13190         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
13191         NEW_ACE_SYNCHRONIZE): New macros.
13192         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
13193         instead of acl_fromtext, acl_set, facl_set.
13194         Fixes a coreutils/tests/cp/perm failure.
13195
13196 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
13197
13198         openat: test for fstatat (..., 0) bug
13199         Further testing with tar suggests that fstatat (..., 0)
13200         does not work in general, on AIX 7.1; see
13201         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
13202         So, give up entirely on AIX 7.1's fstatat, and fall back on our
13203         replacement fstatat (which is what older AIX releases were using
13204         anyway).
13205         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
13206         use is now changed to orig_fstatat.  This was probably the right
13207         thing to do anyway.
13208         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
13209         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
13210         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
13211         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
13212         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
13213         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
13214         if the bug is found.
13215
13216         openat: test for fstatat (AT_FDCWD, ..., 0) bug
13217         This tests for another fstatat bug on AIX 7.1:
13218         fstatat (AT_FDCWD, ..., 0) does not work.  See
13219         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
13220         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
13221         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
13222         (rpl_fstatat): Adjust so that it works around either (or both)
13223         bugs if present.
13224         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
13225
13226 2011-09-03  Karl Berry  <karl@gnu.org>
13227
13228         * doc/regex.texi (Character Class Operators): Avoid literal ":"
13229         in index entries.
13230
13231 2011-09-02  Bruno Haible  <bruno@clisp.org>
13232
13233         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
13234         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
13235         values of AR, ARFLAGS, RANLIB.
13236         Reported by John W. Eaton <jwe@gnu.org> for Octave.
13237
13238 2011-09-02  Bruno Haible  <bruno@clisp.org>
13239
13240         Find 'ar' program that fits with --host argument.
13241         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
13242
13243 2011-09-02  Bruno Haible  <bruno@clisp.org>
13244
13245         tests: init.sh: Support any non-GNU diff.
13246         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
13247         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
13248         Solaris 8.
13249
13250 2011-09-02  Bruno Haible  <bruno@clisp.org>
13251
13252         tests: init.sh: work also with any non-GNU diff that supports -u
13253         * tests/init.sh: Relax check for diff -u support.
13254         Rather than checking for GNU diff via --version, simply check
13255         for support for -u itself.  Useful at least on OpenBSD 4.9,
13256         AIX 7.1, IRIX 6.5, and Solaris 10.
13257
13258 2011-09-01  Bruno Haible  <bruno@clisp.org>
13259
13260         strtoimax, strtoumax: Document problem on HP-UX 11.
13261         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
13262         * doc/posix-functions/strtoumax.texi: Likewise.
13263
13264 2011-09-01  Bruno Haible  <bruno@clisp.org>
13265
13266         strtoumax: Avoid link error on OSF/1 with DTK cc.
13267         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
13268         defined as a function.
13269         * modules/strtoumax (Depends-on, configure.ac): Test only whether
13270         strtoumax is defined, not whether it is declared.
13271
13272 2011-09-01  Bruno Haible  <bruno@clisp.org>
13273
13274         strtoimax: Avoid link error on OSF/1 with DTK cc.
13275         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
13276         defined as a function.
13277         * modules/strtoimax (Depends-on, configure.ac): Test only whether
13278         strtoimax is defined, not whether it is declared.
13279
13280 2011-09-01  Bruno Haible  <bruno@clisp.org>
13281
13282         imaxdiv: Avoid link error on OSF/1 with DTK cc.
13283         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
13284         as a function.
13285         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
13286         whether it is declared.
13287
13288 2011-09-01  Bruno Haible  <bruno@clisp.org>
13289
13290         imaxabs: Avoid link error on OSF/1 with DTK cc.
13291         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
13292         as a function.
13293         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
13294         whether it is declared.
13295
13296 2011-09-01  Bruno Haible  <bruno@clisp.org>
13297
13298         Tests for module 'strtoumax'.
13299         * modules/strtoumax-tests: New file.
13300         * tests/test-strtoumax.c: New file.
13301
13302         Tests for module 'strtoimax'.
13303         * modules/strtoimax-tests: New file.
13304         * tests/test-strtoimax.c: New file.
13305
13306         Tests for module 'imaxdiv'.
13307         * modules/imaxdiv-tests: New file.
13308         * tests/test-imaxdiv.c: New file.
13309
13310         Tests for module 'imaxabs'.
13311         * modules/imaxabs-tests: New file.
13312         * tests/test-imaxabs.c: New file.
13313
13314 2011-09-01  Bruno Haible  <bruno@clisp.org>
13315
13316         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
13317         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
13318         pthread_create.
13319
13320 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
13321
13322         openat: work around AIX 7.1 fstatat issue
13323         This should fix the problem that was not properly fixed
13324         in the previous change, dated 2011-08-30.
13325         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
13326         __need_system_stat_h defined.
13327         (orig_fstatat) [HAVE_FSTATAT]: New function.
13328         (rpl_fstatat): Go back to the old way of doing things,
13329         except call orig_fstatat instead of fstatat.
13330         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
13331         Remove unnecessary check whether fstatat fills in st_size etc.
13332
13333 2011-09-01  Bruno Haible  <bruno@clisp.org>
13334
13335         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
13336         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
13337         just include the system's header.
13338
13339 2011-08-31  Jim Meyering  <meyering@redhat.com>
13340
13341         tests: avoid spurious assertion failure in test-float.c on ppc64
13342         * tests/test-float.c (test_long_double): Comment out an assertion,
13343         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
13344         with gcc-4.4.4.
13345
13346         maint: indent with spaces, not TABs
13347         I need to get in the habit of running gnulib's "make check".
13348         Both of these would have been caught.
13349         * m4/largefile.m4: Indent with spaces, not TABs.
13350         * lib/parse-datetime.y (iso_8601_time): Likewise.
13351         Spotted by Pádraig Brady.
13352
13353         test-parse-datetime.c: accommodate a relatively strict gcc warning
13354         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
13355         to avoid a warning from gcc's -Werror=missing-declarations.
13356         Insert a few spaces-before-funcall-parenthesis.
13357
13358 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
13359
13360         parse-datetime: accept ISO 8601 date and time rep with "T" separator
13361         The parser now accepts ISO 8601 date-time strings with "T" as the
13362         separator.  It has long parsed dates like "2004-02-29 16:21:42"
13363         with a space between the date and time strings.  Now it also parses
13364         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
13365         variants like "2004-02-29T16:21:42.333-07:00"
13366         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
13367         of day representation using the 'T' separator character.
13368         * doc/parse-datetime.texi (General date syntax): replace use of
13369         deprecated --iso-8601 option with --rfc-3339 in example of date
13370         command output formats that can be parsed.
13371         * tests/test-parse-datetime.c (tm_diff): New function, taken from
13372         lib/parse-datetime.y.
13373         (gmt_offset): New function.
13374         (main): Add additional test cases to validate ISO8601 extended
13375         date and time of day parsing.
13376
13377 2011-08-31  Bruno Haible  <bruno@clisp.org>
13378
13379         freopen: Documentation.
13380         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
13381         name.
13382         Reported by Claudio Bley <claudio.bley@gmail.com>.
13383
13384 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
13385
13386         freopen: Don't crash if the filename argument is NULL.
13387         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
13388         NULL.
13389
13390 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
13391
13392         openat: work around AIX 7.1 fstatat bug
13393         Problem reported by Kevin Brott for GNU tar, in the thread containing
13394         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
13395         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
13396         FSTATAT_ST_SIZE_ETC_BROKEN.
13397         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
13398         rpl_fstatat.
13399         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
13400         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
13401         AC_CHECK_FUNCS_ONCE for fstatat.
13402         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
13403         fchmodat, mkdirat, openat and unlinkat.
13404
13405 2011-08-30  Bruno Haible  <bruno@clisp.org>
13406
13407         Avoid endless recursions if config.h includes some header files.
13408         * lib/fopen.c (__need_FILE): Define already before including config.h.
13409         * lib/freopen.c (__need_FILE): Likewise.
13410         * lib/open.c (__need_system_fcntl_h): Likewise.
13411         * lib/stat.c (__need_system_sys_stat_h): Likewise.
13412         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
13413         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
13414
13415 2011-08-25  Karl Berry  <karl@gnu.org>
13416
13417         * config/srclist.txt (ylwrap): new try.
13418         * build-aux/ylwrap: new file.
13419
13420 2011-08-23  Bruno Haible  <bruno@clisp.org>
13421
13422         tmpdir: Use a good default directory on native Windows.
13423         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
13424         (P_tmpdir): Default to _P_tmpdir on native Windows.
13425         (path_search): On native Windows, try the value returned by GetTempPath
13426         before trying P_tmpdir.
13427         * modules/tmpdir (Depends-on): Add pathmax.
13428         Suggested by John Darrington <john@darrington.wattle.id.au>.
13429
13430 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
13431
13432         doc: fix typo in README-release
13433         * top/README-release: Capitalize first word of a sentence.
13434
13435 2011-08-19  Jim Meyering  <meyering@redhat.com>
13436
13437         fts: do not exhaust memory when processing million-entry directories
13438         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
13439         directory would require about 256*N bytes of memory.  Thus, it was
13440         easy to construct a directory too large to be processed by any of
13441         those tools.  With this change, fts' maximum memory utilization is
13442         now limited to around 30MB.
13443         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
13444         (fts_read): When we've processed the final entry (i.e., when
13445         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
13446         using the parent entry to read any remaining entries.  Dispatch
13447         depending on what fts_build returns:
13448         - NULL+stop, aka failure: stop
13449         - NULL otherwise: move up in the dir hierarchy
13450         - non-NULL: handle this new entry
13451         (fts_build): Declare and use new local, continue_readdir.
13452         Prepare to be called from fts_read, when the entries
13453         from a partially-read directory have just been exhausted.
13454         In that case, we'll skip the opendir and instead use the parent's
13455         fts_dirp and derive dir_fd from that.
13456         Finally, in the readdir loop, if we read max_entries entries,
13457         exit the loop ensuring *not* to call closedir.  This is required
13458         so that fts_dirp can be reused on a subsequent call.
13459         Prompted by Ben England's report of memory exhaustion in find
13460         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
13461
13462         maint: fts: move decl of `dp' down into while loop; split a long line
13463         * lib/fts.c (fts_build): No semantic change.
13464
13465         fts: add/use new struct member, fts_dirp
13466         We are about to use this to manage any directory with
13467         too many entries to read all of them into memory at once.
13468         To do that, we'll need to save the DIR* pointer in each
13469         affected FTSENT struct.
13470         * lib/fts_.h: Include <dirent.h>.
13471         (struct FTSENT) [fts_dirp]: New member.
13472         * lib/fts.c (closedir_and_clear): Define.
13473         Use it in place of closedir so that we are sure to
13474         clear the new fts_dirp member when done with it.
13475         (fts_alloc): Initialize the new member.
13476         (fts_lfree): Free, if needed.
13477
13478         maint: fts: give __opendir2 a new parameter and rename
13479         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
13480         than surreptitiously using sole caller's "dir_fd".
13481         (fts_opendir): Rename from __opendir2.
13482
13483         maint: fts.c: remove __opendir2's now-unused parameter, oflag
13484         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
13485
13486         maint: fts.c: correct off-by-one indentation
13487         * lib/fts.c (fts_build): Correct indentation, change style
13488         of a couple of block comments, and bracing style.
13489
13490         maint: fts.c: move __opendir2 #define "up" out of function body
13491         * lib/fts.c (__opendir2): Move "up".  No semantic change.
13492
13493         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
13494         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
13495         out for a long time and besides was useful only on BSD systems.
13496
13497 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
13498
13499         regex: port to Stratus OpenVOS
13500         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
13501         define to empty, rather than attempting nonportable optimizations.
13502         Problem reported by Paul Green in:
13503         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
13504         and fix suggested by Eric Blake in:
13505         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
13506
13507 2011-08-17  Eric Blake  <eblake@redhat.com>
13508
13509         getcwd: fix test failures on mingw
13510         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
13511         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
13512         test if long directory cannot be created, and allow mingw errno.
13513
13514         getcwd-lgpl: fix m4 to match relaxed test for BSD
13515         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
13516         (gl_FUNC_GETCWD_SIGNATURE): New macro.
13517         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
13518         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
13519         signature problem.
13520
13521         getcwd: fix compilation on mingw64
13522         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
13523         getcwd.
13524         Reported by Marc-André Lureau.
13525
13526         pipe2: silence compiler warning
13527         * lib/pipe2.c (pipe2): Hide label if it is not used.
13528
13529 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
13530
13531         relocatable-prog: fix link error
13532         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
13533         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
13534         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
13535         into modules/relocatable-lib without noticing that
13536         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
13537         also needs to build relocatable.c.
13538
13539 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
13540
13541         getaddrinfo: fix sh typo in gai_strerrorA decl checking
13542         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
13543         shell code: it contained a 'break' that was not in a loop.
13544         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
13545         via a shell-language loop; this may have been true in old Autoconf
13546         versions, but it's not true in Autoconf 2.68.  I found this bug
13547         when testing coreutils git on Solaris 8, whose shell complains
13548         about the syntax error.
13549
13550 2011-08-12  Simon Josefsson  <simon@josefsson.org>
13551
13552         * lib/base64.c: Fix comment to reference RFC 4648.
13553         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
13554         <gvtulder@gmail.com>.
13555
13556 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
13557
13558         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
13559
13560         po/Makefile.in.in: fix make -q problem
13561         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
13562         rule, since there's no file named 'check-macro-version' and its
13563         use as a file breaks make -q.
13564         (all): Don't depend on check-macro-version.
13565         (CHECK_MACRO_VERSION): New macro.
13566         (stamp-po): Use it.
13567
13568         configmake: fix make -q problem
13569         * modules/configmake (configmake.h): Update configmake.h's time stamp
13570         even if the file does not change.  Otherwise, 'make -q' fails.
13571         Problem reported by Simon Josefsson in
13572         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
13573
13574 2011-08-11  Jim Meyering  <meyering@redhat.com>
13575
13576         git-version-gen: correct the advice in a comment
13577         * build-aux/git-version-gen: Correct comment.
13578         Don't recommend to list .tarball-version in .gitignore.
13579
13580 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
13581
13582         base64: fix off-by-one buffer size bug
13583         Problem and (trivial) fix reported by Gijs van Tulder in
13584         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
13585         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
13586         * tests/test-base64.c (main): Catch the bug.
13587
13588 2011-08-10  Eric Blake  <eblake@redhat.com>
13589
13590         closein: correct comments
13591         * lib/closein.c (close_stdin): Improve comments.
13592
13593 2011-08-09  Bruno Haible  <bruno@clisp.org>
13594
13595         More tests for 'fseeko'.
13596         * tests/test-fseeko3.c: New file, from Eric Blake.
13597         * tests/test-fseeko3.sh: New file.
13598         * modules/fseeko-tests (Files): Add them.
13599         (TESTS): Add test-fseeko3.sh.
13600         (check_PROGRAMS): Add test-fseeko3.
13601
13602 2011-08-09  Eric Blake  <eblake@redhat.com>
13603
13604         fseeko: remove unneeded hack
13605         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
13606
13607         fseeko: fix bug on glibc
13608         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
13609         Reported by John W. Eaton.
13610
13611 2011-08-08  Bruno Haible  <bruno@clisp.org>
13612
13613         unictype/base: Fix interoperability with preinstalled libunistring.
13614         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
13615         Reported by Simon Josefsson.
13616
13617 2011-08-08  Bruno Haible  <bruno@clisp.org>
13618
13619         iswblank: Detect declaration correctly.
13620         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
13621         AC_CHECK_DECLS invocation.
13622
13623 2011-08-08  Bruno Haible  <bruno@clisp.org>
13624
13625         tcgetsid: Detect declaration correctly.
13626         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
13627         AC_CHECK_DECLS invocation.
13628         Reported by Simon Josefsson.
13629
13630 2011-08-08  Eric Blake  <eblake@redhat.com>
13631
13632         largefile: fix typo that regressed large file support
13633         * modules/largefile (configure.ac-early): Fix section name.
13634
13635 2011-08-06  Karl Berry  <karl@gnu.org>
13636
13637         * MODULES.html.sh (func_all_files): _Noreturn is no longer
13638         a separate module.
13639
13640 2011-08-05  Simon Josefsson  <simon@josefsson.org>
13641
13642         openat: Fix warnings and commens when building unlinkat.c on Hurd.
13643         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
13644         get prototype for free.
13645
13646 2011-08-04  Bruno Haible  <bruno@clisp.org>
13647
13648         Tests for module 'pathmax'.
13649         * modules/pathmax-tests: New file.
13650         * tests/test-pathmax.c: New file.
13651
13652         canonicalize-lgpl: Support larger filenames on the Hurd.
13653         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
13654         Reported by Paul Eggert.
13655
13656         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
13657         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
13658         * lib/chdir-long.h: Include pathmax.h.
13659         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
13660         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
13661         (PATH_MAX): Remove code that is done by pathmax.h.
13662         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
13663         * lib/tmpfile.c: Add a comment.
13664         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
13665         * modules/chdir-long (Depends-on): Add pathmax.
13666         * modules/getcwd (Depends-on): Add pathmax.
13667         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
13668         is not defined.
13669         * doc/posix-headers/limits.texi: Mention the pathmax module.
13670         * NEWS: Mention the change.
13671
13672 2011-08-02  Bruno Haible  <bruno@clisp.org>
13673
13674         pthread_sigmask: Actually use results of gl_THREADLIB.
13675         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
13676         gl_THREADLIB, not gl_[]THREADLIB.
13677         Reported by Eric Blake.
13678
13679 2011-08-02  Jim Meyering  <meyering@redhat.com>
13680
13681         maint.mk: relax the default _gl_TS_function_match regexp
13682         * top/maint.mk (_gl_TS_function_match): Don't require at least one
13683         space between function name and "(" in an "extern" declaration.
13684         That would fail to match a decl with no space there: extern void foo();
13685
13686 2011-07-31  Iain Nicol  <iain@thenicols.net>
13687
13688         git-version-gen: document that EXTRA_DIST must include .version
13689         * build-aux/git-version-gen: In the how-to-use comment, document
13690         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
13691         will fail when run from an unpacked distribution tarball.
13692
13693 2011-08-01  Bruno Haible  <bruno@clisp.org>
13694
13695         wctype-h: Fix last change.
13696         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
13697         REPLACE_TOWLOWER to 0.
13698         Reported by Sam Steingold <sds@gnu.org>.
13699
13700 2011-07-31  Bruno Haible  <bruno@clisp.org>
13701
13702         frexpl: Update autoconf test.
13703         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
13704         according to changes of 2011-06-20.
13705
13706 2011-07-31  Bruno Haible  <bruno@clisp.org>
13707
13708         sys_utsname: Add support for Minix.
13709         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
13710         <sys/utsname.h>.
13711         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
13712         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
13713
13714 2011-07-31  Bruno Haible  <bruno@clisp.org>
13715
13716         strings: Add support for Minix.
13717         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
13718         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
13719         * doc/posix-headers/strings.texi: Document the Minix problem.
13720
13721 2011-07-31  Bruno Haible  <bruno@clisp.org>
13722
13723         wctype-h: Add support for Minix.
13724         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
13725         REPLACE_TOWLOWER.
13726         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
13727         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
13728         REPLACE_ISWCNTRL.
13729
13730 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
13731
13732         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
13733         This is a performance improvement for 64-bit hosts: it causes the
13734         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
13735
13736 2011-07-31  Bruno Haible  <bruno@clisp.org>
13737
13738         stdioext: Add support for Minix.
13739         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
13740         * lib/fpurge.c (fpurge): Likewise.
13741         * lib/freadahead.c (freadahead): Likewise.
13742         * lib/freadable.c (freadable): Likewise.
13743         * lib/freading.c (freading): Likewise.
13744         * lib/freadptr.c (freadptr): Likewise.
13745         * lib/freadseek.c (freadptrinc): Likewise.
13746         * lib/fseeko.c (rpl_fseeko): Likewise.
13747         * lib/fseterr.c (fseterr): Likewise.
13748         * lib/fwritable.c (fwritable): Likewise.
13749         * lib/fwriting.c (fwriting): Likewise.
13750         * lib/fflush.c (clear_ungetc_buffer): Update comment.
13751         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
13752
13753 2011-07-31  Bruno Haible  <bruno@clisp.org>
13754
13755         errno: Port to Minix.
13756         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
13757         ECONNABORTED are defined.
13758         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
13759         GNULIB_defined_ECONNABORTED): New macros.
13760         * lib/strerror-override.h (strerror_override): Test also
13761         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
13762         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
13763         ECONNABORTED.
13764         * doc/posix-headers/errno.texi: Mention the Minix problem.
13765
13766 2011-07-31  Bruno Haible  <bruno@clisp.org>
13767
13768         Work around declaration collisions on Minix.
13769         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
13770         defined, set REPLACE_MBSINIT.
13771         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
13772         defined, set REPLACE_MBRTOWC.
13773         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
13774         set REPLACE_MBRLEN.
13775         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
13776         defined, set REPLACE_MBSRTOWCS.
13777         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
13778         defined, set REPLACE_WCRTOMB.
13779         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
13780         defined, set REPLACE_WCSRTOMBS.
13781
13782 2011-07-31  Bruno Haible  <bruno@clisp.org>
13783
13784         Add support for Minix with ACK compiler.
13785         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
13786         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
13787         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
13788
13789 2011-07-31  Bruno Haible  <bruno@clisp.org>
13790
13791         Documentation about Minix.
13792         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
13793         * doc/glibc-headers/*.texi: Likewise.
13794         * doc/posix-functions/*.texi: Likewise.
13795         * doc/glibc-functions/*.texi: Likewise.
13796
13797 2011-07-31  Bruno Haible  <bruno@clisp.org>
13798
13799         snippet/warn-on-use: Fix indentation.
13800         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
13801
13802 2011-07-25  Jim Meyering  <meyering@redhat.com>
13803
13804         tests: test-update-copyright.sh: remove unnecessary "rm" commands
13805         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
13806         commands.
13807
13808 2011-07-27  Jim Meyering  <meyering@redhat.com>
13809
13810         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
13811         * top/maint.mk (gl_extract_significant_defines_): Now that
13812         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
13813         gnulib/lib/signal.in.h, and now that we recommend to
13814         define-if-undefined those two symbols in application code,
13815         we must filter them out of the "significant" list.
13816         This avoids a "make syntax-check" failure in coreutils.
13817
13818 2011-07-26  Eric Blake  <eblake@redhat.com>
13819
13820         warnings: add comments about previous patch
13821         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
13822         * m4/include_next.m4: Likewise.
13823         * m4/warn-on-use.m4: Likewise.
13824         * m4/warnings.m4: Likewise, and simplify use.
13825         Suggested by Stefano Lattarini.
13826
13827         include-next, warnings: support older autoconf
13828         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
13829         AS_VAR_PUSHDEF in a way that works with older autoconf.
13830         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
13831         Reported by Daniel P. Berrange.
13832
13833 2011-07-25  Bruno Haible  <bruno@clisp.org>
13834
13835         fseek, ftell: Fix doc.
13836         * doc/posix-functions/fseek.texi: Reword statement about
13837         AC_SYS_LARGEFILE.
13838         * doc/posix-functions/ftell.texi: Likewise.
13839
13840 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
13841             Bruno Haible  <bruno@clisp.org>
13842
13843         Add dependencies to the 'largefile' module.
13844         * modules/fopen (Depends-on): Add 'largefile'.
13845         * modules/freopen (Depends-on): Likewise.
13846         * modules/fseeko (Depends-on): Likewise.
13847         * modules/ftello (Depends-on): Likewise.
13848         * modules/glob (Depends-on): Likewise.
13849         * modules/lseek (Depends-on): Likewise.
13850         * modules/lstat (Depends-on): Likewise.
13851         * modules/mkostemp (Depends-on): Likewise.
13852         * modules/mkostemps (Depends-on): Likewise.
13853         * modules/mkstemp (Depends-on): Likewise.
13854         * modules/mkstemps (Depends-on): Likewise.
13855         * modules/open (Depends-on): Likewise.
13856         * modules/openat (Depends-on): Likewise.
13857         * modules/pread (Depends-on): Likewise.
13858         * modules/pwrite (Depends-on): Likewise.
13859         * modules/scandir (Depends-on): Likewise.
13860         * modules/stat (Depends-on): Likewise.
13861         * modules/tmpfile (Depends-on): Likewise.
13862         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
13863         since the containing module now depends on the largefile module.
13864         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
13865         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
13866         off_t is fixed by gnulib.
13867         * doc/posix-functions/freopen.texi: Likewise.
13868         * doc/posix-functions/fseeko.texi: Likewise.
13869         * doc/posix-functions/fstatat.texi: Likewise.
13870         * doc/posix-functions/ftello.texi: Likewise.
13871         * doc/posix-functions/glob.texi: Likewise.
13872         * doc/posix-functions/lseek.texi: Likewise.
13873         * doc/posix-functions/lstat.texi: Likewise.
13874         * doc/posix-functions/mkstemp.texi: Likewise.
13875         * doc/posix-functions/open.texi: Likewise.
13876         * doc/posix-functions/openat.texi: Likewise.
13877         * doc/posix-functions/pread.texi: Likewise.
13878         * doc/posix-functions/pwrite.texi: Likewise.
13879         * doc/posix-functions/scandir.texi: Likewise.
13880         * doc/posix-functions/stat.texi: Likewise.
13881         * doc/posix-functions/tmpfile.texi: Likewise.
13882         * doc/glibc-functions/mkostemp.texi: Likewise.
13883         * doc/glibc-functions/mkostemps.texi: Likewise.
13884         * doc/glibc-functions/mkstemps.texi: Likewise.
13885
13886 2011-07-25  Bruno Haible  <bruno@clisp.org>
13887
13888         fcntl: Move AC_LIBOBJ invocation to module description.
13889         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
13890         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
13891
13892         fcntl: Remove call-in from fchdir.m4.
13893         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
13894         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
13895
13896         dup3: Remove potential call-in from fchdir.m4.
13897         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
13898         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
13899
13900         dup2: Move AC_LIBOBJ invocation to module description.
13901         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
13902         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
13903         Don't invoke AC_LIBOBJ.
13904         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
13905
13906         dup2: Remove call-in from fchdir.m4.
13907         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
13908         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
13909
13910         fclose: Move AC_LIBOBJ invocation to module description.
13911         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
13912         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
13913         to 1.
13914         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
13915
13916         fclose: Remove call-in from close.m4.
13917         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
13918         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
13919
13920         close: Move AC_LIBOBJ invocation to module description.
13921         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
13922         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
13923         1.
13924         * modules/close (configure.ac): Invoke AC_LIBOBJ.
13925
13926         close: Remove call-in from fchdir.m4.
13927         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
13928         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
13929
13930         open: Move AC_LIBOBJ invocation to module description.
13931         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
13932         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
13933         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
13934
13935         open: Remove call-in from fchdir.m4.
13936         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
13937         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
13938
13939         fchdir: Start to remove gl_REPLACE_* idiom.
13940         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
13941         (gl_FUNC_FCHDIR): Invoke it.
13942
13943 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
13944
13945         * lib/ftell.c (ftell): Comment out cast.
13946
13947         close: use gl_REPLACE_FCLOSE only if defined
13948         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
13949         is defined.  The close module doesn't depend on the fclose module
13950         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
13951         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
13952         I reproduced the problem with "./gnulib-tool --test close sys_socket".
13953
13954 2011-07-24  Jim Meyering  <meyering@redhat.com>
13955
13956         test-select.h: avoid warning when using gcc's -Wmissing-declarations
13957         * tests/test-select.h (test_function): Declare as "static".
13958
13959 2011-07-24  Bruno Haible  <bruno@clisp.org>
13960
13961         doc: Mention the effects of AC_SYS_LARGEFILE.
13962         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
13963         on this function.
13964         * doc/posix-functions/aio_error.texi: Likewise.
13965         * doc/posix-functions/aio_fsync.texi: Likewise.
13966         * doc/posix-functions/aio_read.texi: Likewise.
13967         * doc/posix-functions/aio_return.texi: Likewise.
13968         * doc/posix-functions/aio_suspend.texi: Likewise.
13969         * doc/posix-functions/aio_write.texi: Likewise.
13970         * doc/posix-functions/fgetpos.texi: Likewise.
13971         * doc/posix-functions/fopen.texi: Likewise.
13972         * doc/posix-functions/freopen.texi: Likewise.
13973         * doc/posix-functions/fsetpos.texi: Likewise.
13974         * doc/posix-functions/fstatvfs.texi: Likewise.
13975         * doc/posix-functions/ftruncate.texi: Likewise.
13976         * doc/posix-functions/ftw.texi: Likewise.
13977         * doc/posix-functions/getrlimit.texi: Likewise.
13978         * doc/posix-functions/glob.texi: Likewise.
13979         * doc/posix-functions/lio_listio.texi: Likewise.
13980         * doc/posix-functions/lockf.texi: Likewise.
13981         * doc/posix-functions/mkstemp.texi: Likewise.
13982         * doc/posix-functions/mmap.texi: Likewise.
13983         * doc/posix-functions/nftw.texi: Likewise.
13984         * doc/posix-functions/openat.texi: Likewise.
13985         * doc/posix-functions/opendir.texi: Likewise.
13986         * doc/posix-functions/posix_fadvise.texi: Likewise.
13987         * doc/posix-functions/posix_fallocate.texi: Likewise.
13988         * doc/posix-functions/pread.texi: Likewise.
13989         * doc/posix-functions/pwrite.texi: Likewise.
13990         * doc/posix-functions/readdir.texi: Likewise.
13991         * doc/posix-functions/readdir_r.texi: Likewise.
13992         * doc/posix-functions/rewinddir.texi: Likewise.
13993         * doc/posix-functions/scandir.texi: Likewise.
13994         * doc/posix-functions/seekdir.texi: Likewise.
13995         * doc/posix-functions/setrlimit.texi: Likewise.
13996         * doc/posix-functions/statvfs.texi: Likewise.
13997         * doc/posix-functions/telldir.texi: Likewise.
13998         * doc/posix-functions/tmpfile.texi: Likewise.
13999         * doc/posix-functions/truncate.texi: Likewise.
14000         * doc/glibc-functions/fallocate.texi: Likewise.
14001         * doc/glibc-functions/fstatfs.texi: Likewise.
14002         * doc/glibc-functions/fts_children.texi: Likewise.
14003         * doc/glibc-functions/fts_read.texi: Likewise.
14004         * doc/glibc-functions/getdirentries.texi: Likewise.
14005         * doc/glibc-functions/mkostemp.texi: Likewise.
14006         * doc/glibc-functions/mkostemps.texi: Likewise.
14007         * doc/glibc-functions/mkstemps.texi: Likewise.
14008         * doc/glibc-functions/preadv.texi: Likewise.
14009         * doc/glibc-functions/pwritev.texi: Likewise.
14010         * doc/glibc-functions/sendfile.texi: Likewise.
14011         * doc/glibc-functions/statfs.texi: Likewise.
14012
14013 2011-07-24  Bruno Haible  <bruno@clisp.org>
14014
14015         doc: Fix typo.
14016         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
14017
14018 2011-07-24  Bruno Haible  <bruno@clisp.org>
14019
14020         doc: Mention fsusage.
14021         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
14022
14023 2011-07-24  Bruno Haible  <bruno@clisp.org>
14024
14025         doc: Mention new glibc headers and functions.
14026         * doc/glibc-headers/gshadow.texi: New file.
14027         * doc/glibc-functions/endsgent.texi: New file.
14028         * doc/glibc-functions/fgetsgent.texi: New file.
14029         * doc/glibc-functions/fgetsgent_r.texi: New file.
14030         * doc/glibc-functions/getsgent.texi: New file.
14031         * doc/glibc-functions/getsgent_r.texi: New file.
14032         * doc/glibc-functions/getsgnam.texi: New file.
14033         * doc/glibc-functions/getsgnam_r.texi: New file.
14034         * doc/glibc-functions/putsgent.texi: New file.
14035         * doc/glibc-functions/setsgent.texi: New file.
14036         * doc/glibc-functions/sgetsgent.texi: New file.
14037         * doc/glibc-functions/sgetsgent_r.texi: New file.
14038         * doc/glibc-functions/malloc_info.texi: New file.
14039         * doc/glibc-functions/preadv.texi: New file.
14040         * doc/glibc-functions/pwritev.texi: New file.
14041         * doc/glibc-functions/register_printf_modifier.texi: New file.
14042         * doc/glibc-functions/register_printf_specifier.texi: New file.
14043         * doc/glibc-functions/register_printf_type.texi: New file.
14044         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
14045         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
14046         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
14047         * doc/glibc-functions/pthread_getname_np.texi: New file.
14048         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
14049         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
14050         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
14051         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
14052         * doc/glibc-functions/pthread_setname_np.texi: New file.
14053         * doc/glibc-functions/pthread_sigqueue.texi: New file.
14054         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
14055         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
14056         * doc/glibc-functions/qsort_r.texi: New file.
14057         * doc/glibc-functions/quick_exit.texi: New file.
14058         * doc/glibc-functions/syncfs.texi: New file.
14059         * doc/gnulib.texi: Include them.
14060         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
14061         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
14062         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
14063         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
14064         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
14065         * doc/glibc-functions/execvpe.texi: Likewise.
14066
14067 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
14068
14069         ftell: don't include <unistd.h>
14070         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
14071         guaranteed to define off_t, and the ftell module depends on the
14072         stdio module.
14073
14074         ftell: do not assume wraparound signed arithmetic
14075         * lib/ftell.c: Include <limits.h>.
14076         (ftell): Don't assume wraparound signed arithmetic.
14077
14078 2011-07-24  Bruno Haible  <bruno@clisp.org>
14079
14080         close: No longer depend on module 'fclose'.
14081         * modules/close (Depends-on): Remove fclose.
14082         * NEWS: Mention the change.
14083         Suggested by Sam Steingold <sds@gnu.org>.
14084
14085 2011-07-24  Bruno Haible  <bruno@clisp.org>
14086
14087         fsusage: Enable large volume support on AIX >= 5.2.
14088         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
14089         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
14090         instead of STAT_STATVFS.
14091         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
14092
14093         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
14094         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
14095         f_blocks field only on MacOS X.
14096
14097         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
14098         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
14099         * modules/fsusage (Depends-on): Add largefile.
14100
14101 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
14102
14103         * README: Modernize discussion of signed integers.
14104         Assuming overflow wraparound is no longer safe.
14105         Mention ones' complement and signed magnitude.
14106
14107 2011-07-22  Bruno Haible  <bruno@clisp.org>
14108
14109         select tests, pselect tests: Refactor.
14110         * tests/test-select.h: New file, extracted from tests/test-select.c.
14111         (select_fn): New type.
14112         (test, do_select, do_select_nowait, do_select_wait, test_tty,
14113         test_connect_first, test_accept_first, test_pair, test_socket_pair,
14114         test_pipe): Add my_select argument.
14115         (test_function): Renamed from main. Add my_select argument.
14116         * tests/test-select.c: Move most code to tests/test-select.h. Include
14117         test-select.h.
14118         * modules/select-tests (Files): Add tests/test-select.h.
14119         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
14120         (my_select, main): New functions.
14121         * modules/pselect-tests (Files): Add tests/test-select.h,
14122         tests/macros.h, tests/signature.h.
14123         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
14124         (configure.ac): Check for <sys/wait.h>.
14125
14126 2011-07-22  Bruno Haible  <bruno@clisp.org>
14127
14128         sys_select tests: Check the signature of FD_*.
14129         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
14130         signature tests from here...
14131         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
14132         here.
14133         * modules/sys_select-tests (Files): Add tests/signature.h.
14134
14135 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
14136
14137         largefile: new module, replacing large-inode
14138         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
14139         * MODULES.html.sh: Add largefile, remove large-inode.
14140         * modules/largefile, m4/largefile.m4: New files.
14141         * modules/large-inode, m4/large-inode.m4: Remove.
14142
14143         fsusage: port to MacOS X 10.7 with 4 TiB file systems
14144         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
14145         implementations that use only 32 bits to count blocks.
14146         On typical hosts with 1024-byte blocks, this fails with file
14147         systems as small as 4 TiB.  Problem reported by Herb Wartens
14148         <http://debbugs.gnu.org/9140> and this should also fix a similar
14149         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
14150
14151         large-inode: New module
14152         * MODULES.html.sh: Add it.
14153         * modules/large-inode, m4/large-inode.m4: New files.
14154
14155         extensions: Enable extensions on MacOS X 10.5 and later.
14156         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
14157
14158 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
14159
14160         file-has-acl: use acl_extended_file_nofollow if available
14161         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
14162         (acl_extended_file): New macro.
14163         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
14164         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
14165
14166 2011-07-21  Bruno Haible  <bruno@clisp.org>
14167
14168         Declare system functions in a way that works with C++.
14169         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
14170         declare fdopendir as extern "C".
14171         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
14172         declare frexpl as extern "C".
14173         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
14174         declare gai_strerror as extern "C".
14175         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
14176         programs, declare gai_strerror as extern "C".
14177         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
14178         declare getlogin_r as extern "C".
14179         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
14180         as extern "C".
14181         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
14182         declare ldexpl as extern "C".
14183         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
14184         as extern "C".
14185         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
14186         program, declare getmntinfo as extern "C".
14187         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
14188         stpncpy as extern "C".
14189         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
14190         program, declare __xpg_strerror_r as extern "C".
14191         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
14192         strndup as extern "C".
14193         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
14194         declare memset and bzero as extern "C".
14195         Reported by Sam Steingold <sds@gnu.org>.
14196
14197 2011-07-12  Jim Meyering  <meyering@redhat.com>
14198
14199         maint.mk: prohibit inclusion of "verify.h" without use
14200         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
14201
14202 2011-07-19  Pádraig Brady  <P@draigBrady.com>
14203
14204         timer-time: A new module to check for timer_settime()
14205         * m4/timer_time.m4: Check for the posix function.
14206         * modules/timer-time: Add the new module.
14207         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
14208         Mention it.
14209
14210 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
14211             Bruno Haible  <bruno@clisp.org>
14212
14213         pthread_sigmask: assume POSIX threads if --avoid=threadlib
14214         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
14215         not defined, assume POSIX threads and look for pthread_sigmask in
14216         $LIBS, without changing $CPPFLAGS.
14217
14218 2011-07-19  Bruno Haible  <bruno@clisp.org>
14219
14220         strstr: Update cross-compilation guess.
14221         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
14222         CPUs, guess no, in view of glibc
14223         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
14224         Suggested by Eric Blake. Reported by Reuben Thomas.
14225
14226 2011-07-19  Pádraig Brady  <P@draigBrady.com>
14227
14228         getopt-gnu: suppress core dumps from detection code
14229         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
14230         to suppress core dumps that may well occur on glibc systems.
14231         * modules/getopt-gnu: Depend on nocrash.
14232
14233 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
14234
14235         pthread_sigmask: ensure usleep is declared
14236         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
14237         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
14238
14239 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
14240
14241         doc: Document NonStop portability issues.
14242         * doc/posix-functions/sigaction.texi (sigaction):
14243         * doc/posix-headers/signal.texi (signal.h):
14244         Document NonStop.  See Joachim Schmitz in
14245         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
14246
14247 2011-07-15  Bruno Haible  <bruno@clisp.org>
14248
14249         ffsl, ffsll: Avoid unportable behaviour.
14250         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
14251
14252 2011-07-15  Bruno Haible  <bruno@clisp.org>
14253
14254         ffs: More tests.
14255         * tests/test-ffs.c (NBITS): New macro.
14256         (main): Add more tests.
14257         * tests/test-ffsl.c (NBITS): New macro.
14258         (main): Add more tests.
14259         * tests/test-ffsll.c (NBITS): New macro.
14260         (main): Add more tests.
14261
14262 2011-07-15  Eric Blake  <eblake@redhat.com>
14263
14264         ffsl, ffsll: new modules
14265         * modules/ffsl: New file.
14266         * modules/ffsll: Likewise.
14267         * m4/ffsl.m4: Likewise.
14268         * m4/ffsll.m4: Likewise.
14269         * lib/ffsl.c: Likewise.
14270         * lib/ffsl.h: Likewise.
14271         * lib/ffsll.c: Likewise.
14272         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
14273         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
14274         * modules/string (Makefile.am): Substitute witnesses.
14275         * lib/strings.in.h (ffsl, ffsll): Declare.
14276         * modules/ffsl-tests: New test file.
14277         * modules/ffsll-tests: Likewise.
14278         * tests/test-ffsl.c: Likewise.
14279         * tests/test-ffsll.c: Likewise.
14280         * MODULES.html.sh (Integer arithmetic functions): Mention it.
14281         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
14282         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
14283
14284         ffs: fix m4 prerequisite
14285         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
14286
14287         ffs: avoid undefined behavior
14288         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
14289         * tests/test-ffs.c (naive, main): Avoid signed shifts.
14290         Reported by Bruno Haible.
14291
14292 2011-07-12  Bruno Haible  <bruno@clisp.org>
14293
14294         pthread_sigmask: Rely on module 'threadlib'.
14295         * modules/pthread_sigmask (Depends-on): Add threadlib.
14296         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
14297         is defined.
14298
14299 2011-07-12  Bruno Haible  <bruno@clisp.org>
14300
14301         regex: Depend on module 'strcase'.
14302         * modules/regex (Depends-on): Add strcase, for strcasecmp().
14303
14304 2011-07-12  Jim Meyering  <meyering@redhat.com>
14305
14306         warn-on-use: fix typo in file name
14307         * modules/snippet/warn-on-use (Files): Correct file name:
14308         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
14309
14310 2011-07-12  Bruno Haible  <bruno@clisp.org>
14311
14312         strings: Document module.
14313         * doc/posix-headers/strings.texi: Mention module 'strings'.
14314
14315 2011-07-12  Bruno Haible  <bruno@clisp.org>
14316
14317         Rename module '_Noreturn' to 'snippet/_Noreturn'.
14318         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
14319         (Files, Makefile.am): Update.
14320         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
14321         * modules/stdlib (Depends-on): Update.
14322
14323 2011-07-12  Bruno Haible  <bruno@clisp.org>
14324
14325         * NEWS: Mention the changes.
14326
14327         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
14328         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
14329         (Files, Makefile.am): Update.
14330         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
14331         * modules/arpa_inet (Depends-on): Update.
14332         * modules/ctype (Depends-on): Update.
14333         * modules/dirent (Depends-on): Update.
14334         * modules/fcntl-h (Depends-on): Update.
14335         * modules/glob (Depends-on): Update.
14336         * modules/iconv-h (Depends-on): Update.
14337         * modules/inttypes-incomplete (Depends-on): Update.
14338         * modules/langinfo (Depends-on): Update.
14339         * modules/locale (Depends-on): Update.
14340         * modules/math (Depends-on): Update.
14341         * modules/netdb (Depends-on): Update.
14342         * modules/poll-h (Depends-on): Update.
14343         * modules/pty (Depends-on): Update.
14344         * modules/search (Depends-on): Update.
14345         * modules/signal (Depends-on): Update.
14346         * modules/spawn (Depends-on): Update.
14347         * modules/stdio (Depends-on): Update.
14348         * modules/stdlib (Depends-on): Update.
14349         * modules/string (Depends-on): Update.
14350         * modules/strings (Depends-on): Update.
14351         * modules/sys_file (Depends-on): Update.
14352         * modules/sys_ioctl (Depends-on): Update.
14353         * modules/sys_select (Depends-on): Update.
14354         * modules/sys_socket (Depends-on): Update.
14355         * modules/sys_stat (Depends-on): Update.
14356         * modules/sys_time (Depends-on): Update.
14357         * modules/sys_times (Depends-on): Update.
14358         * modules/sys_utsname (Depends-on): Update.
14359         * modules/sys_wait (Depends-on): Update.
14360         * modules/termios (Depends-on): Update.
14361         * modules/time (Depends-on): Update.
14362         * modules/unistd (Depends-on): Update.
14363         * modules/wchar (Depends-on): Update.
14364         * modules/wctype-h (Depends-on): Update.
14365         * MODULES.html.sh (Support for building libraries and executables):
14366         Update.
14367
14368         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
14369         * modules/snippet/unused-parameter: Renamed from
14370         modules/unused-parameter.
14371         (Files, Makefile.am): Update.
14372         * build-aux/snippet/unused-parameter.h: Renamed from
14373         build-aux/unused-parameter.h.
14374         * modules/selinux-h (Depends-on): Update.
14375         * modules/unistr/base (Depends-on): Update.
14376         * MODULES.html.sh (Core language properties): Update.
14377
14378         Rename module 'link-warning' to 'snippet/link-warning'.
14379         * modules/snippet/link-warning: Renamed from modules/link-warning.
14380         (Files, Makefile.am): Update.
14381         * build-aux/snippet/link-warning.h: Renamed from
14382         build-aux/link-warning.h.
14383         * MODULES.html.sh (Support for building libraries and executables):
14384         Update.
14385
14386         Rename module 'c++defs' to 'snippet/c++defs'.
14387         * modules/snippet/c++defs: Renamed from modules/c++defs.
14388         (Files, Makefile.am): Update.
14389         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
14390         * modules/arpa_inet (Depends-on): Update.
14391         * modules/ctype (Depends-on): Update.
14392         * modules/dirent (Depends-on): Update.
14393         * modules/fcntl-h (Depends-on): Update.
14394         * modules/glob (Depends-on): Update.
14395         * modules/iconv-h (Depends-on): Update.
14396         * modules/langinfo (Depends-on): Update.
14397         * modules/locale (Depends-on): Update.
14398         * modules/math (Depends-on): Update.
14399         * modules/netdb (Depends-on): Update.
14400         * modules/poll-h (Depends-on): Update.
14401         * modules/pty (Depends-on): Update.
14402         * modules/search (Depends-on): Update.
14403         * modules/signal (Depends-on): Update.
14404         * modules/spawn (Depends-on): Update.
14405         * modules/stdio (Depends-on): Update.
14406         * modules/stdlib (Depends-on): Update.
14407         * modules/string (Depends-on): Update.
14408         * modules/strings (Depends-on): Update.
14409         * modules/sys_ioctl (Depends-on): Update.
14410         * modules/sys_select (Depends-on): Update.
14411         * modules/sys_socket (Depends-on): Update.
14412         * modules/sys_stat (Depends-on): Update.
14413         * modules/sys_time (Depends-on): Update.
14414         * modules/sys_wait (Depends-on): Update.
14415         * modules/termios (Depends-on): Update.
14416         * modules/time (Depends-on): Update.
14417         * modules/unistd (Depends-on): Update.
14418         * modules/wchar (Depends-on): Update.
14419         * modules/wctype-h (Depends-on): Update.
14420
14421         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
14422         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
14423         (Files, Makefile.am): Update.
14424         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
14425         * modules/argv-iter (Depends-on): Update.
14426         * modules/arpa_inet (Depends-on): Update.
14427         * modules/dirent (Depends-on): Update.
14428         * modules/fcntl-h (Depends-on): Update.
14429         * modules/fnmatch (Depends-on): Update.
14430         * modules/getopt-posix (Depends-on): Update.
14431         * modules/glob (Depends-on): Update.
14432         * modules/iconv-h (Depends-on): Update.
14433         * modules/inttypes-incomplete (Depends-on): Update.
14434         * modules/locale (Depends-on): Update.
14435         * modules/math (Depends-on): Update.
14436         * modules/netdb (Depends-on): Update.
14437         * modules/search (Depends-on): Update.
14438         * modules/signal (Depends-on): Update.
14439         * modules/spawn (Depends-on): Update.
14440         * modules/stdio (Depends-on): Update.
14441         * modules/stdlib (Depends-on): Update.
14442         * modules/string (Depends-on): Update.
14443         * modules/strings (Depends-on): Update.
14444         * modules/sys_socket (Depends-on): Update.
14445         * modules/sys_stat (Depends-on): Update.
14446         * modules/sys_time (Depends-on): Update.
14447         * modules/sys_times (Depends-on): Update.
14448         * modules/sys_utsname (Depends-on): Update.
14449         * modules/time (Depends-on): Update.
14450         * modules/unistd (Depends-on): Update.
14451         * modules/wchar (Depends-on): Update.
14452         * MODULES.html.sh (Support for building libraries and executables):
14453         Update.
14454
14455 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
14456
14457         Improvements on _Noreturn and related modules.
14458
14459         modules/_Exit-tests: test _Noreturn too
14460         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
14461         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
14462         (main): Use them.
14463
14464         stdnoreturn, stdnoreturn-tests: remove modules
14465         They're not needed here and a bit premature for use elsewhere.  See
14466         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
14467         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
14468         * tests/test-stdnoreturn.c: Remove files.
14469         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
14470         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
14471         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
14472         and using noreturn.
14473         * modules/openat, modules/sigpipe-die, modules/xalloc:
14474         * modules/xmemdup0, modules/xstrtol:
14475         Remove dependency on stdnoreturn.
14476
14477         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
14478         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
14479         Reparenthesize to avoid GCC warning.
14480         Support Microsoft's syntax.
14481         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
14482
14483         _Noreturn-tests: remove module
14484         * modules/_Noreturn-tests: Remove.
14485         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
14486         * tests/test-_Noreturn.c: Remove.
14487         * tests/test-stdnoreturn.c: Merge from the old
14488         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
14489
14490 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
14491
14492         _Noreturn, stdnoreturn, and related modules.
14493
14494         * top/maint.mk: Adjust to new noreturn support.
14495         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
14496         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
14497
14498         xalloc: use stdnoreturn.h
14499         * lib/xalloc.h: Include <stdnoreturn.h>.
14500         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14501         * modules/xalloc (Depends-on): Add stdnoreturn.
14502
14503         xstrtol: use stdnoreturn.h
14504         * lib/xstrtol.h: Include <stdnoreturn.h>.
14505         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14506         * modules/xstrtol (Depends-on): Add stdnoreturn.
14507
14508         xmemdup0: use stdnoreturn.h
14509         * lib/xmemdup0.h: Include <stdnoreturn.h>.
14510         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14511         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
14512
14513         sigpipe-die: use stdnoreturn.h
14514         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
14515         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14516         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
14517
14518         openat: use stdnoreturn.h
14519         * lib/openat.h: Include <stdnoreturn.h>.
14520         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
14521         * modules/openat (Depends-on): Add stdnoreturn.
14522
14523         * lib/openat-die.c (openat_save_fail): Modernize comment.
14524
14525         * lib/xalloc-die.c (xalloc_die): Modernize comment.
14526
14527         * lib/glthread/thread.h: Modernize comment.
14528
14529         obstack: use _Noreturn
14530         * lib/obstack.c (__attribute__): Remove macro.
14531         (print_and_abort): Use _Noreturn.
14532
14533         c-stack: use _Noreturn
14534         * lib/c-stack.c (die, overflow_handler, segv_handler):
14535         Use _Noreturn rather than __attribute__((noreturn)).
14536
14537         argmatch-tests, exclude_tests: use _Noreturn
14538         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
14539         Remove.
14540         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
14541
14542         stdlib: use _Noreturn
14543         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
14544         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
14545         * modules/stdlib (Depends-on): Add _Noreturn.
14546         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
14547
14548         stdnoreturn-tests: new module
14549         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
14550
14551         stdnoreturn: new module
14552         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
14553         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
14554
14555         _Noreturn-tests: new module
14556         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
14557
14558         _Noreturn: new module
14559         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
14560         New section, mentioning it.
14561         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
14562
14563         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
14564
14565 2011-07-11  Eric Blake  <eblake@redhat.com>
14566
14567         ffs: new module
14568         * modules/ffs: New file.
14569         * m4/ffs.m4: Likewise.
14570         * lib/ffs.c: Likewise.
14571         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
14572         * modules/strings (Makefile.am): Substitute witness.
14573         (Depends-on): Add c++defs.
14574         * lib/strings.in.h (ffs): Declare.
14575         * modules/ffs-tests: New test file.
14576         * tests/test-ffs.c: Test new module.
14577         * MODULES.html.sh (Integer arithmetic functions): Mention it.
14578         * doc/posix-functions/ffs.texi (ffs): Likewise.
14579
14580         regex: avoid compiler warning
14581         * lib/regex.c (includes): Include <strings.h>, for use of
14582         strcasecmp in regcomp.c.
14583         Reported by Joachim Schmitz.
14584
14585 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
14586
14587         stdint: respect system's intmax_t if INTMAX_MAX
14588         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
14589         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
14590         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
14591         long but int64_t is long long, and where we will clash with the
14592         system intmax_t if we override it.  See
14593         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
14594         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
14595         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
14596         similarly for UINTMAX_C.
14597
14598 2011-07-08  Bruno Haible  <bruno@clisp.org>
14599
14600         pthread_sigmask tests: Avoid a compiler warning.
14601         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
14602         non-zero.
14603
14604         sigprocmask tests: A better way to avoid a compiler warning.
14605         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
14606         (main): Complain if system() returns non-zero.
14607         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
14608
14609 2011-07-08  Bruno Haible  <bruno@clisp.org>
14610
14611         pthread_sigmask: Work around IRIX bug.
14612         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
14613         bug.
14614         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
14615         there may be unblocked pending signals.
14616         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
14617
14618 2011-07-08  Bruno Haible  <bruno@clisp.org>
14619
14620         pthread_sigmask: Work around Cygwin bug.
14621         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
14622         bug.
14623         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
14624         the system's pthread_sigmask function.
14625         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
14626
14627 2011-07-08  Bruno Haible  <bruno@clisp.org>
14628
14629         pthread_sigmask: Work around bug in single-threaded implementation.
14630         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
14631         FreeBSD, HP-UX, Solaris bug.
14632         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
14633         * lib/pthread_sigmask.c: Include <stddef.h>.
14634         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
14635         the system's pthread_sigmask function.
14636         * modules/pthread_sigmask (configure.ac): Invoke
14637         gl_PREREQ_PTHREAD_SIGMASK.
14638         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
14639         HP-UX, Solaris.
14640
14641 2011-07-08  Eric Blake  <eblake@redhat.com>
14642
14643         test-sigprocmask: avoid compiler warning
14644         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
14645         * tests/test-sigprocmask.c (main): Use it to silence warning.
14646         Reported by Jim Meyering.
14647
14648         test-snprintf: avoid compiler warning
14649         * tests/test-snprintf.c (main): Avoid shadowed declaration.
14650         * tests/test-vsnprintf.c (main): Likewise.
14651         Reported by Jim Meyering.
14652
14653 2011-07-08  Bruno Haible  <bruno@clisp.org>
14654
14655         Tests for module 'pthread_sigmask'.
14656         * modules/pthread_sigmask-tests: New file.
14657         * tests/test-pthread_sigmask1.c: New file, based on
14658         tests/test-sigprocmask.c.
14659         * tests/test-pthread_sigmask2.c: New file.
14660
14661 2011-07-08  Jim Meyering  <meyering@redhat.com>
14662
14663         test-getopt.h: avoid warning about an unused variable
14664         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
14665
14666 2011-07-07  Jim Meyering  <meyering@redhat.com>
14667
14668         maint: reduce list of files exempt from sc_prohibit_leading_TABs
14669         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
14670         now that it no longer contains leading TABs.
14671         Remove unused "url=FIXME" statement.
14672
14673 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
14674
14675         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
14676         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
14677         When gl_THREADLIB is not in use, assume that the POSIX sematics
14678         are desired.  This is better for Emacs, which uses POSIX semantics
14679         on GNUish and/or POSIXish platforms, and does not use threads at
14680         all otherwise.
14681
14682         pthread_sigmask: fix typo when testing for libraries
14683         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
14684         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
14685
14686 2011-07-08  Eric Blake  <eblake@redhat.com>
14687
14688         fts: introduce FTS_NOATIME
14689         * lib/fts_.h (FTS_NOATIME): New bit flag.
14690         (FTS_OPTIONMASK): Adjust.
14691         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
14692         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
14693
14694 2011-07-08  Bruno Haible  <bruno@clisp.org>
14695
14696         Tests for module 'thread'.
14697         * modules/thread-tests: New file.
14698         * tests/test-thread_self.c: New file.
14699         * tests/test-thread_create.cc: New file.
14700
14701 2011-07-08  Bruno Haible  <bruno@clisp.org>
14702
14703         thread: Avoid gcc warnings when using gl_thread_self().
14704         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
14705         'void *'.
14706         (gl_thread_self_pointer): Update.
14707
14708 2011-07-07  Bruno Haible  <bruno@clisp.org>
14709
14710         signal-c++-tests: Check declaration of pthread_sigmask.
14711         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
14712         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
14713         $(LIB_PTHREAD_SIGMASK).
14714
14715 2011-07-07  Bruno Haible  <bruno@clisp.org>
14716
14717         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
14718         * lib/signal.in.h (pthread_sigmask): Override if
14719         REPLACE_PTHREAD_SIGMASK is 1.
14720         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
14721         REPLACE_PTHREAD_SIGMASK.
14722         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
14723         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
14724         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
14725         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
14726         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
14727
14728 2011-07-07  Bruno Haible  <bruno@clisp.org>
14729
14730         pthread_sigmask: Ensure declaration in <signal.h>.
14731         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
14732         include <pthread.h>.
14733         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
14734         problem.
14735
14736 2011-07-07  Bruno Haible  <bruno@clisp.org>
14737
14738         pthread_sigmask: Document the module.
14739         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
14740
14741 2011-07-07  Bruno Haible  <bruno@clisp.org>
14742
14743         pthread_sigmask: Follow gnulib conventions.
14744         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
14745         gl_PTHREAD_SIGMASK.
14746         * modules/pthread_sigmask (configure.ac): Update.
14747
14748 2011-07-07  Bruno Haible  <bruno@clisp.org>
14749
14750         pthread_sigmask: Make declaration C++ safe.
14751         * lib/signal.in.h: In two special conditions, just do an #include_next.
14752         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
14753         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
14754         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
14755         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
14756         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
14757         not REPLACE_PTHREAD_MASK.
14758         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
14759         not REPLACE_PTHREAD_MASK.
14760         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
14761
14762 2011-07-07  Bruno Haible  <bruno@clisp.org>
14763
14764         pthread_sigmask: Fix return value.
14765         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
14766         * lib/pthread_sigmask.c: New file.
14767         * modules/pthread_sigmask (Files): Add it.
14768         (configure.ac): Invoke AC_LIBOBJ.
14769
14770 2011-07-07  Eric Blake  <eblake@redhat.com>
14771
14772         getopt: more portable argv creation
14773         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
14774         const, use char arrays rather than strings.
14775         Suggested by Paul Eggert.
14776
14777 2011-07-07  Bruno Haible  <bruno@clisp.org>
14778
14779         Tests for module 'sigprocmask'.
14780         * modules/sigprocmask-tests: New file.
14781         * tests/test-sigprocmask.c: New file.
14782
14783 2011-07-07  Bruno Haible  <bruno@clisp.org>
14784
14785         float tests: Tweak.
14786         * tests/test-float.c (main): Tweak skip message.
14787
14788 2011-07-07  Eric Blake  <eblake@redhat.com>
14789
14790         getopt: avoid compiler warning during configure
14791         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
14792         assigning string literals to non-const pointer.
14793
14794         getopt-gnu: avoid crash in glibc getopt
14795         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
14796         * tests/test-getopt.h (test_getopt): Enhance test.
14797         * tests/test-getopt_long.h (test_getopt_long): Likewise.
14798         * doc/posix-functions/getopt.texi (getopt): Document it.
14799         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
14800         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
14801         Likewise.
14802
14803 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
14804
14805         getopt: handle W; without long options in getopt [BZ #12922]
14806         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
14807         but no long options are defined, just return 'W'.
14808
14809 2011-07-07  Bruno Haible  <bruno@clisp.org>
14810
14811         Avoid literal tabs.
14812         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
14813         variable containing a tab instead of a literal tab.
14814         Reported by Jim Meyering.
14815
14816 2011-07-07  Bruno Haible  <bruno@clisp.org>
14817
14818         Comments.
14819         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
14820
14821 2011-07-06  Bruno Haible  <bruno@clisp.org>
14822
14823         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
14824         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
14825         <winsock2.h>.
14826         (rpl_fd_isset, FD_ISSET): New definitions, copied from
14827         lib/sys_socket.in.h.
14828         (close, gethostname): Hide declarations from <winsock2.h>.
14829         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
14830         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
14831         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
14832         (select): Don't override if gnulib's <sys/select.h> was already
14833         included.
14834         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
14835         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
14836         setsockopt, shutdown, select): Tweak indentation.
14837
14838 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14839
14840         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
14841         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
14842         in an application that does not use the sys_select module.
14843
14844 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
14845
14846         poll: do not return 0 on timeout=-1
14847         * lib/poll.c: Loop with yield if no events occured
14848
14849 2011-07-06  Eric Blake  <eblake@redhat.com>
14850
14851         pthread_sigmask: always replace when not using pthread
14852         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
14853         replacement when using some threading other than pthread.  Fix
14854         logic bug.
14855
14856 2011-07-06  Bruno Haible  <bruno@clisp.org>
14857
14858         Comments.
14859         * m4/printf.m4: Update comments about mingw.
14860
14861 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
14862
14863         sys_select: define sigset_t more portably
14864         * lib/sys_select.in.h: Always include <sys/types.h>, since
14865         we now need sigset_t and mingw defines it there.
14866         Include <signal.h> before split inclusion guard, to avoid
14867         mishaps on Solaris, whose <signal.h> eventually includes us.
14868         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
14869         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
14870         which come from ...
14871         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
14872         gl_CHECK_TYPE_SIGSET_T.
14873         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
14874         does the real work.
14875         * modules/sys_select (Depends-on): Add 'signal'.
14876
14877         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
14878         Suggested by Bruno Haible.
14879
14880         pselect: Use pthread_sigmask, not sigprocmask.
14881         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
14882         multithreaded apps better than sigprocmask does.
14883         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
14884         sigprocmask directly.
14885
14886 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
14887
14888         * lib/pselect.c (pselect): Use plain name, without "rpl_".
14889         Don't #undef,  since we don't need any underlying pselect.
14890         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
14891         (Depends-on): Add select.
14892         (Link): Add $(LIBSOCKET).
14893         These changes suggested by Bruno Haible.
14894
14895         pselect: document better
14896         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
14897         * doc/posix-functions/pselect.texi (pselect): Document new module.
14898
14899         pthread_sigmask: new module
14900         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
14901         * doc/posix-functions/pthread_sigmask.texi: Document new module.
14902         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
14903         This is done only as a macro; I don't know how well that'll
14904         work for C++.  Move <sys/types.h> include before the include_next,
14905         to avoid mishap on Solaris.
14906         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
14907         * modules/signal (Makefile.am): Substitute the check's results.
14908         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
14909
14910         test-pselect: new module
14911         * modules/pselect-tests, tests/test-pselect.c: New files.
14912         * tests/test-select.c, tests/test-sys_select-c++.cc:
14913         If TEST_PSELECT is defined, test pselect instead of testing select.
14914
14915         * tests/test-sys_select.c (sigset_t): Test for it, too.
14916         Suggested by Bruno Haible.
14917
14918 2011-07-05  Eric Blake  <eblake@redhat.com>
14919
14920         snprintf: guarantee %1$d, for libintl
14921         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
14922         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
14923         * doc/posix-functions/snprintf.texi (snprintf): Update.
14924         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
14925         * tests/test-snprintf.c (main): Enhance test.
14926         * tests/test-vsnprintf.c (main): Likewise.
14927
14928 2011-07-05  Jim Meyering  <meyering@redhat.com>
14929
14930         maint: exempt stdio-read.c and stdio-write.c from the cppi check
14931         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
14932         per Bruno's request, to accommodate this idiom (no space after "#")
14933         even when the function is inside an #if block:
14934         char *
14935         gets (char *s)
14936         #undef gets
14937         {
14938           ...
14939         }
14940
14941 2011-07-04  Jim Meyering  <meyering@redhat.com>
14942
14943         maint: indent with spaces, not TABs, and add a rule to check this
14944         * tests/test-userspec.c: Indent with spaces, not TABs.
14945         * tests/test-argp.c: Likewise.
14946         * tests/test-c-stack2.sh: Likewise.
14947         * tests/test-parse-duration.sh: Likewise
14948         * m4/strtod.m4: Likewise.
14949         * m4/alloca.m4: Likewise.
14950         * m4/pselect.m4: Likewise.
14951         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
14952
14953 2011-07-03  Jim Meyering  <meyering@redhat.com>
14954
14955         maint.mk: correct omissions in prohibit_argmatch_without_use check
14956         This rule would mistakenly report that argmatch.h is included without
14957         use even when both the argmatch and invalid_arg macro were used.
14958         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
14959         of argmatch and invalid_arg.
14960
14961 2011-07-03  Bruno Haible  <bruno@clisp.org>
14962
14963         Comments about EINTR.
14964         * lib/safe-read.h: Explain the purpose of this module.
14965         * lib/safe-write.h: Likewise.
14966         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
14967         module.
14968         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
14969         module.
14970         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14971
14972 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
14973
14974         xnanosleep: Rewrite to use new dtotimespec module.
14975         It has the conversion code that used to be in xnanosleep.
14976         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
14977         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
14978         (TIME_T_MAX): Remove.
14979         (xnanosleep): Rewrite in terms of dtotimespec.
14980         * modules/xnanosleep (Depends-on): Add dtotimespec.
14981         Remove intprops, stdbool.
14982
14983         timespec-add, timespec-sub: new modules
14984         * lib/timespec.h (timespec_add, timespec_sub): New decls.
14985         * lib/timespec-add.c, lib/timespec-sub.c:
14986         * modules/timespec-add, modules/timespec-sub: New files.
14987
14988         dtotimespec: new module
14989         * lib/timespec.h (dtotimespec): New decl.
14990         * lib/dtotimespec.c, modules/dtotimespec: New files.
14991
14992         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
14993
14994         pselect: new module
14995         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
14996         (pselect): New decls.
14997         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
14998         since the standard pselect decl uses 'restrict'.
14999         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
15000         HAVE_PSELECT, REPLACE_PSELECT.
15001         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
15002         HAVE_PSELECT, REPLACE_PSELECT.
15003         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
15004
15005         sys_select: don't depend on sys_socket
15006         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
15007         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
15008         This fix works on GNU and GNU-like platforms, but has not been tested
15009         on native Windows.
15010         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
15011         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
15012         gl_HEADER_SYS_SOCKET.
15013         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
15014         gl_PREREQ_SYS_H_WINSOCK2.
15015
15016 2011-06-29  Eric Blake  <eblake@redhat.com>
15017
15018         pipe2: fix C89 compile problem
15019         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
15020         Reported by Bruno Haible.
15021
15022         pipe, pipe2: don't corrupt fd on error
15023         * lib/pipe.c (pipe): Leave fd unchanged on error.
15024         * lib/pipe2.c (pipe2): Likewise.
15025         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
15026         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
15027
15028 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
15029
15030         mmap-anon: do not use regular expressions inadvertently
15031         * m4/mmap-anon.m4: Remove trailing period from strings sought
15032         in the output.
15033
15034 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
15035
15036         nanosleep: fix integer overflow problem
15037         * lib/nanosleep.c (my_usleep): Don't assume signed integer
15038         arithmetic wraps around on overflow.
15039
15040         nanosleep: simplify carrying
15041         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
15042         first call to the underyling nanosleep, not for the last one.
15043         This doesn't fix any bugs, but it simplifies the computation of
15044         the remaining delay.  Found while auditing integer overflow issues.
15045
15046         dup2: remove test for existence of fcntl
15047         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
15048         "#if HAVE_FCNTL", in the configure-time test program.
15049         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
15050         and therefore speeds up "configure" a bit.  Found while
15051         adding the dup2 module to Emacs.
15052
15053 2011-06-24  Eric Blake  <eblake@redhat.com>
15054
15055         maint.mk: enhance useless header checks
15056         * top/maint.mk (_sc_header_without_use): Check both include
15057         styles.
15058         (sc_prohibit_assert_without_use)
15059         (sc_prohibit_close_stream_without_use)
15060         (sc_prohibit_getopt_without_use)
15061         (sc_prohibit_quotearg_without_use)
15062         (sc_prohibit_quote_without_use)
15063         (sc_prohibit_long_options_without_use)
15064         (sc_prohibit_inttostr_without_use)
15065         (sc_prohibit_ignore_value_without_use)
15066         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
15067         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
15068         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
15069         (sc_prohibit_hash_pjw_without_use)
15070         (sc_prohibit_safe_read_without_use)
15071         (sc_prohibit_argmatch_without_use)
15072         (sc_prohibit_canonicalize_without_use)
15073         (sc_prohibit_root_dev_ino_without_use)
15074         (sc_prohibit_openat_without_use)
15075         (sc_prohibit_c_ctype_without_use)
15076         (sc_prohibit_signal_without_use)
15077         (sc_prohibit_stdio--_without_use)
15078         (sc_prohibit_stdio-safer_without_use)
15079         (sc_prohibit_strings_without_use)
15080         (sc_prohibit_intprops_without_use)
15081         (sc_prohibit_stddef_without_use)
15082         (sc_prohibit_xfreopen_without_use): Update clients.
15083
15084 2011-06-24  Jim Meyering  <meyering@redhat.com>
15085
15086         syntax-check: keep one maint.mk rule in sync with its header
15087         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
15088         of the bug Eric has just fixed, with today's commit 25e4c2ec.
15089         I prefer to avoid temporary files here, so use <(...), but that
15090         is not supported by /bin/sh, so...
15091         (SHELL): Define to /bin/bash.
15092
15093 2011-06-24  Eric Blake  <eblake@redhat.com>
15094
15095         maint.mk: update sc_prohibit_intprops_without_use
15096         * top/maint.mk (_intprops_names): Match recent changes.
15097
15098 2011-06-24  Bruno Haible  <bruno@clisp.org>
15099
15100         strerror-override: No-op tweak.
15101         * lib/strerror-override.h (strerror_override): Reorder conditions,
15102         for consistency with lib/strerror-override.c.
15103
15104 2011-06-23  Eric Blake  <eblake@redhat.com>
15105
15106         maint.mk: test further PATH_MAX issues
15107         * top/maint.mk (sc_prohibit_path_max_array): Rename...
15108         (sc_prohibit_path_max_allocation): ...and also test alloca.
15109         Suggested by Jim Meyering.
15110
15111 2011-06-22  Eric Blake  <eblake@redhat.com>
15112
15113         maint.mk: add syntax-check to avoid char[PATH_MAX]
15114         * top/maint.mk (sc_prohibit_path_max_array): New rule.
15115
15116         stat: be robust to PATH_MAX definition
15117         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
15118         * modules/stat (Depends-on): Add verify.
15119
15120         link: work around IRIX bug
15121         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
15122         * lib/link.c (rpl_link): Work around it.
15123         * tests/test-link.h (test_link): Enhance test.
15124         * doc/posix-functions/link.texi (link): Document the bug.
15125
15126         getopt: silence clang warning
15127         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
15128         dereference.
15129         Reported by Gustavo Martin Domato.
15130
15131 2011-06-22  Jim Meyering  <meyering@redhat.com>
15132
15133         bootstrap: do not insert a blank line into each .gitignore file
15134         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
15135
15136 2011-06-21  Eric Blake  <eblake@redhat.com>
15137
15138         perror: test for output mismatch
15139         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
15140         perror on IRIX.
15141
15142         strerror_r: fix OpenBSD behavior on out-of-range
15143         * lib/strerror_r.c (strerror_r): Always use maximal string.
15144         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
15145
15146         strerror_r: fix OpenBSD behavior on 0
15147         * lib/strerror-override.c (strerror_override): Also override 0
15148         when needed.
15149         * lib/strerror-override.h (strerror_override): Likewise.
15150         * lib/strerror.c (strerror): Simplify, now that 0 override is done
15151         earlier.
15152         * lib/strerror_r.c (strerror_r): Likewise.
15153         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
15154         behavior...
15155         (gl_FUNC_STRERROR_0): ...into new macro.
15156         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
15157         is overridden.
15158         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
15159         * modules/strerror-override (Files): Add strerror.m4.
15160         (configure.ac): Also provide override for 0 when needed.
15161         * doc/posix-functions/strerror.texi (strerror): Document this.
15162         * doc/posix-functions/perror.texi (perror): Likewise.
15163
15164         perror: adjust array size
15165         * modules/perror (Depends-on): Add strerror-override.
15166         * lib/perror.c (perror): Use it to avoid magic number.
15167
15168         strerror-override: reduce size
15169         * lib/strerror-override.c (strerror_override): Use fewer lines.
15170
15171 2011-06-20  Bruno Haible  <bruno@clisp.org>
15172
15173         pathmax: Ensure correct value for PATH_MAX on HP-UX.
15174         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
15175
15176 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
15177
15178         alloca: port to compilers that can optimize like GCC 4.6.0
15179         * lib/alloca.c (find_stack_direction): New signature, taken from
15180         Autoconf git.  This works with GCC 4.6.0.  This code should never
15181         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
15182         be used with other compilers that optimize as well as GCC 4.6.0 does.
15183         (alloca): Adjust to new signature.
15184         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
15185         New macro, which patches Autoconf in a similar way.
15186
15187         c-stack: stop worrying about stack direction
15188         * lib/c-stack.c (find_stack_direction): Remove.
15189         (segv_handler): Don't worry about stack direction growth, as it's
15190         too much of a pain to configure this correctly, given how compilers
15191         are optimizing-away our stack-growth detection code.  Instead, assume
15192         that any access to just before or just after the stack is OK.
15193         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
15194         Don't require AC_FUNC_ALLOCA; no longer needed.
15195
15196 2011-06-20  Eric Blake  <eblake@redhat.com>
15197
15198         test-stat: don't allocate PATH_MAX bytes
15199         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
15200         PATH_MAX-sized buffer.
15201         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
15202         * modules/stat-tests (Depends-on): Likewise.
15203         * tests/test-fstatat.c (includes): Drop pathmax.h.
15204         * tests/test-stat.c (includes): Likewise.
15205         Reported by Bruno Haible.
15206
15207 2011-06-20  Bruno Haible  <bruno@clisp.org>
15208
15209         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
15210         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
15211         * lib/float.c: New file.
15212         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
15213         REPLACE_FLOAT_LDBL.
15214         * modules/float (Files): Add lib/float.c.
15215         (configure.ac): Invoke AC_LIBOBJ.
15216         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
15217
15218 2011-06-20  Bruno Haible  <bruno@clisp.org>
15219
15220         Tests for module 'float'.
15221         * modules/float-tests: New file.
15222         * tests/test-float.c: New file.
15223
15224 2011-06-19  Bruno Haible  <bruno@clisp.org>
15225
15226         isinf: Coding style.
15227         * lib/isinf.c: Use GNU coding style.
15228
15229 2011-06-19  Bruno Haible  <bruno@clisp.org>
15230
15231         linkat test: Avoid test failure on AIX 7.1.
15232         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
15233         * tests/test-link.h (test_link): Likewise.
15234
15235 2011-06-19  Bruno Haible  <bruno@clisp.org>
15236
15237         pread test: Avoid test failure on OpenBSD 4.9.
15238         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
15239
15240 2011-06-19  Bruno Haible  <bruno@clisp.org>
15241
15242         sprintf-posix: Fix test failure on AIX 7.1.
15243         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
15244         * doc/posix-functions/dprintf.texi: Mention limited precision problem
15245         on AIX.
15246         * doc/posix-functions/fprintf.texi: Likewise.
15247         * doc/posix-functions/printf.texi: Likewise.
15248         * doc/posix-functions/snprintf.texi: Likewise.
15249         * doc/posix-functions/sprintf.texi: Likewise.
15250         * doc/posix-functions/vdprintf.texi: Likewise.
15251         * doc/posix-functions/vfprintf.texi: Likewise.
15252         * doc/posix-functions/vprintf.texi: Likewise.
15253         * doc/posix-functions/vsnprintf.texi: Likewise.
15254         * doc/posix-functions/vsprintf.texi: Likewise.
15255
15256 2011-06-19  Bruno Haible  <bruno@clisp.org>
15257
15258         roundl-ieee: Fix test failure on AIX 7.1.
15259         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
15260         * doc/posix-functions/roundl.texi: Mention problem with negative
15261         arguments.
15262
15263 2011-06-19  Bruno Haible  <bruno@clisp.org>
15264
15265         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
15266         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
15267         * doc/posix-functions/round.texi: Mention problem with negative
15268         arguments.
15269         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
15270
15271 2011-06-19  Bruno Haible  <bruno@clisp.org>
15272
15273         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
15274         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
15275         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
15276         * doc/posix-functions/roundf.texi: Mention problem with negative
15277         arguments.
15278         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
15279
15280 2011-06-19  Bruno Haible  <bruno@clisp.org>
15281
15282         ceilf-ieee: Work around bug on MacOS X 10.5.
15283         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
15284
15285         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
15286         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
15287         IEEE compliant, avoid compiler optimizations.
15288         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
15289         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15290         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
15291         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15292         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15293         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15294         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15295         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15296         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15297         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
15298
15299 2011-06-19  Bruno Haible  <bruno@clisp.org>
15300
15301         ceilf-ieee: Work around bug on AIX 7.1.
15302         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
15303         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
15304
15305 2011-06-19  Bruno Haible  <bruno@clisp.org>
15306
15307         ceil-ieee: Work around bug on AIX 7.1.
15308         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
15309         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
15310
15311 2011-06-18  Bruno Haible  <bruno@clisp.org>
15312
15313         fsync test: Avoid test failure on MacOS X and AIX.
15314         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
15315         EINVAL.
15316
15317 2011-06-18  Bruno Haible  <bruno@clisp.org>
15318
15319         openat, fdopendir tests: Fix link errors.
15320         * modules/openat-tests (Depends-on): Add progname.
15321         * modules/fdopendir-tests (Depends-on): Likewise.
15322         * tests/test-fchownat.c: Include progname.h.
15323         (main): Call set_program_name.
15324         * tests/test-fstatat.c: Include progname.h.
15325         (main): Call set_program_name.
15326         * tests/test-mkdirat.c: Include progname.h.
15327         (main): Call set_program_name.
15328         * tests/test-openat.c: Include progname.h.
15329         (main): Call set_program_name.
15330         * tests/test-unlinkat.c: Include progname.h.
15331         (main): Call set_program_name.
15332         * tests/test-fdopendir.c: Include progname.h.
15333         (main): Call set_program_name.
15334
15335 2011-06-18  Bruno Haible  <bruno@clisp.org>
15336
15337         Doc update.
15338         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
15339         HP-UX.
15340         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
15341
15342 2011-06-18  Bruno Haible  <bruno@clisp.org>
15343
15344         getcwd tests: Avoid compilation error on HP-UX 11.31.
15345         * modules/getcwd-tests (Depends-on): Add pathmax.
15346         * tests/test-getcwd.c: Include pathmax.h.
15347
15348 2011-06-18  Bruno Haible  <bruno@clisp.org>
15349
15350         isfinite, isinf: Fix link error on AIX 6 and 7.
15351         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
15352         needed, also test the macro with a 'float' argument.
15353         * m4/isinf.m4 (gl_ISINF): Likewise.
15354
15355 2011-06-18  Bruno Haible  <bruno@clisp.org>
15356
15357         getloadavg: Don't clobber LIBS. Regression from previous commit.
15358         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
15359         AC_CHECK_LIB from here...
15360         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
15361         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
15362         gl_func_getloadavg_done.
15363         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15364
15365 2011-06-18  Bruno Haible  <bruno@clisp.org>
15366
15367         clean-temp: Improve documentation.
15368         * lib/clean-temp.h: Explain better how to use this module.
15369         Reported by John Darrington <john@darrington.wattle.id.au>.
15370
15371 2011-06-17  Bruno Haible  <bruno@clisp.org>
15372
15373         pread, pwrite: Avoid cc warning on AIX.
15374         * lib/unistd.in.h (pread): Undefine before defining as a macro.
15375         (pwrite): Likewise.
15376
15377 2011-06-17  Bruno Haible  <bruno@clisp.org>
15378
15379         spawn-pipe tests: Fix link error.
15380         * tests/test-spawn-pipe-child.c: Undefine fprintf.
15381         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15382
15383 2011-06-17  Bruno Haible  <bruno@clisp.org>
15384
15385         Tests: Remove unnecessary dependency.
15386         * modules/canonicalize-tests (Depends-on): Remove progname.
15387         * modules/chown-tests (Depends-on): Likewise.
15388         * modules/dirname-tests (Depends-on): Likewise.
15389         * modules/fdopendir-tests (Depends-on): Likewise.
15390         * modules/fdutimensat-tests (Depends-on): Likewise.
15391         * modules/hash-tests (Depends-on): Likewise.
15392         * modules/lchown-tests (Depends-on): Likewise.
15393         * modules/linkat-tests (Depends-on): Likewise.
15394         * modules/renameat-tests (Depends-on): Likewise.
15395         * modules/spawn-pipe-tests (Depends-on): Likewise.
15396         * modules/utimensat-tests (Depends-on): Likewise.
15397
15398 2011-06-17  Bruno Haible  <bruno@clisp.org>
15399
15400         spawn-pipe tests: Fix link error.
15401         * tests/test-spawn-pipe-child.c: Undefine fflush.
15402
15403 2011-06-17  Bruno Haible  <bruno@clisp.org>
15404
15405         Fix tests link errors.
15406         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
15407         * modules/chown-tests (Makefile.am): Don't link test-chown with
15408         LIBINTL.
15409         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
15410         LIBINTL.
15411         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
15412         LIBINTL.
15413         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
15414         LIBINTL.
15415
15416 2011-06-16  Bruno Haible  <bruno@clisp.org>
15417
15418         crypto/gc-sha1: Fix recent regression.
15419         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
15420         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
15421
15422         crypto/gc-md5: Fix recent regression.
15423         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
15424
15425         crypto/gc-md4: Fix recent regression.
15426         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
15427         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
15428
15429         crypto/gc-arctwo: Fix recent regression.
15430         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
15431         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
15432
15433         crypto/gc-rijndael: Fix recent regression.
15434         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
15435         (configure.ac): Invoke AC_LIBOBJ here.
15436         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
15437         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15438
15439         crypto/gc-hmac-sha1: Fix recent regression.
15440         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
15441         (configure.ac): Invoke AC_LIBOBJ here.
15442         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
15443         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15444
15445         crypto/gc-hmac-md5: Fix recent regression.
15446         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
15447         (configure.ac): Invoke AC_LIBOBJ here.
15448         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
15449         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15450
15451         crypto/gc-des: Fix recent regression.
15452         * modules/crypto/gc-des (Files): Remove m4/des.m4.
15453         (configure.ac): Invoke AC_LIBOBJ here.
15454         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
15455         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15456
15457         crypto/gc-arcfour: Fix recent regression.
15458         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
15459         (configure.ac): Invoke AC_LIBOBJ here.
15460         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
15461         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15462
15463 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
15464
15465         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
15466         After the 2011-05-21 change, this macro requires
15467         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
15468         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
15469
15470 2011-06-16  Bruno Haible  <bruno@clisp.org>
15471
15472         fprintftime: Move AC_LIBOBJ invocations to module description.
15473         * m4/fprintftime.m4: Remove file.
15474         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
15475         (configure.ac): Remove gl_FPRINTFTIME call.
15476         (Makefile.am): Augment lib_SOURCES.
15477         Reported by Jim Meyering.
15478
15479 2011-06-16  Bruno Haible  <bruno@clisp.org>
15480
15481         tmpfile-safer: Finish 2011-05-23 commit.
15482         * m4/stdio-safer.m4: Really remove file.
15483         Reported by Jim Meyering.
15484
15485 2011-06-16  Bruno Haible  <bruno@clisp.org>
15486
15487         syntax-check: Fix typo.
15488         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
15489         printf-posix.m4.
15490         Reported by Jim Meyering.
15491
15492 2011-06-13  Jim Meyering  <meyering@redhat.com>
15493
15494         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
15495         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
15496
15497 2011-05-23  Bruno Haible  <bruno@clisp.org>
15498
15499         yesno: Move AC_LIBOBJ invocations to module description.
15500         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
15501         * modules/yesno (Makefile.am): Augment lib_SOURCES.
15502
15503 2011-05-23  Bruno Haible  <bruno@clisp.org>
15504
15505         xstrtol: Move AC_LIBOBJ invocations to module description.
15506         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
15507         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
15508
15509 2011-05-23  Bruno Haible  <bruno@clisp.org>
15510
15511         xstrtold: Move AC_LIBOBJ invocations to module description.
15512         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
15513         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
15514
15515 2011-05-23  Bruno Haible  <bruno@clisp.org>
15516
15517         xstrtod: Move AC_LIBOBJ invocations to module description.
15518         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
15519         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
15520
15521 2011-05-23  Bruno Haible  <bruno@clisp.org>
15522
15523         xnanosleep: Move AC_LIBOBJ invocations to module description.
15524         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
15525         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
15526
15527 2011-05-23  Bruno Haible  <bruno@clisp.org>
15528
15529         xgetcwd: Move AC_LIBOBJ invocations to module description.
15530         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
15531         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
15532
15533 2011-05-23  Bruno Haible  <bruno@clisp.org>
15534
15535         xalloc: Move AC_LIBOBJ invocations to module description.
15536         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
15537         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
15538
15539 2011-05-23  Bruno Haible  <bruno@clisp.org>
15540
15541         write-any-file: Move AC_LIBOBJ invocations to module description.
15542         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
15543         invocation.
15544         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
15545
15546 2011-05-23  Bruno Haible  <bruno@clisp.org>
15547
15548         utimens: Move AC_LIBOBJ invocations to module description.
15549         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
15550         * modules/utimens (Makefile.am): Augment lib_SOURCES.
15551
15552 2011-05-23  Bruno Haible  <bruno@clisp.org>
15553
15554         utimecmp: Move AC_LIBOBJ invocations to module description.
15555         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
15556         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
15557
15558 2011-05-23  Bruno Haible  <bruno@clisp.org>
15559
15560         userspec: Move AC_LIBOBJ invocations to module description.
15561         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
15562         * modules/userspec (Makefile.am): Augment lib_SOURCES.
15563
15564 2011-05-23  Bruno Haible  <bruno@clisp.org>
15565
15566         unlinkdir: Move AC_LIBOBJ invocations to module description.
15567         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
15568         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
15569
15570 2011-05-23  Bruno Haible  <bruno@clisp.org>
15571
15572         unistd-safer: Move AC_LIBOBJ invocations to module description.
15573         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
15574         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
15575
15576 2011-05-23  Bruno Haible  <bruno@clisp.org>
15577
15578         tempname: Move AC_LIBOBJ invocations to module description.
15579         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
15580         * modules/tempname (Makefile.am): Augment lib_SOURCES.
15581
15582 2011-05-23  Bruno Haible  <bruno@clisp.org>
15583
15584         strftime: Move AC_LIBOBJ invocations to module description.
15585         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
15586         * modules/strftime (Makefile.am): Augment lib_SOURCES.
15587
15588 2011-05-23  Bruno Haible  <bruno@clisp.org>
15589
15590         stdlib-safer: Move AC_LIBOBJ invocations to module description.
15591         * m4/stdlib-safer.m4: Remove file.
15592         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
15593         (configure.ac): Remove gl_STDLIB_SAFER call.
15594         (Makefile.am): Augment lib_SOURCES.
15595
15596 2011-05-23  Bruno Haible  <bruno@clisp.org>
15597
15598         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
15599         * m4/stdio-safer.m4: Remove file.
15600         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
15601         (configure.ac): Remove gl_TMPFILE_SAFER call.
15602         (Makefile.am): Augment lib_SOURCES.
15603
15604 2011-05-23  Bruno Haible  <bruno@clisp.org>
15605
15606         popen-safer: Move AC_LIBOBJ invocations to module description.
15607         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
15608         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
15609         (configure.ac): Remove gl_POPEN_SAFER call.
15610         (Makefile.am): Augment lib_SOURCES.
15611
15612 2011-05-23  Bruno Haible  <bruno@clisp.org>
15613
15614         freopen-safer: Move AC_LIBOBJ invocations to module description.
15615         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
15616         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
15617         (configure.ac): Remove gl_FREOPEN_SAFER call.
15618         (Makefile.am): Augment lib_SOURCES.
15619
15620 2011-05-23  Bruno Haible  <bruno@clisp.org>
15621
15622         fopen-safer: Move AC_LIBOBJ invocations to module description.
15623         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
15624         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
15625         (configure.ac): Remove gl_FOPEN_SAFER call.
15626         (Makefile.am): Augment lib_SOURCES.
15627
15628 2011-05-23  Bruno Haible  <bruno@clisp.org>
15629
15630         crypto/sha512: Move AC_LIBOBJ invocations to module description.
15631         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
15632         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
15633
15634 2011-05-23  Bruno Haible  <bruno@clisp.org>
15635
15636         crypto/sha256: Move AC_LIBOBJ invocations to module description.
15637         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
15638         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
15639
15640 2011-05-23  Bruno Haible  <bruno@clisp.org>
15641
15642         crypto/sha1: Move AC_LIBOBJ invocations to module description.
15643         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
15644         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
15645
15646 2011-05-23  Bruno Haible  <bruno@clisp.org>
15647
15648         settime: Move AC_LIBOBJ invocations to module description.
15649         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
15650         * modules/settime (Makefile.am): Augment lib_SOURCES.
15651
15652 2011-05-23  Bruno Haible  <bruno@clisp.org>
15653
15654         savedir: Move AC_LIBOBJ invocations to module description.
15655         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
15656         * modules/savedir (Makefile.am): Augment lib_SOURCES.
15657
15658 2011-05-23  Bruno Haible  <bruno@clisp.org>
15659
15660         save-cwd: Move AC_LIBOBJ invocations to module description.
15661         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
15662         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
15663
15664 2011-05-23  Bruno Haible  <bruno@clisp.org>
15665
15666         same: Move AC_LIBOBJ invocations to module description.
15667         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
15668         * modules/same (Makefile.am): Augment lib_SOURCES.
15669
15670 2011-05-23  Bruno Haible  <bruno@clisp.org>
15671
15672         safe-write: Move AC_LIBOBJ invocations to module description.
15673         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
15674         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
15675         instead of gl_SAFE_WRITE.
15676         (Makefile.am): Augment lib_SOURCES.
15677
15678 2011-05-23  Bruno Haible  <bruno@clisp.org>
15679
15680         safe-read: Move AC_LIBOBJ invocations to module description.
15681         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
15682         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
15683         of gl_SAFE_READ.
15684         (Makefile.am): Augment lib_SOURCES.
15685
15686 2011-05-23  Bruno Haible  <bruno@clisp.org>
15687
15688         safe-alloc: Move AC_LIBOBJ invocations to module description.
15689         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
15690         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
15691
15692 2011-05-23  Bruno Haible  <bruno@clisp.org>
15693
15694         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
15695         * m4/rijndael.m4: Remove file.
15696         * modules/crypto/rijndael (Files): Remove it.
15697         (configure.ac): Remove gl_RIJNDAEL call.
15698         (Makefile.am): Augment lib_SOURCES.
15699
15700 2011-05-23  Bruno Haible  <bruno@clisp.org>
15701
15702         readtokens: Move AC_LIBOBJ invocations to module description.
15703         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
15704         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
15705
15706 2011-05-23  Bruno Haible  <bruno@clisp.org>
15707
15708         read-file: Move AC_LIBOBJ invocations to module description.
15709         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
15710         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
15711         of gl_FUNC_READ_FILE.
15712         (Makefile.am): Augment lib_SOURCES.
15713
15714 2011-05-23  Bruno Haible  <bruno@clisp.org>
15715
15716         quotearg: Move AC_LIBOBJ invocations to module description.
15717         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
15718         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
15719
15720 2011-05-23  Bruno Haible  <bruno@clisp.org>
15721
15722         quote: Move AC_LIBOBJ invocations to module description.
15723         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
15724         * modules/quote (Makefile.am): Augment lib_SOURCES.
15725
15726 2011-05-23  Bruno Haible  <bruno@clisp.org>
15727
15728         posixver: Move AC_LIBOBJ invocations to module description.
15729         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
15730         * modules/posixver (Makefile.am): Augment lib_SOURCES.
15731
15732 2011-05-23  Bruno Haible  <bruno@clisp.org>
15733
15734         posixtm: Move AC_LIBOBJ invocations to module description.
15735         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
15736         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
15737
15738 2011-05-23  Bruno Haible  <bruno@clisp.org>
15739
15740         physmem: Move AC_LIBOBJ invocations to module description.
15741         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
15742         * modules/physmem (Makefile.am): Augment lib_SOURCES.
15743
15744 2011-05-23  Bruno Haible  <bruno@clisp.org>
15745
15746         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
15747         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
15748         invocation.
15749         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
15750
15751 2011-05-23  Bruno Haible  <bruno@clisp.org>
15752
15753         mpsort: Move AC_LIBOBJ invocations to module description.
15754         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
15755         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
15756
15757 2011-05-23  Bruno Haible  <bruno@clisp.org>
15758
15759         modechange: Move AC_LIBOBJ invocations to module description.
15760         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
15761         * modules/modechange (Makefile.am): Augment lib_SOURCES.
15762
15763 2011-05-23  Bruno Haible  <bruno@clisp.org>
15764
15765         mkdir-p: Move AC_LIBOBJ invocations to module description.
15766         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
15767         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
15768
15769 2011-05-23  Bruno Haible  <bruno@clisp.org>
15770
15771         mkancesdirs: Move AC_LIBOBJ invocations to module description.
15772         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
15773         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
15774
15775 2011-05-23  Bruno Haible  <bruno@clisp.org>
15776
15777         mgetgroups: Move AC_LIBOBJ invocations to module description.
15778         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
15779         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
15780
15781 2011-05-23  Bruno Haible  <bruno@clisp.org>
15782
15783         memxor: Move AC_LIBOBJ invocations to module description.
15784         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
15785         * modules/memxor (Makefile.am): Augment lib_SOURCES.
15786
15787 2011-05-23  Bruno Haible  <bruno@clisp.org>
15788
15789         memcoll: Move AC_LIBOBJ invocations to module description.
15790         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
15791         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
15792
15793 2011-05-23  Bruno Haible  <bruno@clisp.org>
15794
15795         memcasecmp: Move AC_LIBOBJ invocations to module description.
15796         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
15797         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
15798
15799 2011-05-23  Bruno Haible  <bruno@clisp.org>
15800
15801         crypto/md5: Move AC_LIBOBJ invocations to module description.
15802         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
15803         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
15804
15805 2011-05-23  Bruno Haible  <bruno@clisp.org>
15806
15807         crypto/md4: Move AC_LIBOBJ invocations to module description.
15808         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
15809         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
15810
15811 2011-05-23  Bruno Haible  <bruno@clisp.org>
15812
15813         crypto/md2: Move AC_LIBOBJ invocations to module description.
15814         * m4/md2.m4: Remove file.
15815         * modules/crypto/md2 (Files): Remove it.
15816         (configure.ac): Remove gl_MD2 call.
15817         (Makefile.am): Augment lib_SOURCES.
15818
15819 2011-05-23  Bruno Haible  <bruno@clisp.org>
15820
15821         long-options: Move AC_LIBOBJ invocations to module description.
15822         * m4/long-options.m4: Remove file.
15823         * modules/long-options (Files): Remove it.
15824         (configure.ac): Remove gl_LONG_OPTIONS call.
15825         (Makefile.am): Augment lib_SOURCES.
15826
15827 2011-05-23  Bruno Haible  <bruno@clisp.org>
15828
15829         i-ring: Move AC_LIBOBJ invocations to module description.
15830         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
15831         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
15832
15833 2011-05-23  Bruno Haible  <bruno@clisp.org>
15834
15835         idcache: Move AC_LIBOBJ invocations to module description.
15836         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
15837         * modules/idcache (Makefile.am): Augment lib_SOURCES.
15838
15839 2011-05-23  Bruno Haible  <bruno@clisp.org>
15840
15841         human: Move AC_LIBOBJ invocations to module description.
15842         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
15843         * modules/human (Makefile.am): Augment lib_SOURCES.
15844
15845 2011-05-23  Bruno Haible  <bruno@clisp.org>
15846
15847         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
15848         * m4/hmac-sha1.m4: Remove file.
15849         * modules/crypto/hmac-sha1 (Files): Remove it.
15850         (configure.ac): Remove gl_HMAC_SHA1 call.
15851         (Makefile.am): Augment lib_SOURCES.
15852
15853 2011-05-23  Bruno Haible  <bruno@clisp.org>
15854
15855         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
15856         * m4/hmac-md5.m4: Remove file.
15857         * modules/crypto/hmac-md5 (Files): Remove it.
15858         (configure.ac): Remove gl_HMAC_MD5 call.
15859         (Makefile.am): Augment lib_SOURCES.
15860
15861 2011-05-23  Bruno Haible  <bruno@clisp.org>
15862
15863         hash: Move AC_LIBOBJ invocations to module description.
15864         * m4/hash.m4: Remove file.
15865         * modules/hash (Files): Remove it.
15866         (configure.ac): Remove gl_HASH call.
15867         (Makefile.am): Augment lib_SOURCES.
15868
15869 2011-05-23  Bruno Haible  <bruno@clisp.org>
15870
15871         hard-locale: Move AC_LIBOBJ invocations to module description.
15872         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
15873         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
15874
15875 2011-05-23  Bruno Haible  <bruno@clisp.org>
15876
15877         getugroups: Move AC_LIBOBJ invocations to module description.
15878         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
15879         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
15880
15881 2011-05-23  Bruno Haible  <bruno@clisp.org>
15882
15883         gettime: Move AC_LIBOBJ invocations to module description.
15884         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
15885         * modules/gettime (Makefile.am): Augment lib_SOURCES.
15886
15887 2011-05-23  Bruno Haible  <bruno@clisp.org>
15888
15889         getndelim2: Move AC_LIBOBJ invocations to module description.
15890         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
15891         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
15892
15893 2011-05-23  Bruno Haible  <bruno@clisp.org>
15894
15895         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
15896         * m4/gc-pbkdf2-sha1.m4: Remove file.
15897         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
15898         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
15899         (Makefile.am): Augment lib_SOURCES.
15900
15901 2011-05-23  Bruno Haible  <bruno@clisp.org>
15902
15903         fts: Move AC_LIBOBJ invocations to module description.
15904         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
15905         * modules/fts (configure.ac): ... to here.
15906
15907 2011-05-23  Bruno Haible  <bruno@clisp.org>
15908
15909         file-type: Move AC_LIBOBJ invocations to module description.
15910         * m4/file-type.m4: Remove file.
15911         * modules/file-type (Files): Remove it.
15912         (configure.ac): Remove gl_FILE_TYPE call.
15913         (Makefile.am): Augment lib_SOURCES.
15914
15915 2011-05-23  Bruno Haible  <bruno@clisp.org>
15916
15917         filenamecat*: Respect rules for use of AC_LIBOBJ.
15918         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
15919         Remove AC_LIBOBJ invocation.
15920         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
15921         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
15922
15923 2011-05-23  Bruno Haible  <bruno@clisp.org>
15924
15925         filemode: Move AC_LIBOBJ invocations to module description.
15926         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
15927         * modules/filemode (Makefile.am): Augment lib_SOURCES.
15928
15929 2011-05-23  Bruno Haible  <bruno@clisp.org>
15930
15931         openat-safer: Move AC_LIBOBJ invocations to module description.
15932         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
15933         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
15934
15935 2011-05-23  Bruno Haible  <bruno@clisp.org>
15936
15937         fcntl-safer: Move AC_LIBOBJ invocations to module description.
15938         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
15939         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
15940
15941 2011-05-23  Bruno Haible  <bruno@clisp.org>
15942
15943         exclude: Move AC_LIBOBJ invocations to module description.
15944         * m4/exclude.m4: Remove file.
15945         * modules/exclude (Files): Remove it.
15946         (configure.ac): Remove gl_EXCLUDE call.
15947         (Makefile.am): Augment lib_SOURCES.
15948
15949 2011-05-23  Bruno Haible  <bruno@clisp.org>
15950
15951         dirname*: Respect rules for use of AC_LIBOBJ.
15952         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
15953         invocations.
15954         * modules/dirname (Makefile.am): Augment lib_SOURCES.
15955         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
15956
15957 2011-05-23  Bruno Haible  <bruno@clisp.org>
15958
15959         dirent-safer: Move AC_LIBOBJ invocations to module description.
15960         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
15961         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
15962
15963 2011-05-23  Bruno Haible  <bruno@clisp.org>
15964
15965         crypto/des: Move AC_LIBOBJ invocations to module description.
15966         * m4/des.m4: Remove file.
15967         * modules/crypto/des (Files): Remove it.
15968         (configure.ac): Remove gl_DES call.
15969         (Makefile.am): Augment lib_SOURCES.
15970
15971 2011-05-23  Bruno Haible  <bruno@clisp.org>
15972
15973         cycle-check: Move AC_LIBOBJ invocations to module description.
15974         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
15975         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
15976
15977 2011-05-23  Bruno Haible  <bruno@clisp.org>
15978
15979         c-strtold: Move AC_LIBOBJ invocations to module description.
15980         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
15981         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
15982
15983 2011-05-23  Bruno Haible  <bruno@clisp.org>
15984
15985         c-strtod: Move AC_LIBOBJ invocations to module description.
15986         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
15987         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
15988
15989 2011-05-23  Bruno Haible  <bruno@clisp.org>
15990
15991         crc: Move AC_LIBOBJ invocations to module description.
15992         * m4/crc.m4: Remove file.
15993         * modules/crc (Files): Remove it.
15994         (configure.ac): Remove gl_CRC call.
15995         (Makefile.am): Augment lib_SOURCES.
15996
15997 2011-05-23  Bruno Haible  <bruno@clisp.org>
15998
15999         close-stream: Move AC_LIBOBJ invocations to module description.
16000         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
16001         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
16002
16003 2011-05-23  Bruno Haible  <bruno@clisp.org>
16004
16005         closeout: Move AC_LIBOBJ invocations to module description.
16006         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
16007         * modules/closeout (Makefile.am): Augment lib_SOURCES.
16008
16009 2011-05-23  Bruno Haible  <bruno@clisp.org>
16010
16011         closein: Move AC_LIBOBJ invocations to module description.
16012         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
16013         * modules/closein (Makefile.am): Augment lib_SOURCES.
16014
16015 2011-05-23  Bruno Haible  <bruno@clisp.org>
16016
16017         cloexec: Move AC_LIBOBJ invocations to module description.
16018         * m4/cloexec.m4: Remove file.
16019         * modules/cloexec (Files): Remove it.
16020         (configure.ac): Remove gl_CLOEXEC call.
16021         (Makefile.am): Augment lib_SOURCES.
16022
16023 2011-05-23  Bruno Haible  <bruno@clisp.org>
16024
16025         check-version: Move AC_LIBOBJ invocations to module description.
16026         * m4/check-version.m4: Remove file.
16027         * modules/check-version (Files): Remove it.
16028         (configure.ac): Remove gl_CHECK_VERSION call.
16029         (Makefile.am): Augment lib_SOURCES.
16030
16031 2011-05-23  Bruno Haible  <bruno@clisp.org>
16032
16033         chdir-safer: Move AC_LIBOBJ invocations to module description.
16034         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
16035         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
16036
16037 2011-05-23  Bruno Haible  <bruno@clisp.org>
16038
16039         canonicalize: Move AC_LIBOBJ invocations to module description.
16040         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
16041         AC_LIBOBJ invocation.
16042         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
16043
16044 2011-05-23  Bruno Haible  <bruno@clisp.org>
16045
16046         canon-host: Move AC_LIBOBJ invocations to module description.
16047         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
16048         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
16049         instead of gl_CANON_HOST.
16050         (Makefile.am): Augment lib_SOURCES.
16051
16052 2011-05-23  Bruno Haible  <bruno@clisp.org>
16053
16054         backupfile: Move AC_LIBOBJ invocations to module description.
16055         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
16056         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
16057
16058 2011-05-23  Bruno Haible  <bruno@clisp.org>
16059
16060         argmatch: Move AC_LIBOBJ invocations to module description.
16061         * m4/argmatch.m4: Remove file.
16062         * modules/argmatch (Files): Remove it.
16063         (configure.ac): Remove gl_ARGMATCH call.
16064         (Makefile.am): Augment lib_SOURCES.
16065
16066 2011-05-23  Bruno Haible  <bruno@clisp.org>
16067
16068         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
16069         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
16070         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
16071
16072 2011-05-23  Bruno Haible  <bruno@clisp.org>
16073
16074         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
16075         * m4/arcfour.m4: Remove file.
16076         * modules/crypto/arcfour (Files): Remove it.
16077         (configure.ac): Remove gl_ARCFOUR call.
16078         (Makefile.am): Augment lib_SOURCES.
16079
16080 2011-05-22  Bruno Haible  <bruno@clisp.org>
16081
16082         write: Move AC_LIBOBJ invocations to module description.
16083         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
16084         * modules/write (configure.ac): ... to here.
16085
16086 2011-05-22  Bruno Haible  <bruno@clisp.org>
16087
16088         wmemset: Move AC_LIBOBJ invocations to module description.
16089         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
16090         here...
16091         * modules/wmemset (configure.ac): ... to here.
16092
16093 2011-05-22  Bruno Haible  <bruno@clisp.org>
16094
16095         wmemmove: Move AC_LIBOBJ invocations to module description.
16096         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
16097         here...
16098         * modules/wmemmove (configure.ac): ... to here.
16099
16100 2011-05-22  Bruno Haible  <bruno@clisp.org>
16101
16102         wmemcpy: Move AC_LIBOBJ invocations to module description.
16103         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
16104         here...
16105         * modules/wmemcpy (configure.ac): ... to here.
16106
16107 2011-05-22  Bruno Haible  <bruno@clisp.org>
16108
16109         wmemcmp: Move AC_LIBOBJ invocations to module description.
16110         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
16111         here...
16112         * modules/wmemcmp (configure.ac): ... to here.
16113
16114 2011-05-22  Bruno Haible  <bruno@clisp.org>
16115
16116         wmemchr: Move AC_LIBOBJ invocations to module description.
16117         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
16118         here...
16119         * modules/wmemchr (configure.ac): ... to here.
16120
16121 2011-05-22  Bruno Haible  <bruno@clisp.org>
16122
16123         wcswidth: Move AC_LIBOBJ invocations to module description.
16124         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
16125         here...
16126         * modules/wcswidth (configure.ac): ... to here.
16127
16128 2011-05-22  Bruno Haible  <bruno@clisp.org>
16129
16130         wcwidth: Respect rules for use of AC_LIBOBJ.
16131         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
16132         invocation from here...
16133         * modules/wcwidth (configure.ac): ... to here.
16134         (Depends-on): Update conditions.
16135
16136 2011-05-22  Bruno Haible  <bruno@clisp.org>
16137
16138         wctype: Move AC_LIBOBJ invocations to module description.
16139         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
16140         invocation from here...
16141         * modules/wctype (configure.ac): ... to here.
16142         (Depends-on): Update conditions.
16143
16144 2011-05-22  Bruno Haible  <bruno@clisp.org>
16145
16146         wctrans: Move AC_LIBOBJ invocations to module description.
16147         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
16148         invocation from here...
16149         * modules/wctrans (configure.ac): ... to here.
16150
16151 2011-05-22  Bruno Haible  <bruno@clisp.org>
16152
16153         wctomb: Move AC_LIBOBJ invocations to module description.
16154         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
16155         invocations from here...
16156         * modules/wctomb (configure.ac): ... to here.
16157
16158 2011-05-22  Bruno Haible  <bruno@clisp.org>
16159
16160         wctob: Move AC_LIBOBJ invocations to module description.
16161         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
16162         gl_PREREQ_WCTOB invocations from here...
16163         * modules/wctob (configure.ac): ... to here.
16164         (Depends-on): Update conditions.
16165
16166 2011-05-22  Bruno Haible  <bruno@clisp.org>
16167
16168         wcsxfrm: Move AC_LIBOBJ invocations to module description.
16169         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
16170         here...
16171         * modules/wcsxfrm (configure.ac): ... to here.
16172
16173 2011-05-22  Bruno Haible  <bruno@clisp.org>
16174
16175         wcstok: Move AC_LIBOBJ invocations to module description.
16176         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
16177         * modules/wcstok (configure.ac): ... to here.
16178
16179 2011-05-22  Bruno Haible  <bruno@clisp.org>
16180
16181         wcsstr: Move AC_LIBOBJ invocations to module description.
16182         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
16183         * modules/wcsstr (configure.ac): ... to here.
16184
16185 2011-05-22  Bruno Haible  <bruno@clisp.org>
16186
16187         wcsspn: Move AC_LIBOBJ invocations to module description.
16188         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
16189         * modules/wcsspn (configure.ac): ... to here.
16190
16191 2011-05-22  Bruno Haible  <bruno@clisp.org>
16192
16193         wcsrtombs: Move AC_LIBOBJ invocations to module description.
16194         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
16195         gl_PREREQ_WCSRTOMBS invocations from here...
16196         * modules/wcsrtombs (configure.ac): ... to here.
16197
16198 2011-05-22  Bruno Haible  <bruno@clisp.org>
16199
16200         wcsrchr: Move AC_LIBOBJ invocations to module description.
16201         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
16202         here...
16203         * modules/wcsrchr (configure.ac): ... to here.
16204
16205 2011-05-22  Bruno Haible  <bruno@clisp.org>
16206
16207         wcspbrk: Move AC_LIBOBJ invocations to module description.
16208         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
16209         here...
16210         * modules/wcspbrk (configure.ac): ... to here.
16211
16212 2011-05-22  Bruno Haible  <bruno@clisp.org>
16213
16214         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
16215         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
16216         gl_PREREQ_WCSNRTOMBS invocations from here...
16217         * modules/wcsnrtombs (configure.ac): ... to here.
16218
16219 2011-05-22  Bruno Haible  <bruno@clisp.org>
16220
16221         wcsnlen: Move AC_LIBOBJ invocations to module description.
16222         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
16223         here...
16224         * modules/wcsnlen (configure.ac): ... to here.
16225
16226 2011-05-22  Bruno Haible  <bruno@clisp.org>
16227
16228         wcsncpy: Move AC_LIBOBJ invocations to module description.
16229         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
16230         here...
16231         * modules/wcsncpy (configure.ac): ... to here.
16232
16233 2011-05-22  Bruno Haible  <bruno@clisp.org>
16234
16235         wcsncmp: Move AC_LIBOBJ invocations to module description.
16236         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
16237         here...
16238         * modules/wcsncmp (configure.ac): ... to here.
16239
16240 2011-05-22  Bruno Haible  <bruno@clisp.org>
16241
16242         wcsncat: Move AC_LIBOBJ invocations to module description.
16243         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
16244         here...
16245         * modules/wcsncat (configure.ac): ... to here.
16246
16247 2011-05-22  Bruno Haible  <bruno@clisp.org>
16248
16249         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
16250         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
16251         from here...
16252         * modules/wcsncasecmp (configure.ac): ... to here.
16253
16254 2011-05-22  Bruno Haible  <bruno@clisp.org>
16255
16256         wcslen: Move AC_LIBOBJ invocations to module description.
16257         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
16258         * modules/wcslen (configure.ac): ... to here.
16259
16260 2011-05-22  Bruno Haible  <bruno@clisp.org>
16261
16262         wcsdup: Move AC_LIBOBJ invocations to module description.
16263         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
16264         * modules/wcsdup (configure.ac): ... to here.
16265
16266 2011-05-22  Bruno Haible  <bruno@clisp.org>
16267
16268         wcscspn: Move AC_LIBOBJ invocations to module description.
16269         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
16270         here...
16271         * modules/wcscspn (configure.ac): ... to here.
16272
16273 2011-05-22  Bruno Haible  <bruno@clisp.org>
16274
16275         wcscpy: Move AC_LIBOBJ invocations to module description.
16276         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
16277         * modules/wcscpy (configure.ac): ... to here.
16278
16279 2011-05-22  Bruno Haible  <bruno@clisp.org>
16280
16281         wcscoll: Move AC_LIBOBJ invocations to module description.
16282         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
16283         here...
16284         * modules/wcscoll (configure.ac): ... to here.
16285
16286 2011-05-22  Bruno Haible  <bruno@clisp.org>
16287
16288         wcscmp: Move AC_LIBOBJ invocations to module description.
16289         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
16290         * modules/wcscmp (configure.ac): ... to here.
16291
16292 2011-05-22  Bruno Haible  <bruno@clisp.org>
16293
16294         wcschr: Move AC_LIBOBJ invocations to module description.
16295         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
16296         * modules/wcschr (configure.ac): ... to here.
16297
16298 2011-05-22  Bruno Haible  <bruno@clisp.org>
16299
16300         wcscat: Move AC_LIBOBJ invocations to module description.
16301         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
16302         * modules/wcscat (configure.ac): ... to here.
16303
16304 2011-05-22  Bruno Haible  <bruno@clisp.org>
16305
16306         wcscasecmp: Move AC_LIBOBJ invocations to module description.
16307         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
16308         here...
16309         * modules/wcscasecmp (configure.ac): ... to here.
16310
16311 2011-05-22  Bruno Haible  <bruno@clisp.org>
16312
16313         wcrtomb: Move AC_LIBOBJ invocations to module description.
16314         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
16315         invocations from here...
16316         * modules/wcrtomb (configure.ac): ... to here.
16317
16318 2011-05-22  Bruno Haible  <bruno@clisp.org>
16319
16320         wcpncpy: Move AC_LIBOBJ invocations to module description.
16321         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
16322         here...
16323         * modules/wcpncpy (configure.ac): ... to here.
16324
16325 2011-05-22  Bruno Haible  <bruno@clisp.org>
16326
16327         wcpcpy: Move AC_LIBOBJ invocations to module description.
16328         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
16329         * modules/wcpcpy (configure.ac): ... to here.
16330
16331 2011-05-22  Bruno Haible  <bruno@clisp.org>
16332
16333         waitpid: Move AC_LIBOBJ invocations to module description.
16334         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
16335         invocation from here...
16336         * modules/waitpid (configure.ac): ... to here.
16337
16338 2011-05-22  Bruno Haible  <bruno@clisp.org>
16339
16340         utimensat: Move AC_LIBOBJ invocations to module description.
16341         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
16342         here...
16343         * modules/utimensat (configure.ac): ... to here.
16344
16345 2011-05-22  Bruno Haible  <bruno@clisp.org>
16346
16347         usleep: Move AC_LIBOBJ invocations to module description.
16348         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
16349         here...
16350         * modules/usleep (configure.ac): ... to here.
16351
16352 2011-05-22  Bruno Haible  <bruno@clisp.org>
16353
16354         unlockpt: Move AC_LIBOBJ invocations to module description.
16355         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
16356         gl_PREREQ_UNLOCKPT invocations from here...
16357         * modules/unlockpt (configure.ac): ... to here.
16358
16359 2011-05-22  Bruno Haible  <bruno@clisp.org>
16360
16361         unlink: Respect rules for use of AC_LIBOBJ.
16362         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
16363         * modules/unlink (configure.ac): ... to here.
16364
16365 2011-05-22  Bruno Haible  <bruno@clisp.org>
16366
16367         uname: Move AC_LIBOBJ invocations to module description.
16368         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
16369         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
16370         here...
16371         * modules/uname (configure.ac): ... to here.
16372
16373 2011-05-22  Bruno Haible  <bruno@clisp.org>
16374
16375         ttyname_r: Move AC_LIBOBJ invocations to module description.
16376         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
16377         gl_PREREQ_TTYNAME_R invocations from here...
16378         * modules/ttyname_r (configure.ac): ... to here.
16379
16380 2011-05-22  Bruno Haible  <bruno@clisp.org>
16381
16382         tsearch: Move AC_LIBOBJ invocations to module description.
16383         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
16384         invocations from here...
16385         * modules/tsearch (configure.ac): ... to here.
16386
16387 2011-05-22  Bruno Haible  <bruno@clisp.org>
16388
16389         towctrans: Move AC_LIBOBJ invocations to module description.
16390         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
16391         AC_LIBOBJ invocation from here...
16392         * modules/towctrans (configure.ac): ... to here.
16393
16394 2011-05-22  Bruno Haible  <bruno@clisp.org>
16395
16396         tmpfile: Move AC_LIBOBJ invocations to module description.
16397         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
16398         invocations from here...
16399         * modules/tmpfile (configure.ac): ... to here.
16400
16401 2011-05-22  Bruno Haible  <bruno@clisp.org>
16402
16403         times: Move AC_LIBOBJ invocations to module description.
16404         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
16405         * modules/times (configure.ac): ... to here.
16406
16407 2011-05-22  Bruno Haible  <bruno@clisp.org>
16408
16409         time_r: Move AC_LIBOBJ invocations to module description.
16410         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
16411         invocations from here...
16412         * modules/time_r (configure.ac): ... to here.
16413
16414 2011-05-22  Bruno Haible  <bruno@clisp.org>
16415
16416         timegm: Move AC_LIBOBJ invocations to module description.
16417         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
16418         invocations from here...
16419         * modules/timegm (configure.ac): ... to here.
16420
16421 2011-05-22  Bruno Haible  <bruno@clisp.org>
16422
16423         tcgetsid: Move AC_LIBOBJ invocations to module description.
16424         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
16425         and gl_PREREQ_TCGETSID invocations from here...
16426         * modules/tcgetsid (configure.ac): ... to here.
16427         (Depends-on): Update conditions.
16428
16429 2011-05-22  Bruno Haible  <bruno@clisp.org>
16430
16431         symlinkat: Move AC_LIBOBJ invocations to module description.
16432         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
16433         here...
16434         * modules/symlinkat (configure.ac): ... to here.
16435
16436 2011-05-22  Bruno Haible  <bruno@clisp.org>
16437
16438         symlink: Move AC_LIBOBJ invocations to module description.
16439         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
16440         here...
16441         * modules/symlink (configure.ac): ... to here.
16442
16443 2011-05-22  Bruno Haible  <bruno@clisp.org>
16444
16445         strverscmp: Move AC_LIBOBJ invocations to module description.
16446         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
16447         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
16448         from here...
16449         * modules/strverscmp (configure.ac): ... to here.
16450
16451 2011-05-22  Bruno Haible  <bruno@clisp.org>
16452
16453         strtok_r: Move AC_LIBOBJ invocations to module description.
16454         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
16455         and gl_PREREQ_STRTOK_R invocations from here...
16456         * modules/strtok_r (configure.ac): ... to here.
16457         (Depends-on): Update conditions.
16458
16459 2011-05-22  Bruno Haible  <bruno@clisp.org>
16460
16461         strtoumax: Move AC_LIBOBJ invocations to module description.
16462         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
16463         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
16464         from here...
16465         * modules/strtoumax (configure.ac): ... to here.
16466
16467 2011-05-22  Bruno Haible  <bruno@clisp.org>
16468
16469         strtoimax: Move AC_LIBOBJ invocations to module description.
16470         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
16471         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
16472         from here...
16473         * modules/strtoimax (configure.ac): ... to here.
16474
16475 2011-05-22  Bruno Haible  <bruno@clisp.org>
16476
16477         strtoull: Move AC_LIBOBJ invocations to module description.
16478         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
16479         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
16480         from here...
16481         * modules/strtoull (configure.ac): ... to here.
16482
16483 2011-05-22  Bruno Haible  <bruno@clisp.org>
16484
16485         strtoll: Move AC_LIBOBJ invocations to module description.
16486         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
16487         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
16488         here...
16489         * modules/strtoll (configure.ac): ... to here.
16490
16491 2011-05-22  Bruno Haible  <bruno@clisp.org>
16492
16493         strtoul: Move AC_LIBOBJ invocations to module description.
16494         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
16495         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
16496         * modules/strtoul (configure.ac): ... to here.
16497
16498 2011-05-22  Bruno Haible  <bruno@clisp.org>
16499
16500         strtol: Move AC_LIBOBJ invocations to module description.
16501         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
16502         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
16503         * modules/strtol (configure.ac): ... to here.
16504
16505 2011-05-22  Bruno Haible  <bruno@clisp.org>
16506
16507         strtod: Move AC_LIBOBJ invocations to module description.
16508         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
16509         invocations from here...
16510         * modules/strtod (configure.ac): ... to here.
16511
16512 2011-05-22  Bruno Haible  <bruno@clisp.org>
16513
16514         strstr*: Move AC_LIBOBJ invocations to module description.
16515         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
16516         invocations from here...
16517         * modules/strstr-simple (configure.ac): ... to here.
16518         * modules/strstr (configure.ac): ... and here.
16519
16520 2011-05-22  Bruno Haible  <bruno@clisp.org>
16521
16522         strsignal: Move AC_LIBOBJ invocations to module description.
16523         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
16524         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
16525         * modules/strsignal (configure.ac): ... to here.
16526         (Depends-on): Update conditions.
16527
16528 2011-05-22  Bruno Haible  <bruno@clisp.org>
16529
16530         strsep: Move AC_LIBOBJ invocations to module description.
16531         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
16532         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
16533         here...
16534         * modules/strsep (configure.ac): ... to here.
16535
16536 2011-05-22  Bruno Haible  <bruno@clisp.org>
16537
16538         strptime: Move AC_LIBOBJ invocations to module description.
16539         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
16540         gl_PREREQ_STRPTIME invocations from here...
16541         * modules/strptime (configure.ac): ... to here.
16542
16543 2011-05-22  Bruno Haible  <bruno@clisp.org>
16544
16545         strpbrk: Move AC_LIBOBJ invocations to module description.
16546         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
16547         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
16548         here...
16549         * modules/strpbrk (configure.ac): ... to here.
16550
16551 2011-05-22  Bruno Haible  <bruno@clisp.org>
16552
16553         strnlen: Move AC_LIBOBJ invocations to module description.
16554         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
16555         invocations from here...
16556         * modules/strnlen (configure.ac): ... to here.
16557
16558 2011-05-22  Bruno Haible  <bruno@clisp.org>
16559
16560         strndup: Move AC_LIBOBJ invocations to module description.
16561         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
16562         invocations from here...
16563         * modules/strndup (configure.ac): ... to here.
16564         (Depends-on): Update conditions.
16565
16566 2011-05-22  Bruno Haible  <bruno@clisp.org>
16567
16568         strncat: Move AC_LIBOBJ invocations to module description.
16569         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
16570         invocations from here...
16571         * modules/strncat (configure.ac): ... to here.
16572
16573 2011-05-22  Bruno Haible  <bruno@clisp.org>
16574
16575         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
16576         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
16577         invocations from here...
16578         * modules/strdup (configure.ac): ... to here.
16579         * modules/strdup-posix (configure.ac): ... and here.
16580
16581 2011-05-22  Bruno Haible  <bruno@clisp.org>
16582
16583         strcspn: Move AC_LIBOBJ invocations to module description.
16584         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
16585         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
16586         here...
16587         * modules/strcspn (configure.ac): ... to here.
16588
16589 2011-05-22  Bruno Haible  <bruno@clisp.org>
16590
16591         strchrnul: Move AC_LIBOBJ invocations to module description.
16592         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
16593         gl_PREREQ_STRCHRNUL invocations from here...
16594         * modules/strchrnul (configure.ac): ... to here.
16595
16596 2011-05-22  Bruno Haible  <bruno@clisp.org>
16597
16598         strcasestr*: Move AC_LIBOBJ invocations to module description.
16599         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
16600         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
16601         * modules/strcasestr-simple (configure.ac): ... to here.
16602         * modules/strcasestr (configure.ac): ... and here.
16603
16604 2011-05-22  Bruno Haible  <bruno@clisp.org>
16605
16606         strcase: Move AC_LIBOBJ invocations to module description.
16607         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
16608         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
16609         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
16610         gl_PREREQ_STRNCASECMP invocations from here...
16611         * modules/strcase (configure.ac): ... to here.
16612
16613 2011-05-22  Bruno Haible  <bruno@clisp.org>
16614
16615         stpncpy: Move AC_LIBOBJ invocations to module description.
16616         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
16617         here...
16618         * modules/stpncpy (configure.ac): ... to here.
16619
16620 2011-05-22  Bruno Haible  <bruno@clisp.org>
16621
16622         stpcpy: Move AC_LIBOBJ invocations to module description.
16623         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
16624         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
16625         here...
16626         * modules/stpcpy (configure.ac): ... to here.
16627
16628 2011-05-21  Bruno Haible  <bruno@clisp.org>
16629
16630         stat: Move AC_LIBOBJ invocations to module description.
16631         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
16632         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
16633         here...
16634         * modules/stat (configure.ac): ... to here.
16635
16636 2011-05-21  Bruno Haible  <bruno@clisp.org>
16637
16638         sleep: Move AC_LIBOBJ invocations to module description.
16639         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
16640         * modules/sleep (configure.ac): ... to here.
16641
16642 2011-05-21  Bruno Haible  <bruno@clisp.org>
16643
16644         signbit: Move AC_LIBOBJ invocations to module description.
16645         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
16646         * modules/signbit (configure.ac): ... to here.
16647
16648 2011-05-21  Bruno Haible  <bruno@clisp.org>
16649
16650         sigprocmask: Move AC_LIBOBJ invocations to module description.
16651         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
16652         gl_PREREQ_SIGPROMASK invocations from here...
16653         * modules/sigprocmask (configure.ac): ... to here.
16654
16655 2011-05-21  Bruno Haible  <bruno@clisp.org>
16656
16657         sigaction: Move AC_LIBOBJ invocations to module description.
16658         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
16659         gl_PREREQ_SIGACTION invocations from here...
16660         * modules/sigaction (configure.ac): ... to here.
16661
16662 2011-05-21  Bruno Haible  <bruno@clisp.org>
16663
16664         sig2str: Move AC_LIBOBJ invocations to module description.
16665         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
16666         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
16667         here...
16668         * modules/sig2str (configure.ac): ... to here.
16669
16670 2011-05-21  Bruno Haible  <bruno@clisp.org>
16671
16672         setlocale: Move AC_LIBOBJ invocations to module description.
16673         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
16674         gl_PREREQ_SETLOCALE invocations from here...
16675         * modules/setlocale (configure.ac): ... to here.
16676
16677 2011-05-21  Bruno Haible  <bruno@clisp.org>
16678
16679         unsetenv: Move AC_LIBOBJ invocations to module description.
16680         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
16681         and gl_PREREQ_UNSETENV invocations from here...
16682         * modules/unsetenv (configure.ac): ... to here.
16683         (Depends-on): Update.
16684
16685 2011-05-21  Bruno Haible  <bruno@clisp.org>
16686
16687         setenv: Move AC_LIBOBJ invocations to module description.
16688         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
16689         here...
16690         * modules/setenv (configure.ac): ... to here.
16691
16692 2011-05-21  Bruno Haible  <bruno@clisp.org>
16693
16694         selinux-h: Move AC_LIBOBJ invocations to module description.
16695         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
16696         AC_LIBOBJ invocation from here...
16697         * modules/selinux-h (configure.ac): ... to here.
16698
16699 2011-05-21  Bruno Haible  <bruno@clisp.org>
16700
16701         select: Respect rules for use of AC_LIBOBJ.
16702         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
16703         here...
16704         * modules/select (configure.ac): ... to here.
16705
16706 2011-05-21  Bruno Haible  <bruno@clisp.org>
16707
16708         scandir: Move AC_LIBOBJ invocations to module description.
16709         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
16710         invocations from here...
16711         * modules/scandir (configure.ac): ... to here.
16712
16713 2011-05-21  Bruno Haible  <bruno@clisp.org>
16714
16715         rpmatch: Move AC_LIBOBJ invocations to module description.
16716         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
16717         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
16718         here...
16719         * modules/rpmatch (configure.ac): ... to here.
16720
16721 2011-05-21  Bruno Haible  <bruno@clisp.org>
16722
16723         rmdir: Respect rules for use of AC_LIBOBJ.
16724         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
16725         * modules/rmdir (configure.ac): ... to here.
16726
16727 2011-05-21  Bruno Haible  <bruno@clisp.org>
16728
16729         renameat: Move AC_LIBOBJ invocations to module description.
16730         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
16731         here...
16732         * modules/renameat (configure.ac): ... to here.
16733
16734 2011-05-21  Bruno Haible  <bruno@clisp.org>
16735
16736         rename: Respect rules for use of AC_LIBOBJ.
16737         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
16738         here...
16739         * modules/rename (configure.ac): ... to here.
16740
16741 2011-05-21  Bruno Haible  <bruno@clisp.org>
16742
16743         remove: Move AC_LIBOBJ invocations to module description.
16744         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
16745         here...
16746         * modules/remove (configure.ac): ... to here.
16747
16748 2011-05-21  Bruno Haible  <bruno@clisp.org>
16749
16750         relocatable-lib: Move AC_LIBOBJ invocations to module description.
16751         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
16752         macro.
16753         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
16754         * modules/relocatable-lib (configure.ac): ... to here.
16755         * modules/relocatable-prog-wrapper (configure.ac): Invoke
16756         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
16757
16758 2011-05-21  Bruno Haible  <bruno@clisp.org>
16759
16760         relocatable-prog: Move AC_LIBOBJ invocations to module description.
16761         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
16762         here...
16763         * modules/relocatable-prog (configure.ac): ... to here.
16764
16765 2011-05-21  Bruno Haible  <bruno@clisp.org>
16766
16767         regex: Move AC_LIBOBJ invocations to module description.
16768         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
16769         invocations from here...
16770         * modules/regex (configure.ac): ... to here.
16771
16772 2011-05-21  Bruno Haible  <bruno@clisp.org>
16773
16774         realloc-*: Move AC_LIBOBJ invocations to module description.
16775         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
16776         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
16777         AC_LIBOBJ invocations from here...
16778         * modules/realloc-gnu (configure.ac): ... to here.
16779         * modules/realloc-posix (configure.ac): ... and here.
16780
16781 2011-05-21  Bruno Haible  <bruno@clisp.org>
16782
16783         readutmp: Move AC_LIBOBJ invocations to module description.
16784         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
16785         * modules/readutmp (configure.ac): ... to here.
16786
16787 2011-05-21  Bruno Haible  <bruno@clisp.org>
16788
16789         readlinkat: Move AC_LIBOBJ invocations to module description.
16790         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
16791         here...
16792         * modules/readlinkat (configure.ac): ... to here.
16793
16794 2011-05-21  Bruno Haible  <bruno@clisp.org>
16795
16796         readlink: Move AC_LIBOBJ invocations to module description.
16797         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
16798         gl_PREREQ_READLINK invocations from here...
16799         * modules/readlink (configure.ac): ... to here.
16800
16801 2011-05-21  Bruno Haible  <bruno@clisp.org>
16802
16803         readline: Move AC_LIBOBJ invocations to module description.
16804         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
16805         gl_PREREQ_READLINE invocations from here...
16806         * modules/readline (configure.ac): ... to here.
16807
16808 2011-05-21  Bruno Haible  <bruno@clisp.org>
16809
16810         read: Move AC_LIBOBJ invocations to module description.
16811         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
16812         * modules/read (configure.ac): ... to here.
16813
16814 2011-05-21  Bruno Haible  <bruno@clisp.org>
16815
16816         rawmemchr: Move AC_LIBOBJ invocations to module description.
16817         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
16818         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
16819         from here...
16820         * modules/rawmemchr (configure.ac): ... to here.
16821
16822 2011-05-21  Bruno Haible  <bruno@clisp.org>
16823
16824         random_r: Move AC_LIBOBJ invocations to module description.
16825         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
16826         gl_PREREQ_RANDOM_R invocations from here...
16827         * modules/random_r (configure.ac): ... to here.
16828
16829 2011-05-21  Bruno Haible  <bruno@clisp.org>
16830
16831         pwrite: Move AC_LIBOBJ invocations to module description.
16832         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
16833         * modules/pwrite (configure.ac): ... to here.
16834
16835 2011-05-21  Bruno Haible  <bruno@clisp.org>
16836
16837         putenv: Move AC_LIBOBJ invocations to module description.
16838         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
16839         * modules/putenv (configure.ac): ... to here.
16840
16841 2011-05-21  Bruno Haible  <bruno@clisp.org>
16842
16843         login_tty: Move AC_LIBOBJ invocations to module description.
16844         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
16845         * modules/login_tty (configure.ac): ... to here.
16846
16847 2011-05-21  Bruno Haible  <bruno@clisp.org>
16848
16849         openpty: Move AC_LIBOBJ invocations to module description.
16850         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
16851         * modules/openpty (configure.ac): ... to here.
16852
16853 2011-05-21  Bruno Haible  <bruno@clisp.org>
16854
16855         forkpty: Move AC_LIBOBJ invocations to module description.
16856         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
16857         * modules/forkpty (configure.ac): ... to here.
16858
16859 2011-05-21  Bruno Haible  <bruno@clisp.org>
16860
16861         ptsname: Move AC_LIBOBJ invocations to module description.
16862         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
16863         invocations from here...
16864         * modules/ptsname (configure.ac): ... to here.
16865
16866 2011-05-21  Bruno Haible  <bruno@clisp.org>
16867
16868         pread: Move AC_LIBOBJ invocations to module description.
16869         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
16870         * modules/pread (configure.ac): ... to here.
16871
16872 2011-05-21  Bruno Haible  <bruno@clisp.org>
16873
16874         posix_spawn*: Move AC_LIBOBJ invocations to module description.
16875         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
16876         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
16877         * modules/posix_spawn (configure.ac): ... to here.
16878         * modules/posix_spawnp (configure.ac): ... and here.
16879
16880 2011-05-21  Bruno Haible  <bruno@clisp.org>
16881
16882         popen: Move AC_LIBOBJ invocations to module description.
16883         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
16884         invocations from here...
16885         * modules/popen (configure.ac): ... to here.
16886
16887 2011-05-21  Bruno Haible  <bruno@clisp.org>
16888
16889         poll: Move AC_LIBOBJ invocations to module description.
16890         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
16891         invocations from here...
16892         * modules/poll (configure.ac): ... to here.
16893
16894 2011-05-21  Bruno Haible  <bruno@clisp.org>
16895
16896         pipe-posix: Move AC_LIBOBJ invocations to module description.
16897         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
16898         * modules/pipe-posix (configure.ac): ... to here.
16899
16900 2011-05-21  Bruno Haible  <bruno@clisp.org>
16901
16902         openat: Respect rules for use of AC_LIBOBJ.
16903         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
16904         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
16905         * modules/openat (configure.ac): ... to here.
16906
16907 2011-05-21  Bruno Haible  <bruno@clisp.org>
16908
16909         obstack-printf*: Move AC_LIBOBJ invocations to module description.
16910         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
16911         invocation from here...
16912         * modules/obstack-printf (configure.ac): ... to here.
16913         * modules/obstack-printf-posix (configure.ac): ... and here.
16914
16915 2011-05-21  Bruno Haible  <bruno@clisp.org>
16916
16917         nl_langinfo: Move AC_LIBOBJ invocations to module description.
16918         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
16919         from here...
16920         * modules/nl_langinfo (configure.ac): ... to here.
16921
16922 2011-05-21  Bruno Haible  <bruno@clisp.org>
16923
16924         nanosleep: Move AC_LIBOBJ invocations to module description.
16925         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
16926         gl_PREREQ_NANOSLEEP invocations from here...
16927         * modules/nanosleep (configure.ac): ... to here.
16928
16929 2011-05-21  Bruno Haible  <bruno@clisp.org>
16930
16931         mountlist: Move AC_LIBOBJ invocations to module description.
16932         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
16933         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
16934         * modules/mountlist (configure.ac): ... to here.
16935
16936 2011-05-21  Bruno Haible  <bruno@clisp.org>
16937
16938         mktime: Respect rules for use of AC_LIBOBJ.
16939         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
16940         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
16941         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
16942         (gl_FUNC_MKTIME_INTERNAL): ... and here...
16943         * modules/mktime (configure.ac): ... to here.
16944         * modules/mktime-internal (configure.ac): ... and here.
16945         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
16946
16947 2011-05-21  Bruno Haible  <bruno@clisp.org>
16948
16949         mkstemps: Move AC_LIBOBJ invocations to module description.
16950         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
16951         here...
16952         * modules/mkstemps (configure.ac): ... to here.
16953
16954 2011-05-21  Bruno Haible  <bruno@clisp.org>
16955
16956         mkstemp: Move AC_LIBOBJ invocations to module description.
16957         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
16958         gl_PREREQ_MKSTEMP invocations from here...
16959         * modules/mkstemp (configure.ac): ... to here.
16960
16961 2011-05-21  Bruno Haible  <bruno@clisp.org>
16962
16963         mkostemps: Move AC_LIBOBJ invocations to module description.
16964         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
16965         here...
16966         * modules/mkostemps (configure.ac): ... to here.
16967
16968 2011-05-21  Bruno Haible  <bruno@clisp.org>
16969
16970         mkostemp: Move AC_LIBOBJ invocations to module description.
16971         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
16972         gl_PREREQ_MKOSTEMP invocations from here...
16973         * modules/mkostemp (configure.ac): ... to here.
16974
16975 2011-05-21  Bruno Haible  <bruno@clisp.org>
16976
16977         mknod: Move AC_LIBOBJ invocations to module description.
16978         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
16979         * modules/mknod (configure.ac): ... to here.
16980
16981 2011-05-21  Bruno Haible  <bruno@clisp.org>
16982
16983         mkfifoat: Move AC_LIBOBJ invocations to module description.
16984         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
16985         here...
16986         * modules/mkfifoat (configure.ac): ... to here.
16987
16988 2011-05-21  Bruno Haible  <bruno@clisp.org>
16989
16990         mkfifo: Respect rules for use of AC_LIBOBJ.
16991         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
16992         here...
16993         * modules/mkfifo (configure.ac): ... to here.
16994
16995 2011-05-21  Bruno Haible  <bruno@clisp.org>
16996
16997         mkdtemp: Move AC_LIBOBJ invocations to module description.
16998         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
16999         invocations from here...
17000         * modules/mkdtemp (configure.ac): ... to here.
17001
17002 2011-05-21  Bruno Haible  <bruno@clisp.org>
17003
17004         mkdir: Move AC_LIBOBJ invocations to module description.
17005         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
17006         * modules/mkdir (configure.ac): ... to here.
17007
17008 2011-05-21  Bruno Haible  <bruno@clisp.org>
17009
17010         memset: Move AC_LIBOBJ invocations to module description.
17011         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
17012         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
17013         here...
17014         * modules/memset (configure.ac): ... to here.
17015
17016 2011-05-21  Bruno Haible  <bruno@clisp.org>
17017
17018         memrchr: Move AC_LIBOBJ invocations to module description.
17019         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
17020         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
17021         here...
17022         * modules/memrchr (configure.ac): ... to here.
17023
17024 2011-05-21  Bruno Haible  <bruno@clisp.org>
17025
17026         mempcpy: Move AC_LIBOBJ invocations to module description.
17027         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
17028         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
17029         here...
17030         * modules/mempcpy (configure.ac): ... to here.
17031
17032 2011-05-21  Bruno Haible  <bruno@clisp.org>
17033
17034         memmove: Move AC_LIBOBJ invocations to module description.
17035         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
17036         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
17037         here...
17038         * modules/memmove (configure.ac): ... to here.
17039
17040 2011-05-21  Bruno Haible  <bruno@clisp.org>
17041
17042         memmem*: Move AC_LIBOBJ invocations to module description.
17043         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
17044         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
17045         here...
17046         (gl_FUNC_MEMMEM): ... and here...
17047         * modules/memmem-simple (configure.ac): ... to here.
17048         * modules/memmem (configure.ac): ... and here.
17049
17050 2011-05-21  Bruno Haible  <bruno@clisp.org>
17051
17052         memcpy: Move AC_LIBOBJ invocations to module description.
17053         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
17054         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
17055         here...
17056         * modules/memcpy (configure.ac): ... to here.
17057
17058 2011-05-21  Bruno Haible  <bruno@clisp.org>
17059
17060         memcmp: Simplify autoconf macro.
17061         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
17062         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
17063         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
17064
17065 2011-05-21  Bruno Haible  <bruno@clisp.org>
17066
17067         memcmp: Move AC_LIBOBJ invocations to module description.
17068         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
17069         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
17070         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
17071         * modules/memcmp (configure.ac): ... to here.
17072         (Depends-on): Update conditions.
17073
17074 2011-05-21  Bruno Haible  <bruno@clisp.org>
17075
17076         memchr: Respect rules for use of AC_LIBOBJ.
17077         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
17078         invocations from here...
17079         * modules/memchr (configure.ac): ... to here.
17080
17081 2011-05-21  Bruno Haible  <bruno@clisp.org>
17082
17083         mbtowc: Move AC_LIBOBJ invocations to module description.
17084         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
17085         invocations from here...
17086         * modules/mbtowc (configure.ac): ... to here.
17087
17088 2011-05-21  Bruno Haible  <bruno@clisp.org>
17089
17090         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
17091         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
17092         gl_PREREQ_MBSRTOWCS invocations from here...
17093         * modules/mbsrtowcs (configure.ac): ... to here.
17094
17095 2011-05-21  Bruno Haible  <bruno@clisp.org>
17096
17097         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
17098         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
17099         gl_PREREQ_MBSNRTOWCS invocations from here...
17100         * modules/mbsnrtowcs (configure.ac): ... to here.
17101
17102 2011-05-21  Bruno Haible  <bruno@clisp.org>
17103
17104         mbsinit: Move AC_LIBOBJ invocations to module description.
17105         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
17106         invocations from here...
17107         * modules/mbsinit (configure.ac): ... to here.
17108
17109 2011-05-21  Bruno Haible  <bruno@clisp.org>
17110
17111         mbrlen: Move AC_LIBOBJ invocations to module description.
17112         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
17113         invocations from here...
17114         * modules/mbrlen (configure.ac): ... to here.
17115
17116 2011-05-21  Bruno Haible  <bruno@clisp.org>
17117
17118         mbrtowc: Respect rules for use of AC_LIBOBJ.
17119         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
17120         invocations from here...
17121         * modules/mbrtowc (configure.ac): ... to here.
17122
17123 2011-05-21  Bruno Haible  <bruno@clisp.org>
17124
17125         malloc-*: Move AC_LIBOBJ invocations to module description.
17126         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
17127         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
17128         AC_LIBOBJ invocations from here...
17129         * modules/malloc-gnu (configure.ac): ... to here.
17130         * modules/malloc-posix (configure.ac): ... and here.
17131
17132 2011-05-21  Bruno Haible  <bruno@clisp.org>
17133
17134         lstat, openat: Respect rules for use of AC_LIBOBJ.
17135         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
17136         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
17137         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
17138         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
17139         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
17140         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
17141         here.
17142         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
17143
17144 2011-05-21  Bruno Haible  <bruno@clisp.org>
17145
17146         lseek: Move AC_LIBOBJ invocations to module description.
17147         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
17148         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
17149         * modules/lseek (configure.ac): ... to here.
17150
17151 2011-05-21  Bruno Haible  <bruno@clisp.org>
17152
17153         linkat: Move AC_LIBOBJ invocations to module description.
17154         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
17155         here...
17156         * modules/linkat (configure.ac): ... to here.
17157
17158 2011-05-21  Bruno Haible  <bruno@clisp.org>
17159
17160         link: Respect rules for use of AC_LIBOBJ.
17161         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
17162         * modules/link (configure.ac): ... to here.
17163
17164 2011-05-21  Bruno Haible  <bruno@clisp.org>
17165
17166         lchown: Move AC_LIBOBJ invocations to module description.
17167         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
17168         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
17169         * modules/lchown (configure.ac): ... to here.
17170
17171 2011-05-21  Bruno Haible  <bruno@clisp.org>
17172
17173         iswctype: Move AC_LIBOBJ invocations to module description.
17174         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
17175         here...
17176         * modules/iswctype (configure.ac): ... to here.
17177
17178 2011-05-21  Bruno Haible  <bruno@clisp.org>
17179
17180         iswblank: Move AC_LIBOBJ invocations to module description.
17181         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
17182         here...
17183         * modules/iswblank (configure.ac): ... to here.
17184
17185 2011-05-21  Bruno Haible  <bruno@clisp.org>
17186
17187         atanl: Move AC_LIBOBJ invocations to module description.
17188         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
17189         * modules/atanl (configure.ac): ... to here.
17190
17191 2011-05-21  Bruno Haible  <bruno@clisp.org>
17192
17193         acosl: Move AC_LIBOBJ invocations to module description.
17194         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
17195         * modules/acosl (configure.ac): ... to here.
17196
17197 2011-05-21  Bruno Haible  <bruno@clisp.org>
17198
17199         asinl: Respect rules for use of AC_LIBOBJ.
17200         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
17201         * modules/asinl (configure.ac): ... to here.
17202
17203 2011-05-21  Bruno Haible  <bruno@clisp.org>
17204
17205         tanl: Move AC_LIBOBJ invocations to module description.
17206         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
17207         * modules/tanl (configure.ac): ... to here.
17208
17209 2011-05-21  Bruno Haible  <bruno@clisp.org>
17210
17211         cosl: Move AC_LIBOBJ invocations to module description.
17212         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
17213         * modules/cosl (configure.ac): ... to here.
17214
17215 2011-05-21  Bruno Haible  <bruno@clisp.org>
17216
17217         sinl: Move AC_LIBOBJ invocations to module description.
17218         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
17219         * modules/sinl (configure.ac): ... to here.
17220
17221 2011-05-21  Bruno Haible  <bruno@clisp.org>
17222
17223         logl: Move AC_LIBOBJ invocations to module description.
17224         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
17225         * modules/logl (configure.ac): ... to here.
17226
17227 2011-05-21  Bruno Haible  <bruno@clisp.org>
17228
17229         expl: Move AC_LIBOBJ invocations to module description.
17230         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
17231         * modules/expl (configure.ac): ... to here.
17232
17233 2011-05-21  Bruno Haible  <bruno@clisp.org>
17234
17235         roundl: Move AC_LIBOBJ invocations to module description.
17236         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
17237         * modules/roundl (configure.ac): ... to here.
17238
17239 2011-05-21  Bruno Haible  <bruno@clisp.org>
17240
17241         round: Move AC_LIBOBJ invocations to module description.
17242         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
17243         * modules/round (configure.ac): ... to here.
17244
17245 2011-05-21  Bruno Haible  <bruno@clisp.org>
17246
17247         roundf: Move AC_LIBOBJ invocations to module description.
17248         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
17249         * modules/roundf (configure.ac): ... to here.
17250
17251 2011-05-21  Bruno Haible  <bruno@clisp.org>
17252
17253         truncl: Move AC_LIBOBJ invocations to module description.
17254         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
17255         * modules/truncl (configure.ac): ... to here.
17256
17257 2011-05-21  Bruno Haible  <bruno@clisp.org>
17258
17259         trunc: Move AC_LIBOBJ invocations to module description.
17260         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
17261         * modules/trunc (configure.ac): ... to here.
17262
17263 2011-05-21  Bruno Haible  <bruno@clisp.org>
17264
17265         truncf: Move AC_LIBOBJ invocations to module description.
17266         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
17267         * modules/truncf (configure.ac): ... to here.
17268
17269 2011-05-21  Bruno Haible  <bruno@clisp.org>
17270
17271         ceill: Move AC_LIBOBJ invocations to module description.
17272         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
17273         * modules/ceill (configure.ac): ... to here.
17274
17275 2011-05-21  Bruno Haible  <bruno@clisp.org>
17276
17277         ceil: Move AC_LIBOBJ invocations to module description.
17278         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
17279         * modules/ceil (configure.ac): ... to here.
17280
17281 2011-05-21  Bruno Haible  <bruno@clisp.org>
17282
17283         ceilf: Move AC_LIBOBJ invocations to module description.
17284         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
17285         * modules/ceilf (configure.ac): ... to here.
17286
17287 2011-05-21  Bruno Haible  <bruno@clisp.org>
17288
17289         floorl: Respect rules for use of AC_LIBOBJ.
17290         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
17291         * modules/floorl (configure.ac): ... to here.
17292
17293 2011-05-21  Bruno Haible  <bruno@clisp.org>
17294
17295         floor: Respect rules for use of AC_LIBOBJ.
17296         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
17297         * modules/floor (configure.ac): ... to here.
17298
17299 2011-05-21  Bruno Haible  <bruno@clisp.org>
17300
17301         floorf: Move AC_LIBOBJ invocations to module description.
17302         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
17303         * modules/floorf (configure.ac): ... to here.
17304
17305 2011-05-20  Bruno Haible  <bruno@clisp.org>
17306
17307         sqrtl: Respect rules for use of AC_LIBOBJ.
17308         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
17309         * modules/sqrtl (configure.ac): ... to here.
17310
17311 2011-05-20  Bruno Haible  <bruno@clisp.org>
17312
17313         ldexpl: Respect rules for use of AC_LIBOBJ.
17314         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
17315         * modules/ldexpl (configure.ac): ... to here.
17316
17317 2011-05-20  Bruno Haible  <bruno@clisp.org>
17318
17319         frexpl*: Respect rules for use of AC_LIBOBJ.
17320         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
17321         invocation from here...
17322         * modules/frexpl (configure.ac): ... to here.
17323         * modules/frexpl-nolibm (configure.ac): ... and here.
17324
17325 2011-05-20  Bruno Haible  <bruno@clisp.org>
17326
17327         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
17328         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
17329         invocation from here...
17330         * modules/frexp (configure.ac): ... to here.
17331         * modules/frexp-nolibm (configure.ac): ... and here.
17332
17333 2011-05-20  Bruno Haible  <bruno@clisp.org>
17334
17335         isnan: Respect rules for use of AC_LIBOBJ.
17336         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
17337         invocations here.
17338         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
17339         REPLACE_ISNAN.
17340         * modules/isnand (configure.ac): Likewise.
17341         * modules/isnanl (configure.ac): Likewise.
17342
17343 2011-05-20  Bruno Haible  <bruno@clisp.org>
17344
17345         isnanl*: Respect rules for use of AC_LIBOBJ.
17346         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
17347         invocation from here...
17348         * modules/isnanl (configure.ac): ... to here.
17349         * modules/isnanl-nolibm (configure.ac): ... and here.
17350
17351 2011-05-20  Bruno Haible  <bruno@clisp.org>
17352
17353         isnand*: Move AC_LIBOBJ invocations to module description.
17354         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
17355         invocation from here...
17356         * modules/isnand (configure.ac): ... to here.
17357         * modules/isnand-nolibm (configure.ac): ... and here.
17358
17359 2011-05-20  Bruno Haible  <bruno@clisp.org>
17360
17361         isnanf*: Move AC_LIBOBJ invocations to module description.
17362         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
17363         invocation from here...
17364         * modules/isnanf (configure.ac): ... to here.
17365         * modules/isnanf-nolibm (configure.ac): ... and here.
17366
17367 2011-05-20  Bruno Haible  <bruno@clisp.org>
17368
17369         isnan*: Separate the AC_LIBOBJ invocations.
17370         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
17371         AC_LIBOBJ invocation.
17372         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
17373         here.
17374         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
17375         AC_LIBOBJ invocation.
17376         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
17377         here.
17378         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
17379         AC_LIBOBJ invocation.
17380         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
17381         here.
17382         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
17383
17384 2011-05-08  Bruno Haible  <bruno@clisp.org>
17385
17386         isinf: Move AC_LIBOBJ invocations to module description.
17387         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
17388         * modules/isinf (configure.ac): ... to here.
17389
17390 2011-05-08  Bruno Haible  <bruno@clisp.org>
17391
17392         isfinite: Move AC_LIBOBJ invocations to module description.
17393         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
17394         * modules/isfinite (configure.ac): ... to here.
17395
17396 2011-05-08  Bruno Haible  <bruno@clisp.org>
17397
17398         isblank: Move AC_LIBOBJ invocations to module description.
17399         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
17400         here...
17401         * modules/isblank (configure.ac): ... to here.
17402
17403 2011-05-08  Bruno Haible  <bruno@clisp.org>
17404
17405         isapipe: Move AC_LIBOBJ invocations to module description.
17406         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
17407         gl_PREREQ_ISAPIPE invocations from here...
17408         * modules/isapipe (configure.ac): ... to here.
17409         (Depends-on): Update condition.
17410
17411 2011-05-08  Bruno Haible  <bruno@clisp.org>
17412
17413         ioctl: Move AC_LIBOBJ invocations to module description.
17414         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
17415         invocations from here...
17416         * modules/ioctl (configure.ac): ... to here.
17417         (Depends-on): Update condition.
17418
17419 2011-05-08  Bruno Haible  <bruno@clisp.org>
17420
17421         imaxdiv: Move AC_LIBOBJ invocations to module description.
17422         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
17423         invocations from here...
17424         * modules/imaxdiv (configure.ac): ... to here.
17425
17426 2011-05-08  Bruno Haible  <bruno@clisp.org>
17427
17428         imaxabs: Move AC_LIBOBJ invocations to module description.
17429         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
17430         invocations from here...
17431         * modules/imaxabs (configure.ac): ... to here.
17432
17433 2011-05-08  Bruno Haible  <bruno@clisp.org>
17434
17435         getaddrinfo: Move AC_LIBOBJ invocations to module description.
17436         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
17437         AC_LIBOBJ invocations from here...
17438         * modules/getaddrinfo (configure.ac): ... to here.
17439         (Depends-on): Add conditions.
17440
17441 2011-05-08  Bruno Haible  <bruno@clisp.org>
17442
17443         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
17444         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
17445         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
17446         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
17447         (gl_PREREQ_INET_PTON): ... from here.
17448         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
17449         gl_PREREQ_INET_PTON here.
17450         (Depends-on): Update condition.
17451
17452 2011-05-08  Bruno Haible  <bruno@clisp.org>
17453
17454         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
17455         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
17456         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
17457         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
17458         (gl_PREREQ_INET_NTOP): ... from here.
17459         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
17460         gl_PREREQ_INET_NTOP here.
17461         (Depends-on): Update condition.
17462
17463 2011-05-08  Bruno Haible  <bruno@clisp.org>
17464
17465         iconv_open: Move AC_LIBOBJ invocations to module description.
17466         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
17467         AC_LIBOBJ invocations from here...
17468         * modules/iconv_open (configure.ac): ... to here.
17469
17470 2011-05-08  Bruno Haible  <bruno@clisp.org>
17471
17472         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
17473         If module 'iconv_open' is among the main modules and module
17474         'iconv_open-utf' is among the tests dependencies, then
17475         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
17476         return the special iconv_t values. Therefore iconv() and iconv_close()
17477         must support these special iconv_t values, already in lib, not only in
17478         tests.
17479         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
17480         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
17481         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
17482         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
17483         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
17484         (Depends-on): Add the dependencies of iconv_open-utf.
17485         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
17486         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
17487         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
17488
17489 2011-05-08  Bruno Haible  <bruno@clisp.org>
17490
17491         group-member: Move AC_LIBOBJ invocations to module description.
17492         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
17493         gl_PREREQ_GROUP_MEMBER invocations from here...
17494         * modules/group-member (configure.ac): ... to here.
17495
17496 2011-05-08  Bruno Haible  <bruno@clisp.org>
17497
17498         grantpt: Move AC_LIBOBJ invocations to module description.
17499         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
17500         invocations from here...
17501         * modules/grantpt (configure.ac): ... to here.
17502
17503 2011-05-08  Bruno Haible  <bruno@clisp.org>
17504
17505         glob: Move AC_LIBOBJ invocations to module description.
17506         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
17507         from here...
17508         * modules/glob (configure.ac): ... to here.
17509
17510 2011-05-08  Bruno Haible  <bruno@clisp.org>
17511
17512         getusershell: Move AC_LIBOBJ invocations to module description.
17513         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
17514         Move AC_LIBOBJ invocation from here...
17515         * modules/getusershell (configure.ac): ... to here.
17516         (Depends-on): Update condition.
17517
17518 2011-05-08  Bruno Haible  <bruno@clisp.org>
17519
17520         gettimeofday: Move AC_LIBOBJ invocations to module description.
17521         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
17522         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
17523         gl_PREREQ_GETTIMEOFDAY invocations from here...
17524         * modules/gettimeofday (configure.ac): ... to here.
17525
17526 2011-05-08  Bruno Haible  <bruno@clisp.org>
17527
17528         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
17529         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
17530         just gl_FUNC_TZSET.
17531         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
17532         (gl_FUNC_TZSET_CLOBBER): Remove actions.
17533         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
17534         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
17535
17536 2011-05-08  Bruno Haible  <bruno@clisp.org>
17537
17538         getsubopt: Move AC_LIBOBJ invocations to module description.
17539         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
17540         gl_PREREQ_GETSUBOPT invocations from here...
17541         * modules/getsubopt (configure.ac): ... to here.
17542
17543 2011-05-08  Bruno Haible  <bruno@clisp.org>
17544
17545         getpass-gnu: Move AC_LIBOBJ invocations to module description.
17546         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
17547         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
17548         * modules/getpass-gnu (configure.ac): ... to here.
17549
17550 2011-05-08  Bruno Haible  <bruno@clisp.org>
17551
17552         getpass: Move AC_LIBOBJ invocations to module description.
17553         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
17554         gl_PREREQ_GETPASS invocations from here...
17555         * modules/getpass (configure.ac): ... to here.
17556
17557 2011-05-08  Bruno Haible  <bruno@clisp.org>
17558
17559         getpagesize: Move AC_LIBOBJ invocations to module description.
17560         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
17561         from here...
17562         * modules/getpagesize (configure.ac): ... to here.
17563
17564 2011-05-08  Bruno Haible  <bruno@clisp.org>
17565
17566         getopt: Move AC_LIBOBJ invocations to module description.
17567         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
17568         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
17569         invocations from here...
17570         * modules/getopt-gnu (configure.ac): ... to here.
17571         * modules/getopt-posix (configure.ac): ... and here.
17572         (Depends-on): Update condition.
17573
17574 2011-05-08  Bruno Haible  <bruno@clisp.org>
17575
17576         getopt, argp: Respect rules for use of AC_LIBOBJ.
17577         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
17578         (gl_REPLACE_GETOPT_ALWAYS): New macro.
17579         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
17580         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
17581
17582 2011-05-08  Bruno Haible  <bruno@clisp.org>
17583
17584         getlogin_r: Move AC_LIBOBJ invocations to module description.
17585         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
17586         gl_PREREQ_GETLOGIN_R invocations from here...
17587         * modules/getlogin_r (configure.ac): ... to here.
17588
17589 2011-05-08  Bruno Haible  <bruno@clisp.org>
17590
17591         getlogin: Move AC_LIBOBJ invocations to module description.
17592         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
17593         here...
17594         * modules/getlogin (configure.ac): ... to here.
17595
17596 2011-05-08  Bruno Haible  <bruno@clisp.org>
17597
17598         getloadavg: Move AC_LIBOBJ invocations to module description.
17599         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
17600         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
17601         * modules/getloadavg (configure.ac): ... to here.
17602
17603 2011-05-08  Bruno Haible  <bruno@clisp.org>
17604
17605         gethrxtime: Move AC_LIBOBJ invocations to module description.
17606         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
17607         LIB_GETHRXTIME from here...
17608         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
17609         invocations from here...
17610         * modules/gethrxtime (configure.ac): ... to here.
17611
17612 2011-05-08  Bruno Haible  <bruno@clisp.org>
17613
17614         gethostname: Move AC_LIBOBJ invocations to module description.
17615         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
17616         gl_PREREQ_GETHOSTNAME invocations from here...
17617         * modules/gethostname (configure.ac): ... to here.
17618
17619 2011-05-08  Bruno Haible  <bruno@clisp.org>
17620
17621         getgroups: Move AC_LIBOBJ invocations to module description.
17622         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
17623         here...
17624         * modules/getgroups (configure.ac): ... to here.
17625
17626 2011-05-08  Bruno Haible  <bruno@clisp.org>
17627
17628         getdtablesize: Move AC_LIBOBJ invocations to module description.
17629         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
17630         invocation from here...
17631         * modules/getdtablesize (configure.ac): ... to here.
17632
17633 2011-05-08  Bruno Haible  <bruno@clisp.org>
17634
17635         getdomainname: Move AC_LIBOBJ invocations to module description.
17636         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
17637         gl_PREREQ_GETDOMAINNAME invocations from here...
17638         * modules/getdomainname (configure.ac): ... to here.
17639
17640 2011-05-08  Bruno Haible  <bruno@clisp.org>
17641
17642         getline: Move AC_LIBOBJ invocations to module description.
17643         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
17644         invocations from here...
17645         * modules/getline (configure.ac): ... to here.
17646
17647 2011-05-08  Bruno Haible  <bruno@clisp.org>
17648
17649         getline: Simplify.
17650         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
17651         It's already handled through the module dependency.
17652
17653 2011-05-08  Bruno Haible  <bruno@clisp.org>
17654
17655         getdelim: Move AC_LIBOBJ invocations to module description.
17656         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
17657         and gl_PREREQ_GETDELIM invocations from here...
17658         * modules/getdelim (configure.ac): ... to here.
17659         (Depends-on): Fix condition.
17660
17661 2011-05-08  Bruno Haible  <bruno@clisp.org>
17662
17663         getcwd: Move AC_LIBOBJ invocations to module description.
17664         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
17665         invocations from here...
17666         * modules/getcwd (configure.ac): ... to here.
17667
17668 2011-05-08  Bruno Haible  <bruno@clisp.org>
17669
17670         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
17671         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
17672         here...
17673         * modules/getcwd-lgpl (configure.ac): ... to here.
17674
17675 2011-05-07  Bruno Haible  <bruno@clisp.org>
17676
17677         crypto/gc: Move AC_LIBOBJ invocations to module description.
17678         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
17679         * modules/crypto/gc (configure.ac): ... to here.
17680
17681 2011-05-07  Bruno Haible  <bruno@clisp.org>
17682
17683         fwriting: Move AC_LIBOBJ invocations to module description.
17684         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
17685         here...
17686         * modules/fwriting (configure.ac): ... to here.
17687
17688 2011-05-07  Bruno Haible  <bruno@clisp.org>
17689
17690         fwritable: Move AC_LIBOBJ invocations to module description.
17691         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
17692         here...
17693         * modules/fwritable (configure.ac): ... to here.
17694
17695 2011-05-07  Bruno Haible  <bruno@clisp.org>
17696
17697         futimens: Move AC_LIBOBJ invocations to module description.
17698         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
17699         here...
17700         * modules/futimens (configure.ac): ... to here.
17701
17702 2011-05-07  Bruno Haible  <bruno@clisp.org>
17703
17704         ftruncate: Move AC_LIBOBJ invocations to module description.
17705         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
17706         gl_PREREQ_FTRUNCATE invocations from here...
17707         * modules/ftruncate (configure.ac): ... to here.
17708
17709 2011-05-07  Bruno Haible  <bruno@clisp.org>
17710
17711         fsync: Move AC_LIBOBJ invocations to module description.
17712         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
17713         invocations from here...
17714         * modules/fsync (configure.ac): ... to here.
17715
17716 2011-05-07  Bruno Haible  <bruno@clisp.org>
17717
17718         fsusage: Move AC_LIBOBJ invocations to module description.
17719         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
17720         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
17721         * modules/fsusage (configure.ac): ... to here.
17722
17723 2011-05-07  Bruno Haible  <bruno@clisp.org>
17724
17725         freopen: Move AC_LIBOBJ invocations to module description.
17726         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
17727         invocations from here...
17728         * modules/freopen (configure.ac): ... to here.
17729
17730 2011-05-07  Bruno Haible  <bruno@clisp.org>
17731
17732         free: Move AC_LIBOBJ invocations to module description.
17733         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
17734         invocations from here...
17735         * modules/free (configure.ac): ... to here.
17736
17737 2011-05-07  Bruno Haible  <bruno@clisp.org>
17738
17739         freadable: Move AC_LIBOBJ invocations to module description.
17740         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
17741         here...
17742         * modules/freadable (configure.ac): ... to here.
17743
17744 2011-05-07  Bruno Haible  <bruno@clisp.org>
17745
17746         fpurge: Move AC_LIBOBJ invocations to module description.
17747         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
17748         invocations from here...
17749         * modules/fpurge (configure.ac): ... to here.
17750
17751 2011-05-07  Bruno Haible  <bruno@clisp.org>
17752
17753         fpending: Move AC_LIBOBJ invocations to module description.
17754         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
17755         gl_FUNC_FPENDING.
17756         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
17757         invocations from here...
17758         * modules/fpending (configure.ac): ... to here.
17759
17760 2011-05-07  Bruno Haible  <bruno@clisp.org>
17761
17762         fopen: Move AC_LIBOBJ invocations to module description.
17763         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
17764         invocations from here...
17765         * modules/fopen (configure.ac): ... to here.
17766
17767 2011-05-07  Bruno Haible  <bruno@clisp.org>
17768
17769         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
17770         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
17771         gl_FUNC_FNMATCH_POSIX.
17772         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
17773         invocations from here...
17774         * modules/fnmatch (configure.ac): ... to here.
17775         * modules/fnmatch-gnu (configure.ac): ... and here.
17776
17777 2011-05-07  Bruno Haible  <bruno@clisp.org>
17778
17779         flock: Move AC_LIBOBJ invocations to module description.
17780         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
17781         invocations from here...
17782         * modules/flock (configure.ac): ... to here.
17783
17784 2011-05-07  Bruno Haible  <bruno@clisp.org>
17785
17786         fileblocks: Move AC_LIBOBJ invocations to module description.
17787         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
17788         gl_PREREQ_FILEBLOCKS invocations from here...
17789         * modules/fileblocks (configure.ac): ... to here.
17790
17791 2011-05-06  Bruno Haible  <bruno@clisp.org>
17792
17793         fflush: Move AC_LIBOBJ invocations to module description.
17794         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
17795         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
17796         invocations from here...
17797         * modules/fflush (configure.ac): ... to here.
17798
17799 2011-05-06  Bruno Haible  <bruno@clisp.org>
17800
17801         fdopendir: Move AC_LIBOBJ invocations to module description.
17802         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
17803         here...
17804         * modules/fdopendir (configure.ac): ... to here.
17805         (Depends-on): Improve conditions.
17806
17807 2011-05-06  Bruno Haible  <bruno@clisp.org>
17808
17809         _Exit: Move AC_LIBOBJ invocations to module description.
17810         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
17811         invocations from here...
17812         * modules/_Exit (configure.ac): ... to here.
17813
17814 2011-05-21  Bruno Haible  <bruno@clisp.org>
17815
17816         euidaccess: Respect rules for use of AC_LIBOBJ.
17817         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
17818         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
17819         from here...
17820         * modules/euidaccess (configure.ac): ... to here.
17821
17822 2011-05-06  Bruno Haible  <bruno@clisp.org>
17823
17824         error: Move AC_LIBOBJ invocations to module description.
17825         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
17826         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
17827         invocations from here...
17828         * modules/error (configure.ac): ... to here.
17829
17830 2011-05-06  Bruno Haible  <bruno@clisp.org>
17831
17832         duplocale: Move AC_LIBOBJ invocations to module description.
17833         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
17834         gl_PREREQ_DUPLOCALE invocations from here...
17835         * modules/duplocale (configure.ac): ... to here.
17836
17837 2011-05-05  Bruno Haible  <bruno@clisp.org>
17838
17839         dirfd: Move AC_LIBOBJ invocations to module description.
17840         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
17841         gl_FUNC_DIRFD.
17842         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
17843         here...
17844         * modules/dirfd (configure.ac): ... to here.
17845         (Depends-on): Fix condition.
17846
17847 2011-05-05  Bruno Haible  <bruno@clisp.org>
17848
17849         chown: Respect rules for use of AC_LIBOBJ.
17850         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
17851         * modules/chown (configure.ac): ... to here.
17852
17853 2011-05-05  Bruno Haible  <bruno@clisp.org>
17854
17855         chdir-long: Move AC_LIBOBJ invocations to module description.
17856         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
17857         gl_PREREQ_CHDIR_LONG invocations from here...
17858         * modules/chdir-long (configure.ac): ... to here.
17859
17860 2011-05-05  Bruno Haible  <bruno@clisp.org>
17861
17862         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
17863         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
17864         from here...
17865         * modules/canonicalize-lgpl (configure.ac): ... to here.
17866
17867 2011-05-05  Bruno Haible  <bruno@clisp.org>
17868
17869         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
17870         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
17871         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
17872         REPLACE_CALLOC.
17873         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
17874         * modules/calloc-gnu (configure.ac): Likewise.
17875
17876 2011-05-05  Bruno Haible  <bruno@clisp.org>
17877
17878         btowc: Move AC_LIBOBJ invocations to module description.
17879         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
17880         invocations from here...
17881         * modules/btowc (configure.ac): ... to here.
17882
17883 2011-05-21  Bruno Haible  <bruno@clisp.org>
17884
17885         atexit: Move AC_LIBOBJ invocations to module description.
17886         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
17887         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
17888         here...
17889         * modules/atexit (configure.ac): ... to here.
17890
17891 2011-05-05  Bruno Haible  <bruno@clisp.org>
17892
17893         atoll: Move AC_LIBOBJ invocations to module description.
17894         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
17895         invocations from here...
17896         * modules/atoll (configure.ac): ... to here.
17897
17898 2011-05-05  Bruno Haible  <bruno@clisp.org>
17899
17900         argz: Move AC_LIBOBJ invocations to module description.
17901         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
17902         * modules/argz (configure.ac): ... to here.
17903
17904 2011-05-05  Bruno Haible  <bruno@clisp.org>
17905
17906         alphasort: Move AC_LIBOBJ invocations to module description.
17907         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
17908         gl_PREREQ_ALPHASORT invocations from here...
17909         * modules/alphasort (configure.ac): ... to here.
17910
17911 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
17912
17913         verify: new macro verify_expr; verify_true deprecated
17914         * NEWS: Mention this.
17915         * doc/verify.texi (Compile-time Assertions): Document this.
17916         * lib/verify.h (verify_true): Deprecate.
17917         (verify_expr): New macro.
17918         * tests/test-verify.c (function): Test verify_expr.
17919
17920 2011-06-14  Jim Meyering  <meyering@redhat.com>
17921
17922         init.sh: give more portable redirection-related advice in a comment
17923         * tests/init.sh (stderr_fileno_): Update the advice in comments.
17924         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
17925         for lots of discussion.  Stefano Lattarini suggested the solution
17926         of putting "9>&2" after the command.  Reported by Bruno Haible.
17927
17928 2011-06-13  Bruno Haible  <bruno@clisp.org>
17929
17930         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
17931         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
17932         'none'.
17933
17934 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
17935
17936         ftoastr: use strtof only if HAVE_STRTOF
17937         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
17938         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
17939         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
17940         * modules/ftoastr (configure.ac): Check for strtof.
17941
17942 2011-06-13  Bruno Haible  <bruno@clisp.org>
17943
17944         gnulib-tool: Addendum to 2011-06-08 commit.
17945         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
17946         and --witness-c-macro have been given, augment AM_CPPFLAGS.
17947
17948 2011-06-13  Bruno Haible  <bruno@clisp.org>
17949
17950         fseeko: Provide a non-inline replacement of fseek().
17951         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
17952         * modules/fseeko (Depends-on): Add fseek.
17953         * modules/fseek (License): Change to LGPLv2+.
17954
17955 2011-06-13  Bruno Haible  <bruno@clisp.org>
17956
17957         ftello: Provide a non-inline replacement of ftell().
17958         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
17959         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
17960         not have ftello() (such as on mingw).
17961         * modules/ftello (Depends-on): Add ftell.
17962         * modules/ftell (License): Change to LGPLv2+.
17963
17964 2011-05-07  Bruno Haible  <bruno@clisp.org>
17965
17966         ftell: Move AC_LIBOBJ invocations to module description.
17967         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
17968         * modules/ftell (configure.ac): ... to here.
17969
17970 2011-05-07  Bruno Haible  <bruno@clisp.org>
17971
17972         ftello: Respect rules for use of AC_LIBOBJ.
17973         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
17974         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
17975         here...
17976         * modules/ftello (configure.ac): ... to here.
17977
17978 2011-05-07  Bruno Haible  <bruno@clisp.org>
17979
17980         fseeko: Simplify.
17981         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
17982         (gl_FUNC_FSEEKO): Inline it here.
17983
17984 2011-05-07  Bruno Haible  <bruno@clisp.org>
17985
17986         fseek: Move AC_LIBOBJ invocations to module description.
17987         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
17988         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
17989         * modules/fseek (configure.ac): ... to here.
17990
17991 2011-05-07  Bruno Haible  <bruno@clisp.org>
17992
17993         fseek: Respect rules for use of AC_LIBOBJ.
17994         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
17995         here...
17996         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
17997
17998 2011-05-07  Bruno Haible  <bruno@clisp.org>
17999
18000         fseeko: Respect rules for use of AC_LIBOBJ.
18001         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
18002         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
18003         here...
18004         * modules/fseeko (configure.ac): ... to here.
18005
18006 2011-06-13  Bruno Haible  <bruno@clisp.org>
18007
18008         gnulib-tool: Allow comments in the 'Depends-on' section.
18009         * doc/gnulib.texi (Module description): Mention comment syntax in the
18010         Depends-on section.
18011         * gnulib-tool (func_get_dependencies): Filter out comment lines.
18012
18013 2011-06-13  Bruno Haible  <bruno@clisp.org>
18014
18015         file-set.h: guard __attibute__ use, now that it's not always defined
18016         * lib/file-set.h (record_file): Use __attribute__ only with compiler
18017         versions that support it.  This fixes a coreutils build failure with
18018         the vendor cc on HP-UX 11.31.
18019
18020 2011-06-12  Bruno Haible  <bruno@clisp.org>
18021
18022         acl: Add support for HP-UX >= 11.11 JFS ACLs.
18023         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
18024         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
18025         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
18026         (acl, aclsort): New declarations.
18027         (aclv_nontrivial): New declaration.
18028         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
18029         (file_has_acl): Read also the second kind of HP-UX ACLs.
18030         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
18031         kind of HP-UX ACLs if the first kind fails.
18032         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
18033         second kind of HP-UX ACLs.
18034         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
18035         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
18036         agree.
18037         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
18038         hpuxjfs.
18039         Handle hpuxjfs.
18040         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
18041         hpuxjfs.
18042         Handle hpuxjfs.
18043         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
18044         (func_test_same_acls): Use both lsacl and getacl.
18045         Handle hpuxjfs.
18046         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
18047         (func_test_same_acls): Use both lsacl and getacl.
18048         Handle hpuxjfs.
18049
18050 2011-06-12  Bruno Haible  <bruno@clisp.org>
18051
18052         acl: Complete the 2010-08-10 fix.
18053         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
18054         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
18055         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
18056         explicitly.
18057         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
18058         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
18059
18060 2011-06-12  Bruno Haible  <bruno@clisp.org>
18061
18062         spawn-pipe tests: Comments.
18063         * tests/test-spawn-pipe-child.c (main): Update comment.
18064         Reported by James Youngman <jay@gnu.org>.
18065
18066 2011-06-11  James Youngman  <jay@gnu.org>
18067
18068         New module 'stat-size'.
18069         * modules/stat-size: New module.  Provides macros for accessing
18070         file size information in instances of struct stat.  Depends on the
18071         fileblocks module because it calls st_blocks.
18072         * lib/stat-size.h: New file, adapted from coreutils' system.h.
18073         * doc/gnulib.texi: Include stat-size.texi.
18074         * doc/stat-size.texi: Documentation for this module.
18075         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
18076         * m4/fileblocks.m4: Mention that stat-size depends on the call to
18077         AC_STRUCT_ST_BLOCKS.
18078
18079 2011-06-09  Bruno Haible  <bruno@clisp.org>
18080
18081         thread: Support pthreads-win32.
18082         * lib/glthread/thread.h (gl_thread_self): Define differently on
18083         pthreads-win32.
18084         (gl_null_thread): New declaration.
18085         (gl_thread_self_pointer): New macro.
18086         * lib/glthread/thread.c (gl_null_thread): New constant.
18087         * tests/test-lock.c: Use gl_thread_self_pointer instead of
18088         gl_thread_self.
18089         * tests/test-tls.c: Likewise.
18090         Suggested by Paul Eggert. Reported by Eric Blake.
18091
18092 2011-06-09  Bruno Haible  <bruno@clisp.org>
18093
18094         thread: Fix confusion between NULL and 0.
18095         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
18096         Reported by Paul Eggert.
18097
18098 2011-06-09  Bruno Haible  <bruno@clisp.org>
18099
18100         spawn-pipe tests: Avoid test failure on HP-UX 11.
18101         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
18102         is closed.
18103
18104 2011-06-09  Bruno Haible  <bruno@clisp.org>
18105
18106         acl tests: Fix compilation error on HP-UX 11.
18107         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
18108
18109 2011-06-09  Bruno Haible  <bruno@clisp.org>
18110
18111         rmdir: Avoid test failure on HP-UX 10.20.
18112         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
18113         EEXIST.
18114
18115 2011-06-08  Eric Blake  <eblake@redhat.com>
18116
18117         perror: fix test on mingw
18118         * modules/perror-tests (Depends-on): Add dup2.
18119
18120         strerror_r-posix: fix on MacOS
18121         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
18122         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
18123         logic bug.
18124         * lib/strerror_r.c (strerror_r): Fix the bug.
18125         * lib/strerror.c (strerror): Likewise.
18126         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
18127         problem.
18128         * doc/posix-functions/strerror.texi (strerror): Likewise.
18129         * doc/posix-functions/perror.texi (perror): Likewise.
18130         * tests/test-strerror.c (main): Enhance test.
18131         * tests/test-strerror_r.c (main): Likewise.
18132
18133 2011-06-08  Bruno Haible  <bruno@clisp.org>
18134
18135         gnulib-tool: Better isolation between different gnulib-tool invocations.
18136         * gnulib-tool: New option --witness-c-macro.
18137         (witness_c_macro): New variable.
18138         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
18139         AM_CPPFLAGS define it as a C macro.
18140         (func_emit_tests_Makefile_am): Likewise.
18141         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
18142         read it from there.
18143         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
18144         m4_define, not AC_DEFUN.
18145         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
18146         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
18147         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
18148         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
18149         s|...|...|, to substitute the values of the GNULIB_* module indicator
18150         variables.
18151         * modules/dirent (Makefile.am): Likewise.
18152         * modules/fcntl-h (Makefile.am): Likewise.
18153         * modules/iconv-h (Makefile.am): Likewise.
18154         * modules/langinfo (Makefile.am): Likewise.
18155         * modules/locale (Makefile.am): Likewise.
18156         * modules/math (Makefile.am): Likewise.
18157         * modules/netdb (Makefile.am): Likewise.
18158         * modules/poll-h (Makefile.am): Likewise.
18159         * modules/pty (Makefile.am): Likewise.
18160         * modules/search (Makefile.am): Likewise.
18161         * modules/signal (Makefile.am): Likewise.
18162         * modules/spawn (Makefile.am): Likewise.
18163         * modules/stdio (Makefile.am): Likewise.
18164         * modules/stdlib (Makefile.am): Likewise.
18165         * modules/string (Makefile.am): Likewise.
18166         * modules/sys_ioctl (Makefile.am): Likewise.
18167         * modules/sys_select (Makefile.am): Likewise.
18168         * modules/sys_socket (Makefile.am): Likewise.
18169         * modules/sys_stat (Makefile.am): Likewise.
18170         * modules/sys_times (Makefile.am): Likewise.
18171         * modules/sys_utsname (Makefile.am): Likewise.
18172         * modules/sys_wait (Makefile.am): Likewise.
18173         * modules/termios (Makefile.am): Likewise.
18174         * modules/time (Makefile.am): Likewise.
18175         * modules/unistd (Makefile.am): Likewise.
18176         * modules/wchar (Makefile.am): Likewise.
18177
18178 2011-06-08  Eric Blake  <eblake@redhat.com>
18179
18180         strerror: simplify replacement
18181         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
18182         * modules/strerror (configure.ac): No prereqs needed here...
18183         * modules/strerror-override (configure.ac): ...but this needs it.
18184         (Files): Add file for needed prereq macro.
18185
18186 2011-06-08  Bruno Haible  <bruno@clisp.org>
18187
18188         strerror_r-posix: Tweaks.
18189         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
18190         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
18191         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
18192         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
18193         (gl_FUNC_STRERROR_R): ... to here.
18194         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
18195
18196 2011-06-07  Eric Blake  <eblake@redhat.com>
18197
18198         perror: document fixed bugs
18199         * doc/posix-functions/perror.texi (perror): Document recent
18200         patches.
18201
18202 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
18203
18204         stat-time: get_stat_birthtime failure is better-defined
18205         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
18206         return a timestamp whose tv_sec and tv_nsec values are both -1.
18207         Previously, the spec said only that the tv_nsec value was negative.
18208         This upward-compatible change simplifies GNU tar a bit.
18209
18210 2011-06-07  Eric Blake  <eblake@redhat.com>
18211
18212         strerror_r-posix: work around cygwin 1.7.9
18213         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
18214         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
18215         bug without replacing strerror_r.
18216         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
18217         strerror_r is buggy, but without requiring strerror_r compilation.
18218         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
18219
18220         test-perror: relax test to ignore cygwin bug
18221         * tests/test-perror2.c (main): Relax test on requiring detection
18222         of stream errors, and use unbuffered stream.
18223         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
18224         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
18225         * doc/posix-functions/fputc.texi (fputc): Likewise.
18226         * doc/posix-functions/fputs.texi (fputs): Likewise.
18227         * doc/posix-functions/fputws.texi (fputws): Likewise.
18228         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
18229         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
18230         * doc/posix-functions/getopt.texi (getopt): Likewise.
18231         * doc/posix-functions/perror.texi (perror): Likewise.
18232         * doc/posix-functions/printf.texi (printf): Likewise.
18233         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
18234         * doc/posix-functions/psignal.texi (psignal): Likewise.
18235         * doc/posix-functions/putc.texi (putc): Likewise.
18236         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
18237         Likewise.
18238         * doc/posix-functions/putchar.texi (putchar): Likewise.
18239         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
18240         Likewise.
18241         * doc/posix-functions/puts.texi (puts): Likewise.
18242         * doc/posix-functions/putwc.texi (putwc): Likewise.
18243         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
18244         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
18245         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
18246         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
18247         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
18248         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
18249         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
18250         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
18251
18252 2011-05-22  Bruno Haible  <bruno@clisp.org>
18253
18254         strerror: Move AC_LIBOBJ invocations to module description.
18255         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
18256         gl_PREREQ_STRERROR invocations from here...
18257         * modules/strerror (configure.ac): ... to here.
18258
18259 2011-05-21  Bruno Haible  <bruno@clisp.org>
18260
18261         perror: Use common idiom.
18262         * modules/perror (configure.ac): Reorder statements.
18263
18264 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
18265
18266         tests: fix usage message in 'mktempd_'
18267         * tests/init.sh (mktempd_): In the usage message, use literal
18268         'mktempd_', not '$ME' (which is even undefined), as the name of
18269         the subroutine.
18270
18271 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
18272
18273         tests init: new function 'fatal_', for hard errors
18274         Before this patch, the only way offered by tests/init.sh to
18275         properly signal a hard error was the `framework_failure_'
18276         function.  But the error message issued by that function,
18277         as its name would suggest, refers to a set-up failure in the
18278         testsuite, while hard errors can obviously also be due to
18279         other reasons.  The best way to fix this inconsistency is to
18280         introduce a new function with a more general error message.
18281         * tests/init.sh (fatal_): New function.
18282
18283 2011-06-06  Eric Blake  <eblake@redhat.com>
18284
18285         canonicalize-lgpl: use common idiom
18286         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
18287         over newer POSIX -Rf.
18288         Reported by Bruno Haible.
18289
18290         canonicalize-lgpl: work around AIX realpath bug
18291         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
18292         * doc/posix-functions/realpath.texi (realpath): Document it.
18293         Reported by Bruno Haible.
18294
18295         strerror: work around FreeBSD bug
18296         * lib/strerror.c (strerror): Special case 0.
18297         Reported by Bruno Haible.
18298
18299         strerror-override: avoid bloating errno module
18300         * modules/errno (Files, configure.ac): Move replacement strings...
18301         * modules/strerror-override: ...to new module.
18302         * modules/strerror (Depends-on): Add strerror-override.
18303         * modules/strerror_r-posix (Depends-on): Likewise.
18304         * MODULES.html.sh: Document new module.
18305         Reported by Bruno Haible.
18306
18307 2011-06-06  Bruno Haible  <bruno@clisp.org>
18308
18309         spawn-pipe tests: Rename program.
18310         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
18311         * tests/test-spawn-pipe-child.c: Update comment.
18312         * tests/test-spawn-pipe.sh: Update.
18313         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
18314
18315         spawn-pipe tests: Link the child program only against libc.
18316         * tests/test-spawn-pipe-child.c: New file, extracted from
18317         tests/test-spawn-pipe.c.
18318         (main): Expect only one argument.
18319         (is_open): New function, copied from tests/test-pipe.c.
18320         * tests/test-spawn-pipe.c: Don't include <errno.h>.
18321         (child_main): Remove function.
18322         (test_pipe): Pass only one argument to the child program.
18323         (main): Remove child process code. Expect the child program's name as
18324         first argument.
18325         * tests/test-spawn-pipe.sh: Pass the child program's name as first
18326         argument.
18327         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
18328         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
18329         test-spawn-pipe-child against no libraries.
18330
18331 2011-06-06  Bruno Haible  <bruno@clisp.org>
18332
18333         careadlinkat: Avoid mismatch between ssize_t and int.
18334         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
18335         * lib/careadlinkat.c (careadlinkatcwd): Define always.
18336
18337 2011-06-06  Jim Meyering  <meyering@redhat.com>
18338
18339         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
18340         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
18341         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
18342
18343 2011-06-05  Bruno Haible  <bruno@clisp.org>
18344
18345         ansi-c++-opt: Interoperability with libtool.
18346         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
18347         set the variable to "no", not to ":".
18348         * NEWS: Mention the change.
18349
18350 2011-06-05  Bruno Haible  <bruno@clisp.org>
18351
18352         acl: Fix test failure on AIX 7.
18353         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
18354         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
18355
18356 2011-06-05  Bruno Haible  <bruno@clisp.org>
18357
18358         pipe-filter-ii: Fix test failure on AIX and IRIX.
18359         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
18360         with EAGAIN, retry with a smaller buffer size.
18361
18362 2011-06-05  Bruno Haible  <bruno@clisp.org>
18363
18364         localename: Fix link dependencies.
18365         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
18366         * modules/localename-tests (Makefile.am): Link test-localename with
18367         $(LIBTHREAD).
18368
18369 2011-06-05  Bruno Haible  <bruno@clisp.org>
18370
18371         error: Avoid gcc warning.
18372         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
18373
18374 2011-06-05  Bruno Haible  <bruno@clisp.org>
18375
18376         unsetenv: Avoid gcc warning.
18377         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
18378
18379 2011-06-05  Bruno Haible  <bruno@clisp.org>
18380
18381         setenv: Avoid gcc warning.
18382         * lib/setenv.c (setenv): Provide declaration if system lacks it.
18383
18384 2011-06-05  Bruno Haible  <bruno@clisp.org>
18385
18386         sys_select: Ensure memset is declared also on AIX 7.
18387         * lib/sys_select.in.h: Include <string.h> also on AIX.
18388         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
18389         self-contained also on AIX 7.1.
18390
18391 2011-06-04  Jim Meyering  <meyering@redhat.com>
18392
18393         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
18394         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
18395         function name, "error".
18396         (_gl_translatable_diag_func_re): New configurable variable.
18397
18398 2011-06-04  Bruno Haible  <bruno@clisp.org>
18399
18400         getopt: Avoid gcc warning.
18401         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
18402
18403 2011-06-04  Bruno Haible  <bruno@clisp.org>
18404
18405         strerror_r: Fix comments.
18406         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
18407         commit.
18408
18409 2011-06-04  Bruno Haible  <bruno@clisp.org>
18410
18411         perror: Fix compilation error.
18412         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
18413         Undefine fprintf, not sprintf.
18414         * modules/perror (Depends-on): Remove intprops, verify.
18415
18416 2011-06-04  Bruno Haible  <bruno@clisp.org>
18417
18418         setlocale: Enable replacement on Cygwin 1.5.
18419         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
18420         Cygwin 1.5.x.
18421         * doc/posix-functions/setlocale.texi: Mention that the problem with the
18422         LC_CTYPE category also exists on Cygwin 1.5.x.
18423
18424 2011-06-04  Bruno Haible  <bruno@clisp.org>
18425
18426         strerror-override: Don't disable symbol renamings.
18427         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
18428         * lib/strerror-override.c: Include config.h.
18429         (strerror_override): Don't undefine.
18430
18431 2011-06-03  Bruno Haible  <bruno@clisp.org>
18432
18433         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
18434         * lib/localename.h: Update copyright header.
18435         * lib/localename.c: Likewise.
18436         * lib/relocatable.h: Likewise.
18437         * lib/relocatable.c: Likewise.
18438
18439 2011-06-02  Bruno Haible  <bruno@clisp.org>
18440
18441         doc: Fix a module name.
18442         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
18443
18444 2011-06-02  Bruno Haible  <bruno@clisp.org>
18445
18446         pipe2: Remove dependency on 'nonblocking' module.
18447         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
18448         O_NONBLOCK is defined by gnulib.
18449         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
18450         is zero.
18451         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
18452         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
18453         defined by gnulib.
18454         (get_nonblocking_flag): New function.
18455         (main): Test O_NONBLOCK flag only if it is nonzero.
18456         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
18457
18458 2011-06-03  Jim Meyering  <meyering@redhat.com>
18459
18460         maint: three new prohibit-header-without-use rules
18461         Prohibit use of cloexec.h, posixver.h, same.h without use.
18462         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
18463         (sc_prohibit_posixver_without_use): Likewise.
18464         (sc_prohibit_same_without_use): Likewise.
18465
18466 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
18467
18468         allocator: 'die' routine is now given requested size
18469         * lib/allocator.h (struct allocator.die): New size arg.
18470         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
18471         If the actual problem is an ssize_t limitation, not a size_t or
18472         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
18473
18474 2011-06-01  Eric Blake  <eblake@redhat.com>
18475
18476         strerror: drop strerror_r dependency
18477         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
18478         * lib/strerror-override.c (strerror_override): ...to new file.
18479         * lib/strerror-override.h: Add prototype.
18480         * lib/strerror-impl.h: Delete.
18481         * lib/strerror.c (strerror): New implementation.
18482         * modules/errno (Files): Add new files.
18483         (configure.ac): Compile new file as appropriate.
18484         * modules/strerror (Files): Drop unused file.
18485         (Depends-on): Drop strerror_r-posix.
18486         * MODULES.html.sh: Document strerror_r-posix.
18487         Requested by Sam Steingold.
18488
18489         perror: call strerror_r directly
18490         * modules/perror (Files): Drop strerror-impl.h.
18491         * lib/perror.c (perror): Use our own stack buffer, rather than
18492         calling a wrapper that uses static storage.
18493         * doc/posix-functions/perror.texi (perror): Document a limitation
18494         of our replacement.
18495
18496         strerror_r: fix includes for FreeBSD
18497         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
18498         since we use abort on some platforms.
18499         Reported by Matthias Bolte.
18500
18501 2011-05-31  Bruno Haible  <bruno@clisp.org>
18502
18503         Fix link errors in tests: openat-die uses gettext-h.
18504         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
18505         against $(LIBINTL).
18506         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
18507         against $(LIBINTL).
18508         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
18509         $(LIBINTL).
18510         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
18511         against $(LIBINTL).
18512         * modules/linkat-tests (Makefile.am): Link test-linkat against
18513         $(LIBINTL).
18514         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
18515         $(LIBINTL).
18516         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
18517         against $(LIBINTL).
18518         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
18519         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
18520         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
18521         $(LIBINTL).
18522         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
18523         $(LIBINTL).
18524         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
18525         $(LIBINTL).
18526         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18527
18528 2011-05-31  Bruno Haible  <bruno@clisp.org>
18529
18530         Fix link errors in tests: wait-process uses gettext-h.
18531         * modules/nonblocking-pipe-tests (Makefile.am): Set
18532         test_nonblocking_pipe_main_LDADD.
18533         * modules/nonblocking-socket-tests (Makefile.am): Link
18534         test-nonblocking-socket-main against $(LIBINTL).
18535         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18536
18537 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
18538
18539         assert-h: work around 'verify' incompatibility
18540         * lib/verify.h: Use @...@ directives, not ifdef.
18541         * modules/assert-h (assert.h): Implement the directives.
18542         (assert.h): Substitute the symbol-prefix more consistently.
18543
18544 2011-05-29  Jim Meyering  <meyering@redhat.com>
18545
18546         trim: remove three superfluous assignments
18547         * lib/trim.c (trim2): Remove three superfluous assignments
18548         and correct brace positioning.
18549
18550 2011-05-29  Bruno Haible  <bruno@clisp.org>
18551
18552         wctype-h: Avoid namespace pollution on Solaris 2.6.
18553         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
18554         identifiers.
18555         * doc/posix-headers/wctype.texi: Mention the problem.
18556         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
18557
18558 2011-05-28  Jim Meyering  <meyering@redhat.com>
18559
18560         parse-datetime.y: accommodate -Wstrict-overflow
18561         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
18562         placate -Wstrict-overflow.
18563
18564         trim: avoid a warning from -O2 -Wstrict-overflow
18565         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
18566
18567 2011-05-29  Bruno Haible  <bruno@clisp.org>
18568
18569         gnulib-tool: Fix bug in yesterday's commit.
18570         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
18571         twice.
18572
18573 2011-05-29  Bruno Haible  <bruno@clisp.org>
18574
18575         Allow multiple gnulib generated include files to be combined.
18576         * gnulib-tool (func_compute_include_guard_prefix): New function.
18577         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
18578         ${gl_include_guard_prefix} references.
18579         (func_import, func_create_testdir): Invoke
18580         func_compute_include_guard_prefix.
18581         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
18582         * lib/ctype.in.h: Likewise.
18583         * lib/dirent.in.h: Likewise.
18584         * lib/errno.in.h: Likewise.
18585         * lib/fcntl.in.h: Likewise.
18586         * lib/float.in.h: Likewise.
18587         * lib/getopt.in.h: Likewise.
18588         * lib/iconv.in.h: Likewise.
18589         * lib/langinfo.in.h: Likewise.
18590         * lib/locale.in.h: Likewise.
18591         * lib/math.in.h: Likewise.
18592         * lib/netdb.in.h: Likewise.
18593         * lib/netinet_in.in.h: Likewise.
18594         * lib/poll.in.h: Likewise.
18595         * lib/pthread.in.h: Likewise.
18596         * lib/pty.in.h: Likewise.
18597         * lib/sched.in.h: Likewise.
18598         * lib/se-selinux.in.h: Likewise.
18599         * lib/search.in.h: Likewise.
18600         * lib/signal.in.h: Likewise.
18601         * lib/spawn.in.h: Likewise.
18602         * lib/stdarg.in.h: Likewise.
18603         * lib/stddef.in.h: Likewise.
18604         * lib/stdint.in.h: Likewise.
18605         * lib/stdio.in.h: Likewise.
18606         * lib/stdlib.in.h: Likewise.
18607         * lib/string.in.h: Likewise.
18608         * lib/strings.in.h: Likewise.
18609         * lib/sys_file.in.h: Likewise.
18610         * lib/sys_ioctl.in.h: Likewise.
18611         * lib/sys_select.in.h: Likewise.
18612         * lib/sys_socket.in.h: Likewise.
18613         * lib/sys_stat.in.h: Likewise.
18614         * lib/sys_time.in.h: Likewise.
18615         * lib/sys_times.in.h: Likewise.
18616         * lib/sys_uio.in.h: Likewise.
18617         * lib/sys_utsname.in.h: Likewise.
18618         * lib/sys_wait.in.h: Likewise.
18619         * lib/sysexits.in.h: Likewise.
18620         * lib/termios.in.h: Likewise.
18621         * lib/time.in.h: Likewise.
18622         * lib/unistd.in.h: Likewise.
18623         * lib/wchar.in.h: Likewise.
18624         * lib/wctype.in.h: Likewise.
18625         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
18626         * modules/ctype (Makefile.am): Likewise.
18627         * modules/dirent (Makefile.am): Likewise.
18628         * modules/errno (Makefile.am): Likewise.
18629         * modules/fcntl-h (Makefile.am): Likewise.
18630         * modules/float (Makefile.am): Likewise.
18631         * modules/getopt-posix (Makefile.am): Likewise.
18632         * modules/iconv-h (Makefile.am): Likewise.
18633         * modules/langinfo (Makefile.am): Likewise.
18634         * modules/locale (Makefile.am): Likewise.
18635         * modules/math (Makefile.am): Likewise.
18636         * modules/netdb (Makefile.am): Likewise.
18637         * modules/netinet_in (Makefile.am): Likewise.
18638         * modules/poll-h (Makefile.am): Likewise.
18639         * modules/pthread (Makefile.am): Likewise.
18640         * modules/pty (Makefile.am): Likewise.
18641         * modules/sched (Makefile.am): Likewise.
18642         * modules/search (Makefile.am): Likewise.
18643         * modules/selinux-h (Makefile.am): Likewise.
18644         * modules/signal (Makefile.am): Likewise.
18645         * modules/spawn (Makefile.am): Likewise.
18646         * modules/stdarg (Makefile.am): Likewise.
18647         * modules/stddef (Makefile.am): Likewise.
18648         * modules/stdint (Makefile.am): Likewise.
18649         * modules/stdio (Makefile.am): Likewise.
18650         * modules/stdlib (Makefile.am): Likewise.
18651         * modules/string (Makefile.am): Likewise.
18652         * modules/strings (Makefile.am): Likewise.
18653         * modules/sys_file (Makefile.am): Likewise.
18654         * modules/sys_ioctl (Makefile.am): Likewise.
18655         * modules/sys_select (Makefile.am): Likewise.
18656         * modules/sys_socket (Makefile.am): Likewise.
18657         * modules/sys_stat (Makefile.am): Likewise.
18658         * modules/sys_time (Makefile.am): Likewise.
18659         * modules/sys_times (Makefile.am): Likewise.
18660         * modules/sys_uio (Makefile.am): Likewise.
18661         * modules/sys_utsname (Makefile.am): Likewise.
18662         * modules/sys_wait (Makefile.am): Likewise.
18663         * modules/sysexits (Makefile.am): Likewise.
18664         * modules/termios (Makefile.am): Likewise.
18665         * modules/time (Makefile.am): Likewise.
18666         * modules/unistd (Makefile.am): Likewise.
18667         * modules/wchar (Makefile.am): Likewise.
18668         * modules/wctype-h (Makefile.am): Likewise.
18669         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
18670
18671 2011-05-29  Bruno Haible  <bruno@clisp.org>
18672
18673         assert-h: Allow multiple gnulib generated replacements to coexist.
18674         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
18675
18676 2011-05-29  Bruno Haible  <bruno@clisp.org>
18677
18678         argp: Allow coexistence with strerror_r-posix module.
18679         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
18680         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
18681         by gnulib's <string.h> replacement), assume it has the POSIX signature,
18682         not the glibc signature.
18683
18684 2011-05-28  Bruno Haible  <bruno@clisp.org>
18685
18686         gnulib-tool: Alternative structure of testdirs, similar to --import.
18687         * gnulib-tool: New option --single-configure.
18688         (func_usage): Document it.
18689         (single_configure): New variable.
18690         (func_modules_transitive_closure_separately,
18691         func_modules_transitive_closure_separately,
18692         func_determine_use_libtests, func_modules_add_dummy_separately,
18693         func_modules_to_filelist_separately): New functions, extracted from
18694         func_import.
18695         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
18696         (func_import): Use the new functions.
18697         (func_create_testdir): Set final_modules. Handle $single_configure =
18698         true case.
18699
18700 2011-05-28  Bruno Haible  <bruno@clisp.org>
18701
18702         getloadavg: Remove an unreliable safety check.
18703         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
18704         getloadavg.c is in place.
18705         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
18706         Reported by Sam Steingold <sds@gnu.org>.
18707
18708 2011-05-28  Bruno Haible  <bruno@clisp.org>
18709
18710         doc: Cleanup yet another file produced by texinfo.tex.
18711         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
18712
18713 2011-05-28  Bruno Haible  <bruno@clisp.org>
18714
18715         Finish the conditional dependencies mechanism.
18716         * gnulib-tool: New option --no-conditional-dependencies.
18717         (func_usage): Document it. Don't mark --conditional-dependencies as
18718         experimental.
18719         (cond_dependencies): The possible values can now be true, false, empty.
18720         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
18721         (func_import): Store setting in gnulib-cache.m4 and read it from there.
18722         * doc/gnulib-tool.texi (Conditional dependencies): New section.
18723
18724 2011-05-28  Bruno Haible  <bruno@clisp.org>
18725
18726         doc: Use a recent texinfo.tex.
18727         * doc/Makefile (tex_opts): New variable.
18728         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
18729
18730 2011-05-28  Jim Meyering  <meyering@redhat.com>
18731
18732         intprops.h: adjust comment to match code change
18733         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
18734         only once, it *may* have side effects.  Also fix an unrelated typo.
18735         (_GL_INT_SIGNED): Likewise.
18736
18737 2011-05-26  Simon Josefsson  <simon@josefsson.org>
18738
18739         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
18740
18741 2011-05-26  Bruno Haible  <bruno@clisp.org>
18742
18743         mbsrchr: Avoid collision with system function on Interix.
18744         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
18745         Reported by Markus Duft <mduft@gentoo.org>.
18746
18747 2011-05-15  James Youngman  <jay@gnu.org>
18748
18749         getopt: for ambiguous options, enumerate the possibilities.
18750         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
18751         the ambiguous options when an ambiguous prefix is given. This was
18752         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
18753         glibc change was
18754         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
18755
18756 2011-05-25  Eric Blake  <eblake@redhat.com>
18757
18758         getcwd: work around mingw bug
18759         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
18760         * doc/posix-functions/getcwd.texi (getcwd): Document it.
18761         Reported by Matthias Bolte.
18762
18763 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
18764
18765         test-intprops: disable -Wtype-limits diagnostics
18766         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
18767         diagnostics.  Otherwise, the integer overflow macros generate many
18768         diagnostics.  Reported by Jim Meyering in
18769         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
18770
18771         intprops: shorten, to pacify gcc -Woverlength-strings
18772         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
18773         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
18774         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
18775         likely to run afoul of C compiler limits for string constant lengths.
18776         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
18777
18778 2011-05-24  Eric Blake  <eblake@redhat.com>
18779
18780         docs: document recently fixed glibc printf bug
18781         * doc/posix-functions/fprintf.texi (fprintf): Document it.
18782         * doc/posix-functions/printf.texi (printf): Likewise.
18783         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
18784         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
18785
18786         closein-tests: convert to init.sh
18787         * modules/closein-tests (Files): Add init.sh
18788         * tests/test-closein.sh Use it.
18789
18790         yesno-tests: convert to init.sh
18791         * modules/yesno-tests (Files): Add init.sh.
18792         * tests/test-yesno.sh: Use it.
18793
18794         atexit-tests: ensure reliable exit status
18795         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
18796         Reported by Bruno Haible.
18797
18798 2011-05-24  Bruno Haible  <bruno@clisp.org>
18799
18800         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
18801         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
18802         gl_PREREQ_STRERROR_R invocations from here...
18803         * modules/strerror_r-posix (configure.ac): ... to here.
18804
18805 2011-05-24  Eric Blake  <eblake@redhat.com>
18806
18807         strerror_r: fix missing header
18808         * lib/strerror_r.c: Avoid compiler warning about snprintf.
18809
18810         strerror_r: fix AIX test failures
18811         * lib/strerror_r.c (strerror_r): Convert silent truncation to
18812         ERANGE failure.
18813
18814         strerror_r: fix Solaris test failures
18815         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
18816         failures.
18817         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
18818
18819         strerror_r: enforce POSIX recommendations
18820         * lib/strerror_r.c (safe_copy): New helper method.
18821         (strerror_r): Guarantee a non-empty string.
18822         * tests/test-strerror_r.c (main): Enhance tests to incorporate
18823         recent POSIX rulings and to match our strerror guarantees.
18824         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
18825
18826 2011-05-24  Jim Meyering  <meyering@redhat.com>
18827
18828         test-perror2.c: avoid warning about unused variable
18829         * tests/test-perror2.c (main): Remove declaration of unused "fp".
18830
18831 2011-05-24  Eric Blake  <eblake@redhat.com>
18832
18833         perror: avoid spurious test failure on HP-UX
18834         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
18835
18836         tests: fix logic bug in init.sh
18837         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
18838         shell.
18839
18840 2011-05-24  Jim Meyering  <meyering@redhat.com>
18841
18842         utimensat: do not reference an out-of-scope buffer
18843         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
18844         declared in an inner scope, yet "times" would be dereferenced outside
18845         the scope in which "ts" was valid.
18846         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
18847         of ts[2] "out/up", so that the use of aliased "times" (via
18848         "times = ts;") does not end up referencing an out-of-scope "ts"
18849
18850         opendir-safer.c: don't clobber errno; don't close negative FD
18851         * lib/opendir-safer.c (opendir_safer):
18852         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
18853         file descriptor, and more importantly, don't clobber the
18854         offending errno value with EINVAL.  Before, upon failure
18855         of dup_safer, we would pass the negative file descriptor to
18856         fdopendir, which would clobber errno.
18857
18858 2011-05-23  Bruno Haible  <bruno@clisp.org>
18859
18860         idcache: Fix module description.
18861         * modules/idcache (Include): Set to "idcache.h".
18862
18863 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
18864
18865         gnulib-tool: fix portability problem with MacOS sed
18866         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
18867         before the "}".  Problem reported by Leo in
18868         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
18869         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
18870         sed_extract_condition1, sed_extract_condition2.
18871
18872 2011-05-23  Bruno Haible  <bruno@clisp.org>
18873
18874         hash: Simplify autoconf macro.
18875         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
18876
18877 2011-05-23  Bruno Haible  <bruno@clisp.org>
18878
18879         getugroups: Fix module description.
18880         * modules/getugroups (Include): Set to "getugroups.h".
18881
18882 2011-05-23  Bruno Haible  <bruno@clisp.org>
18883
18884         linkat: Simplify autoconf macro.
18885         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
18886
18887 2011-05-23  Bruno Haible  <bruno@clisp.org>
18888             Eric Blake  <eblake@redhat.com>
18889
18890         linkat, renameat: Update dependencies.
18891         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
18892         * modules/linkat (Depends-on): Likewise. Remove also readlink,
18893         symlinkat.
18894
18895 2011-05-23  Jim Meyering  <meyering@redhat.com>
18896
18897         maint.mk: more tight_scope improvements
18898         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
18899         (_gl_TS_headers): Define only in if-0'd block.
18900         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
18901         sometimes we must *not* use it.  Adjust uses accordingly.
18902         (sc_tight_scope): Use much simpler grep-based test to determine
18903         whether we skip this rule.
18904
18905         maint.mk: generalize/improve the tight-scope rule
18906         * top/maint.mk: Emit a warning when the test is skipped.
18907         (_gl_TS_dir): Add $(srcdir)/ prefix.
18908         (_gl_TS_function_match): Simplify, rather than trying
18909         to enumerate common types.  Otherwise, it would fail to match an
18910         "extern unsigned char const *" declaration in idutils.
18911         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
18912         a way to support use of that type of macro.
18913         (_gl_TS_var_match): Simplify regexp.
18914         (_gl_TS_obj_files): New configurable variable.
18915         (_gl_TS_headers): Likewise.
18916
18917 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
18918
18919         verify: fix bug when gnulib <assert.h> is also included
18920         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
18921         is defined, not if _GL_STATIC_ASSERT_H is not defined.
18922         Perhaps there's a better way, but this fixes the immediate problem.
18923         Problem reported by Bruno Haible in
18924         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
18925
18926 2011-05-22  Bruno Haible  <bruno@clisp.org>
18927
18928         xgetcwd: Simplify autoconf macro.
18929         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
18930
18931 2011-05-22  Bruno Haible  <bruno@clisp.org>
18932
18933         New module 'mktime-internal'.
18934         * modules/mktime-internal: New file.
18935         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
18936         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
18937         mktime_internal as a C macro if libc has __mktime_internal.
18938         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
18939         conditions.
18940         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
18941
18942 2011-05-22  Bruno Haible  <bruno@clisp.org>
18943
18944         timegm: Correct mktime replacement statements.
18945         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
18946         defining mktime as a C macro. This completes a 2009-07-28 commit.
18947
18948 2011-05-22  Bruno Haible  <bruno@clisp.org>
18949
18950         timegm: Simplify autoconf macro.
18951         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
18952
18953 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
18954
18955         clock-time: change to LGPLv2+.
18956         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
18957         BSD-like but we have no mark for that; this is good enough for now.
18958
18959 2011-05-21  Bruno Haible  <bruno@clisp.org>
18960
18961         strerror_r: Fix comments.
18962         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
18963
18964 2011-05-21  Bruno Haible  <bruno@clisp.org>
18965
18966         relocatable-prog-wrapper: Fix possible link error.
18967         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
18968         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
18969         (gl_FUNC_SETENV): ... to here.
18970         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
18971         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
18972
18973 2011-05-21  Bruno Haible  <bruno@clisp.org>
18974
18975         relocatable-prog-wrapper: Assume strerror() exists.
18976         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
18977         m4/strerror.m4.
18978         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
18979         * lib/relocwrapper.c: Remove mention of strerror module.
18980         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
18981         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
18982         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
18983         C macro.
18984
18985 2011-05-21  Bruno Haible  <bruno@clisp.org>
18986
18987         select: Simplify replacement idiom.
18988         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
18989         Win32 platforms.
18990         * lib/sys_select.in.h (select): Simplify accordingly.
18991         * modules/select (Depends-on): Likewise.
18992
18993 2011-05-21  Bruno Haible  <bruno@clisp.org>
18994
18995         mkdir-p: Simplify autoconf macro.
18996         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
18997         gl_FUNC_LCHOWN.
18998
18999 2011-05-21  Eric Blake  <eblake@redhat.com>
19000
19001         strerror_r: avoid clobbering strerror on cygwin
19002         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
19003         fall back instead to sys_errlist.
19004         * modules/strerror (configure.ac): Add witness.
19005         * tests/test-strerror_r.c (main): Enhance test.
19006         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
19007         * tests/test-perror2.c (main): Free memory before exit.
19008
19009 2011-05-21  Bruno Haible  <bruno@clisp.org>
19010
19011         mkdtemp: Use gnulib naming conventions.
19012         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
19013         * modules/mkdtemp (configure.ac): Update.
19014
19015 2011-05-20  Eric Blake  <eblake@redhat.com>
19016
19017         strerror_r: avoid corrupting errno on Solaris
19018         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
19019         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
19020
19021         strerror_r: avoid compiler warning
19022         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
19023
19024         strerror_r: simplify AIX code
19025         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
19026
19027         test-perror: avoid spurious failure on FreeBSD
19028         * modules/perror-tests (Depends-on): Add strerror, now that
19029         strerror_r no longer pulls it in.
19030
19031 2011-05-20  Bruno Haible  <bruno@clisp.org>
19032
19033         strerror_r-posix: Remove unused dependencies.
19034         * modules/strerror_r-posix (Depends-on): Remove strerror.
19035         Reported by Eric Blake.
19036
19037 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
19038
19039         intprops: remove assumption about A|B representation
19040         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
19041         is a valid integer if both A and B are.  Although this is true for
19042         all known practical hosts, the C standard doesn't guarantee it,
19043         and the code need not assume it.  Also, this change may work around
19044         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
19045         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
19046
19047 2011-05-20  Eric Blake  <eblake@redhat.com>
19048
19049         perror: work around FreeBSD bug
19050         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
19051         is broken.  Move AC_LIBOBJ...
19052         * modules/perror (configure.ac): Here.
19053         * doc/posix-functions/perror.texi (perror): Document this.
19054         * tests/test-perror2.c (main): Enhance test.
19055
19056         test-perror: check for strerror interactions
19057         * tests/macros.h (STREQ): Add macro.
19058         * modules/perror-tests (Files): Add second test.
19059         * tests/test-perror2.c (main): New file.
19060         * doc/posix-functions/perror.texi (perror): Document glibc bug.
19061
19062         test-perror: rewrite to use init script
19063         * modules/perror-tests (Files): Add init.sh.
19064         * tests/test-perror.sh: Use temporary directory.
19065
19066 2011-05-20  Jim Meyering  <meyering@redhat.com>
19067
19068         maint: replace misused "a" with "an"
19069         * doc/intprops.texi: "a integer"
19070         * doc/regex.texi: "a explanation"
19071         * lib/alignof.h: "a object"
19072         * lib/argmatch.h: "a explanation"
19073         * lib/argp-help.c: "a option" and "a OPTION_DOC"
19074         * lib/stdint.in.h: "a integer"
19075         * lib/userspec.c: "a owner"
19076         * doc/gnulib.texi: Fix "a idea", and reword.
19077
19078 2011-05-19  Jim Meyering  <meyering@redhat.com>
19079
19080         maint: correct misuse of "a" and "an"
19081         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
19082         * lib/argp-help.c: "an docum...": s/an/a/
19083         * lib/argp-parse.c: "An vector": s/An/A/
19084         * lib/execute.c: "an native": s/an/a/
19085         * lib/spawn-pipe.c: Likewise.
19086         * lib/gc.h: "an Gc_rc": s/an/a/
19087         * lib/unigbrk.in.h: "an grapheme": s/an/a/
19088         * lib/fts.c: "an stat.st_dev": s/an/a/
19089
19090 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19091
19092         intprops-tests: work around HP-UX 11.23 cc bug with constants
19093         * tests/test-intprops.c (VERIFY): New macro.
19094         (main): Use it, instead of verify, to work around the compiler bug; see
19095         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19096
19097         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
19098         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
19099         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
19100         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
19101         (_GL_REMAINDER_OVERFLOW): Use it.
19102
19103         intprops-tests: revert unsigned part of previous change
19104         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
19105         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
19106         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
19107         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
19108
19109 2011-05-19  Bruno Haible  <bruno@clisp.org>
19110
19111         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
19112         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
19113         strerror_r() returned without filling the buffer.
19114         Reported by Eric Blake.
19115
19116 2011-05-19  Eric Blake  <eblake@redhat.com>
19117
19118         strerror_r: guarantee unchanged errno
19119         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
19120         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
19121         failure.
19122         * tests/test-strerror_r.c (main): Enhance test.
19123
19124 2011-05-19  Bruno Haible  <bruno@clisp.org>
19125
19126         strerror_r: Reorder #if blocks.
19127         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
19128         for consistency with the previous commit.
19129
19130 2011-05-19  Bruno Haible  <bruno@clisp.org>
19131
19132         perror: Avoid clobbering the strerror buffer when possible.
19133         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
19134         * lib/strerror.c: Include it.
19135         * modules/strerror (Files): Add lib/strerror-impl.h.
19136         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
19137         (my_strerror): New function, defined through lib/strerror-impl.h.
19138         (perror): Use it instead of strerror.
19139         * modules/perror (Files): Add lib/strerror-impl.h.
19140         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
19141
19142 2011-05-19  Eric Blake  <eblake@redhat.com>
19143
19144         strerror_r: fix on newer cygwin
19145         * lib/strerror_r.c (strerror_r): Cygwin now has
19146         __xpg_strerror_r, use it.
19147
19148 2011-05-19  Bruno Haible  <bruno@clisp.org>
19149
19150         strerror_r: Avoid clobbering the strerror buffer when possible.
19151         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
19152         (sys_nerr, sys_errlist): New declarations.
19153         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
19154         HP-UX, native Win32, IRIX, and 32-bit Solaris.
19155         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
19156
19157 2011-05-19  Bruno Haible  <bruno@clisp.org>
19158
19159         strerror_r: Fix test failure on mingw.
19160         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
19161         EXTEND_STRERROR_R.
19162         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
19163         macros from errno.in.h instead.
19164
19165 2011-05-19  Eric Blake  <eblake@redhat.com>
19166
19167         strerror: relax test for Solaris
19168         * tests/test-strerror.c (main): Permit Solaris behavior.
19169         * tests/test-strerror_r.c (main): Likewise.
19170
19171         strerror: enforce POSIX ruling on strerror(0)
19172         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
19173         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
19174         * lib/strerror_r.c (rpl_strerror_r): Work around it.
19175         * doc/posix-functions/strerror.texi (strerror): Document it.
19176         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
19177         * tests/test-strerror.c (main): Strengthen test.
19178         * tests/test-strerror_r.c (main): Likewise.
19179
19180 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
19181
19182         intprop-tests: port to older and more-pedantic compilers
19183         * modules/intprops-tests (Files): Add tests/macros.h.
19184         * tests/test-intprops.c: Include macros.h.
19185         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
19186         it's no longer documented to expand to an integer constant expression.
19187         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
19188         argument is floating point, as it's no longer documented to expand
19189         to an integer constant expression in that case.
19190         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
19191         compiler bugs reported by Bruno Haible.  See
19192         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19193         (U0, U1): New constants, to work around the same bugs.  Also,
19194         in tests, use e.g., "(unsigned int) 39" rather than "39u".
19195
19196         intprops: work around C compiler bugs
19197         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
19198         bug in Sun C 5.11 2010/08/13 and other compilers; see
19199         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
19200
19201         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
19202         * doc/intprops.texi (Integer Type Determination): Fix
19203         documentation for TYPE_IS_INTEGER: it returns an constant
19204         expression, not an integer constant expression.  Fix doc for
19205         TYPE_SIGNED: it returns an integer constant expression only if its
19206         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
19207         hardly worth documented that way....)
19208
19209 2011-05-18  Bruno Haible  <bruno@clisp.org>
19210
19211         strerror_r: Avoid clobbering the strerror buffer when possible.
19212         * lib/strerror_r.c (strerror_r): Merge the three implementations.
19213         Handle gnulib defined errno values here. When strerror() returns NULL
19214         or an empty string, return EINVAL.
19215         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
19216         gnulib defined errno values here.
19217         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
19218
19219 2011-05-18  Eric Blake  <eblake@redhat.com>
19220
19221         fnmatch: avoid compiler warning
19222         * lib/fnmatch_loop.c (FCT): Use correct type.
19223         Reported by Matthias Bolte.
19224
19225 2011-05-13  Jim Meyering  <meyering@redhat.com>
19226
19227         maint.mk: three new prohibit_<HDR>_without_use rules
19228         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
19229         (sc_prohibit_stdio-safer_without_use): Likewise.
19230         (sc_prohibit_xfreopen_without_use): Likewise.
19231
19232 2011-05-17  Jim Meyering  <meyering@redhat.com>
19233
19234         announce-gen: fail if the NEWS delta is empty
19235         If there's nothing noteworthy in NEWS, then either you forgot
19236         or you shouldn't be releasing.
19237         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
19238
19239 2011-05-17  Pádraig Brady <P@draigBrady.com>
19240
19241         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
19242         reserved symbols starting with double underscore from the check.
19243
19244 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
19245
19246         intprops: add doc
19247         * doc/intprops.texi: New file, documenting intprops.
19248         * doc/gnulib.texi (Particular Modules): Include it.
19249
19250         verify: add doc to gnulib manual and fix example
19251         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
19252         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
19253         (Compile-time Assertions): Fix example so it can't overflow.
19254
19255 2011-05-17  Jim Meyering  <meyering@redhat.com>
19256
19257         warnings.m4: don't usurp save_CPPFLAGS variable name
19258         * m4/warnings.m4: Prefix local temporary variable name with gl_.
19259
19260         doc: fix typo
19261         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
19262
19263 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19264             Bruno Haible  <bruno@clisp.org>
19265
19266         doc: Tweak recent change.
19267         * README (Portability guidelines): Tweak new text.
19268         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
19269         Interix 6.1.
19270
19271 2011-05-16  Eric Blake  <eblake@redhat.com>
19272
19273         inttypes: avoid autoconf warning
19274         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
19275         * m4/stdint.m4 (gl_STDINT_H): Likewise.
19276
19277 2011-05-16  Sam Steingold <sds@gnu.org>
19278         and Eric Blake  <eblake@redhat.com>
19279
19280         vc-list-files: accept multiple directory operands
19281         * build-aux/vc-list-files: Iterate over all remaining operands.
19282
19283 2011-05-16  Bruno Haible  <bruno@clisp.org>
19284
19285         Fix confusion regarding deprecated modules.
19286         * modules/calloc (Status, Notice): Mark module as deprecated, not
19287         obsolete.
19288         * modules/fnmatch-posix (Status, Notice): Likewise.
19289         * modules/getdate (Status, Notice): Likewise.
19290         * modules/getopt (Status, Notice): Likewise.
19291         * modules/malloc (Status, Notice): Likewise.
19292         * modules/pipe (Status, Notice): Likewise.
19293         * modules/realloc (Status, Notice): Likewise.
19294         * modules/rename-dest-slash (Status, Notice): Likewise.
19295         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
19296         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
19297         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
19298         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
19299         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
19300
19301 2011-05-16  Bruno Haible  <bruno@clisp.org>
19302
19303         doc: List the target platforms.
19304         * doc/gnulib-intro.texi (Target Platforms): New section.
19305         * doc/gnulib.texi (Introduction): Update menu.
19306         * README (Portability guidelines): Refer to the new section. Update
19307         statement about oldest supported environment. Remove rationale why
19308         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
19309         unportable C89 function.
19310         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
19311         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
19312
19313 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19314
19315         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
19316
19317 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
19318
19319         intprops-tests: new module
19320         * modules/intprops-tests, tests/test-intprops.c: New files.
19321
19322         intprops: add safe, portable integer overflow checking
19323         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
19324         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
19325         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
19326         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
19327         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
19328         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
19329         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
19330         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
19331         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
19332         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
19333         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
19334
19335 2011-05-12  James Youngman  <jay@gnu.org>
19336
19337         Add a test for glibc's Bugzilla bug #12378.
19338         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
19339         doesn't allow the literal matching of a lone "[" (which is
19340         required by POSIX).
19341         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
19342
19343 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
19344
19345         Sync glibc change fixing Bugzilla bug #12378.
19346         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
19347         beginning and fall back to matching as normal character if the
19348         string ends before the matching ']' is found.  This is what POSIX
19349         requires.
19350
19351 2011-05-13  Eric Blake  <eblake@redhat.com>
19352
19353         getcwd-lgpl: relax test for FreeBSD
19354         * doc/posix-functions/getcwd.texi (getcwd): Document portability
19355         issue.
19356         * tests/test-getcwd-lgpl.c (main): Relax test.
19357         Reported by Matthias Bolte.
19358
19359 2011-05-11  Eric Blake  <eblake@redhat.com>
19360
19361         test-fflush: silence compiler warning
19362         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
19363
19364 2011-05-11  Bruno Haible  <bruno@clisp.org>
19365
19366         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
19367         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
19368         * modules/canonicalize (Depends-on): Add 'nocrash'.
19369         * modules/canonicalize-lgpl (Depends-on): Likewise.
19370         * doc/posix-functions/realpath.texi: Update platforms list.
19371         Reported by Ryan Schmidt <ryandesign@macports.org>.
19372
19373 2011-05-11  Bruno Haible  <bruno@clisp.org>
19374
19375         group-member: Declare function in <unistd.h>.
19376         * lib/unistd.in.h (group_member): New declaration.
19377         * lib/group-member.h: Remove file.
19378         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
19379         * tests/test-unistd-c++.cc: Check signature of group_member.
19380         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
19381         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
19382         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
19383         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
19384         HAVE_GROUP_MEMBER.
19385         * modules/group-member (Files): Remove lib/group-member.h.
19386         (Depends-on): Add unistd. Specify conditions.
19387         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19388         (Include): Change to <unistd.h>.
19389         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
19390         HAVE_GROUP_MEMBER.
19391         * NEWS: Mention the change.
19392         * lib/euidaccess.c: Don't include group-member.h.
19393
19394 2011-05-11  Bruno Haible  <bruno@clisp.org>
19395
19396         group-member: Document module.
19397         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
19398         module.
19399
19400 2011-05-11  Bruno Haible  <bruno@clisp.org>
19401
19402         fclose: Fix mistake earlier today.
19403         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
19404
19405 2011-05-11  Eric Blake  <eblake@redhat.com>
19406
19407         fclose: preserve fflush errors
19408         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
19409         Reported by Jim Meyering.
19410
19411         bootstrap: support a prereq of 'rpcgen -' on RHEL5
19412         * build-aux/bootstrap (check_versions): When no specific version
19413         is required, merely check that the app produces an exit status
19414         that indicates its existence.
19415
19416         maint.mk: drop redundant check
19417         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
19418         the same but better.
19419
19420 2011-05-11  Bruno Haible  <bruno@clisp.org>
19421
19422         fclose: Fix possible link error.
19423         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
19424         unregister_shadow_fd. Improve comments.
19425         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
19426         Eric Blake.
19427
19428 2011-05-11  Jim Meyering  <meyering@redhat.com>
19429
19430         maint.mk: improve "can not" detection and generalize rule name
19431         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
19432         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
19433         Use the same technique as in sc_prohibit_doubled_word, so that
19434         we recognize "can not" also when the words are separated by a newline.
19435         Suggested by Eric Blake.
19436         (perl_filename_lineno_text_): Define.  Factored out of...
19437         (prohibit_doubled_word_): ...here.  Use the new definition.
19438         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
19439         (prohibit_undesirable_word_seq_RE_): New overridable variable.
19440         (ignore_undesirable_word_sequence_RE_): New overridable variable.
19441
19442 2011-05-10  Eric Blake  <eblake@redhat.com>
19443
19444         fclose: avoid double close race when possible
19445         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
19446         all but WINDOWS_SOCKETS.
19447
19448 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
19449
19450         openat: correct new comment
19451         * lib/openat-proc.c (openat_proc_name): Correct the comment.
19452
19453 2011-05-10  Jim Meyering  <meyering@redhat.com>
19454
19455         openat: add comments
19456         * lib/openat-proc.c (openat_proc_name): Add comments,
19457         mostly from Eric Blake.
19458
19459 2011-05-09  Eric Blake  <eblake@redhat.com>
19460
19461         openat: reduce syscalls in first probe of /proc
19462         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
19463         be a directory.  Simplify the probe for .. bugs.
19464         * modules/openat (Depends-on): Drop same-inode.
19465         Reported by Bastien ROUCARIES.
19466
19467 2011-05-09  Jim Meyering  <meyering@redhat.com>
19468
19469         maint.mk: change semantics/name of tight_scope variables
19470         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
19471         Rename variables to align with semantics that make them more useful.
19472
19473         maint.mk: tweak new rule's name not to impinge
19474         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
19475         (sc_tight_scope): Use new rule name rather than $@-0.
19476
19477         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
19478         * top/maint.mk (sc_tight_scope): New rule.
19479         (sc_tight_scope-0): New rule, ifdef'd out.
19480         (_gl_TS_dir): Default.
19481         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
19482         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
19483
19484 2011-05-09  Simon Josefsson  <simon@josefsson.org>
19485
19486         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
19487         Haible <bruno@clisp.org>.
19488
19489 2011-05-08  Bruno Haible  <bruno@clisp.org>
19490
19491         Comments.
19492         * m4/isnanf.m4: Add comment.
19493         * m4/isnanl.m4: Likewise.
19494
19495 2011-05-08  Bruno Haible  <bruno@clisp.org>
19496
19497         glob: Remove obsolete macro.
19498         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
19499
19500 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
19501
19502         intprops: Sun C 5.11 supports __typeof__
19503         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
19504         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
19505         which is new.
19506         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
19507
19508         intprops: switch to usual gnulib indenting and naming
19509         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
19510         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
19511
19512         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
19513
19514 2011-05-08  Jim Meyering  <meyering@redhat.com>
19515
19516         maint.mk: suppress "Entering/Leaving directory" diag in announcement
19517         * top/maint.mk (release-prep): Use make's --no-print-directory
19518         option when generating the announcement.  This eliminates the
19519         pesky "make[2]: Entering/Leaving directory" diagnostics in the
19520         generated announcement template.
19521
19522 2011-05-08  Bruno Haible  <bruno@clisp.org>
19523
19524         tzset: Fix gettimeofday wrapper on Solaris 2.6.
19525         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
19526         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
19527
19528 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
19529
19530         ignore-value, verify: Omit include files from lib_SOURCES.
19531         * modules/ignore-value, modules/verify (Makefile.am):
19532         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
19533         that leads Automake to duplicate use of am__objects_... variables
19534         in Makefile.in.  See
19535         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
19536
19537 2011-05-07  Bruno Haible  <bruno@clisp.org>
19538
19539         fclose: Simplify autoconf macro.
19540         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
19541         defined.
19542
19543 2011-05-07  Bruno Haible  <bruno@clisp.org>
19544
19545         canonicalize-lgpl: Fix autoconf macro ordering bug.
19546         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
19547         gl_STDLIB_H_DEFAULTS.
19548
19549 2011-05-06  Eric Blake  <eblake@redhat.com>
19550
19551         maintainer-makefile: make sc_po_check easier to tune
19552         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
19553         to probe for strings, such as an alternate location for gnulib.
19554
19555         fclose: guarantee behavior on seekable stdin
19556         * modules/fclose (Depends-on): Add fflush.
19557         * doc/posix-functions/fclose.texi (fclose): Document this.
19558         * tests/test-fclose.c (main): Make test for this unconditional.
19559
19560 2011-05-06  Bruno Haible  <bruno@clisp.org>
19561
19562         fflush, fpurge: Relicense under LGPLv2+.
19563         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
19564         * modules/fpurge (License): Likewise.
19565         With permission from Eric Blake and Jim Meyering.
19566         Suggested by Eric Blake.
19567
19568 2011-05-06  Karl Berry  <karl@gnu.org>
19569
19570         * MODULES.html.sh (func_all_modules): remove exit.
19571
19572 2011-05-06  Jim Meyering  <meyering@redhat.com>
19573
19574         maint.mk: use info-gnu@ as the default only for a stable release
19575         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
19576         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
19577         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
19578         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
19579
19580 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19581
19582         assert-h: new module, which supports C1X-style static_assert
19583         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
19584         * lib/verify.h: Revamp so that this can be copied into assert.h,
19585         while retaining the ability to use it standalone as before.
19586         Rename private identifiers so as not to encroach on the
19587         standard C namespace, since this is now used by assert.h.
19588         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
19589         the old verify_true.
19590         (_GL_VERIFY_TRUE): New macro, with much of the contents of
19591         the old verify_true.  Use _GL_VERIFY_TYPE.
19592         (_GL_VERIFY): New macro, with much of the contents of the old verify.
19593         (static_assert): New macro, if _GL_STATIC_ASSERT_H
19594         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
19595         defined when this file is copied into the replacement assert.h.
19596         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
19597         and _Static_assert is not built in.
19598         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
19599         defined, and use the new macros mentioned above.
19600         * doc/posix-headers/assert.texi: Document this.
19601
19602 2011-05-05  Bruno Haible  <bruno@clisp.org>
19603
19604         fclose, fflush: Respect rules for use of AC_LIBOBJ.
19605         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
19606         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
19607         gl_REPLACE_FCLOSE here.
19608         * modules/fflush (Depends-on): Remove fclose.
19609         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
19610         combination with module 'fclose'.
19611
19612 2011-05-05  Bruno Haible  <bruno@clisp.org>
19613
19614         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
19615         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
19616         gl_FUNC_FFLUSH.
19617         (gl_FUNC_FFLUSH): Use it.
19618         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
19619         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
19620         gl_REPLACE_FSEEKO here.
19621
19622 2011-05-05  Bruno Haible  <bruno@clisp.org>
19623
19624         tzset: Relicense under LGPL.
19625         * modules/tzset (License): Change to LGPL.
19626         No agreement needed; it's a no-op.
19627
19628         strtoimax, strtoumax: Relicense under LGPL.
19629         * modules/strtoimax (License): Change to LGPL.
19630         * modules/strtoumax (License): Likewise.
19631         With permission from Jim Meyering, Paul Eggert:
19632         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
19633         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
19634
19635         getgroups: Relicense under LGPL.
19636         * modules/getgroups (License): Change to LGPL.
19637         With permission from Jim Meyering, Paul Eggert, Eric Blake:
19638         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
19639         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
19640         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19641
19642         nanosleep: Relicense under LGPL.
19643         * modules/nanosleep (License): Change to LGPL.
19644         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
19645         Haible:
19646         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
19647         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
19648         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19649         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
19650
19651         futimens: Relicense under LGPL.
19652         * modules/futimens (License): Change to LGPL.
19653         With permission from Eric Blake:
19654         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19655
19656         fflush: Relicense under LGPL.
19657         * modules/fflush (License): Change to LGPL.
19658         With permission from Eric Blake, Bruno Haible, Jim Meyering:
19659         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
19660         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
19661         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
19662
19663         tmpfile: Relicense under LGPL.
19664         * modules/tmpfile (License): Change to LGPL.
19665         With permission from Ben Pfaff:
19666         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
19667
19668         isfinite: Relicense under LGPL.
19669         * modules/isfinite (License): Change to LGPL.
19670         With permission from Ben Pfaff, Bruno Haible:
19671         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
19672         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
19673
19674         acosl..tanl: Relicense under LGPL.
19675         * modules/acosl (License): Change to LGPL.
19676         * modules/asinl (License): Likewise.
19677         * modules/atanl (License): Likewise.
19678         * modules/cosl (License): Likewise.
19679         * modules/expl (License): Likewise.
19680         * modules/logl (License): Likewise.
19681         * modules/sinl (License): Likewise.
19682         * modules/sqrtl (License): Likewise.
19683         * modules/tanl (License): Likewise.
19684         Source code originally from glibc and Paolo Bonzini. Agreements:
19685         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
19686         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
19687
19688 2011-05-05  Bruno Haible  <bruno@clisp.org>
19689
19690         signal: Define sighandler_t.
19691         * lib/signal.in.h (sighandler_t): New type.
19692         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
19693         whether sighandler_t is defined.
19694         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
19695         * modules/signal (Depends-on): Add extensions.
19696         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
19697         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
19698         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
19699
19700 2011-05-05  Eric Blake  <eblake@redhat.com>
19701
19702         maint: remove useless REPLACE_*_H macros
19703         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
19704         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
19705         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
19706         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
19707         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
19708         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
19709         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
19710         * m4/btowc.m4: Update callers.
19711         * m4/dirfd.m4: Likewise.
19712         * m4/duplocale.m4: Likewise.
19713         * m4/fchdir.m4: Likewise.
19714         * m4/fdopendir.m4: Likewise.
19715         * m4/inet_ntop.m4: Likewise.
19716         * m4/inet_pton.m4: Likewise.
19717         * m4/ioctl.m4: Likewise.
19718         * m4/mbrlen.m4: Likewise.
19719         * m4/mbrtowc.m4: Likewise.
19720         * m4/mbsinit.m4: Likewise.
19721         * m4/mbsnrtowcs.m4: Likewise.
19722         * m4/mbsrtowcs.m4: Likewise.
19723         * m4/poll.m4: Likewise.
19724         * m4/setlocale.m4: Likewise.
19725         * m4/wcrtomb.m4: Likewise.
19726         * m4/wcsnrtombs.m4: Likewise.
19727         * m4/wcsrtombs.m4: Likewise.
19728         * m4/wctob.m4: Likewise.
19729         * m4/wcwidth.m4: Likewise.
19730         * modules/posix_spawn: Likewise.
19731         * modules/posix_spawn_file_actions_addclose: Likewise.
19732         * modules/posix_spawn_file_actions_adddup2: Likewise.
19733         * modules/posix_spawn_file_actions_addopen: Likewise.
19734         * modules/posix_spawn_file_actions_destroy: Likewise.
19735         * modules/posix_spawn_file_actions_init: Likewise.
19736         * modules/posix_spawnattr_destroy: Likewise.
19737         * modules/posix_spawnattr_getflags: Likewise.
19738         * modules/posix_spawnattr_getpgroup: Likewise.
19739         * modules/posix_spawnattr_getschedparam: Likewise.
19740         * modules/posix_spawnattr_getschedpolicy: Likewise.
19741         * modules/posix_spawnattr_getsigdefault: Likewise.
19742         * modules/posix_spawnattr_getsigmask: Likewise.
19743         * modules/posix_spawnattr_init: Likewise.
19744         * modules/posix_spawnattr_setflags: Likewise.
19745         * modules/posix_spawnattr_setpgroup: Likewise.
19746         * modules/posix_spawnattr_setschedparam: Likewise.
19747         * modules/posix_spawnattr_setschedpolicy: Likewise.
19748         * modules/posix_spawnattr_setsigdefault: Likewise.
19749         * modules/posix_spawnattr_setsigmask: Likewise.
19750         * modules/posix_spawnp: Likewise.
19751
19752 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
19753
19754         Add option to do-release-commit-and-tag to specify branch.
19755         * build-aux/do-release-commit-and-tag: Add --branch.
19756
19757 2011-05-03  Bruno Haible  <bruno@clisp.org>
19758
19759         Avoid unnecessary compilation units, through conditional dependencies.
19760         * modules/accept (Depends-on): Add conditions to the dependencies.
19761         * modules/acosl (Depends-on): Likewise.
19762         * modules/argz (Depends-on): Likewise.
19763         * modules/asinl (Depends-on): Likewise.
19764         * modules/atanl (Depends-on): Likewise.
19765         * modules/atoll (Depends-on): Likewise.
19766         * modules/bind (Depends-on): Likewise.
19767         * modules/btowc (Depends-on): Likewise.
19768         * modules/canonicalize-lgpl (Depends-on): Likewise.
19769         * modules/ceil (Depends-on): Likewise.
19770         * modules/ceilf (Depends-on): Likewise.
19771         * modules/ceill (Depends-on): Likewise.
19772         * modules/chdir-long (Depends-on): Likewise.
19773         * modules/chown (Depends-on): Likewise.
19774         * modules/close (Depends-on): Likewise.
19775         * modules/connect (Depends-on): Likewise.
19776         * modules/cosl (Depends-on): Likewise.
19777         * modules/dirfd (Depends-on): Likewise.
19778         * modules/dprintf (Depends-on): Likewise.
19779         * modules/dprintf-posix (Depends-on): Likewise.
19780         * modules/error (Depends-on): Likewise.
19781         * modules/euidaccess (Depends-on): Likewise.
19782         * modules/expl (Depends-on): Likewise.
19783         * modules/faccessat (Depends-on): Likewise.
19784         * modules/fchdir (Depends-on): Likewise.
19785         * modules/fclose (Depends-on): Likewise.
19786         * modules/fcntl (Depends-on): Likewise.
19787         * modules/fdopendir (Depends-on): Likewise.
19788         * modules/fflush (Depends-on): Likewise.
19789         * modules/floor (Depends-on): Likewise.
19790         * modules/floorf (Depends-on): Likewise.
19791         * modules/floorl (Depends-on): Likewise.
19792         * modules/fnmatch (Depends-on): Likewise.
19793         * modules/fopen (Depends-on): Likewise.
19794         * modules/fprintf-posix (Depends-on): Likewise.
19795         * modules/frexp (Depends-on): Likewise.
19796         * modules/frexp-nolibm (Depends-on): Likewise.
19797         * modules/frexpl (Depends-on): Likewise.
19798         * modules/frexpl-nolibm (Depends-on): Likewise.
19799         * modules/fseek (Depends-on): Likewise.
19800         * modules/fsusage (Depends-on): Likewise.
19801         * modules/ftell (Depends-on): Likewise.
19802         * modules/ftello (Depends-on): Likewise.
19803         * modules/futimens (Depends-on): Likewise.
19804         * modules/getcwd (Depends-on): Likewise.
19805         * modules/getcwd-lgpl (Depends-on): Likewise.
19806         * modules/getdelim (Depends-on): Likewise.
19807         * modules/getdomainname (Depends-on): Likewise.
19808         * modules/getgroups (Depends-on): Likewise.
19809         * modules/gethostname (Depends-on): Likewise.
19810         * modules/getline (Depends-on): Likewise.
19811         * modules/getlogin_r (Depends-on): Likewise.
19812         * modules/getopt-posix (Depends-on): Likewise.
19813         * modules/getpeername (Depends-on): Likewise.
19814         * modules/getsockname (Depends-on): Likewise.
19815         * modules/getsockopt (Depends-on): Likewise.
19816         * modules/getsubopt (Depends-on): Likewise.
19817         * modules/getusershell (Depends-on): Likewise.
19818         * modules/glob (Depends-on): Likewise.
19819         * modules/grantpt (Depends-on): Likewise.
19820         * modules/iconv_open (Depends-on): Likewise.
19821         * modules/iconv_open-utf (Depends-on): Likewise.
19822         * modules/inet_ntop (Depends-on): Likewise.
19823         * modules/inet_pton (Depends-on): Likewise.
19824         * modules/ioctl (Depends-on): Likewise.
19825         * modules/isapipe (Depends-on): Likewise.
19826         * modules/isfinite (Depends-on): Likewise.
19827         * modules/isinf (Depends-on): Likewise.
19828         * modules/lchown (Depends-on): Likewise.
19829         * modules/ldexpl (Depends-on): Likewise.
19830         * modules/link (Depends-on): Likewise.
19831         * modules/linkat (Depends-on): Likewise.
19832         * modules/listen (Depends-on): Likewise.
19833         * modules/logl (Depends-on): Likewise.
19834         * modules/lstat (Depends-on): Likewise.
19835         * modules/mbrlen (Depends-on): Likewise.
19836         * modules/mbrtowc (Depends-on): Likewise.
19837         * modules/mbsinit (Depends-on): Likewise.
19838         * modules/mbsnrtowcs (Depends-on): Likewise.
19839         * modules/mbsrtowcs (Depends-on): Likewise.
19840         * modules/mbtowc (Depends-on): Likewise.
19841         * modules/memcmp (Depends-on): Likewise.
19842         * modules/mkdir (Depends-on): Likewise.
19843         * modules/mkdtemp (Depends-on): Likewise.
19844         * modules/mkfifo (Depends-on): Likewise.
19845         * modules/mkfifoat (Depends-on): Likewise.
19846         * modules/mknod (Depends-on): Likewise.
19847         * modules/mkostemp (Depends-on): Likewise.
19848         * modules/mkostemps (Depends-on): Likewise.
19849         * modules/mkstemp (Depends-on): Likewise.
19850         * modules/mkstemps (Depends-on): Likewise.
19851         * modules/mktime (Depends-on): Likewise.
19852         * modules/nanosleep (Depends-on): Likewise.
19853         * modules/open (Depends-on): Likewise.
19854         * modules/openat (Depends-on): Likewise.
19855         * modules/perror (Depends-on): Likewise.
19856         * modules/poll (Depends-on): Likewise.
19857         * modules/popen (Depends-on): Likewise.
19858         * modules/posix_spawn (Depends-on): Likewise.
19859         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
19860         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
19861         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
19862         * modules/posix_spawnp (Depends-on): Likewise.
19863         * modules/pread (Depends-on): Likewise.
19864         * modules/printf-posix (Depends-on): Likewise.
19865         * modules/ptsname (Depends-on): Likewise.
19866         * modules/putenv (Depends-on): Likewise.
19867         * modules/pwrite (Depends-on): Likewise.
19868         * modules/readline (Depends-on): Likewise.
19869         * modules/readlink (Depends-on): Likewise.
19870         * modules/readlinkat (Depends-on): Likewise.
19871         * modules/recv (Depends-on): Likewise.
19872         * modules/recvfrom (Depends-on): Likewise.
19873         * modules/regex (Depends-on): Likewise.
19874         * modules/remove (Depends-on): Likewise.
19875         * modules/rename (Depends-on): Likewise.
19876         * modules/renameat (Depends-on): Likewise.
19877         * modules/rmdir (Depends-on): Likewise.
19878         * modules/round (Depends-on): Likewise.
19879         * modules/roundf (Depends-on): Likewise.
19880         * modules/roundl (Depends-on): Likewise.
19881         * modules/rpmatch (Depends-on): Likewise.
19882         * modules/select (Depends-on): Likewise.
19883         * modules/send (Depends-on): Likewise.
19884         * modules/sendto (Depends-on): Likewise.
19885         * modules/setenv (Depends-on): Likewise.
19886         * modules/setlocale (Depends-on): Likewise.
19887         * modules/setsockopt (Depends-on): Likewise.
19888         * modules/shutdown (Depends-on): Likewise.
19889         * modules/sigaction (Depends-on): Likewise.
19890         * modules/signbit (Depends-on): Likewise.
19891         * modules/sigprocmask (Depends-on): Likewise.
19892         * modules/sinl (Depends-on): Likewise.
19893         * modules/sleep (Depends-on): Likewise.
19894         * modules/snprintf (Depends-on): Likewise.
19895         * modules/snprintf-posix (Depends-on): Likewise.
19896         * modules/socket (Depends-on): Likewise.
19897         * modules/sprintf-posix (Depends-on): Likewise.
19898         * modules/sqrtl (Depends-on): Likewise.
19899         * modules/stat (Depends-on): Likewise.
19900         * modules/strchrnul (Depends-on): Likewise.
19901         * modules/strdup-posix (Depends-on): Likewise.
19902         * modules/strerror (Depends-on): Likewise.
19903         * modules/strerror_r-posix (Depends-on): Likewise.
19904         * modules/strndup (Depends-on): Likewise.
19905         * modules/strnlen (Depends-on): Likewise.
19906         * modules/strptime (Depends-on): Likewise.
19907         * modules/strsep (Depends-on): Likewise.
19908         * modules/strsignal (Depends-on): Likewise.
19909         * modules/strstr-simple (Depends-on): Likewise.
19910         * modules/strtod (Depends-on): Likewise.
19911         * modules/strtoimax (Depends-on): Likewise.
19912         * modules/strtok_r (Depends-on): Likewise.
19913         * modules/strtoumax (Depends-on): Likewise.
19914         * modules/symlink (Depends-on): Likewise.
19915         * modules/symlinkat (Depends-on): Likewise.
19916         * modules/tanl (Depends-on): Likewise.
19917         * modules/tcgetsid (Depends-on): Likewise.
19918         * modules/tmpfile (Depends-on): Likewise.
19919         * modules/trunc (Depends-on): Likewise.
19920         * modules/truncf (Depends-on): Likewise.
19921         * modules/truncl (Depends-on): Likewise.
19922         * modules/uname (Depends-on): Likewise.
19923         * modules/unlink (Depends-on): Likewise.
19924         * modules/unlockpt (Depends-on): Likewise.
19925         * modules/unsetenv (Depends-on): Likewise.
19926         * modules/usleep (Depends-on): Likewise.
19927         * modules/utimensat (Depends-on): Likewise.
19928         * modules/vasprintf (Depends-on): Likewise.
19929         * modules/vdprintf (Depends-on): Likewise.
19930         * modules/vdprintf-posix (Depends-on): Likewise.
19931         * modules/vfprintf-posix (Depends-on): Likewise.
19932         * modules/vprintf-posix (Depends-on): Likewise.
19933         * modules/vsnprintf (Depends-on): Likewise.
19934         * modules/vsnprintf-posix (Depends-on): Likewise.
19935         * modules/vsprintf-posix (Depends-on): Likewise.
19936         * modules/wcrtomb (Depends-on): Likewise.
19937         * modules/wcscasecmp (Depends-on): Likewise.
19938         * modules/wcscspn (Depends-on): Likewise.
19939         * modules/wcsdup (Depends-on): Likewise.
19940         * modules/wcsncasecmp (Depends-on): Likewise.
19941         * modules/wcsnrtombs (Depends-on): Likewise.
19942         * modules/wcspbrk (Depends-on): Likewise.
19943         * modules/wcsrtombs (Depends-on): Likewise.
19944         * modules/wcsspn (Depends-on): Likewise.
19945         * modules/wcsstr (Depends-on): Likewise.
19946         * modules/wcstok (Depends-on): Likewise.
19947         * modules/wcswidth (Depends-on): Likewise.
19948         * modules/wctob (Depends-on): Likewise.
19949         * modules/wctomb (Depends-on): Likewise.
19950         * modules/wctype (Depends-on): Likewise.
19951         * modules/wcwidth (Depends-on): Likewise.
19952         * modules/write (Depends-on): Likewise.
19953
19954 2011-05-03  Bruno Haible  <bruno@clisp.org>
19955
19956         Support for conditional dependencies.
19957         * doc/gnulib.texi (Module description): Document the syntax of
19958         conditional dependencies.
19959         * gnulib-tool: New option --conditional-dependencies.
19960         (func_usage): Document it.
19961         (cond_dependencies): New variable.
19962         (func_get_automake_snippet_conditional,
19963         func_get_automake_snippet_unconditional): New functions, extracted from
19964         func_get_automake_snippet.
19965         (func_get_automake_snippet): Use them.
19966         (sed_first_32_chars): New variable.
19967         (func_module_shellfunc_name): New function.
19968         (func_module_shellvar_name): New function.
19969         (func_module_conditional_name): New function.
19970         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
19971         func_cond_module_condition): New functions.
19972         (func_modules_transitive_closure): Add support for conditional
19973         dependencies.
19974         (func_emit_lib_Makefile_am): For a conditional module, enclose the
19975         conditional automake snippet in an automake conditional.
19976         (func_emit_autoconf_snippets): Emit shell functions that contain the
19977         code for conditional modules.
19978         (func_import, func_create_testdir): Update specification.
19979
19980 2011-05-03  Eric Blake  <eblake@redhat.com>
19981
19982         test-getaddrinfo: report error information
19983         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
19984
19985 2011-05-03  Jim Meyering  <meyering@redhat.com>
19986
19987         bootstrap: avoid build failure when $GZIP is set
19988         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
19989         program name.  If defined at all, it is supposed to list gzip options.
19990         Reported by Alan Curry in http://debbugs.gnu.org/8609
19991
19992 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
19993
19994         readme-release: new module with release instructions
19995         * modules/readme-release: New module.
19996         * top/README-release: New file, from coreutils, grep, diffutils.
19997         * MODULES.html.sh (Support for maintaining and releasing): Add it.
19998
19999 2011-05-02  Eric Blake  <eblake@redhat.com>
20000
20001         fflush: also replace fclose when fixing fflush
20002         * modules/fflush (Depends-on): Add fclose.
20003         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
20004         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
20005         memstreams with no backing fd.
20006         * doc/posix-functions/fclose.texi (fclose): Document the use of
20007         fflush module to fix the bug.
20008         * tests/test-fclose.c (main): Relax test when fclose is used in
20009         isolation.
20010
20011         fclose: add some tests
20012         * modules/fclose-tests: New test module.
20013         * tests/test-fclose.c: New file.
20014         * doc/posix-functions/fclose.texi (fclose): Document the bug.
20015
20016         fclose: reduced dependencies
20017         * modules/fclose (Depends-on): Switch from fflush/fseeko to
20018         simpler lseek.
20019         * lib/fclose.c (rpl_fclose): Likewise.
20020         Reported by Simon Josefsson.
20021
20022         exit: drop remaining clients
20023         * modules/argmatch (Depends-on): Replace exit with stdlib.
20024         * modules/copy-file (Depends-on): Likewise.
20025         * modules/execute (Depends-on): Likewise.
20026         * modules/exitfail (Depends-on): Likewise.
20027         * modules/obstack (Depends-on): Likewise.
20028         * modules/pagealign_alloc (Depends-on): Likewise.
20029         * modules/pipe-filter-gi (Depends-on): Likewise.
20030         * modules/pipe-filter-ii (Depends-on): Likewise.
20031         * modules/savewd (Depends-on): Likewise.
20032         * modules/spawn-pipe (Depends-on): Likewise.
20033         * modules/wait-process (Depends-on): Likewise.
20034         * modules/xsetenv (Depends-on): Likewise.
20035         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
20036         * modules/git-merge-changelog (Depends-on): Likewise.
20037         * modules/long-options (Depends-on): Likewise.
20038         * modules/pt_chown (Depends-on): Likewise.
20039         * modules/sysexits (Depends-on): Likewise.
20040
20041         freading: relax license from LGPLv3+ to LGPLv2+
20042         * modules/freading (License): Relax LGPL version.
20043
20044 2011-05-02  Bruno Haible  <bruno@clisp.org>
20045
20046         fchdir: Remove unused dependencies.
20047         * modules/fchdir (Depends-on): Remove include_next.
20048
20049 2011-05-02  Bruno Haible  <bruno@clisp.org>
20050
20051         gnulib-tool: Refactor.
20052         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
20053         from func_emit_autoconf_snippets.
20054         (func_emit_autoconf_snippets): Use it.
20055
20056 2011-05-02  Simon Josefsson  <simon@josefsson.org>
20057
20058         * NEWS: Document removal of 'exit'.
20059         * modules/exit: Remove file.
20060
20061 2011-05-01  Bruno Haible  <bruno@clisp.org>
20062
20063         Update DEPENDENCIES.
20064         * DEPENDENCIES (gettext): Recommend the newest release.
20065         Reported by Simon Josefsson.
20066
20067 2011-05-01  Bruno Haible  <bruno@clisp.org>
20068
20069         gnulib-tool: Reduce code duplication.
20070         * gnulib-tool (func_emit_autoconf_snippets): New function.
20071         (func_import, func_create_testdir): Use it.
20072
20073 2011-04-30  Eric Blake  <eblake@redhat.com>
20074
20075         fclose: don't fail on non-seekable input stream
20076         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
20077         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
20078         since fflush is allowed to fail in that case.
20079
20080 2011-04-30  Bruno Haible  <bruno@clisp.org>
20081
20082         dup3: cleanup
20083         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
20084
20085 2011-04-30  Bruno Haible  <bruno@clisp.org>
20086
20087         netdb: Make it work in C++ mode.
20088         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
20089         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
20090         module.
20091         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
20092         gl_MODULE_INDICATOR_FOR_TESTS.
20093         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
20094         * modules/netdb-c++-tests: New file.
20095         * tests/test-netdb-c++.cc: New file.
20096
20097 2011-04-30  Bruno Haible  <bruno@clisp.org>
20098
20099         New modules 'vfscanf', 'vscanf'.
20100         * modules/vfscanf: New file.
20101         * modules/vscanf: New file.
20102         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
20103         here.
20104         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
20105         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
20106
20107 2011-04-30  Bruno Haible  <bruno@clisp.org>
20108
20109         passfd: Add comments.
20110         * lib/passfd.c: Add comments about platforms.
20111
20112 2011-04-30  Bruno Haible  <bruno@clisp.org>
20113
20114         sys_uio: Make <sys/uio.h> self-contained.
20115         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
20116         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
20117
20118 2011-04-30  Bruno Haible  <bruno@clisp.org>
20119
20120         sys_socket: Ensure 'struct iovec' definition.
20121         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
20122         <sys/socket.h>.
20123         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
20124
20125 2011-04-30  Bruno Haible  <bruno@clisp.org>
20126
20127         sys_uio: Protect definition of 'struct iovec'.
20128         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
20129         it as a C struct.
20130
20131 2011-04-30  Bruno Haible  <bruno@clisp.org>
20132
20133         manywarnings: fix indentation
20134         * m4/manywarnings.m4: Indent by 2 spaces consistently.
20135
20136 2011-04-30  Pádraig Brady <P@draigBrady.com>
20137
20138         manywarnings: add -Wno-missing-field-initializers if needed.
20139         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
20140         option if it's needed to allow initialization with { 0, }
20141
20142 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
20143
20144         announce-gen: cosmetic improvement
20145         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
20146
20147 2011-04-29  Jim Meyering  <meyering@redhat.com>
20148
20149         vc-list-files: indent with spaces, not TABs
20150         * build-aux/vc-list-files: Convert leading TABs to spaces,
20151         to match the style of most other files in gnulib.
20152
20153         announce-gen: indent with spaces, not TABs
20154         * build-aux/announce-gen: Convert all TABs to spaces, to match
20155         the style of most other files in gnulib.
20156
20157 2011-04-29  Eric Blake  <eblake@redhat.com>
20158
20159         quotearg: avoid uninitialized variable use
20160         * lib/quotearg.c (quoting_options_from_style): Initialize
20161         remaining fields, and ensure that custom styles are only used via
20162         quoting_options rather than quoting_style.
20163
20164 2011-04-29  Jim Meyering  <meyering@redhat.com>
20165
20166         maint.mk: remove unused VC-tag variable
20167         * top/maint.mk (VC-tag): Remove unused variable.
20168
20169 2011-04-29  Bruno Haible  <bruno@clisp.org>
20170
20171         netdb: fix gai_strerror replacements
20172         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
20173         * modules/netdb: Substitute it.
20174
20175 2011-04-29  Jim Meyering  <meyering@redhat.com>
20176
20177         test-getcwd.c: avoid new set-but-not-used warning
20178         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
20179         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
20180         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
20181         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
20182
20183         test-hash.c: avoid a new shadowing warning
20184         * tests/test-hash.c (main): Don't shadow "dup".
20185
20186 2011-04-28  Eric Blake  <eblake@redhat.com>
20187
20188         getaddrinfo: fix gai_strerror signature
20189         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
20190         and work around mingw with UNICODE defined.
20191         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
20192         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
20193         * modules/netdb (Makefile.am): Substitute it.
20194         * lib/netdb.in.h (gai_strerror): Declare replacement.
20195         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
20196         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
20197         the fix.
20198
20199         getsockopt: avoid compiler warning
20200         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
20201         Reported by Matthias Bolte.
20202
20203         tests: drop unused link dependency
20204         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
20205         * modules/dirent-safer-tests (Makefile.am): Likewise.
20206         * modules/fdopendir-tests (Makefile.am): Likewise.
20207         * modules/mkfifoat-tests (Makefile.am): Likewise.
20208         * modules/openat-safer-tests (Makefile.am): Likewise.
20209         * modules/openat-tests (Makefile.am): Likewise.
20210         * modules/readlinkat-tests (Makefile.am): Likewise.
20211         * modules/symlinkat-tests (Makefile.am): Likewise.
20212         * modules/linkat-tests (Makefile.am): Likewise.
20213         (Depends-on): Switch to filenamecat-lgpl.
20214         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
20215         LIBINTL.
20216         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
20217         * tests/test-linkat.c (main): Don't require xalloc.
20218
20219         hash, mgetgroups: drop xalloc dependency
20220         * lib/hash.c (includes): Adjust includes.
20221         * lib/mgetgroups.c (includes): Likewise.
20222         (xgetgroups): Move...
20223         * lib/xgetgroups.c: ...to new file.
20224         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
20225         * modules/xgetgroups: New file, split from...
20226         * modules/mgetgroups: ...here.
20227         (Depends-on): Add xalloc-oversized.
20228         * modules/hash (Depends-on): Likewise.
20229         * modules/hash-tests (Depends-on): Drop xalloc.
20230         (test_hash_LDADD): Drop unused library.
20231         * tests/test-hash.c (main): Break xalloc dependency.
20232         (includes): Drop unused include.
20233
20234         xalloc-oversized: new module
20235         * modules/xalloc-oversized: New module.
20236         * modules/xalloc (Depends-on): Add it.
20237         * lib/xalloc.h (xalloc_oversized): Move...
20238         * lib/xalloc-oversized.h: ...into new file.
20239
20240         utimecmp: drop dependency on xmalloc
20241         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
20242         due to memory pressure.
20243         * modules/utimecmp (Depends-on): Drop xalloc.
20244
20245 2011-04-27  Eric Blake  <eblake@redhat.com>
20246
20247         getcwd: fix mingw bugs
20248         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
20249         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
20250         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
20251
20252 2011-04-27  Bruno Haible  <bruno@clisp.org>
20253
20254         mkstemps: Ensure declaration on MacOS X 10.5.
20255         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
20256         * doc/glibc-functions/mkstemps.texi: Document header file problem on
20257         MacOS X.
20258
20259 2011-04-27  Bruno Haible  <bruno@clisp.org>
20260
20261         mkstemp: More documentation.
20262         * doc/posix-functions/mkstemp.texi: Document header file problem on
20263         MacOS X.
20264
20265 2011-04-27  Bruno Haible  <bruno@clisp.org>
20266
20267         mkstemp: Tweak configure message when cross-compiling.
20268         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
20269         result as a guess.
20270
20271 2011-04-27  Bruno Haible  <bruno@clisp.org>
20272
20273         clean-temp: Clarify what it does.
20274         * lib/clean-temp.h: Add more comments.
20275         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
20276         module.
20277         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
20278         * doc/glibc-functions/mkstemps.texi: Likewise.
20279         * doc/glibc-functions/mkostemps.texi: Likewise.
20280
20281 2011-04-27  Eric Blake  <eblake@redhat.com>
20282
20283         fchdir: avoid extra chdir and fix test
20284         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
20285         getcwd-lgpl.
20286         * lib/fchdir.c (get_name): Any absolute name will do; it does not
20287         have to be canonical.
20288         (canonicalize_file_name): Drop unused macro.
20289         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
20290
20291         filenamecat-lgpl: fix licence
20292         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
20293         when it was first created.
20294
20295         linkat, renameat: add missing dependency
20296         * modules/linkat (Depends-on): Require getcwd-lgpl.
20297         * modules/renameat (Depends-on): Likewise.
20298
20299         tests: reduce dependencies
20300         * tests/test-linkat.c (main): Use lighter-weight getcwd.
20301         * tests/test-renameat.c (main): Likewise.
20302         * modules/linkat-tests (Depends-on): Relax dependency.
20303         * modules/renameat-tests (Depends-on): Likewise.
20304         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
20305         dependency explicit.
20306
20307         save-cwd: reduce default dependency
20308         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
20309         * lib/save-cwd.c: Update comments.
20310         * NEWS: Document the semantic change.
20311
20312         getcwd: enhance tests
20313         * tests/test-getcwd-lgpl.c: New file, taken from...
20314         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
20315         repeat long path stress tests from m4 probe.
20316         * modules/getcwd-lgpl-tests: New module.
20317         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
20318         * m4/getcwd-abort-bug.m4: Update comment.
20319         * m4/getcwd-path-max.m4: Likewise.
20320
20321         getcwd-lgpl: new module
20322         * modules/getcwd-lgpl: New module.
20323         * lib/getcwd-lgpl.c: New file.
20324         * doc/posix-functions/getcwd.texi (getcwd): Document it.
20325         * MODULES.html.sh (lacking POSIX:2008): Likewise.
20326         * modules/getcwd (configure.ac): Set C witness.
20327         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
20328
20329         getcwd: tweak comments
20330         * m4/getcwd-abort-bug.m4: Fix comments.
20331         * m4/getcwd-path-max.m4: Likewise.
20332         * m4/getcwd.m4: Likewise.
20333
20334 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
20335         and Eric Blake  <eblake@redhat.com>
20336
20337         mkstemp: replace if system version uses wrong permissions
20338         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
20339         read/write mode bits set in file created by mkstemp.
20340         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
20341
20342 2011-04-27  Eric Blake  <eblake@redhat.com>
20343
20344         passfd: avoid compiler warning
20345         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
20346         Reported by Laine Stump.
20347
20348 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
20349
20350         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
20351         required by the NetBSD (and perhaps other 4.4BSD derived) join.
20352
20353 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
20354         and Eric Blake  <eblake@redhat.com>
20355
20356         mkstemp: mention clean-temp module
20357         * lib/mkstemp.c: Add comment.
20358         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
20359
20360 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
20361
20362         inttypes: also provide default values for 32-bit tests
20363         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
20364         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
20365
20366 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
20367
20368         strtoumax: remove dependency on strtoimax
20369         This is like the strtoull change of yesterday.
20370         * modules/strtoumax (Files): Add lib/strtoimax.c.
20371         (Depends-on): Remove strtoimax and add verify.
20372
20373         inttypes-incomplete: new module
20374         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
20375         all but the PRI* and SCN* parts of gl_INTTYPES_H.
20376         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
20377         of gl_INTTYPES_H.
20378         (gl_INTTYPES_H): Rewrite in terms of these new macros.
20379         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
20380         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
20381         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
20382         * modules/strtoumax, modules/xstrtol (Depends-on):
20383         Depend on inttypes-incomplete, not inttypes.
20384         * modules/inttypes-incomplete: New module, containing the contents
20385         of the old modules/inttypes module, except that the Files: section
20386         omits m4/inttypes-pri.m4, and the configure.ac section invokes
20387         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
20388         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
20389         (Depends-on): Depend only on inttypes-incomplete.
20390         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
20391
20392         inttypes: omit now-redundant strtoimax and strtoumax work
20393         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
20394         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
20395
20396         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
20397         This supports apps that need pointers to strtoimax and strtoumax,
20398         and ports to HP-UX 11.00 64.bit, which has macros that expand to
20399         nonexistent functions.  See
20400         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
20401         et seq.
20402         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
20403         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
20404         a macro.
20405         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
20406
20407 2011-04-25  Simon Josefsson  <simon@josefsson.org>
20408
20409         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
20410
20411 2011-04-25  Bruno Haible  <bruno@clisp.org>
20412
20413         strtol, strtoul: Mark modules as obsolete.
20414         * modules/strtol (Status, Notice): New sections.
20415         * modules/strtoul (Status, Notice): New sections.
20416
20417 2011-04-25  Bruno Haible  <bruno@clisp.org>
20418
20419         strtod: Remove check for strtod, unless supporting old platforms.
20420         * modules/strtod-obsolete: New file.
20421         * m4/strtod-obsolete.m4: New file.
20422         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
20423         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
20424         * modules/strtod (Depends-on): Add strtod-obsolete.
20425         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
20426
20427 2011-04-25  Bruno Haible  <bruno@clisp.org>
20428
20429         strcase: Make module obsolete.
20430         * modules/strcase (Status, Notice): New sections.
20431
20432 2011-04-25  Bruno Haible  <bruno@clisp.org>
20433
20434         dup2: Remove check for dup2, unless supporting old obsolete platforms.
20435         * modules/dup2-obsolete: New file.
20436         * m4/dup2-obsolete.m4: New file.
20437         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
20438         gl_FUNC_DUP2_OBSOLETE is not also defined.
20439         * modules/dup2 (Depends-on): Add dup2-obsolete.
20440         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
20441
20442 2011-04-25  Bruno Haible  <bruno@clisp.org>
20443
20444         strnlen: Avoid memchr related link error on old obsolete platforms.
20445         * modules/memchr-obsolete: New file.
20446         * m4/memchr-obsolete.m4: New file.
20447         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
20448         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
20449         * modules/memchr (Depends-on): Add memchr-obsolete.
20450         * modules/strnlen (Depends-on): Likewise.
20451         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
20452
20453 2011-04-25  Jim Meyering  <meyering@redhat.com>
20454
20455         maint.mk: makefile_at_at_check extend and clean up
20456         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
20457         in addition to */Makefile.am.
20458         Exempt legitimate uses of @VAR@ notation, e.g.,
20459         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
20460         Remove obsolete coreutils-specific comment.
20461         Prompted by discussion here:
20462         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
20463
20464 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
20465
20466         strtoul: remove dependency on strtol
20467         This is so that 'configure' need not check for strtol merely because
20468         the application needs strtoul.
20469         * modules/strtoul (Files): Add lib/strtol.c.
20470         (Depends-on): Remove strtol.
20471
20472         strtoull: remove dependency on strtoul
20473         This is like the strtoll change.
20474         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
20475         (Depends-on): Remove strtoul.
20476
20477         strtoll: remove dependency on strtol
20478         This is so that 'configure' need not check for strtol merely because
20479         the application needs strtoll.
20480         * modules/strtoll (Files): Add lib/strtol.c.
20481         (Depends-on): Remove strtol.
20482
20483 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20484
20485         inttypes: Move some configure check to module 'imaxdiv'.
20486         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
20487         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
20488         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
20489
20490 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20491
20492         inttypes: Move some configure check to module 'imaxabs'.
20493         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
20494         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
20495         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
20496
20497 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20498
20499         inttypes: Remove configure tests that are not needed since 2009-12-31.
20500         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
20501         gl_cv_header_working_inttypes_h.
20502
20503 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
20504
20505         * modules/strnlen (Depends-on): Remove memchr.
20506         The strnlen implementation doesn't need the memchr module's fixes; see
20507         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
20508
20509         strtol: remove dependency on wchar
20510         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
20511         * modules/strtol (Depends-on): Remove wchar.
20512
20513 2011-04-21  Eric Blake  <eblake@redhat.com>
20514
20515         passfd: fix test regression on Linux
20516         * modules/passfd-tests (configure.ac): Correct socketpair check.
20517
20518         passfd: speed up configure and drop unused code
20519         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
20520         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
20521         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
20522         Instead of probing at configure for unix_scm_rights_bsd44_way,
20523         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
20524         check to a struct member probe.
20525         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
20526         (sendfd, recvfd): Update preprocessor checks.
20527         * modules/passfd (Files): Reflect rename, and drop unused file.
20528         (Depends-on): Drop unused dependency.
20529
20530         passfd: allow compilation on mingw
20531         * modules/sys_socket (Depends-on): Add sys_uio.
20532         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
20533         iovec and a minimal struct msghdr.
20534         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
20535         * tests/test-sys_socket.c (main): Enhance test.
20536         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
20537         guaranteed to provide what we need.
20538         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
20539         * modules/passfd-tests (Depends-on): Add sys_wait.
20540         * tests/test-passfd.c (main): Skip test on mingw, for now.
20541         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
20542         partial 'struct msghdr' implementation.
20543
20544         sys_uio: new module
20545         * modules/sys_uio: New module.
20546         * modules/sys_uio-tests: Likewise.
20547         * lib/sys_uio.in.h: New file.
20548         * m4/sys_uio_h.m4: Likewise.
20549         * tests/test-sys_uio.c: Likewise.
20550         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
20551         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
20552
20553 2011-04-20  Jim Meyering  <meyering@redhat.com>
20554
20555         useless-if-before-free: avoid false-positive
20556         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
20557         disjunct so that it too requires a terminating ";".  Without that,
20558         this script would identify as useless one statement from gcc that
20559         was not:
20560           if (aligned_ptr)
20561             free (((void **) aligned_ptr) [-1]);
20562
20563 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
20564
20565         doc: update users.txt.
20566         * users.txt: Add barcode.
20567
20568 2011-04-19  Bruno Haible  <bruno@clisp.org>
20569
20570         ioctl: Remove link dependency on native Windows.
20571         * lib/fd-hook.h: Renamed from lib/close-hook.h.
20572         (gl_close_fn, gl_ioctl_fn): New types.
20573         (struct fd_hook): Renamed from struct close_hook. Change type of
20574         private_close_fn field. Add private_ioctl_fn field.
20575         (close_hook_fn): Add parameter for primary close method.
20576         (execute_close_hooks, execute_all_close_hooks): Likewise.
20577         (ioctl_hook_fn): New type.
20578         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
20579         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
20580         argument.
20581         (unregister_fd_hook): Renamed from unregister_close_hook.
20582         * lib/fd-hook.c: Renamed from lib/close-hook.c.
20583         Don't include <unistd.h>.
20584         (close): Remove undef.
20585         (anchor): Update.
20586         (execute_close_hooks): Add argument for primary close method.
20587         (execute_all_close_hooks): Likewise.
20588         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
20589         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
20590         argument. Allow each argument to be NULL.
20591         (unregister_fd_hook): Renamed from unregister_close_hook.
20592         * lib/close.c (rpl_close): Pass 'close' function pointer to
20593         execute_all_close_hooks.
20594         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
20595         (primary_ioctl): New function.
20596         (ioctl): Don't call ioctlsocket here. Instead, call
20597         execute_all_ioctl_hooks.
20598         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
20599         close method.
20600         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
20601         (fd_sockets_hook): Renamed from close_sockets_hook.
20602         (gl_sockets_startup, gl_sockets_cleanup): Update.
20603         * modules/fd-hook: Renamed from modules/close-hook. Update.
20604         * modules/close (Depends-on): Add fd-hook, remove close-hook.
20605         * modules/sockets (Depends-on): Likewise.
20606         * modules/ioctl (Depends-on): Add fd-hook.
20607         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
20608         GNULIB_SOCKET.
20609
20610 2011-04-19  Bruno Haible  <bruno@clisp.org>
20611
20612         Move the support of O_NONBLOCK in open() to the 'open' module.
20613         * modules/nonblocking (Depends-on): Remove 'open'.
20614         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
20615         gl_cv_have_open_O_NONBLOCK.
20616         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
20617         O_NONBLOCK support.
20618         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
20619
20620 2011-04-17  Bruno Haible  <bruno@clisp.org>
20621
20622         pipe2: Simplify code.
20623         * lib/pipe2.c (pipe2): Reduce code duplication.
20624
20625 2011-04-17  Bruno Haible  <bruno@clisp.org>
20626
20627         nonblocking: Add comment.
20628         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
20629
20630 2011-04-17  Bruno Haible  <bruno@clisp.org>
20631
20632         nonblocking: Add tests for sockets.
20633         * tests/test-nonblocking-socket.sh: New file.
20634         * tests/test-nonblocking-socket-main.c: New file.
20635         * tests/test-nonblocking-socket-child.c: New file.
20636         * tests/test-nonblocking-socket.h: New file.
20637         * tests/socket-server.h: New file.
20638         * tests/socket-client.h: New file.
20639         * modules/nonblocking-socket-tests: New file.
20640         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
20641
20642 2011-04-17  Bruno Haible  <bruno@clisp.org>
20643
20644         nonblocking: Add tests for pipes.
20645         * tests/test-nonblocking-pipe.sh: New file.
20646         * tests/test-nonblocking-pipe-main.c: New file.
20647         * tests/test-nonblocking-pipe-child.c: New file.
20648         * tests/test-nonblocking-pipe.h: New file.
20649         * tests/test-nonblocking-writer.h: New file.
20650         * tests/test-nonblocking-reader.h: New file.
20651         * tests/test-nonblocking-misc.h: New file.
20652         * modules/nonblocking-pipe-tests: New file.
20653         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
20654
20655 2011-04-16  Bruno Haible  <bruno@clisp.org>
20656
20657         gettext: Clarify the needed programmer actions.
20658         * modules/gettext (Notice): New field.
20659         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
20660
20661 2011-04-16  Bruno Haible  <bruno@clisp.org>
20662
20663         strchrnul: Tweak last commit.
20664         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
20665         bug.
20666         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
20667         as in _GL_FUNCDECL_SYS.
20668         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
20669         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
20670
20671 2011-04-15  Eric Blake  <eblake@redhat.com>
20672
20673         strchrnul: work around cygwin bug
20674         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
20675         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
20676         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
20677         * modules/string (Makefile.am): Substitute it.
20678         * lib/string.in.h (strchrnul): Use it.
20679
20680 2011-04-15  Bruno Haible  <bruno@clisp.org>
20681
20682         Don't require lib/stdio-write.c when only module 'stdio' is used.
20683         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
20684         invocation.
20685         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
20686
20687 2011-04-14  Bruno Haible  <bruno@clisp.org>
20688
20689         Support non-blocking pipe I/O in read() on native Windows.
20690         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
20691         (read): New declaration.
20692         * lib/read.c: New file.
20693         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
20694         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
20695         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
20696         vscanf): New declarations.
20697         * lib/stdio-read.c: New file.
20698         * m4/read.m4: New file.
20699         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
20700         REPLACE_READ.
20701         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
20702         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20703         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
20704         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
20705         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
20706         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20707         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
20708         * modules/read: New file.
20709         * modules/nonblocking (Files): Add lib/stdio-read.c.
20710         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
20711         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
20712         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
20713         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
20714         * modules/pread (Depends-on): Add read.
20715         * modules/safe-read (Depends-on): Likewise.
20716         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
20717         gets, scanf, vfscanf, vscanf): Verify signatures.
20718         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
20719         problem with non-blocking pipes.
20720         * doc/posix-functions/fgetc.texi: Likewise.
20721         * doc/posix-functions/fgets.texi: Likewise.
20722         * doc/posix-functions/fread.texi: Likewise.
20723         * doc/posix-functions/fscanf.texi: Likewise.
20724         * doc/posix-functions/getc.texi: Likewise.
20725         * doc/posix-functions/getchar.texi: Likewise.
20726         * doc/posix-functions/gets.texi: Likewise.
20727         * doc/posix-functions/scanf.texi: Likewise.
20728         * doc/posix-functions/vfscanf.texi: Likewise.
20729         * doc/posix-functions/vscanf.texi: Likewise.
20730
20731 2011-04-14  Bruno Haible  <bruno@clisp.org>
20732
20733         Support non-blocking pipe I/O in write() on native Windows.
20734         * lib/write.c (rpl_write): Split a write request that failed merely
20735         because the byte count was larger than the pipe buffer's size.
20736         * doc/posix-functions/write.texi: Mention the problem with large byte
20737         counts.
20738
20739 2011-04-14  Bruno Haible  <bruno@clisp.org>
20740
20741         wchar: Ensure that wchar_t gets defined on uClibc.
20742         * lib/wchar.in.h: On uClibc, include <stddef.h>.
20743         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
20744
20745 2011-04-13  Bruno Haible  <bruno@clisp.org>
20746
20747         safe-write, full-read: Avoid unnecessary compilation units.
20748         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
20749         (Depends-on): Remove safe-read. Add ssize_t.
20750         * modules/full-read (Files): Add lib/full-write.c.
20751         (Depends-on): Add full-write.
20752
20753 2011-04-13  Bruno Haible  <bruno@clisp.org>
20754
20755         Support non-blocking pipe I/O and SIGPIPE in pwrite().
20756         * modules/pwrite (Depends-on): Add 'write'.
20757
20758 2011-04-13  Bruno Haible  <bruno@clisp.org>
20759
20760         Support non-blocking pipe I/O in write() on native Windows.
20761         * lib/unistd.in.h (write): Enable replacement also if
20762         GNULIB_UNISTD_H_NONBLOCKING is 1.
20763         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
20764         (rpl_write): When failing to write on a non-blocking pipe, change
20765         errno from ENOSPC to EAGAIN.
20766         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
20767         putchar, puts, vfprintf, vprintf): Enable replacement also if
20768         GNULIB_STDIO_H_NONBLOCKING is 1.
20769         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
20770         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
20771         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
20772         CALL_WITH_SIGPIPE_EMULATION.
20773         (CALL_WITH_SIGPIPE_EMULATION): Use them.
20774         * m4/nonblocking.m4: New file.
20775         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
20776         for non-blocking I/O support.
20777         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20778         GNULIB_UNISTD_H_NONBLOCKING.
20779         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
20780         required for non-blocking I/O support.
20781         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
20782         * modules/nonblocking (Files): Add m4/nonblocking.m4,
20783         lib/stdio-write.c, m4/asm-underscore.m4.
20784         (Depends-on): Add stdio, unistd.
20785         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
20786         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
20787         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
20788         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
20789         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
20790         problem with non-blocking pipes.
20791         * doc/posix-functions/fputc.texi: Likewise.
20792         * doc/posix-functions/fputs.texi: Likewise.
20793         * doc/posix-functions/fwrite.texi: Likewise.
20794         * doc/posix-functions/printf.texi: Likewise.
20795         * doc/posix-functions/putc.texi: Likewise.
20796         * doc/posix-functions/putchar.texi: Likewise.
20797         * doc/posix-functions/puts.texi: Likewise.
20798         * doc/posix-functions/vfprintf.texi: Likewise.
20799         * doc/posix-functions/vprintf.texi: Likewise.
20800         * doc/posix-functions/write.texi: Likewise.
20801
20802 2011-04-10  Jim Meyering  <meyering@redhat.com>
20803
20804         maint.mk: prohibit doubled words
20805         Detect them also when they're separated by a newline.
20806         There are 3 ways to customize it:
20807           - disable the test on a per file basis, as usual with rules using
20808             $(VC_LIST_EXCEPT)
20809           - replace the default doubled-word-selecting regexp (affects all files)
20810           - ignore a particular file-vs-doubled-word match
20811         I nearly used that last one to ignore the "is is" match in
20812         coreutils' NEWS file, since the text was "ls -is is ..."
20813         To do that, I would have added this line to cfg.mk:
20814           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
20815         but it would have ignored any "is is" match in NEWS.
20816         Low probability, but still...
20817         Instead, I changed the text, slightly:
20818           -  ls -is is now consistent with ls -lis in ignoring values returned
20819           +  "ls -is" is now consistent with ls -lis in ignoring values returned
20820         * top/maint.mk (prohibit_double_word_RE_): Provide default.
20821         (prohibit_doubled_word_): Define.
20822         (sc_prohibit_doubled_word): New rule.
20823         (sc_prohibit_the_the): Remove.  Subsumed by the above.
20824
20825 2011-04-10  Jim Meyering  <meyering@redhat.com>
20826
20827         maint: fix doubled-word typo in comment
20828         * m4/gethostname.m4: s/is is/it is/
20829         * m4/getdomainname.m4: Likewise.
20830
20831 2011-04-10  Jim Meyering  <meyering@redhat.com>
20832
20833         maint: remove doubled word: s/it it/it/
20834         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
20835
20836 2011-04-10  Jim Meyering  <meyering@redhat.com>
20837
20838         maint.mk: remove useless semicolon and backslash
20839         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
20840         semicolon and backslash.
20841
20842 2011-04-10  Bruno Haible  <bruno@clisp.org>
20843
20844         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
20845         * modules/stdint-tests (Depends-on): Add wchar.
20846
20847 2011-04-10  Jim Meyering  <meyering@redhat.com>
20848
20849         maint: remove doubled words in comments, e.g., s/a a/a/
20850         * lib/strptime.c (day_of_the_week): s/the the/the/
20851         * tests/test-chown.h (test_chown): s/a a/a/
20852
20853         test-chown.h: correct a cast
20854         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
20855         when the destination is a stat.st_gid.
20856
20857 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
20858
20859         getaddrinfo: Fix test for sa_len member.
20860         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
20861         include <sys/types.h> before <sys/socket.h>.
20862
20863 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
20864
20865         maint: change "can not" to "cannot"
20866         * doc/posix-functions/iconv.texi (iconv): This one crossed line
20867         boundaries.
20868
20869 2011-04-09  Jim Meyering  <meyering@redhat.com>
20870
20871         maint: change "a a" to "a"
20872         * tests/test-lchown.h (test_lchown): s/a a/a/
20873
20874         maint.mk: prohibit \<the the\>
20875         * top/maint.mk (sc_prohibit_the_the): New rule.
20876
20877         maint: fix "the the" in comment
20878         * lib/count-one-bits.h: s/the the/the/
20879
20880         maint: change "can not" to "cannot"
20881         But do not change the occurrences in maintain.texi or in
20882         build-aux/po/Makefile.in.in, which I presume comes from gettext.
20883         * doc/gnulib-tool.texi: s/can not/cannot/
20884         * doc/posix-functions/accept.texi (accept): Likewise.
20885         * doc/posix-functions/socket.texi (socket): Likewise.
20886         * lib/mbrtowc.c: Likewise.
20887
20888         maint.mk: prohibit use of "can not"
20889         * top/maint.mk (sc_prohibit_can_not): New rule.
20890         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
20891
20892 2011-04-09  Bruno Haible  <bruno@clisp.org>
20893
20894         careadlinkat: Guard against misuse of careadlinkatcwd.
20895         * lib/careadlinkat.c: Include <stdlib.h>.
20896         (careadlinkatcwd): Check that the fd argument is as expected.
20897
20898 2011-04-09  Bruno Haible  <bruno@clisp.org>
20899
20900         careadlinkat: Use common coding style.
20901         * lib/careadlinkat.c: Move gnulib includes after system includes.
20902
20903 2011-04-09  Bruno Haible  <bruno@clisp.org>
20904
20905         careadlinkat: Clarify specification.
20906         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
20907         (careadlinkatcwd): Add comment.
20908         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
20909
20910 2011-04-09  Bruno Haible  <bruno@clisp.org>
20911
20912         areadlinkat: Avoid link error on many platforms.
20913         * modules/areadlinkat (Depends-on): Add areadlink.
20914
20915 2011-04-09  Bruno Haible  <bruno@clisp.org>
20916
20917         allocator, careadlinkat: Fix double-inclusion guard.
20918         * lib/allocator.h: Fix double-inclusion guard.
20919         * lib/careadlinkat.h: Likewise.
20920
20921 2011-04-09  Bruno Haible  <bruno@clisp.org>
20922
20923         relocatable-prog-wrapper: Update after module 'areadlink' changed.
20924         * lib/relocwrapper.c: Update dependencies hierarchy.
20925         * build-aux/install-reloc: Update list of files to be compiled.
20926         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
20927         lib/allocator.[hc].
20928
20929 2011-04-08  Eric Blake  <eblake@redhat.com>
20930
20931         strftime: silence gnulib-tool warning
20932         * modules/strftime-tests (Depends-on): Drop automatic dependency.
20933
20934 2011-04-08  Bruno Haible  <bruno@clisp.org>
20935
20936         verify: Fix syntax error with GCC 4.6 in C++ mode.
20937         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
20938         (HAVE_STATIC_ASSERT): New macro.
20939         (verify_true, verify): Use 'static_assert' if it is supported and
20940         '_Static_assert' is not supported.
20941
20942 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
20943
20944         allocator: New module.
20945         * modules/allocator, lib/allocator.c: New files.
20946         * lib/allocator.h (stdlib_allocator): New decl.
20947         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
20948         Remove.  Do not include <stdlib.h>.
20949         (careadlinkat): Use stdlib_allocator instead of rolling our own.
20950         * modules/careadlinkat (Files): Remove lib/allocator.h.
20951         (Depends-on): Add allocator.
20952
20953         stdlib: let modules use system malloc, realloc
20954         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
20955         if !_GL_USE_STDLIB_ALLOC.
20956         (malloc, realloc): Limit this change to a smaller scope.
20957
20958         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
20959         (malloc, realloc): Don't #undef; no longer needed.
20960         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20961         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20962         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
20963         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20964         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20965         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20966         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
20967         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
20968
20969         careadlinkat: rename members to avoid problem
20970         * lib/allocator.h (struct allocator): Rename members from
20971         malloc/realloc to allocate/reallocate, to avoid problems if malloc
20972         and realloc are #define'd.  Reported by Eric Blake in
20973         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
20974         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
20975
20976 2011-04-08  Eric Blake  <eblake@redhat.com>
20977
20978         nonblocking: reduce dependency
20979         * tests/test-nonblocking.c: Only test sockets when in use.
20980         * modules/nonblocking-tests (Depends-on): Drop socket.
20981         (Makefile.am): Link even if sockets are not present.
20982         * modules/pipe2-tests (Makefile.am): Likewise.
20983         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
20984
20985         pipe2: fix O_NONBLOCK support on mingw
20986         * modules/pipe2 (Depends-on): Add nonblocking.
20987         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
20988         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
20989         * tests/test-nonblocking.c (main): Likewise.
20990         * modules/pipe2-tests (Makefile.am): Avoid link failure.
20991
20992         fcntl-h: fix O_ACCMODE on cygwin
20993         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
20994         * lib/fcntl.in.h (O_ACCMODE): Fix it.
20995
20996         pipe-filter: drop O_NONBLOCK workarounds
20997         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
20998         * modules/pipe-filter-ii (Depends-on): Likewise.
20999         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
21000
21001         nonblocking: provide O_NONBLOCK for mingw
21002         * modules/nonblocking (Depends-on): Add open.
21003         (configure.ac): Set new witness macro.
21004         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
21005         * modules/fcntl-h (Makefile.am): Substitute it.
21006         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
21007         nonblocking module is in use.
21008         * lib/nonblocking.c: Adjust portability test.
21009         * lib/open.c (open): Don't let native open see gnulib flag.
21010         * tests/test-fcntl-h.c (main): Enhance test.
21011         * tests/test-open.h (test_open): Likewise.
21012         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
21013
21014         careadlinkat: fix compilation error on mingw
21015         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
21016         within struct allocator.
21017
21018 2011-04-06  Eric Blake  <eblake@redhat.com>
21019
21020         binary-io: relicense under LGPLv2+
21021         * modules/binary-io (License): Relax to LGPLv2+.
21022         Requested for libvirt, and required by pipe2.
21023
21024 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
21025
21026         verify: use _Static_assert if available
21027         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
21028         (verify_true, verify): Use it if available.  This generates better
21029         diagnostics with GCC 4.6.0 and later.
21030
21031 2011-04-05  Bruno Haible  <bruno@clisp.org>
21032
21033         Remove leftover generated .h files after config.status changed.
21034
21035         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
21036         GL_GENERATE_ALLOCA_H.
21037         * modules/alloca-opt (Makefile.am): Remove alloca.h if
21038         GL_GENERATE_ALLOCA_H evaluates to false.
21039
21040         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
21041         GL_GENERATE_ARGZ_H.
21042         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
21043         evaluates to false.
21044
21045         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
21046         GL_GENERATE_BYTESWAP_H.
21047         * modules/byteswap (Makefile.am): Remove byteswap.h if
21048         GL_GENERATE_BYTESWAP_H evaluates to false.
21049
21050         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
21051         GL_GENERATE_ERRNO_H.
21052         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
21053         evaluates to false.
21054
21055         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
21056         GL_GENERATE_FLOAT_H.
21057         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
21058         evaluates to false.
21059
21060         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
21061         GL_GENERATE_FNMATCH_H.
21062         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
21063         GL_GENERATE_FNMATCH_H evaluates to false.
21064
21065         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
21066         GL_GENERATE_GLOB_H.
21067         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
21068         evaluates to false.
21069
21070         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
21071         automake conditional GL_GENERATE_ICONV_H.
21072         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
21073         evaluates to false.
21074
21075         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
21076         GL_GENERATE_NETINET_IN_H.
21077         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
21078         GL_GENERATE_NETINET_IN_H evaluates to false.
21079
21080         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
21081         conditional GL_GENERATE_PTHREAD_H.
21082         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
21083         * modules/pthread (Makefile.am): Remove pthread.h if
21084         GL_GENERATE_PTHREAD_H evaluates to false.
21085
21086         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
21087         GL_GENERATE_SCHED_H.
21088         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
21089         evaluates to false.
21090
21091         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
21092         conditional GL_GENERATE_SELINUX_CONTEXT_H.
21093         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
21094         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
21095
21096         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
21097         GL_GENERATE_STDARG_H.
21098         * modules/stdarg (Makefile.am): Remove stdarg.h if
21099         GL_GENERATE_STDARG_H evaluates to false.
21100
21101         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
21102         GL_GENERATE_STDBOOL_H.
21103         * modules/stdbool (Makefile.am): Remove stdbool.h if
21104         GL_GENERATE_STDBOOL_H evaluates to false.
21105
21106         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
21107         conditional GL_GENERATE_STDDEF_H.
21108         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
21109         * modules/stddef (Makefile.am): Remove stddef.h if
21110         GL_GENERATE_STDDEF_H evaluates to false.
21111
21112         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
21113         GL_GENERATE_STDINT_H.
21114         * modules/stdint (Makefile.am): Remove stdint.h if
21115         GL_GENERATE_STDINT_H evaluates to false.
21116
21117         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
21118         GL_GENERATE_SYSEXITS_H.
21119         * modules/sysexits (Makefile.am): Remove sysexits.h if
21120         GL_GENERATE_SYSEXITS_H evaluates to false.
21121
21122         Reported by Karl Berry and Ralf Wildenhues.
21123
21124 2011-04-05  Bruno Haible  <bruno@clisp.org>
21125
21126         Ensure to rebuild generated .h files when config.status has changed.
21127         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
21128         config.status.
21129         * modules/ctype (Makefile.am): Likewise.
21130         * modules/dirent (Makefile.am): Likewise.
21131         * modules/errno (Makefile.am): Likewise.
21132         * modules/fcntl-h (Makefile.am): Likewise.
21133         * modules/float (Makefile.am): Likewise.
21134         * modules/getopt-posix (Makefile.am): Likewise.
21135         * modules/glob (Makefile.am): Likewise.
21136         * modules/iconv-h (Makefile.am): Likewise.
21137         * modules/inttypes (Makefile.am): Likewise.
21138         * modules/langinfo (Makefile.am): Likewise.
21139         * modules/locale (Makefile.am): Likewise.
21140         * modules/math (Makefile.am): Likewise.
21141         * modules/netdb (Makefile.am): Likewise.
21142         * modules/netinet_in (Makefile.am): Likewise.
21143         * modules/poll-h (Makefile.am): Likewise.
21144         * modules/pthread (Makefile.am): Likewise.
21145         * modules/pty (Makefile.am): Likewise.
21146         * modules/sched (Makefile.am): Likewise.
21147         * modules/search (Makefile.am): Likewise.
21148         * modules/selinux-h (Makefile.am): Likewise.
21149         * modules/signal (Makefile.am): Likewise.
21150         * modules/spawn (Makefile.am): Likewise.
21151         * modules/stdarg (Makefile.am): Likewise.
21152         * modules/stdbool (Makefile.am): Likewise.
21153         * modules/stddef (Makefile.am): Likewise.
21154         * modules/stdint (Makefile.am): Likewise.
21155         * modules/stdio (Makefile.am): Likewise.
21156         * modules/stdlib (Makefile.am): Likewise.
21157         * modules/string (Makefile.am): Likewise.
21158         * modules/strings (Makefile.am): Likewise.
21159         * modules/sys_file (Makefile.am): Likewise.
21160         * modules/sys_ioctl (Makefile.am): Likewise.
21161         * modules/sys_select (Makefile.am): Likewise.
21162         * modules/sys_socket (Makefile.am): Likewise.
21163         * modules/sys_stat (Makefile.am): Likewise.
21164         * modules/sys_time (Makefile.am): Likewise.
21165         * modules/sys_times (Makefile.am): Likewise.
21166         * modules/sys_utsname (Makefile.am): Likewise.
21167         * modules/sys_wait (Makefile.am): Likewise.
21168         * modules/sysexits (Makefile.am): Likewise.
21169         * modules/termios (Makefile.am): Likewise.
21170         * modules/time (Makefile.am): Likewise.
21171         * modules/unistd (Makefile.am): Likewise.
21172         * modules/wchar (Makefile.am): Likewise.
21173         * modules/wctype-h (Makefile.am): Likewise.
21174         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
21175
21176 2011-04-05  Bruno Haible  <bruno@clisp.org>
21177
21178         pipe2: Relicense under LGPLv2+.
21179         * modules/pipe2 (License): Change to LGPLv2+.
21180         Requested by Eric Blake, for libvirt.
21181
21182 2011-04-05  Bruce Korb  <bkorb@gnu.org>
21183
21184         bootstrap: compute gnulib_extra_files after updating build_aux
21185         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
21186         change build_aux or also supply gnulib_extra_files.  Handle correctly.
21187
21188 2011-04-05  Eric Blake  <eblake@redhat.com>
21189
21190         bootstrap: preserve git whitelist item sorting
21191         * build-aux/bootstrap (sort_patterns): New function.
21192         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
21193
21194 2011-04-05  Simon Josefsson  <simon@josefsson.org>
21195
21196         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
21197         sc_space_tab check.
21198
21199 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
21200
21201         areadlink, areadlinkat: rewrite in terms of careadlinkat
21202         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
21203         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
21204         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
21205         (malloc, realloc): Remove #undefs.
21206         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
21207         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
21208         readlink, ssize_t, stdint, unistd.
21209         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
21210         areadlink, stdint.
21211
21212         careadlinkat: new module
21213         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
21214         * modules/careadlinkat: New files, written by me with
21215         a review and feedback from Ben Pfaff in
21216         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
21217
21218 2011-04-01  Bruno Haible  <bruno@clisp.org>
21219
21220         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
21221         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
21222         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
21223         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
21224         Reported by Bruce Korb <bruce.korb@gmail.com>.
21225
21226 2011-04-01  Bruno Haible  <bruno@clisp.org>
21227
21228         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
21229         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
21230         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
21231         * modules/wcpcpy (Depends-on): Add extensions.
21232         * modules/wcpncpy (Depends-on): Likewise.
21233         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
21234         systems.
21235         * doc/posix-functions/wcpncpy.texi: Likewise.
21236         * doc/posix-functions/wcwidth.texi: Likewise.
21237
21238 2011-03-31  Eric Blake  <eblake@redhat.com>
21239
21240         nonblocking: fix mingw test failures
21241         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
21242         non-blocking flag on regular file.
21243         (get_nonblocking_flag): Set errno on invalid fd.
21244         * tests/test-nonblocking.c (main): Avoid test failure on
21245         directories if fchdir is not active.
21246         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
21247
21248 2011-03-31  Bruno Haible  <bruno@clisp.org>
21249
21250         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
21251         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
21252         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
21253         Reported by Simon Josefsson <simon@josefsson.org>.
21254
21255 2011-03-31  Bruno Haible  <bruno@clisp.org>
21256         and Eric Blake  <eblake@redhat.com>
21257
21258         nonblocking: new module
21259         * modules/nonblocking: New module.
21260         * modules/nonblocking-tests: Likewise.
21261         * lib/nonblocking.h: New file.
21262         * lib/nonblocking.c: Likewise.
21263         * tests/test-nonblocking.c: New test.
21264         * lib/ioctl.c (ioctl) [mingw]: Update comment.
21265
21266 2011-03-30  Bruno Haible  <bruno@clisp.org>
21267
21268         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
21269         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
21270         instead of 'printf' format for GCC >= 4.4.
21271         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
21272         (fprintf, printf, vfprintf, vprintf): Declare with
21273         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
21274         the system's vfprintf() function.
21275         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
21276
21277 2011-03-30  Eric Blake  <eblake@redhat.com>
21278
21279         passfd: fix scoping bug
21280         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
21281         before sendmsg/recvmsg.
21282
21283         passfd: standardize coding conventions
21284         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
21285         can be learned at compile time.
21286         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
21287         ifdefs.
21288         (sendfd, recvfd): Follow gnulib code conventions.
21289
21290         passfd: fix incorrect sendmsg arguments
21291         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
21292         incorrect msg_controllen value.
21293         * modules/passfd-tests (Depends-on): Check for alarm.
21294         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
21295         Reported by Bastien ROUCARIES.
21296
21297 2011-03-30  Bruno Haible  <bruno@clisp.org>
21298
21299         c-strcasestr: Relicense under LGPLv2+.
21300         * modules/c-strcasestr (License): Change to LGPLv2+.
21301         Requested by Eric Blake, for libvirt.
21302
21303 2011-03-30  Simon Josefsson  <simon@josefsson.org>
21304
21305         * users.txt: Add libidn2.  Fix libtasn1 link.
21306
21307 2011-03-30  Jim Meyering  <meyering@redhat.com>
21308
21309         tests: readlink* ("",... fails with EINVAL on newer kernels
21310         readlink and readlinkat have typically failed with ENOENT for
21311         the invalid, empty file name,  "".  However, with the advent
21312         of linux-2.6.39, they fail with EINVAL.
21313         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
21314         when operating on the empty file name.
21315         * tests/test-readlink.h (test_readlink): Likewise.
21316
21317 2011-03-29  Bruno Haible  <bruno@clisp.org>
21318
21319         Relicense some modules under LGPLv2+, for libidn2.
21320         * modules/array-mergesort (License): Change to LGPLv2+.
21321         * modules/c-strcaseeq (License): Likewise.
21322         * modules/striconveh (License): Likewise.
21323         * modules/striconveha (License): Likewise.
21324         * modules/uniconv/base (License): Likewise.
21325         * modules/uniconv/u8-conv-from-enc (License): Likewise.
21326         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
21327         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
21328         * modules/unictype/base (License): Likewise.
21329         * modules/unictype/bidiclass-of (License): Likewise.
21330         * modules/unictype/category-M (License): Likewise.
21331         * modules/unictype/category-none (License): Likewise.
21332         * modules/unictype/category-of (License): Likewise.
21333         * modules/unictype/category-test (License): Likewise.
21334         * modules/unictype/category-test-withtable (License): Likewise.
21335         * modules/unictype/combining-class (License): Likewise.
21336         * modules/unictype/joiningtype-of (License): Likewise.
21337         * modules/unictype/scripts (License): Likewise.
21338         * modules/uninorm/base (License): Likewise.
21339         * modules/uninorm/canonical-decomposition (License): Likewise.
21340         * modules/uninorm/composition (License): Likewise.
21341         * modules/uninorm/decompose-internal (License): Likewise.
21342         * modules/uninorm/decomposition-table (License): Likewise.
21343         * modules/uninorm/nfc (License): Likewise.
21344         * modules/uninorm/nfd (License): Likewise.
21345         * modules/uninorm/u32-normalize (License): Likewise.
21346         * modules/unistr/base (License): Likewise.
21347         * modules/unistr/u32-cpy (License): Likewise.
21348         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
21349         * modules/unistr/u32-to-u8 (License): Likewise.
21350         * modules/unistr/u32-uctomb (License): Likewise.
21351         * modules/unistr/u8-check (License): Likewise.
21352         * modules/unistr/u8-mblen (License): Likewise.
21353         * modules/unistr/u8-mbtouc (License): Likewise.
21354         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
21355         * modules/unistr/u8-mbtoucr (License): Likewise.
21356         * modules/unistr/u8-prev (License): Likewise.
21357         * modules/unistr/u8-strlen (License): Likewise.
21358         * modules/unistr/u8-to-u32 (License): Likewise.
21359         * modules/unistr/u8-uctomb (License): Likewise.
21360         * modules/unitypes (License): Likewise.
21361         Requested by Simon Josefsson.
21362
21363 2011-03-29  Simon Josefsson  <simon@josefsson.org>
21364
21365         lib-symbol-visibility: Add a notice.
21366         * modules/lib-symbol-visibility (Notice): New field.
21367
21368 2011-03-29  Bruno Haible  <bruno@clisp.org>
21369
21370         getaddrinfo: Doc fix.
21371         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
21372         section "fixed in Gnulib".
21373
21374 2011-03-28  Simon Josefsson  <simon@josefsson.org>
21375
21376         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
21377         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
21378
21379 2011-03-26  Bruno Haible  <bruno@clisp.org>
21380
21381         unictype/property-byname: Reduce the number of load-time relocations.
21382         * lib/unictype/pr_byname.c: Include <stdlib.h>.
21383         (UC_PROPERTY_INDEX_*): New enumeration values.
21384         (uc_property_byname): Convert an index from the lookup table to an
21385         uc_property_t.
21386         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
21387         values.
21388
21389 2011-03-26  Bruno Haible  <bruno@clisp.org>
21390
21391         unictype/property-byname: Allow omitted word separators and aliases.
21392         * lib/unictype/pr_byname.gperf: Add property names without word
21393         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
21394         for 'space'.
21395
21396 2011-03-26  Bruno Haible  <bruno@clisp.org>
21397
21398         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
21399         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
21400         also hyphens to space.
21401         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
21402         without spaces.
21403         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
21404
21405 2011-03-26  Bruno Haible  <bruno@clisp.org>
21406
21407         unictype/joiningtype-byname: Recognize long names as well.
21408         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
21409         a long name.
21410         * lib/unictype/joiningtype_byname.c: Include <string.h>,
21411         unictype/joiningtype_byname.h.
21412         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
21413         * lib/unictype/joiningtype_byname.gperf: New file.
21414         * modules/unictype/joiningtype-byname (Files): Add
21415         lib/unictype/joiningtype_byname.gperf.
21416         (Depends-on): Add gperf.
21417         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
21418         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
21419         long names.
21420
21421         Tests for module 'unictype/joiningtype-longname'.
21422         * modules/unictype/joiningtype-longname-tests: New file.
21423         * tests/unictype/test-joiningtype_longname.c: New file.
21424
21425         New module 'unictype/joiningtype-longname'.
21426         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
21427         * lib/unictype/joiningtype_longname.c: New file.
21428         * modules/unictype/joiningtype-longname: New file.
21429         * modules/unictype/joiningtype-all (Depends-on): Add
21430         unictype/joiningtype-longname.
21431
21432 2011-03-26  Bruno Haible  <bruno@clisp.org>
21433
21434         unictype/bidiclass-byname: Recognize long names as well.
21435         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
21436         name.
21437         * lib/unictype/bidi_byname.c: Include <string.h>,
21438         unictype/bidi_byname.h.
21439         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
21440         * lib/unictype/bidi_byname.gperf: New file.
21441         * modules/unictype/bidiclass-byname (Files): Add
21442         lib/unictype/bidi_byname.gperf.
21443         (Depends-on): Add gperf.
21444         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
21445         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
21446         long names.
21447
21448         Tests for module 'unictype/bidiclass-longname'.
21449         * modules/unictype/bidiclass-longname-tests: New file.
21450         * tests/unictype/test-bidi_longname.c: New file.
21451
21452         New module 'unictype/bidiclass-longname'.
21453         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
21454         * lib/unictype/bidi_longname.c: New file.
21455         * modules/unictype/bidiclass-longname: New file.
21456         * modules/unictype/bidiclass-all (Depends-on): Add
21457         unictype/bidiclass-longname.
21458
21459 2011-03-26  Bruno Haible  <bruno@clisp.org>
21460
21461         unictype/bidi*: Rename modules.
21462         * modules/unictype/bidiclass-all: Renamed from
21463         modules/unictype/bidicategory-all.
21464         * modules/unictype/bidiclass-name: Renamed from
21465         modules/unictype/bidiclass-name.
21466         (Description): Update.
21467         * modules/unictype/bidiclass-name-tests: Renamed from
21468         modules/unictype/bidicategory-name-tests.
21469         * modules/unictype/bidiclass-byname: Renamed from
21470         modules/unictype/bidicategory-byname.
21471         (Description): Update.
21472         * modules/unictype/bidiclass-byname-tests: Renamed from
21473         modules/unictype/bidicategory-byname-tests.
21474         * modules/unictype/bidiclass-of: Renamed from
21475         modules/unictype/bidicategory-of.
21476         (Description): Update.
21477         * modules/unictype/bidiclass-of-tests: Renamed from
21478         modules/unictype/bidicategory-of-tests.
21479         * modules/unictype/bidiclass-test: Renamed from
21480         modules/unictype/bidicategory-test.
21481         (Description): Update.
21482         * modules/unictype/bidiclass-test-tests: Renamed from
21483         modules/unictype/bidicategory-test-tests.
21484         * modules/unictype/bidicategory-all: New file, a simple redirection.
21485         * modules/unictype/bidicategory-name: Likewise.
21486         * modules/unictype/bidicategory-byname: Likewise.
21487         * modules/unictype/bidicategory-of: Likewise.
21488         * modules/unictype/bidicategory-test: Likewise.
21489         * modules/unictype/property-bidi-* (Dependencies): Update.
21490         * lib/unictype/bidi_*.c: Update comment.
21491
21492 2011-03-26  Bruno Haible  <bruno@clisp.org>
21493
21494         unictype/bidi*: Rename functions, part 2.
21495         * modules/unictype/bidicategory-name (configure.ac): Update required
21496         libunistring version.
21497         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
21498
21499 2011-03-25  Bruno Haible  <bruno@clisp.org>
21500
21501         New module 'unictype/combining-class-all'.
21502         * modules/unictype/combining-class-all: New file.
21503
21504         Tests for module 'unictype/combining-class-byname'.
21505         * modules/unictype/combining-class-byname-tests: New file.
21506         * tests/unictype/test-combiningclass_byname.c: New file.
21507
21508         New module 'unictype/combining-class-byname'.
21509         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
21510         * lib/unictype/combiningclass_byname.c: New file.
21511         * lib/unictype/combiningclass_byname.gperf: New file.
21512         * modules/unictype/combining-class-byname: New file.
21513
21514         Tests for module 'unictype/combining-class-longname'.
21515         * modules/unictype/combining-class-longname-tests: New file.
21516         * tests/unictype/test-combiningclass_longname.c: New file.
21517
21518         New module 'unictype/combining-class-longname'.
21519         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
21520         * lib/unictype/combiningclass_longname.c: New file.
21521         * modules/unictype/combining-class-longname: New file.
21522
21523         Tests for module 'unictype/combining-class-name'.
21524         * modules/unictype/combining-class-name-tests: New file.
21525         * tests/unictype/test-combiningclass_name.c: New file.
21526
21527         New module 'unictype/combining-class-name'.
21528         * lib/unictype.in.h (uc_combining_class_name): New declaration.
21529         * lib/unictype/combiningclass_name.c: New file.
21530         * modules/unictype/combining-class-name: New file.
21531
21532 2011-03-25  Bruno Haible  <bruno@clisp.org>
21533
21534         unictype/combining-class: Rename source files.
21535         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
21536         of unictype/combining.h.
21537         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
21538         Update.
21539         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
21540         * modules/unictype/combining-class (Description): Fix.
21541         (Files, Makefile.am): Update.
21542         * tests/unictype/test-combiningclass.c: Renamed from
21543         tests/unictype/test-combining.c.
21544         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
21545
21546 2011-03-25  Bruno Haible  <bruno@clisp.org>
21547
21548         unictype: Update list of canonical combining classes.
21549         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
21550
21551 2011-03-25  Bruno Haible  <bruno@clisp.org>
21552
21553         unictype/category-byname: Recognize long names as well.
21554         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
21555         a long name.
21556         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
21557         unictype/categ_byname.h.
21558         (UC_CATEGORY_INDEX_*): New enumeration values.
21559         (uc_general_category_byname): Use uc_general_category_lookup and
21560         convert from index to value.
21561         * lib/unictype/categ_byname.gperf: New file.
21562         * modules/unictype/category-byname (Files): Add
21563         lib/unictype/categ_byname.gperf.
21564         (Depends-on): Add gperf.
21565         (Makefile.am): Add rule for generating unictype/categ_byname.h.
21566         * tests/unictype/test-categ_byname.c (main): Test the recognition of
21567         long names.
21568
21569         Tests for module 'unictype/category-longname'.
21570         * modules/unictype/category-longname-tests: New file.
21571         * tests/unictype/test-categ_longname.c: New file.
21572
21573         New module 'unictype/category-longname'.
21574         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
21575         * lib/unictype/categ_longname.c: New file.
21576         * modules/unictype/category-longname: New file.
21577         * modules/unictype/category-all (Depends-on): Add it.
21578
21579 2011-03-25  Bruno Haible  <bruno@clisp.org>
21580
21581         Tests for module 'unictype/category-LC'.
21582         * modules/unictype/category-LC-tests: New file.
21583         * tests/unictype/test-categ_LC.c: New file, automatically generated.
21584
21585         New module 'unictype/category-LC'.
21586         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
21587         (UC_CATEGORY_LC): New declaration.
21588         (UC_CASED_LETTER): New macro.
21589         * lib/gen-uni-tables.c (is_category_LC): New function.
21590         (output_categories): Also handle category LC.
21591         (UC_CATEGORY_MASK_LC): New enumeration value.
21592         (general_category_byname): Also handle category LC.
21593         * lib/unictype/categ_LC.c: New file.
21594         * lib/unictype/categ_LC.h: New file, automatically generated.
21595         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
21596         category LC.
21597         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
21598         * modules/unictype/category-LC: New file.
21599         * modules/unictype/category-byname (Depends-on): Add
21600         unictype/category-LC.
21601         * modules/unictype/category-all (Depends-on): Likewise.
21602
21603 2011-03-25  Eric Blake  <eblake@redhat.com>
21604
21605         xmalloc: revert yesterday's regression
21606         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
21607         realloc's underlying behavior (allowing allocation of zero-size
21608         objects, especially if malloc-gnu is also in use).
21609
21610 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
21611
21612         maint.mk: add missing version to VC-tag
21613         * top/maint.mk: git tag was missing actual tag name; add it.
21614
21615         valgrind: do leak checking, and exit with code 1 on error (not 0)
21616         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
21617         to VALGRIND.
21618
21619 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
21620
21621         posix-modules: say what it does.
21622         * posix-modules: Add a line to the --help output saying what it does.
21623
21624 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
21625
21626         xmalloc: Do not leak if underlying realloc is C99 compatible.
21627         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
21628         This avoids a leak on C99-based systems.  See
21629         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
21630
21631 2011-03-24  Eric Blake  <eblake@redhat.com>
21632
21633         realloc: document portability problem
21634         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
21635         passing 0 size to realloc.
21636
21637 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
21638
21639         doc: update users.txt
21640         * users.txt: Add cvsps, tmpwatch
21641
21642 2011-03-23  Matt Rice  <ratmice@gmail.com>
21643
21644         doc: update users.txt
21645         * users.txt: Add gdb.
21646
21647 2011-03-23  Jim Meyering  <meyering@redhat.com>
21648
21649         doc: update users.txt
21650         Looking through matches up to the following URL (there are still
21651         several more pages), I found several projects that use gnulib:
21652         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
21653         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
21654         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
21655
21656 2011-03-22  Bruno Haible  <bruno@clisp.org>
21657
21658         unictype/bidi*: Rename functions.
21659         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
21660         uc_bidi_class, uc_is_bidi_class): New declarations.
21661         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
21662         uc_bidi_category_byname.
21663         (uc_bidi_category_byname): New function.
21664         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
21665         u_bidi_category_name.
21666         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
21667         (uc_bidi_category_name): New function.
21668         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
21669         uc_bidi_category.
21670         (uc_bidi_category): New function.
21671         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
21672         uc_is_bidi_category. Invoke uc_bidi_class.
21673         (uc_is_bidi_category): New function.
21674         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
21675         instead of uc_bidi_category_byname.
21676         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
21677         instead of uc_bidi_category_name.
21678         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
21679         uc_bidi_category.
21680         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
21681         instead of uc_is_bidi_category.
21682
21683 2011-03-21  Bruno Haible  <bruno@clisp.org>
21684
21685         New module 'unictype/joininggroup-all'.
21686         * modules/unictype/joininggroup-all: New file.
21687
21688         Tests for module 'unictype/joininggroup-of'.
21689         * modules/unictype/joininggroup-of-tests: New file.
21690         * tests/unictype/test-joininggroup_of.c: New file.
21691         * tests/unictype/test-joininggroup_of.h: New file, automatically
21692         generated by gen-uni-tables.
21693
21694         New module 'unictype/joininggroup-of'.
21695         * modules/unictype/joininggroup-of: New file.
21696         * lib/unictype/joininggroup_of.c: New file.
21697         * lib/unictype/joininggroup_of.h: New file, automatically generated by
21698         gen-uni-tables.
21699
21700         Tests for module 'unictype/joininggroup-byname'.
21701         * modules/unictype/joininggroup-byname-tests: New file.
21702         * tests/unictype/test-joininggroup_byname.c: New file.
21703
21704         New module 'unictype/joininggroup-byname'.
21705         * modules/unictype/joininggroup-byname: New file.
21706         * lib/unictype/joininggroup_byname.c: New file.
21707         * lib/unictype/joininggroup_byname.gperf: New file.
21708
21709         Tests for module 'unictype/joininggroup-name'.
21710         * modules/unictype/joininggroup-name-tests: New file.
21711         * tests/unictype/test-joininggroup_name.c: New file.
21712
21713         New module 'unictype/joininggroup-name'.
21714         * modules/unictype/joininggroup-name: New file.
21715         * lib/unictype/joininggroup_name.c: New file.
21716         * lib/unictype/joininggroup_name.h: New file.
21717
21718         New module 'unictype/joiningtype-all'.
21719         * modules/unictype/joiningtype-all: New file.
21720
21721         Tests for module 'unictype/joiningtype-of'.
21722         * modules/unictype/joiningtype-of-tests: New file.
21723         * tests/unictype/test-joiningtype_of.c: New file.
21724         * tests/unictype/test-joiningtype_of.h: New file, automatically
21725         generated by gen-uni-tables.
21726
21727         New module 'unictype/joiningtype-of'.
21728         * modules/unictype/joiningtype-of: New file.
21729         * lib/unictype/joiningtype_of.c: New file.
21730         * lib/unictype/joiningtype_of.h: New file, automatically generated by
21731         gen-uni-tables.
21732
21733         Tests for module 'unictype/joiningtype-byname'.
21734         * modules/unictype/joiningtype-byname-tests: New file.
21735         * tests/unictype/test-joiningtype_byname.c: New file.
21736
21737         New module 'unictype/joiningtype-byname'.
21738         * modules/unictype/joiningtype-byname: New file.
21739         * lib/unictype/joiningtype_byname.c: New file.
21740
21741         Tests for module 'unictype/joiningtype-name'.
21742         * modules/unictype/joiningtype-name-tests: New file.
21743         * tests/unictype/test-joiningtype_name.c: New file.
21744
21745         New module 'unictype/joiningtype-name'.
21746         * modules/unictype/joiningtype-name: New file.
21747         * lib/unictype/joiningtype_name.c: New file.
21748
21749         unictype: Add support for Arabic shaping properties.
21750         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
21751         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
21752         declarations.
21753         (UC_JOINING_GROUP_*): New enumeration values.
21754         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
21755         declarations.
21756         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
21757         (unicode_joining_type): New variable.
21758         (UC_JOINING_GROUP_*): New enumeration values.
21759         (unicode_joining_group): New variable.
21760         (fill_arabicshaping, joining_type_as_c_identifier,
21761         output_joining_type_test, output_joining_type,
21762         joining_group_as_c_identifier, output_joining_group_test,
21763         output_joining_group): New functions.
21764         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
21765         fill_arabicshaping and output_joining_type_test, output_joining_type,
21766         output_joining_group_test, output_joining_group.
21767         Reported by Simon Josefsson.
21768
21769 2011-03-21  Jim Meyering  <meyering@redhat.com>
21770
21771         strftime: fix a bug in yesterday's change
21772         * lib/strftime.c (add): Accommodate width's initial value of -1.
21773         Otherwise, nstrftime would copy uninitialized data into
21774         the result buffer.
21775
21776 2011-03-21  Jim Meyering  <meyering@redhat.com>
21777
21778         tests: add strftime-tests module
21779         * tests/test-strftime.c: New file.
21780         * modules/strftime-tests: New module.
21781
21782 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21783
21784         strftime: don't assume a byte count fits in 'int'
21785         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
21786         found this problem by static analysis, using gcc -Wstrict-overflow
21787         (GCC 4.5.2, x86-64).  This reported an optimization that depended
21788         on an integer overflow having undefined behavior, but it turns out
21789         that the argument is a size, which might not fit in 'int' anyway,
21790
21791 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21792
21793         stdio: don't require ignore_value around fwrite
21794
21795         This patch works around libc bug 11959
21796         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
21797         Without this patch, applications must often write
21798         ignore_value (fwrite (...)) even though the ignore_value is
21799         not helpful here.  It's common to write many objects, using
21800         fwrite/printf/etc., and then use ferror to detect output error.
21801
21802         I considered making this patch optional, but decided against it,
21803         because libc is obviously being inconsistent here: there is no
21804         reason libc should insist that user code must inspect fwrite
21805         return's value without also insisting that it inspect printf's,
21806         putchar's, etc.  If user code wants to have a strict style where
21807         all these functions' values are checked (so that ferror need not
21808         be checked), we could add support for that style in a new gnulib
21809         module, but in the meantime it's better to be consistent and to
21810         support common usage.
21811
21812         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
21813         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
21814         that we are compiling in checking mode, and if not C++, and
21815         if not already wrapping fwrite for some other reason.
21816         (fwrite): #define to rpl_fwrite if the latter is defined.
21817
21818 2011-03-20  Bruno Haible  <bruno@clisp.org>
21819
21820         verror: Fix compilation error introduced on 2011-02-13.
21821         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
21822         instead of __attribute__.
21823         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
21824
21825 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
21826             Bruno Haible  <bruno@clisp.org>
21827
21828         socklen: do not depend on sys_socket
21829         While trying to modify Emacs to use gnulib's socklen module,
21830         I discovered a circular dependency: socklen depends on sys_socket
21831         and vice versa.  Emacs can use socklen, but it does not need
21832         sys_socket because it has its own substitute for sys/socket.h.
21833         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
21834         gl_TYPE_SOCKLEN_T.
21835         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
21836         gl_PREREQ_SYS_H_SOCKET.
21837         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
21838         gl_PREREQ_SYS_H_SOCKET.
21839         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
21840         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
21841         * modules/socklen (Depends-on): Do not depend on sys_socket.
21842         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
21843
21844 2011-03-20  Jim Meyering  <meyering@redhat.com>
21845
21846         maint.mk: sort file names *after* new transformation
21847         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
21848         prefix would have led to an unwarranted failure in GNU parted.
21849         Sort after that transformation.
21850
21851 2011-03-19  Jim Meyering  <meyering@redhat.com>
21852
21853         maint.mk: fix po-file syntax-check rule
21854         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
21855         Patch by Bruno Haible.
21856
21857 2011-03-19  Bruno Haible  <bruno@clisp.org>
21858
21859         socklen: Update comment.
21860         * m4/socklen.m4: Update comment about platforms.
21861
21862 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
21863             Bruno Haible  <bruno@clisp.org>
21864
21865         inet_ntop, inet_pton: Simplify.
21866         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
21867         documented to provide socklen_t and we already depend on sys_socket.
21868         * modules/inet_pton (Depends-on): Likewise.
21869         * lib/arpa_inet.in.h: Adjust comment.
21870
21871 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
21872             Bruno Haible  <bruno@clisp.org>
21873
21874         netdb: Simplify.
21875         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
21876         documented to provide socklen_t and we already depend on sys_socket.
21877         * lib/netdb.in.h: Adjust comment.
21878
21879 2011-03-19  Bruno Haible  <bruno@clisp.org>
21880
21881         sys_socket, netdb: Document problem with socklen_t.
21882         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
21883         platforms.
21884         * doc/posix-headers/netdb.texi: Likewise.
21885
21886 2011-03-18  Eric Blake  <eblake@redhat.com>
21887
21888         maint.mk: let po check work in VPATH build
21889         * top/maint.mk (po_file): Allow cfg.mk override.
21890         (sc_po_check): Allow VPATH use.
21891         Reported by Jiri Denemark.
21892
21893 2011-03-16  Jim Meyering  <meyering@redhat.com>
21894
21895         maint.mk: allow fine-grained syntax-check exclusion via Make variables
21896         Before, you would have had to create one .x-sc_ file per rule in order
21897         to exempt offending files.  Now, you may instead use a Make variable --
21898         usually defined in cfg.mk -- whose name identifies the affected rule.
21899         * top/maint.mk (_sc_excl): Define.
21900         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
21901         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
21902
21903 2011-03-13  Bruno Haible  <bruno@clisp.org>
21904
21905         ignore-value tests: Avoid warnings.
21906         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
21907         empty for gcc < 3.4.
21908
21909 2011-03-13  Bruno Haible  <bruno@clisp.org>
21910
21911         passfd: Fix link error on Solaris.
21912         * modules/passfd (Description): Correct.
21913         (Depends-on): Add socketlib.
21914         (Link): New section.
21915         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
21916
21917 2011-03-13  Bruno Haible  <bruno@clisp.org>
21918
21919         passfd: Fix link error on AIX 5.2.
21920         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
21921
21922 2011-03-13  Bruno Haible  <bruno@clisp.org>
21923
21924         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
21925         * lib/sys_socket.in.h: Include <stddef.h>.
21926         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
21927         CMSG_FIRSTHDR. Remove unused variable.
21928
21929 2011-03-13  Bruno Haible  <bruno@clisp.org>
21930
21931         passfd: Fix compilation error on OpenBSD.
21932         * lib/passfd.c: Include <sys/uio.h>.
21933
21934 2011-03-13  Bruno Haible  <bruno@clisp.org>
21935
21936         passfd test: Fix warnings.
21937         * tests/test-passfd.c: Include <sys/wait.h>.
21938         (main): Fix typo.
21939
21940 2011-03-13  Bruno Haible  <bruno@clisp.org>
21941
21942         passfd module, part 4, tweaks.
21943         * tests/test-passfd.c: Reorder includes.
21944         (main): Fix perror and printf calls.
21945
21946 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
21947
21948         passfd module, part 4.
21949         * modules/passfd-tests: New file.
21950         * tests/test-passfd.c: New file.
21951
21952 2011-03-13  Jim Meyering  <meyering@redhat.com>
21953
21954         Makefile: rely on GNU make; derive syntax-check rule names
21955         Rather than requiring that each sc_ rule be listed as a dependent
21956         of "check", use features of GNU make to derive the list.
21957         * Makefile (syntax-check-rules): Define.
21958         (check): Depend on the new variable, not the hard-coded list.
21959
21960 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
21961             Bruno Haible  <bruno@clisp.org>
21962
21963         passfd module, part 3.
21964         * lib/passfd.h (recvfd): Add a flags argument.
21965         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
21966         (recvfd): Add a flags argument.
21967         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
21968         exists.
21969         * modules/passfd (Depends-on): Add cloexec.
21970         Suggested by Eric Blake.
21971
21972 2011-03-13  Bruno Haible  <bruno@clisp.org>
21973
21974         passfd module, part 2, tweaks.
21975         * modules/passfd (Files): Reorder.
21976         (Depends-on): Remove errno.
21977         (Include): Remove <sys/socket.h>, <sys/un.h>.
21978         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
21979         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
21980         specification header. Include <sys/socket.h> always. Don't include
21981         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
21982         (sendfd): Clarify that it sets errno when it fails.
21983         (recvfd): Fix specification.
21984
21985 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
21986
21987         passfd module, part 2.
21988         * modules/passfd: New file.
21989         * lib/passfd.h: New file.
21990         * lib/passfd.c: New file.
21991
21992 2011-03-12  Bruno Haible  <bruno@clisp.org>
21993
21994         wcswidth, mbswidth: Avoid integer overflow.
21995         * lib/wcswidth.c: Include <limits.h>.
21996         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
21997         * lib/mbswidth.c: Include <limits.h>.
21998         (mbsnwidth): Avoid 'int' overflow.
21999         Reported by Jim Meyering.
22000
22001 2011-03-12  Bruno Haible  <bruno@clisp.org>
22002
22003         futimens, utimensat: Avoid endless recursion on Solaris 10.
22004         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
22005         Solaris.
22006         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
22007         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
22008
22009 2011-03-11  Jim Meyering  <meyering@redhat.com>
22010
22011         maint.mk: relax a regexp to accommodate other formatting styles
22012         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
22013         between "ngettext" and the following "(".
22014
22015 2011-03-11  Pádraig Brady <P@draigBrady.com>
22016
22017         maint.mk: suppress a false positive warning
22018         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
22019         diagnostics are marked with ngettext.
22020
22021 2011-03-10  Eric Blake  <eblake@redhat.com>
22022
22023         wchar: add explicit dependencies, for Tru64
22024         * modules/mbmemcasecoll (Depends-on): Add wchar.
22025         * modules/mbtowc (Depends-on): Likewise.
22026         * modules/vasnprintf (Depends-on): Likewise.
22027         * modules/unistdio/u-printf-args (Depends-on): Likewise.
22028         * modules/wctomb (Depends-on): Likewise.
22029         Reported by Peter O'Gorman.
22030
22031 2011-03-08  Bruno Haible  <bruno@clisp.org>
22032
22033         passfd module, part 1, tweaks.
22034         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
22035         Improve indentation. Improve AC_MSG_CHECKING messages.
22036         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
22037         gl_SOCKET_FAMILIES.
22038
22039 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
22040
22041         passfd module, part 1.
22042         * m4/afunix.m4: New file.
22043         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
22044         sockets.
22045
22046 2011-03-08  Bruno Haible  <bruno@clisp.org>
22047
22048         regex-quote: New API.
22049         * lib/regex-quote.h: Include <stdbool.h>.
22050         (struct regex_quote_spec): New type.
22051         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
22052         New declarations.
22053         (regex_quote_length, regex_quote_copy, regex_quote): Take a
22054         'const struct regex_quote_spec *' argument.
22055         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
22056         (pcre_special): New constant.
22057         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
22058         New functions.
22059         (regex_quote_length, regex_quote_copy, regex_quote): Take a
22060         'const struct regex_quote_spec *' argument.
22061         * modules/regex-quote (Depends-on): Add stdbool.
22062         * tests/test-regex-quote.c (check): Update for new API. Add test for
22063         anchored results.
22064         * NEWS: Mention the API change.
22065         Reported by Reuben Thomas and Eric Blake.
22066
22067 2011-03-06  Bruno Haible  <bruno@clisp.org>
22068
22069         regex-quote: Fix creation of POSIX extended regular expressions.
22070         * lib/regex-quote.c (ere_special): Add grouping and alternation
22071         operators.
22072
22073 2011-03-05  Bruno Haible  <bruno@clisp.org>
22074
22075         doc: Improve doc regarding autopoint vs. gnulib.
22076         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
22077         disable autopoint while running autoreconf.
22078         Suggested by Ralf Wildenhues.
22079
22080 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22081
22082         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
22083         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
22084
22085 2011-03-03  Bruce Korb  <bkorb@gnu.org>
22086
22087         parse-duration: remove xalloc.h dependency
22088         * lib/parse-duration.c (parse_period): handle NULL return from
22089         strdup instead of calling xstrdup().
22090         * modules/parse-duration: remove "xalloc" dependency
22091
22092 2011-03-03  Matthew Booth  <mbooth@redhat.com>
22093
22094         bootstrap: honor m4_base when running aclocal
22095         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
22096
22097 2011-03-02  Jim Meyering  <meyering@redhat.com>
22098
22099         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
22100         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
22101         on request from Matt Booth.
22102
22103 2011-03-01  Eric Blake  <eblake@redhat.com>
22104
22105         test-link: work on Hurd
22106         * tests/test-link.h (test_link): Hurd rejects linking directories
22107         with EISDIR instead of the POSIX-mandated EPERM.
22108
22109 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
22110
22111         stdio: simplify by moving files to printf-posix, sigpipe
22112         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
22113         since this symbol is needed only if printf is replaced.
22114         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
22115         Require gl_ASM_SYMBOL_PREFIX.
22116         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
22117         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
22118         (Depends-on): Add 'raise'.
22119         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
22120         * modules/stdio (Files): Remove lib/stdio-write.c,
22121         m4/asm-underscore.m4.
22122         (Depends-on): Remove 'raise'.
22123
22124         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
22125         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
22126         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
22127         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
22128
22129 2011-02-28  Bruno Haible  <bruno@clisp.org>
22130
22131         localcharset: Assume ANSI C behaviour of free().
22132         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
22133         calling free().
22134         Suggested by Simon Josefsson <simon@josefsson.org>.
22135
22136 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
22137             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
22138             Bruno Haible  <bruno@clisp.org>  (tiny change)
22139
22140         On Cygwin, use /proc file system instead of win32 API.
22141         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
22142         Win32 file names.
22143         (DllMain): Simplify by removing Cygwin specific code.
22144         (find_shared_library_fullname): Use Linux specific implementation also
22145         for Cygwin.
22146         (get_shared_library_fullname): Update accordingly.
22147         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
22148         Win32 file names.
22149         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
22150         Cygwin specific code.
22151
22152 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
22153             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
22154
22155         Fix OpenMP flag detection for various Fortran compilers.
22156         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
22157         OpenMP-conditional compilation construct, to force compile
22158         failure with missing OpenMP flag.
22159         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
22160
22161 2011-02-25  Eric Blake  <eblake@redhat.com>
22162
22163         strstr: expand test coverage
22164         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
22165         compilation.
22166         * tests/test-memmem.c (main): Duplicate tests.
22167         * tests/test-strcasestr.c (main): Likewise.
22168         * tests/test-c-strcasestr.c (main): Likewise.
22169
22170 2011-02-25  Jim Meyering  <meyering@redhat.com>
22171
22172         maint.mk: detect missing-NL-at-EOF, too
22173         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
22174         it also detects when a file lacks a newline at EOF.
22175         (require_exactly_one_NL_at_EOF_): Renamed from
22176         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
22177         since people may well have .x-sc_... file names tied to the
22178         existing name.  Suggested by Eric Blake.
22179
22180 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
22181
22182         dirname: move m4/dos.m4 functionality into lib/dosname.h
22183
22184         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
22185         extracts symbols from it, puts them into config.h; but it's much
22186         easier to use the symbols directly.  filename.h already does this,
22187         but it disagrees with dos.m4 in some respects.  This patch
22188         introduces a different include file dosname.h that packages up
22189         dos.m4, and then later we can work on merging filename.h and
22190         dosname.h.  Applications that need only the easy-to-configure
22191         symbols should consider including dosname.h rather than dirname.h.
22192         * NEWS: Mention incompatible changes.
22193         * m4/dos.m4: Remove.
22194         * lib/dosname.h, modules/dosname: New files.
22195         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
22196         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
22197         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
22198         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
22199         Include dosname.h, not dirname.h.
22200         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
22201         Include dosname.h, for definitions of symbols like ISSLASH
22202         that used to be in config.h.
22203         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
22204         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
22205         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
22206         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
22207         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
22208         * modules/rmdir (Files): Likewise.
22209         * modules/stat (Files): Likewise.
22210         * modules/unlink (Files): Likewise.
22211         * modules/dirname-lgpl (Depends-on): Add dosname.
22212         * modules/lstat (Depends-on): Likewise.
22213         * modules/openat (Depends-on): Likewise.
22214         * modules/rmdir (Depends-on): Likewise.
22215         * modules/savewd (Depends-on): Likewise.
22216         * modules/stat (Depends-on): Likewise.
22217         * modules/unlink (Depends-on): Likewise.
22218         * modules/openat (Depends-on): Remove dirname-lgpl.
22219         * modules/savewd (Depends-on): Likewise.
22220         * tests/test-dirname.c: Do not use removed symbols like
22221         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
22222         the remaining symbols, e.g., ISSLASH ('\\').
22223
22224 2011-02-25  Eric Blake  <eblake@redhat.com>
22225
22226         strstr: revert patches that introduced bug and pessimization
22227         * lib/str-two-way.h: Add another reference.
22228         (two_way_short_needle, two_way_long_needle): Revert changes from
22229         2011-02-24; they pessimize search speed.
22230         (critical_factorization): Partially revert changes from
22231         2010-06-22; they violate the requirement that the left half of the
22232         needle be smaller than the period of the needle.
22233
22234 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
22235
22236         filenamecat: remove unnecessary dependency on dirname-lgpl
22237         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
22238         is no direct dependency, just an indirect one via filenamecat-lgpl.
22239
22240         remove: remove unnecessary use of m4/dos.m4
22241         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
22242         * modules/remove (FILES): Remove m4/dos.m4.
22243
22244         * lib/openat-proc.c: Don't include dirname.h; not needed.
22245
22246         backupfile: remove unnecessary use of m4/dos.m4
22247         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
22248         of its symbols are used by the backupfile code.  backupfile.c does
22249         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
22250         for the rare case of programs that want all their backup file
22251         names to live within 8+3 limits, and dos.m4 doesn't address that.
22252         * modules/backupfile (Files): Remove m4/dos.m4.
22253
22254 2011-02-24  Jim Meyering  <meyering@redhat.com>
22255
22256         strstr: fix a bug whereby strstr would mistakenly return NULL
22257         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
22258         in period calculation.
22259         (two_way_long_needle): Likewise.
22260         The original problem was reported by Mike Stump in
22261         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
22262         Ralf Wildenhues provided the short needle and haystack.
22263         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
22264         Add a more involved test to trigger the bug in two_way_long_needle.
22265
22266 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
22267
22268         gnulib-tool: remove use of bold display in help screen
22269         * gnulib-tool (func_usage): Do not use bold display anymore in the
22270         help screen.  That was just meant to be a temporary emphasis for a
22271         backward-incompatible change.
22272
22273 2011-02-23  Bruno Haible  <bruno@clisp.org>
22274
22275         Fix misindentation of preprocessor directives.
22276         * lib/argp-namefrob.h: Reindent preprocessor directives.
22277         * lib/getopt_int.h (struct _getopt_data): Likewise.
22278         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
22279         * lib/vasnprintf.c (decode_long_double): Likewise.
22280         * tests/test-argmatch.c: Insert blank lines, for clarity.
22281         * tests/test-exclude.c: Likewise.
22282
22283 2011-02-22  Bruno Haible  <bruno@clisp.org>
22284
22285         ioctl: Fix for MacOS X in 64-bit mode.
22286         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
22287         value.
22288         Suggested by Eric Blake.
22289         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
22290
22291 2011-02-22  Jim Meyering  <meyering@redhat.com>
22292
22293         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
22294         * Makefile (sc_cpp_indent_check): Don't limit the check to files
22295         in lib/.
22296
22297 2011-02-22  Eric Blake  <eblake@redhat.com>
22298
22299         maint: avoid any CDPATH issue
22300         * Makefile (sc_cpp_indent_check): Anchor cd argument.
22301
22302         maint: adjust cpp indentation for my modules, as well
22303         * Makefile (sc_cpp_indent_check): Add my name.
22304         * lib/fbufmode.c: Filter through cppi.
22305         * lib/fpurge.c: Likewise.
22306         * lib/freadable.c: Likewise.
22307         * lib/freading.c: Likewise.
22308         * lib/fwritable.c: Likewise.
22309         * lib/fwriting.c: Likewise.
22310         * lib/sigaction.c: Likewise.
22311
22312 2011-02-22  Jim Meyering  <meyering@redhat.com>
22313
22314         maint: adjust cpp indentation to reflect nesting depth
22315         I.e., in a block of code that begins with an unnested "#if",
22316         put one space between the "#" in column 1 and following token.
22317         For example,
22318         -#include <sys/vfs.h>
22319         +# include <sys/vfs.h>
22320         Do this only in .c files that are part of a module I maintain.
22321         * lib/linkat.c: Filter through cppi.
22322         * lib/nanosleep.c: Likewise.
22323         * lib/openat.c: Likewise.
22324         * lib/openat-die.c: Likewise.
22325         * lib/dup3.c: Likewise.
22326         * lib/fchownat.c: Likewise.
22327         * lib/flock.c: Likewise.
22328         * lib/fsync.c: Likewise.
22329         * lib/fts.c: Likewise.
22330         * lib/getpass.c: Likewise.
22331         * lib/gettimeofday.c: Likewise.
22332         * lib/userspec.c: Likewise.
22333         * Makefile (sc_cpp_indent_check): New rule, to check this.
22334
22335 2011-02-22  Bruno Haible  <bruno@clisp.org>
22336
22337         New module 'wctomb'.
22338         * lib/stdlib.in.h (wctomb): New declaration.
22339         * lib/wctomb.c: New file.
22340         * lib/wctomb-impl.h: New file.
22341         * m4/wctomb.m4: New file.
22342         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
22343         REPLACE_WCTOMB.
22344         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
22345         REPLACE_WCTOMB.
22346         * modules/wctomb: New file.
22347         * tests/test-stdlib-c++.cc: Test signature of wctomb.
22348         * doc/posix-functions/wctomb.texi: Mention the new module.
22349         * modules/wctob (Depends-on): Add wctomb.
22350
22351 2011-02-22  Bruno Haible  <bruno@clisp.org>
22352
22353         New module 'mbtowc'.
22354         * lib/stdlib.in.h (mbtowc): New declaration.
22355         * lib/mbtowc.c: New file.
22356         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
22357         * m4/mbtowc.m4: New file.
22358         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
22359         REPLACE_MBTOWC.
22360         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
22361         REPLACE_MBTOWC.
22362         * modules/mbtowc: New file.
22363         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
22364         * doc/posix-functions/mbtowc.texi: Mention the new module.
22365         * modules/btowc (Depends-on): Add mbtowc.
22366
22367 2011-02-22  Bruno Haible  <bruno@clisp.org>
22368
22369         wcrtomb: Add more tests for native Windows platforms.
22370         * tests/test-wcrtomb-w32-1.sh: New file.
22371         * tests/test-wcrtomb-w32-2.sh: New file.
22372         * tests/test-wcrtomb-w32-3.sh: New file.
22373         * tests/test-wcrtomb-w32-4.sh: New file.
22374         * tests/test-wcrtomb-w32-5.sh: New file.
22375         * tests/test-wcrtomb-w32.c: New file.
22376         * modules/wcrtomb-tests (Files): Add them.
22377         (Makefile.am): Arrange to run these tests.
22378         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
22379         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
22380
22381 2011-02-20  Bruno Haible  <bruno@clisp.org>
22382
22383         wcrtomb: Enhance test.
22384         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
22385
22386 2011-02-20  Bruno Haible  <bruno@clisp.org>
22387
22388         mbrtowc: Tiny optimization.
22389         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
22390
22391 2011-02-20  Jim Meyering  <meyering@redhat.com>
22392
22393         test-exclude.c: remove unmatched #endif
22394         * tests/test-exclude.c: Remove stray #endif, left over from
22395         the change of a week ago.
22396
22397 2011-02-19  Jim Meyering  <meyering@redhat.com>
22398
22399         git-version-gen: skip "-dirty" check when appropriate
22400         * build-aux/git-version-gen: Don't run any git commands when the
22401         version string comes from .tarball-version.  Prior to this, we
22402         would run git update-index --refresh even from a just-unpacked
22403         tarball directory, and that could affect a .git/ directory in a
22404         parent of the build directory.  Reported by Mike Frysinger.
22405
22406 2011-02-19  Bruno Haible  <bruno@clisp.org>
22407
22408         unictype/property-byname: Reduce the size of the 'data' segment.
22409         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
22410
22411 2011-02-19  Bruno Haible  <bruno@clisp.org>
22412
22413         unictype/scripts: Reduce the size of the 'data' segment.
22414         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
22415         '%pic'.
22416         * lib/unictype/scripts_byname.gperf: Regenerated.
22417
22418 2011-02-19  Bruno Haible  <bruno@clisp.org>
22419
22420         stdint: Update documentation.
22421         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
22422
22423 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
22424
22425         stdint: omit redundant check for wchar.h
22426         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
22427         always tests whether wchar.h exists, so remove the now-redundant test.
22428
22429 2011-02-18  Bruno Haible  <bruno@clisp.org>
22430
22431         stdint: Cut dependency to module 'wchar'.
22432         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
22433         include the necessary prerequisites.
22434         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
22435         * modules/stdint (Depends-on): Remove wchar.
22436         (Makefile.am): Substitute HAVE_WCHAR_H.
22437         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
22438
22439 2011-02-18  Eric Blake  <eblake@redhat.com>
22440
22441         longlong: skip, rather than fail, on cross-compilation
22442         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
22443         when cross-compiling; regression from 2011-02-16.
22444
22445 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
22446
22447         * NEWS: Mention 2011-02-08 change to stdlib.
22448
22449 2011-02-17  Bruno Haible  <bruno@clisp.org>
22450
22451         getloadavg: Add comments about platforms.
22452         * m4/getloadavg.m4: Add comment.
22453         * lib/getloadavg.c: Likewise.
22454
22455 2011-02-17  Bruno Haible  <bruno@clisp.org>
22456
22457         getloadavg: Fix link error on Solaris 2.6.
22458         * modules/getloadavg (Link): New section.
22459         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
22460         linking test-getloadavg.
22461         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
22462         getloadavg.
22463
22464 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
22465
22466         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
22467         It was 'int', but this doesn't match the IRIX 6.5 manual.
22468         Suggested by Bruno Haible in
22469         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
22470
22471 2011-02-17  Bruno Haible  <bruno@clisp.org>
22472
22473         havelib: Fix comments.
22474         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
22475         change.
22476
22477 2011-02-17  Bruno Haible  <bruno@clisp.org>
22478
22479         havelib: Update config.rpath.
22480         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
22481
22482 2011-02-17  Bruno Haible  <bruno@clisp.org>
22483
22484         getloadavg test: Add some plausibility checks.
22485         * tests/test-getloadavg.c (check_avg): Print a warning when the value
22486         is improbable.
22487
22488 2011-02-16  Eric Blake  <eblake@redhat.com>
22489
22490         maintainer-makefile: make syntax-check a no-op from tarballs
22491         * top/maint.mk (no-vc-detected): New rule.
22492         (local-checks-available): Use it to avoid hanging if someone tries
22493         'make syntax-check' from a tarball.  Also append to any non-syntax
22494         checks already defined in cfg.mk.
22495
22496 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
22497
22498         longlong: tune, particularly for common case of c99
22499
22500         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
22501         or running anything if c99, or if unsigned long long int does not
22502         work.  In either case, we know the answer without further tests.
22503         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
22504         it at most once, and use its results for both long long int and
22505         unsigned long long int.  This is more likely to be efficient in
22506         the common case where the program wants to check for both long
22507         long int and unsigned long long int.
22508         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
22509         since the answer is already known.
22510
22511 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
22512
22513         getloadavg: set errno
22514         * lib/getloadavg.c: Set errno when returning -1.  If no other
22515         error number looks appropriate, set it to ENOSYS if the getloadavg
22516         looks like it can't possibly ever work, ENOTSUP otherwise.
22517         Suggested by Bruno Haible in
22518         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
22519
22520         getloadavg: trim unused parts and speed up 'configure'
22521         * NEWS: Document this.
22522         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
22523         always compiled if getloadavg is absent.
22524         Move test code to ...
22525         * tests/test-getloadavg.c: New file, containing previous
22526         contents of test from lib/getloadavg.c.  It also contains
22527         suggestions by Bruno Haible in
22528         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
22529         * modules/getloadavg-tests: New file.
22530         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
22531         Do tests in the same order as they're needed for getloadavg.c.
22532         Omit setgid-related tests that generate symbols KMEM_GROUP,
22533         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
22534         Do only the tests that are needed to see whether the system has
22535         getloadavg, moving the other tests into ...
22536         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
22537         NLIST_NAME_UNION; nobody should be using it.  Do not define
22538         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
22539         relevant, as the user of this module shouldn't care how getloadavg
22540         is implemented.
22541
22542         getloadavg: omit unused var
22543         * lib/getloadavg.c (getloadavg): Omit unused local variable.
22544
22545 2011-02-15  Jim Meyering  <meyering@redhat.com>
22546
22547         doc: update users.txt
22548         * users.txt: Update iwhd's URL.
22549
22550 2011-02-13  Bruno Haible  <bruno@clisp.org>
22551
22552         Consistent macro naming for macros that use GCC __attribute__.
22553         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
22554         _ATTRIBUTE_NONNULL_.
22555         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
22556         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
22557         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
22558         ATTRIBUTE_DEPRECATED.
22559         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
22560         ATTRIBUTE_NORETURN.
22561         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22562         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22563         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22564         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
22565         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
22566         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
22567         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
22568         ATTRIBUTE_SENTINEL.
22569         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
22570         ATTRIBUTE_RETURN_CHECK.
22571         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
22572         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
22573         ATTRIBUTE_NORETURN.
22574         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
22575         Reported by Paul Eggert.
22576
22577 2011-02-13  Bruno Haible  <bruno@clisp.org>
22578
22579         Don't interfere with a program's definition of __attribute__.
22580         * lib/argp.h (__attribute__): Remove definition.
22581         (_GL_ATTRIBUTE_FORMAT): New macro.
22582         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
22583         * lib/argp-fmtstream.h (__attribute__): Remove definition.
22584         (_GL_ATTRIBUTE_FORMAT): New macro.
22585         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
22586         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
22587         GCC 3 or newer.
22588         * lib/error.h (__attribute__): Remove definition.
22589         (_GL_ATTRIBUTE_FORMAT): New macro.
22590         (error, error_at_line): Use it.
22591         * lib/hash.h (__attribute__): Remove definition.
22592         (ATTRIBUTE_WUR): Update definition. Define always.
22593         * lib/openat.h (__attribute__): Remove definition.
22594         (ATTRIBUTE_NORETURN): Update definition. Define always.
22595         * lib/sigpipe-die.h (__attribute__): Remove definition.
22596         (ATTRIBUTE_NORETURN): Update definition. Define always.
22597         * lib/vasnprintf.h (__attribute__): Remove definition.
22598         (_GL_ATTRIBUTE_FORMAT): New macro.
22599         (asnprintf, vasnprintf): Use it.
22600         * lib/xalloc.h (__attribute__): Remove definition.
22601         (ATTRIBUTE_NORETURN): Update definition. Define always.
22602         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
22603         * lib/xmemdup0.h (__attribute__): Remove definition.
22604         (ATTRIBUTE_NORETURN): Update definition. Define always.
22605         * lib/xprintf.h (__attribute__): Remove definition.
22606         (_GL_ATTRIBUTE_FORMAT): New macro.
22607         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
22608         * lib/xstrtol.h (__attribute__): Remove definition.
22609         (ATTRIBUTE_NORETURN): Update definition. Define always.
22610         * lib/xvasprintf.h (__attribute__): Remove definition.
22611         (_GL_ATTRIBUTE_FORMAT): New macro.
22612         (xasprintf, xvasprintf): Use it.
22613         * tests/test-argmatch.c (__attribute__): Remove definition.
22614         (ATTRIBUTE_NORETURN): Update definition. Define always.
22615         * tests/test-exclude.c (__attribute__): Remove definition.
22616         (ATTRIBUTE_NORETURN): Update definition. Define always.
22617         Reported by Paul Eggert.
22618
22619 2011-02-13  Bruno Haible  <bruno@clisp.org>
22620
22621         mbrtowc: Add more tests for native Windows platforms.
22622         * tests/test-mbrtowc-w32-1.sh: New file.
22623         * tests/test-mbrtowc-w32-2.sh: New file.
22624         * tests/test-mbrtowc-w32-3.sh: New file.
22625         * tests/test-mbrtowc-w32-4.sh: New file.
22626         * tests/test-mbrtowc-w32-5.sh: New file.
22627         * tests/test-mbrtowc-w32.c: New file.
22628         * modules/mbrtowc-tests (Files): Add them.
22629         (Makefile.am): Arrange to run these tests.
22630         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
22631         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
22632
22633 2011-02-13  Bruno Haible  <bruno@clisp.org>
22634
22635         mbrtowc: Work around native Windows bug.
22636         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
22637         guess when no suitable locale for testing was found.
22638         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
22639
22640 2011-02-13  Bruno Haible  <bruno@clisp.org>
22641
22642         mbsinit: Work around mingw bug.
22643         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
22644         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
22645         Windows.
22646         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
22647
22648 2011-02-13  Bruno Haible  <bruno@clisp.org>
22649
22650         mbsinit: Don't crash for a NULL argument.
22651         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
22652         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
22653
22654 2011-02-13  Bruno Haible  <bruno@clisp.org>
22655
22656         Don't interfere with a program's definition of __attribute__.
22657         * lib/stdio.in.h (__attribute__): Remove definition.
22658         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
22659         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
22660         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
22661         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
22662         * lib/string.in.h (__attribute__): Remove definition.
22663         Reported by Paul Eggert.
22664
22665 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
22666
22667         stdlib: don't get in the way of non-GCC __attribute__
22668         See thread starting at
22669         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
22670         Revert previous stdlib change, installing the following instead:
22671         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
22672         to get in the way of a non-GCC compiler that supports __attribute__.
22673         (_GL_ATTRIBUTE_RETURN): New macro.
22674         (_Exit): Use it instead of __attribute__.
22675
22676 2011-02-12  Bruno Haible  <bruno@clisp.org>
22677
22678         quotearg test: Avoid test failure on mingw.
22679         * tests/test-quotearg.sh: Convert the locale identifier from native
22680         Windows syntax to Unix syntax.
22681
22682 2011-02-12  Bruno Haible  <bruno@clisp.org>
22683
22684         setlocale: Prefer gnulib's override over libintl's override.
22685         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
22686         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
22687         GNULIB_defined_setlocale is set.
22688
22689 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
22690
22691         stdlib: support non-GCC __attribute__
22692
22693         Fix a serious and tricky problem encountered when attempting to
22694         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
22695         5.5, but it crashed due to memory corruption on Solaris 10 with
22696         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
22697         bits that are otherwise zero.  This tagging is optional inside
22698         Emacs but is preferred and is used when __attribute__ ((__aligned
22699         (8))) works, as it does with both recent-enough GCC and with Sun C
22700         5.11.  However, Sun C 5.11 is not GCC and does not #define
22701         __GNUC__ and __GNUC_MINOR__.
22702
22703         When I added the getloadavg module to Emacs, it brought in
22704         stdlib.in.h, which contained this fragment:
22705
22706            #ifndef __attribute__
22707            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
22708            #  define __attribute__(Spec)   /* empty */
22709            # endif
22710            #endif
22711
22712         When files that include <stdlib.h> were compiled with Sun C 5.11,
22713         the above code disabled __attribute__ ((__aligned (8))), which
22714         caused variables to not be properly aligned, which eventually led
22715         to the pointer corruption mentioned above.  (This was a bit hard
22716         to diagnose, unfortunately.)
22717
22718         Several "#define __attribute__(X) /* empty */" code snippets need
22719         to be eradicated from Gnulib to work with non-GCC compilers that
22720         support __attribute__.  The Autoconf way to do this is to test for
22721         each kind of attribute that we want support for, and selectively
22722         enable that in source code.
22723
22724         Fix this problem just for stdlib.h, by adding a test for the
22725         __noreturn__ attribute, and change stdlib.in.h to use that test
22726         when needed.  This technique can be easily generalized to the
22727         other *.in.h files and attributes, and a similar technique can be
22728         used for *.h and *.c files.  This patch is enough to solve the
22729         problem for Emacs + getloadavg, and I thought I'd publish it for
22730         feedback before undertaking further, similar fixes in other
22731         modules.
22732
22733         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
22734         because it's not needed for stdlib.h.  It merely substitutes the
22735         value directly into stdlib.h.  We may well need to #define it, or
22736         similar symbols, for other modules, but it's nice to also have an
22737         option to not #define it for applications like Emacs that do not
22738         need it.
22739
22740         * lib/stdlib.in.h (__attribute__): Do not #define.
22741         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
22742         be defined only if the _Exit module is also used.
22743         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
22744         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
22745         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
22746         platforms.
22747         * modules/_Exit (Files): Add m4/attribute.m4.
22748         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
22749         * m4/attribute.m4: New file.
22750
22751 2011-02-12  Bruno Haible  <bruno@clisp.org>
22752
22753         wcsrtombs: Work around bug on native Windows.
22754         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
22755         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
22756         instead of len.
22757         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
22758
22759 2011-02-12  Bruno Haible  <bruno@clisp.org>
22760
22761         mbsrtowcs: Work around bug on native Windows.
22762         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
22763         against mingw bug.
22764         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
22765
22766 2011-02-12  Bruno Haible  <bruno@clisp.org>
22767
22768         Avoid setlocale bugs in tests.
22769         * modules/btowc (Dependencies): Add setlocale.
22770         * modules/c-strcase (Dependencies): Likewise.
22771         * modules/mbmemcasecmp (Dependencies): Likewise.
22772         * modules/mbmemcasecoll (Dependencies): Likewise.
22773         * modules/mbrtowc (Dependencies): Likewise.
22774         * modules/mbscasecmp (Dependencies): Likewise.
22775         * modules/mbscasestr (Dependencies): Likewise.
22776         * modules/mbschr (Dependencies): Likewise.
22777         * modules/mbscspn (Dependencies): Likewise.
22778         * modules/mbsinit (Dependencies): Likewise.
22779         * modules/mbsncasecmp (Dependencies): Likewise.
22780         * modules/mbsnrtowcs (Dependencies): Likewise.
22781         * modules/mbspbrk (Dependencies): Likewise.
22782         * modules/mbspcasecmp (Dependencies): Likewise.
22783         * modules/mbsrchr (Dependencies): Likewise.
22784         * modules/mbsrtowcs (Dependencies): Likewise.
22785         * modules/mbsspn (Dependencies): Likewise.
22786         * modules/mbsstr (Dependencies): Likewise.
22787         * modules/nl_langinfo (Dependencies): Likewise.
22788         * modules/quotearg (Dependencies): Likewise.
22789         * modules/unicase/locale-language (Dependencies): Likewise.
22790         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
22791         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
22792         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
22793         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
22794         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
22795         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
22796         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
22797         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
22798         * modules/vasnprintf-posix (Dependencies): Likewise.
22799         * modules/wcrtomb (Dependencies): Likewise.
22800         * modules/wcsnrtombs (Dependencies): Likewise.
22801         * modules/wcsrtombs (Dependencies): Likewise.
22802
22803 2011-02-12  Bruno Haible  <bruno@clisp.org>
22804
22805         setlocale: Workaround native Windows bug.
22806         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
22807         succeeds but sets LC_CTYPE to "C", report a failure.
22808         * tests/test-setlocale2.sh: New file.
22809         * tests/test-setlocale2.c: New file.
22810         * modules/setlocale-tests (Files): Add the new files.
22811         (Makefile.am): Enable test-setlocale2.sh test.
22812         * doc/posix-functions/setlocale.texi: Mention workaround.
22813
22814 2011-02-11  Bruno Haible  <bruno@clisp.org>
22815
22816         Tests for module 'setlocale'.
22817         * modules/setlocale-tests: New file.
22818         * tests/test-setlocale1.sh: New file.
22819         * tests/test-setlocale1.c: New file.
22820
22821         New module 'setlocale'.
22822         * lib/locale.in.h (setlocale): New declaration.
22823         * lib/setlocale.c: New file, based on
22824         gettext/gettext-runtime/intl/setlocale.c.
22825         * m4/setlocale.m4: New file.
22826         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
22827         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
22828         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
22829         REPLACE_SETLOCALE.
22830         * modules/setlocale: New file.
22831         * tests/test-locale-c++.cc: Test the declaration of setlocale.
22832         * doc/posix-functions/setlocale.texi: Mention the new module.
22833
22834 2011-02-11  Bruno Haible  <bruno@clisp.org>
22835
22836         Prepare for locale dependent tests on mingw.
22837         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
22838         because it has the wrong locale encoding.
22839         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
22840         French_France.1252 instead of "fr".
22841         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
22842         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
22843         because it has the wrong locale encoding.
22844         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
22845         native Windows, try Turkish_Turkey.65001.
22846         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
22847         Chinese_China.54936.
22848
22849         Prepare for locale dependent tests on mingw.
22850         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
22851         differently.
22852         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
22853         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
22854         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
22855         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
22856
22857 2011-02-11  Eric Blake  <eblake@redhat.com>
22858
22859         strptime: avoid compiler warnings
22860         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
22861         compiler warnings about dead code.
22862         Reported by Daniel P. Berrange.
22863
22864 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
22865
22866         doc: update users.txt
22867         * users.txt: Add rcs.
22868
22869 2011-02-10  John W. Eaton  <jwe@gnu.org>
22870
22871         doc: update users.txt
22872         * users.txt: Add octave.
22873
22874 2011-02-10  Jim Meyering  <meyering@redhat.com>
22875
22876         doc: update users.txt
22877         * users.txt: Add iwhd.
22878
22879 2011-02-09  Bruno Haible  <bruno@clisp.org>
22880
22881         gnulib-tool: Make copyright notice adjustment more robust.
22882         * gnulib-tool (func_import): In sed_transform_main_lib_file,
22883         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
22884         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
22885         License".
22886         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
22887
22888 2011-02-06  Bruno Haible  <bruno@clisp.org>
22889
22890         New module 'towctrans'.
22891         * modules/towctrans: New file.
22892         * lib/wctype.in.h (towctrans): New declaration.
22893         * lib/towctrans.c: New file.
22894         * lib/towctrans-impl.h: New file.
22895         * m4/towctrans.m4: New file.
22896         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
22897         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
22898         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
22899         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
22900         * doc/posix-functions/towctrans.texi: Mention the new module.
22901
22902 2011-02-06  Bruno Haible  <bruno@clisp.org>
22903
22904         New module 'wctrans'.
22905         * modules/wctrans: New file.
22906         * lib/wctype.in.h (wctrans): New declaration.
22907         * lib/wctrans.c: New file.
22908         * lib/wctrans-impl.h: New file.
22909         * m4/wctrans.m4: New file.
22910         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
22911         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
22912         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
22913         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
22914         * doc/posix-functions/wctrans.texi: Mention the new module.
22915
22916 2011-02-06  Bruno Haible  <bruno@clisp.org>
22917
22918         New module 'iswctype'.
22919         * modules/iswctype: New file.
22920         * lib/wctype.in.h (iswctype): New declaration.
22921         * lib/iswctype.c: New file.
22922         * lib/iswctype-impl.h: New file.
22923         * m4/iswctype.m4: New file.
22924         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
22925         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
22926         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
22927         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
22928         * doc/posix-functions/iswctype.texi: Mention the new module and the
22929         HP-UX 11.00 problem.
22930
22931 2011-02-06  Bruno Haible  <bruno@clisp.org>
22932
22933         New module 'wctype'.
22934         * modules/wctype: Change to represent the wctype() substitute.
22935         * lib/wctype.in.h (wctype): New declaration.
22936         * lib/wctype.c: New file.
22937         * lib/wctype-impl.h: New file.
22938         * m4/wctype.m4: New file.
22939         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
22940         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
22941         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
22942         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
22943         * doc/posix-functions/wctype.texi: Mention the new module and the
22944         HP-UX 11.00 problem.
22945
22946 2011-02-06  Bruno Haible  <bruno@clisp.org>
22947
22948         wctype-h: Ensure wctype_t and wctrans_t are defined.
22949         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
22950         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
22951         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
22952         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
22953         HAVE_WCTRANS_T.
22954         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
22955
22956 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
22957
22958         flock: fix license typo
22959
22960         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
22961         omitted.
22962
22963 2011-02-08  Bruno Haible  <bruno@clisp.org>
22964
22965         Split large sed scripts, for HP-UX sed.
22966         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
22967         to avoid HP-UX limit of 99 commands, in the near future.
22968         * modules/stdlib (Makefile.am): Likewise.
22969         * modules/unistd (Makefile.am): Likewise.
22970         * modules/wchar (Makefile.am): Likewise.
22971         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
22972         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
22973         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
22974
22975 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
22976             Bruno Haible  <bruno@clisp.org>
22977
22978         stdlib: improve random_r modularization
22979         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
22980         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
22981         you also need the random_r module to get this material right.
22982         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
22983         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
22984         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
22985
22986 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
22987
22988         stdlib: don't depend on stdint
22989         * lib/stdlib.in.h: Don't include <stdint.h> merely because
22990         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
22991         be independent of whether stdint.h is needed.
22992         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
22993         here, instead of ...
22994         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
22995         struct random_data should be using the random_r module, not just
22996         the stdlib module (which wouldn't make sense: what package needs
22997         just struct random_data without also needing random_r?).
22998         * modules/stdlib (Depends-on): Remove stdint.
22999
23000         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
23001         See the thread rooted at
23002         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
23003         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
23004         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
23005         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
23006         __VMS)); previously it was always included (via fcntl--.h).
23007         (getloadavg): Do not use c_strtod.  Instead, approximate it by
23008         hand; this is good enough for load averages.  Also, do not use
23009         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
23010         flags directly if available and don't bother otherwise.  (Packages
23011         that need the extra reliability should use the modules that define
23012         these flags on older platforms that lack them.)
23013         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
23014         fcntl-safer.
23015
23016 2011-02-08  Jim Meyering  <meyering@redhat.com>
23017
23018         di-set.h, ino-map.h: add multiple-inclusion guard
23019         Technically, the guard is required only for ino-map.h, due to its
23020         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
23021         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
23022         * lib/ino-map.h: Likewise.
23023
23024 2011-02-06  Bruno Haible  <bruno@clisp.org>
23025
23026         iswblank: Ensure declaration on glibc systems.
23027         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
23028         * modules/iswblank (Dependencies): Add 'extensions'.
23029         * doc/posix-functions/iswblank.texi: Document the glibc problem.
23030
23031 2011-02-06  Bruno Haible  <bruno@clisp.org>
23032
23033         New module 'iswblank'.
23034         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
23035         * modules/iswblank: New file.
23036         * modules/wctype-h (Files): Remove lib/iswblank.c.
23037         (Makefile.am): Substitute GNULIB_ISWBLANK.
23038         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
23039         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
23040         (gl_WCTYPE_H_DEFAULTS): New macro.
23041         (gl_WCTYPE_H): Require it. Remove iswblank related code.
23042         * modules/iswblank-tests: New file.
23043         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
23044         * tests/test-wctype-h.c (main): Remove iswblank tests.
23045         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
23046         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
23047         of 'wctype-h'.
23048         * NEWS: Mention the change.
23049         * modules/mbchar (Depends-on): Add iswblank.
23050
23051 2011-02-08  Bruno Haible  <bruno@clisp.org>
23052
23053         di-set tests: Refactor.
23054         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
23055         unnecessary includes.
23056         (ASSERT): Remove macro.
23057         (main): Make C90 compliant by avoiding variable declaration after
23058         statement.
23059         * modules/di-set-tests (Files): Add tests/macros.h.
23060
23061 2011-02-08  Bruno Haible  <bruno@clisp.org>
23062
23063         ino-map tests: Refactor.
23064         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
23065         unnecessary includes.
23066         (ASSERT): Remove macro.
23067         (main): Make C90 compliant by avoiding variable declaration after
23068         statement.
23069         * modules/ino-map-tests (Files): Add tests/macros.h.
23070
23071 2011-02-08  Jim Meyering  <meyering@redhat.com>
23072
23073         di-set: add "const" to a cast
23074         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
23075         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
23076
23077 2011-02-06  Bruno Haible  <bruno@clisp.org>
23078
23079         Rename module 'wctype' to 'wctype-h'.
23080         * modules/wctype-h: Renamed from modules/wctype.
23081         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
23082         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
23083         (Files, Depends-on, Makefile.am): Update.
23084         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
23085         (Files, Makefile.am): Update.
23086         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
23087         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
23088         * doc/posix-headers/wctype.texi: Update.
23089         * doc/posix-functions/iswalnum.texi: Update.
23090         * doc/posix-functions/iswalpha.texi: Update.
23091         * doc/posix-functions/iswblank.texi: Update.
23092         * doc/posix-functions/iswcntrl.texi: Update.
23093         * doc/posix-functions/iswdigit.texi: Update.
23094         * doc/posix-functions/iswgraph.texi: Update.
23095         * doc/posix-functions/iswlower.texi: Update.
23096         * doc/posix-functions/iswprint.texi: Update.
23097         * doc/posix-functions/iswpunct.texi: Update.
23098         * doc/posix-functions/iswspace.texi: Update.
23099         * doc/posix-functions/iswupper.texi: Update.
23100         * doc/posix-functions/iswxdigit.texi: Update.
23101         * doc/posix-functions/towlower.texi: Update.
23102         * doc/posix-functions/towupper.texi: Update.
23103         * NEWS: Mention the change.
23104         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
23105         * modules/mbchar (Dependencies): Likewise.
23106         * modules/mbswidth (Dependencies): Likewise.
23107         * modules/quotearg (Dependencies): Likewise.
23108         * modules/regex (Dependencies): Likewise.
23109         * modules/wcscasecmp (Dependencies): Likewise.
23110         * modules/wcsncasecmp (Dependencies): Likewise.
23111         * modules/wcwidth (Dependencies): Likewise.
23112
23113 2011-02-06  Bruno Haible  <bruno@clisp.org>
23114
23115         New module 'wcswidth'.
23116         * modules/wcswidth: New file.
23117         * lib/wchar.in.h (wcswidth): New declaration.
23118         * lib/wcswidth.c: New file.
23119         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
23120         * m4/wcswidth.m4: New file.
23121         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
23122         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
23123         REPLACE_WCSWIDTH.
23124         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
23125         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
23126         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
23127         * doc/posix-functions/wcswidth.texi: Mention the new module.
23128
23129 2011-02-06  Bruno Haible  <bruno@clisp.org>
23130
23131         New module 'wcstok'.
23132         * modules/wcstok: New file.
23133         * lib/wchar.in.h (wcstok): New declaration.
23134         * lib/wcstok.c: New file.
23135         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
23136         * m4/wcstok.m4: New file.
23137         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
23138         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
23139         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
23140         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
23141         * doc/posix-functions/wcstok.texi: Mention the new module.
23142
23143 2011-02-06  Bruno Haible  <bruno@clisp.org>
23144
23145         New module 'wcsstr'.
23146         * modules/wcsstr: New file.
23147         * lib/wchar.in.h (wcsstr): New declaration.
23148         * lib/wcsstr.c: New file.
23149         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
23150         * m4/wcsstr.m4: New file.
23151         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
23152         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
23153         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
23154         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
23155         * doc/posix-functions/wcsstr.texi: Mention the new module.
23156
23157 2011-02-06  Bruno Haible  <bruno@clisp.org>
23158
23159         New module 'wcspbrk'.
23160         * modules/wcspbrk: New file.
23161         * lib/wchar.in.h (wcspbrk): New declaration.
23162         * lib/wcspbrk.c: New file.
23163         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
23164         * m4/wcspbrk.m4: New file.
23165         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
23166         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
23167         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
23168         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
23169         * doc/posix-functions/wcspbrk.texi: Mention the new module.
23170
23171 2011-02-06  Bruno Haible  <bruno@clisp.org>
23172
23173         New module 'wcsspn'.
23174         * modules/wcsspn: New file.
23175         * lib/wchar.in.h (wcsspn): New declaration.
23176         * lib/wcsspn.c: New file.
23177         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
23178         * m4/wcsspn.m4: New file.
23179         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
23180         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
23181         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
23182         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
23183         * doc/posix-functions/wcsspn.texi: Mention the new module.
23184
23185 2011-02-06  Bruno Haible  <bruno@clisp.org>
23186
23187         New module 'wcscspn'.
23188         * modules/wcscspn: New file.
23189         * lib/wchar.in.h (wcscspn): New declaration.
23190         * lib/wcscspn.c: New file.
23191         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
23192         * m4/wcscspn.m4: New file.
23193         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
23194         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
23195         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
23196         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
23197         * doc/posix-functions/wcscspn.texi: Mention the new module.
23198
23199 2011-02-06  Bruno Haible  <bruno@clisp.org>
23200
23201         New module 'wcsrchr'.
23202         * modules/wcsrchr: New file.
23203         * lib/wchar.in.h (wcsrchr): New declaration.
23204         * lib/wcsrchr.c: New file.
23205         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
23206         * m4/wcsrchr.m4: New file.
23207         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
23208         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
23209         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
23210         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
23211         * doc/posix-functions/wcsrchr.texi: Mention the new module.
23212
23213 2011-02-06  Bruno Haible  <bruno@clisp.org>
23214
23215         New module 'wcschr'.
23216         * modules/wcschr: New file.
23217         * lib/wchar.in.h (wcschr): New declaration.
23218         * lib/wcschr.c: New file.
23219         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
23220         * m4/wcschr.m4: New file.
23221         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
23222         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
23223         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
23224         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
23225         * doc/posix-functions/wcschr.texi: Mention the new module.
23226
23227 2011-02-06  Bruno Haible  <bruno@clisp.org>
23228
23229         New module 'wcsdup'.
23230         * modules/wcsdup: New file.
23231         * lib/wchar.in.h (wcsdup): New declaration.
23232         * lib/wcsdup.c: New file.
23233         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
23234         * m4/wcsdup.m4: New file.
23235         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
23236         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
23237         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
23238         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
23239         * doc/posix-functions/wcsdup.texi: Mention the new module.
23240
23241 2011-02-06  Bruno Haible  <bruno@clisp.org>
23242
23243         New module 'wcsxfrm'.
23244         * modules/wcsxfrm: New file.
23245         * lib/wchar.in.h (wcsxfrm): New declaration.
23246         * lib/wcsxfrm.c: New file.
23247         * lib/wcsxfrm-impl.h: New file.
23248         * m4/wcsxfrm.m4: New file.
23249         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
23250         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
23251         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
23252         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
23253         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
23254
23255 2011-02-06  Bruno Haible  <bruno@clisp.org>
23256
23257         New module 'wcscoll'.
23258         * modules/wcscoll: New file.
23259         * lib/wchar.in.h (wcscoll): New declaration.
23260         * lib/wcscoll.c: New file.
23261         * lib/wcscoll-impl.h: New file.
23262         * m4/wcscoll.m4: New file.
23263         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
23264         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
23265         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
23266         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
23267         * doc/posix-functions/wcscoll.texi: Mention the new module.
23268
23269 2011-02-06  Bruno Haible  <bruno@clisp.org>
23270
23271         New module 'wcsncasecmp'.
23272         * modules/wcsncasecmp: New file.
23273         * lib/wchar.in.h (wcsncasecmp): New declaration.
23274         * lib/wcsncasecmp.c: New file.
23275         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
23276         * m4/wcsncasecmp.m4: New file.
23277         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
23278         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
23279         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
23280         HAVE_WCSNCASECMP.
23281         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
23282         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
23283
23284 2011-02-06  Bruno Haible  <bruno@clisp.org>
23285
23286         New module 'wcscasecmp'.
23287         * modules/wcscasecmp: New file.
23288         * lib/wchar.in.h (wcscasecmp): New declaration.
23289         * lib/wcscasecmp.c: New file.
23290         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
23291         * m4/wcscasecmp.m4: New file.
23292         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
23293         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
23294         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
23295         HAVE_WCSCASECMP.
23296         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
23297         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
23298
23299 2011-02-05  Bruno Haible  <bruno@clisp.org>
23300
23301         New module 'wcsncmp'.
23302         * modules/wcsncmp: New file.
23303         * lib/wchar.in.h (wcsncmp): New declaration.
23304         * lib/wcsncmp.c: New file.
23305         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
23306         * m4/wcsncmp.m4: New file.
23307         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
23308         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
23309         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
23310         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
23311         * doc/posix-functions/wcsncmp.texi: Mention the new module.
23312
23313 2011-02-05  Bruno Haible  <bruno@clisp.org>
23314
23315         New module 'wcscmp'.
23316         * modules/wcscmp: New file.
23317         * lib/wchar.in.h (wcscmp): New declaration.
23318         * lib/wcscmp.c: New file.
23319         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
23320         * m4/wcscmp.m4: New file.
23321         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
23322         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
23323         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
23324         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
23325         * doc/posix-functions/wcscmp.texi: Mention the new module.
23326
23327 2011-02-05  Bruno Haible  <bruno@clisp.org>
23328
23329         New module 'wcsncat'.
23330         * modules/wcsncat: New file.
23331         * lib/wchar.in.h (wcsncat): New declaration.
23332         * lib/wcsncat.c: New file.
23333         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
23334         * m4/wcsncat.m4: New file.
23335         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
23336         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
23337         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
23338         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
23339         * doc/posix-functions/wcsncat.texi: Mention the new module.
23340
23341 2011-02-05  Bruno Haible  <bruno@clisp.org>
23342
23343         New module 'wcscat'.
23344         * modules/wcscat: New file.
23345         * lib/wchar.in.h (wcscat): New declaration.
23346         * lib/wcscat.c: New file.
23347         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
23348         * m4/wcscat.m4: New file.
23349         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
23350         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
23351         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
23352         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
23353         * doc/posix-functions/wcscat.texi: Mention the new module.
23354
23355 2011-02-05  Bruno Haible  <bruno@clisp.org>
23356
23357         New module 'wcpncpy'.
23358         * modules/wcpncpy: New file.
23359         * lib/wchar.in.h (wcpncpy): New declaration.
23360         * lib/wcpncpy.c: New file.
23361         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
23362         * m4/wcpncpy.m4: New file.
23363         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
23364         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
23365         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
23366         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
23367         * doc/posix-functions/wcpncpy.texi: Mention the new module.
23368
23369 2011-02-05  Bruno Haible  <bruno@clisp.org>
23370
23371         New module 'wcsncpy'.
23372         * modules/wcsncpy: New file.
23373         * lib/wchar.in.h (wcsncpy): New declaration.
23374         * lib/wcsncpy.c: New file.
23375         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
23376         * m4/wcsncpy.m4: New file.
23377         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
23378         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
23379         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
23380         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
23381         * doc/posix-functions/wcsncpy.texi: Mention the new module.
23382
23383 2011-02-05  Bruno Haible  <bruno@clisp.org>
23384
23385         New module 'wcpcpy'.
23386         * modules/wcpcpy: New file.
23387         * lib/wchar.in.h (wcpcpy): New declaration.
23388         * lib/wcpcpy.c: New file.
23389         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
23390         * m4/wcpcpy.m4: New file.
23391         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
23392         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
23393         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
23394         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
23395         * doc/posix-functions/wcpcpy.texi: Mention the new module.
23396
23397 2011-02-05  Bruno Haible  <bruno@clisp.org>
23398
23399         New module 'wcscpy'.
23400         * modules/wcscpy: New file.
23401         * lib/wchar.in.h (wcscpy): New declaration.
23402         * lib/wcscpy.c: New file.
23403         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
23404         * m4/wcscpy.m4: New file.
23405         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
23406         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
23407         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
23408         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
23409         * doc/posix-functions/wcscpy.texi: Mention the new module.
23410
23411 2011-02-05  Bruno Haible  <bruno@clisp.org>
23412
23413         New module 'wcsnlen'.
23414         * modules/wcsnlen: New file.
23415         * lib/wchar.in.h (wcsnlen): New declaration.
23416         * lib/wcsnlen.c: New file.
23417         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
23418         * m4/wcsnlen.m4: New file.
23419         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
23420         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
23421         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
23422         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
23423         * doc/posix-functions/wcsnlen.texi: Mention the new module.
23424
23425 2011-02-05  Bruno Haible  <bruno@clisp.org>
23426
23427         New module 'wcslen'.
23428         * modules/wcslen: New file.
23429         * lib/wchar.in.h (wcslen): New declaration.
23430         * lib/wcslen.c: New file.
23431         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
23432         * m4/wcslen.m4: New file.
23433         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
23434         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
23435         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
23436         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
23437         * doc/posix-functions/wcslen.texi: Mention the new module.
23438
23439 2011-02-05  Bruno Haible  <bruno@clisp.org>
23440
23441         New module 'wmemset'.
23442         * modules/wmemset: New file.
23443         * lib/wchar.in.h (wmemset): New declaration.
23444         * lib/wmemset.c: New file.
23445         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
23446         * m4/wmemset.m4: New file.
23447         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
23448         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
23449         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
23450         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
23451         * doc/posix-functions/wmemset.texi: Mention the new module.
23452
23453 2011-02-05  Bruno Haible  <bruno@clisp.org>
23454
23455         New module 'wmemmove'.
23456         * modules/wmemmove: New file.
23457         * lib/wchar.in.h (wmemmove): New declaration.
23458         * lib/wmemmove.c: New file.
23459         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
23460         * m4/wmemmove.m4: New file.
23461         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
23462         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
23463         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
23464         HAVE_WMEMMOVE.
23465         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
23466         * doc/posix-functions/wmemmove.texi: Mention the new module.
23467
23468 2011-02-05  Bruno Haible  <bruno@clisp.org>
23469
23470         New module 'wmemcpy'.
23471         * modules/wmemcpy: New file.
23472         * lib/wchar.in.h (wmemcpy): New declaration.
23473         * lib/wmemcpy.c: New file.
23474         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
23475         * m4/wmemcpy.m4: New file.
23476         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
23477         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
23478         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
23479         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
23480         * doc/posix-functions/wmemcpy.texi: Mention the new module.
23481
23482 2011-02-05  Bruno Haible  <bruno@clisp.org>
23483
23484         New module 'wmemcmp'.
23485         * modules/wmemcmp: New file.
23486         * lib/wchar.in.h (wmemcmp): New declaration.
23487         * lib/wmemcmp.c: New file.
23488         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
23489         * m4/wmemcmp.m4: New file.
23490         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
23491         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
23492         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
23493         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
23494         * doc/posix-functions/wmemcmp.texi: Mention the new module.
23495
23496 2011-02-07  Jim Meyering  <meyering@redhat.com>
23497
23498         di-set, ino-map: new modules, from coreutils
23499         * lib/di-set.c: New file.
23500         * lib/di-set.h: Likewise.
23501         * lib/ino-map.c: Likewise.
23502         * lib/ino-map.h: Likewise.
23503         * modules/di-set: Likewise.
23504         * modules/di-set-tests: Likewise.
23505         * modules/ino-map: Likewise.
23506         * modules/ino-map-tests: Likewise.
23507         * tests/test-di-set.c: Likewise.
23508         * tests/test-ino-map.c: Likewise.
23509
23510 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
23511
23512         getloadavg: merge minor changes from Emacs
23513
23514         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
23515         (getloadavg): Use memset, not bzero.
23516
23517         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
23518         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
23519         clash (bug#86).
23520
23521 2010-11-14  Bruno Haible  <bruno@clisp.org>
23522
23523         Allow multiple gnulib generated replacements to coexist.
23524         * lib/getopt.in.h (struct option): Avoid identical redefinition.
23525         * lib/inttypes.in.h (imaxdiv_t): Likewise.
23526         * lib/langinfo.in.h (nl_item): Likewise.
23527         * lib/math.in.h (_NaN, NAN): Likewise.
23528         * lib/netdb.in.h (struct addrinfo): Likewise.
23529         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
23530         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
23531         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
23532         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
23533         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
23534         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
23535         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
23536         pthread_mutexattr_init, pthread_mutexattr_settype,
23537         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
23538         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
23539         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
23540         pthread_spin_trylock, pthread_spin_unlock): Likewise.
23541         * lib/sched.in.h (struct sched_param): Likewise.
23542         * lib/se-selinux.in.h (security_class_t, security_context_t,
23543         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
23544         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
23545         lsetfilecon, fsetfilecon, security_check_context,
23546         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
23547         Likewise.
23548         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
23549         Likewise.
23550         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
23551         _gl_function_taking_int_returning_void_t, union sigval,
23552         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
23553         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
23554         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
23555         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
23556         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
23557         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
23558         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
23559         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
23560         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
23561         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
23562         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
23563         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
23564         socklen_t, rpl_fd_isset): Likewise.
23565         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
23566         * lib/sys_time.in.h (struct timeval): Likewise.
23567         * lib/sys_times.in.h (struct tms): Likewise.
23568         * lib/sys_utsname.in.h (struct utsname):
23569         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
23570         * lib/unistd.in.h (getpagesize): Likewise.
23571         * lib/wchar.in.h (mbstate_t): Likewise.
23572         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
23573         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
23574         towlower, towupper): Likewise.
23575         Reported by Sam Steingold <sds@gnu.org>.
23576
23577 2011-02-05  Eric Blake  <eblake@redhat.com>
23578
23579         unsetenv: work around Haiku issues
23580         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
23581         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
23582
23583 2010-12-30  Bruce Korb  <bkorb@gnu.org>
23584
23585         libposix: avoid calling error() within libposix
23586         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
23587         is defined.
23588
23589 2011-02-05  Eric Blake  <eblake@redhat.com>
23590
23591         strerror_r-posix: port to cygwin
23592         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
23593         implementation.
23594         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
23595         * tests/test-strerror_r.c (main): Fix test.
23596         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
23597         issue.
23598
23599 2011-02-05  Bruno Haible  <bruno@clisp.org>
23600
23601         New module 'wmemchr'.
23602         * modules/wmemchr: New file.
23603         * lib/wchar.in.h (wmemchr): New declaration.
23604         * lib/wmemchr.c: New file.
23605         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
23606         * m4/wmemchr.m4: New file.
23607         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
23608         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
23609         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
23610         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
23611         * doc/posix-functions/wmemchr.texi: Mention the new module.
23612
23613 2011-02-04  Eric Blake  <eblake@redhat.com>
23614
23615         fdopendir: detect FreeBSD bug
23616         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
23617         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
23618
23619 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
23620
23621         stdbool: do not define HAVE_STDBOOL_H
23622         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
23623         AC_HEADER_STDBOOL.  All uses changed.  Do not define
23624         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
23625         imported from the latest Autoconf git.  It was motivated by Emacs,
23626         which uses gnulib but does not need HAVE_STDBOOL_H.
23627
23628 2011-02-04  Bruno Haible  <bruno@clisp.org>
23629
23630         wcsnrtombs: Prepare for new module wwcsnrtombs.
23631         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
23632         * lib/wcsnrtombs.c: Include it.
23633         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
23634
23635         wcsrtombs: Prepare for new module wwcsrtombs.
23636         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
23637         * lib/wcsrtombs.c: Include it.
23638         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
23639
23640         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
23641         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
23642         * lib/mbsnrtowcs.c: Include it.
23643         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
23644
23645         mbsrtowcs: Prepare for new module mbsrtowwcs.
23646         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
23647         * lib/mbsrtowcs.c: Include it.
23648         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
23649
23650 2011-02-04  Bruno Haible  <bruno@clisp.org>
23651
23652         vasnprintf: Reduce use of malloc for small format strings.
23653         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
23654         (arguments): Add room for the first 7 arguments.
23655         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
23656         (char_directives, u8_directives, u16_directives, u32_directives): Add
23657         room for the first 7 directives.
23658         * lib/printf-parse.c: Include <string.h>.
23659         (PRINTF_PARSE): Change memory handling code so that it uses the first
23660         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
23661         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
23662         Reported by Pádraig Brady <P@draigbrady.com>.
23663
23664 2011-01-31  Eric Blake  <eblake@redhat.com>
23665
23666         dup2: work around Haiku bug
23667         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
23668         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
23669         * doc/posix-functions/dup2.texi (dup2): Document the bug.
23670         * tests/test-dup2.c (main): Enhance test.
23671
23672 2011-01-31  Simon Josefsson  <simon@josefsson.org>
23673
23674         doc: off_t is not available in eglibc 2.11.2 stdio.h.
23675         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
23676         declared by eglibc 2.11.2.
23677         * lib/stdio.in.h: Likewise.
23678
23679 2011-01-31  Eric Blake  <eblake@redhat.com>
23680
23681         ignore-value: add missing test dependency
23682         * tests/test-ignore-value.c: Revert previous change; stdio.h
23683         provides off_t.
23684         * modules/ignore-value-tests (Depends-on): Add missing dependency.
23685
23686 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
23687
23688         mktime: clarify long_int width checking
23689         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
23690         the top level, to make it clearer that the assumption about
23691         long_int width is being checked.  See
23692         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
23693
23694 2011-01-30  Simon Josefsson  <simon@josefsson.org>
23695
23696         ignore-value: Fix self-test.
23697         * tests/test-ignore-value.c: Include sys/types.h for off_t.
23698
23699 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
23700
23701         TYPE_MAXIMUM: avoid theoretically undefined behavior
23702         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
23703         negative number, which the C Standard says has undefined behavior.
23704         In practice this is not a problem, but might as well do it by the book.
23705         Reported by Rich Felker and Eric Blake; see
23706         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
23707         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
23708         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
23709         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
23710         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
23711         * m4/stdint.m4 (gl_STDINT_H): Likewise.
23712         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
23713
23714         mktime: #undef mktime before #defining it
23715         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
23716
23717         mktime: systematically normalize tm_isdst comparisons
23718         * lib/mktime.c (isdst_differ): New function.
23719         (__mktime_internal): Use it systematically for all isdst comparisons.
23720         This completes the fix for libc BZ #6723, and removes the need for
23721         normalizing tm_isdst.  See
23722         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
23723         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
23724
23725         mktime: fix some integer overflow issues and sidestep the rest
23726
23727         This was prompted by a bug report by Benjamin Lindner for MinGW
23728         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
23729         His bug is due to signed integer overflow (0 - INT_MIN), and I
23730         I scanned through mktime.c looking for other integer overflow
23731         problems, fixing all the bugs I found.
23732
23733         Although the C Standard says the resulting code is still not safe
23734         in the presence of integer overflow, in practice it should be good
23735         enough for all real-world two's-complement implementations, except
23736         for debugging environments that deliberately trap on integer
23737         overflow (e.g., gcc -ftrapv).
23738
23739         * lib/mktime.c (WRAPV): New macro.
23740         (SHR): Also check that long_int and time_t shift right in the
23741         usual way, before using the fast-but-unportable method.
23742         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
23743         used.  The code already assumed two's complement, so there's
23744         no need to test for alternatives.  All uses removed.
23745         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
23746         the C standard.  Problem reported by Rich Felker in
23747         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
23748         (twos_complement_arithmetic): Also check long_int and time_t.
23749         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
23750         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
23751         (__mktime_internal): Avoid integer overflow with unary subtraction
23752         in two instances where -1 - X is an adequate replacement for -X,
23753         since the calculations are approximate.
23754
23755 2011-01-29  Eric Blake  <eblake@redhat.com>
23756
23757         mktime: avoid infinite loop
23758         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
23759         type; behavior is still undefined but portable to all known targets.
23760         Reported by Rich Felker.
23761
23762 2011-01-29  Simon Josefsson  <simon@josefsson.org>
23763
23764         rename, unlink, same-inode: Relicense.
23765         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
23766         * modules/unlink (License): Likewise.
23767         * modules/same-inode (License): Likewise.
23768
23769 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
23770
23771         mktime: avoid problems on NetBSD 5 / i386
23772         * lib/mktime.c (long_int): New type.  This works around a problem
23773         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
23774         but time_t is 64 bits, and where I expect the existing code is
23775         wrong in some cases.
23776         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
23777         (ydhms_diff): Bring back the compile-time check for wide-enough
23778         year and yday.
23779
23780         mktime: fix misspelling in comment
23781         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
23782         This merges all recent glibc changes of importance.
23783
23784 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23785
23786         move-if-change: cope with concurrent mv of identical file.
23787         * build-aux/move-if-change (CMPPROG): Accept environment
23788         variable as an override for `cmp'.
23789         (usage): Document CMPPROG.
23790         Adjust comparison to drop stdout.  Cope with failure of mv if
23791         the target file exists and is identical to the source, for
23792         parallel builds.
23793         Report from H.J. Lu against binutils in PR binutils/12283.
23794
23795 2011-01-28  Bruce Korb  <bkorb@gnu.org>
23796
23797         * users.txt: Mention sharutils.
23798
23799 2011-01-28  Simon Josefsson  <simon@josefsson.org>
23800
23801         * users.txt: Mention OATH Toolkit.
23802
23803 2011-01-27  Bruno Haible  <bruno@clisp.org>
23804
23805         Prepare for supporting FreeBSD 10.
23806         * build-aux/config.libpath: Remove handling of freebsd1*.
23807
23808 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
23809
23810         Prepare for supporting FreeBSD 10.
23811         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
23812         match FreeBSD 10.0.
23813
23814 2011-01-27  Bruno Haible  <bruno@clisp.org>
23815
23816         vma-iter, get-rusage-as: Add OpenBSD support.
23817         * modules/vma-iter (configure.ac): Test for mquery.
23818         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
23819         * lib/vma-iter.c: Include <sys/mman.h>.
23820         (vma_iterate): Add an implementation based on mquery().
23821         * lib/resource-ext.h (get_rusage_as): Update comments.
23822         * lib/get-rusage-as.c: Likewise.
23823         * lib/get-rusage-data.c: Likewise.
23824
23825 2011-01-26  Karl Berry  <karl@gnu.org>
23826
23827         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
23828         variables to make it easier to override the makeinfo program used.
23829
23830 2011-01-26  Eric Blake  <eblake@redhat.com>
23831
23832         fcntl: work around Haiku F_DUPFD bugs
23833         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
23834         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
23835         cloexec bit on duplication.
23836         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
23837
23838 2011-01-26  Bruno Haible  <bruno@clisp.org>
23839
23840         Enable memory leak tests on AIX.
23841         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
23842         * tests/test-fprintf-posix3.c (main): Likewise.
23843
23844 2011-01-26  Bruno Haible  <bruno@clisp.org>
23845
23846         Tests for module 'get-rusage-data'.
23847         * modules/get-rusage-data-tests: New file.
23848         * tests/test-get-rusage-data.c: New file.
23849
23850         New module 'get-rusage-data'.
23851         * lib/resource-ext.h (get_rusage_data): New declaration.
23852         * lib/get-rusage-data.c: New file.
23853         * modules/get-rusage-data: New file.
23854
23855 2011-01-25  Bruno Haible  <bruno@clisp.org>
23856
23857         get-rusage-as: Allow for easier testing.
23858         * lib/resource-ext.h (get_rusage_as): Add comment.
23859         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
23860         (main): New function for interactive testing.
23861
23862 2011-01-25  Bruno Haible  <bruno@clisp.org>
23863
23864         vma-iter: Treat Haiku like BeOS.
23865         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
23866         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
23867
23868 2011-01-25  Eric Blake  <eblake@redhat.com>
23869
23870         c-stack: fix regression on cygwin when libsigsegv is present
23871         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
23872
23873 2011-01-24  Bruno Haible  <bruno@clisp.org>
23874
23875         vma-iter: Avoid empty intervals.
23876         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
23877         on an empty interval.
23878
23879 2011-01-24  Jim Meyering  <meyering@redhat.com>
23880
23881         u64: remove unnecessary #include
23882         * lib/u64.h: Don't include <stddef.h>.  It was not used.
23883
23884 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
23885
23886         Allow the user to avoid the HAVE_RAW_DECL_* macros.
23887         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
23888
23889 2011-01-23  Bruno Haible  <bruno@clisp.org>
23890
23891         New module 'vma-iter'.
23892         * lib/vma-iter.h: New file.
23893         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
23894         * modules/vma-iter: New file.
23895         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
23896         for get_rusage_as_via_iterator.
23897         (vma_iterate_callback): New function.
23898         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
23899         * modules/get-rusage-as (Depends-on): Add vma-iter.
23900
23901 2011-01-23  Bruno Haible  <bruno@clisp.org>
23902
23903         uninorm: Tweak includes.
23904         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
23905         Reported by Jim Meyering.
23906
23907 2011-01-23  Bruno Haible  <bruno@clisp.org>
23908
23909         get-rusage-as: Improve on NetBSD.
23910         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
23911         /proc, like on FreeBSD.
23912
23913 2011-01-23  Jim Meyering  <meyering@redhat.com>
23914
23915         xreadlink.h: remove unnecessary #include
23916         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
23917
23918         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
23919         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
23920
23921 2011-01-23  Bruno Haible  <bruno@clisp.org>
23922
23923         get-rusage-as: Fix bug.
23924         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
23925         original limit when aborting the first loop.
23926
23927 2011-01-23  Bruno Haible  <bruno@clisp.org>
23928
23929         wctype: Ensure valid C syntax.
23930         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
23931         unconditionally, instead of gl_NEXT_HEADERS conditionally.
23932
23933 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
23934
23935         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
23936         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
23937         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
23938         as they are needed only for configure's test case.
23939         This removes two unnecessary symbols from config.h.
23940
23941         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
23942         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
23943         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
23944         AC_CHECK_HEADERS_ONCE on a header that we also invoke
23945         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
23946         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
23947         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
23948         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
23949         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
23950         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
23951         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
23952         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
23953         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
23954         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
23955         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
23956         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
23957         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
23958         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
23959
23960 2011-01-21  Eric Blake  <eblake@redhat.com>
23961
23962         maintainer-makefile: work with older git for submodule check
23963         * top/maint.mk (public-submodule-commit): Rewrite to avoid
23964         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
23965         Reported by Matthias Bolte.
23966
23967         bootstrap: minor portability fixes
23968         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
23969         (usage): Omit leading capital and trailing . on help phrases, per
23970         GNU Coding Standards.
23971         (check_versions, top level): Prefix messages with script name.
23972
23973 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
23974
23975         bootstrap: support --no-git option
23976         * build-aux/bootstrap: Add --no-git option, to be used when
23977         --gnulib-srcdir points to the exact desired checkout.
23978
23979 2011-01-21  Eric Blake  <eblake@redhat.com>
23980
23981         strerror_r-posix: work with glibc 2.13
23982         * lib/strerror_r.c (strerror_r): Fix return type.
23983
23984 2011-01-21  Pádraig Brady  <P@draigBrady.com>
23985             Bruno Haible  <bruno@clisp.org>
23986
23987         uN_strstr: New unit tests.
23988         * modules/unistr/u8-strstr-tests: New file.
23989         * modules/unistr/u16-strstr-tests: New file.
23990         * modules/unistr/u32-strstr-tests: New file.
23991         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
23992         * tests/unistr/test-u8-strstr.c: New file.
23993         * tests/unistr/test-u16-strstr.c: New file.
23994         * tests/unistr/test-u32-strstr.c: New file.
23995
23996 2011-01-21  Pádraig Brady  <P@draigBrady.com>
23997             Bruno Haible  <bruno@clisp.org>
23998
23999         Make uN_strstr functions O(n) worst-case.
24000         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
24001         16-bit and 32-bit unit cases, use the unibyte algorithm from
24002         lib/mbsstr.c.
24003         * lib/unistr/u8-strstr.c: Include <string.h>.
24004         (UNIT_IS_UINT8_T): New macro.
24005         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
24006         (U_STRLEN, U_STRNLEN): New macros.
24007         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
24008         (U_STRLEN, U_STRNLEN): New macros.
24009         * modules/unistr/u8-strstr (Depends-on): Add strstr.
24010         (configure.ac): Update required libunistring version.
24011         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
24012         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
24013         malloca.
24014         (configure.ac): Update required libunistring version.
24015         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
24016         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
24017         malloca.
24018         (configure.ac): Update required libunistring version.
24019
24020 2011-01-21  Pádraig Brady  <P@draigBrady.com>
24021             Bruno Haible  <bruno@clisp.org>
24022
24023         Prepare for faster uN_strstr functions.
24024         * lib/str-kmp.h: Support definable UNITs.
24025         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
24026         needle_len argument.
24027         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
24028         * lib/mbscasestr.c (mbscasestr): Likewise.
24029
24030 2011-01-21  Pádraig Brady <P@draigBrady.com>
24031
24032         malloca-tests: make faster by unsetting MALLOC_PERTURB_
24033         * tests/test-malloca.c (main): Unset the environment variable
24034         to greatly speed up the test.
24035         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
24036         * modules/malloca-tests: Depend on unsetenv.
24037
24038 2011-01-21  Pádraig Brady <P@draigBrady.com>
24039
24040         ignore-value: remove stdint dependency
24041         * lib/ignore-value.h: Remove <stdint.h>
24042         * modules/ignore-value: Remove stdint dependency.
24043
24044 2011-01-21  Jim Meyering  <meyering@redhat.com>
24045
24046         maint.mk: adjust variable name to be consistent with other gl_ vars
24047         * top/maint.mk (gl_public_submodule_commit): Rename the variable
24048         to be lower case.
24049
24050 2011-01-20  Jim Meyering  <meyering@redhat.com>
24051
24052         maint.mk: make "check" depend on public-submodule-commit by default
24053         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
24054
24055 2011-01-20  Bruno Haible  <bruno@clisp.org>
24056
24057         mbfile, mbiter: Complete change from 2008-12-21.
24058         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
24059         * m4/mbiter.m4 (gl_MBITER): Likewise.
24060
24061 2011-01-20  Jim Meyering  <meyering@redhat.com>
24062
24063         init.sh: insert space between each function name and "()"
24064         * tests/init.sh: Make it a little easier to see that a function's
24065         name is "warn_", and not "warn" when looking at the first part of
24066         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
24067
24068 2011-01-20  Jim Meyering  <meyering@redhat.com>
24069
24070         mountlist: clean up code formatting
24071         * lib/mountlist.c (read_file_system_list): Split a long line,
24072         correct bracing style, use NULL in place of "(struct statfs *)0",
24073         don't parenthesize return value, add spaces around "=" and after
24074         ";-in-for-stmt".
24075
24076 2011-01-14  Markus Duft <mduft@gentoo.org>
24077
24078         mountlist: add support for Interix
24079         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
24080         Apply statvfs to all entries of /dev/fs.
24081         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
24082         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
24083
24084 2011-01-20  Jim Meyering  <meyering@redhat.com>
24085
24086         maint.mk: improve the public-submodule-commit rule
24087         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
24088         to suppress printing of its commands... unless V=1.
24089         Add git submodule's --quiet option to suppress printing of e.g.,
24090         "Entering gnulib" output.
24091         "cd" into $(srcdir) before running git submodule.
24092
24093 2011-01-20  Bruno Haible  <bruno@clisp.org>
24094
24095         include_next: Fix bug introduced on 2011-01-18.
24096         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
24097         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
24098         ac_cv_header_... variable if the second argument is not 'check'.
24099         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
24100         gl_NEXT_HEADERS_INTERNAL.
24101
24102 2011-01-20  Bruno Haible  <bruno@clisp.org>
24103
24104         Allow the user to avoid the GNULIB_TEST_* macros.
24105         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
24106         Suggested by Paul Eggert.
24107
24108 2011-01-14  Jim Meyering  <meyering@redhat.com>
24109
24110         bootstrap: avoid failure when there is no .gitmodules file
24111         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
24112         has been assigned to, even when its value is the empty string.
24113         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
24114         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
24115         Reported by John W. Eaton <jwe@gnu.org>.
24116
24117 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
24118
24119         assume <ctype.h>, ..., <time.h> exist
24120         For years gnulib has been assuming the existence of the headers
24121         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
24122         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
24123         them, since they don't appear to be needed.
24124         * README (Portability guidelines): Document this.
24125         * lib/flock.c: Assume <fcntl.h> exists.
24126         * lib/regex_internal.h: Assume <locale.h> exists.
24127         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
24128         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
24129         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
24130         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
24131         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
24132         * m4/regex.m4 (gl_REGEX): Likewise.
24133         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
24134         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
24135         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
24136         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
24137         * tests/test-argp.c: Likewise.
24138         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
24139
24140         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
24141         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
24142         AA_APPLE_UNIVERSAL_BUILD.  See
24143         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
24144         * NEWS: Document this.
24145
24146 2011-01-19  Eric Blake  <eblake@redhat.com>
24147
24148         c-stack: assume stack overflow if SA_SIGINFO unsupported
24149         * lib/c-stack.c (SIGACTION_WORKS): Rename...
24150         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
24151         sigaction will work.
24152         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
24153         behavior match Linux.
24154         * tests/test-c-stack.c (main): Prefer NULL for pointers.
24155
24156         stdbool-tests: accommodate Haiku
24157         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
24158
24159         binary-io: fix O_TEXT on Haiku
24160         * modules/binary-io (Depends-on): Add fcntl-h.
24161         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
24162         than blindly undefining O_TEXT.
24163         Reported by Scott McCreary.
24164
24165 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
24166
24167         include_next: do not check for standard headers like stddef.h
24168
24169         I found this problem when modifying Emacs to use gnulib.
24170         I noticed that it added HAVE_STDDEF_H to config.h, even though
24171         gnulib always assumes <stddef.h> exists as per README and this
24172         symbol is unnecessary.
24173         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
24174         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
24175         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
24176         faster for headers like stddef.h that are known to exist.
24177         (gl_CHECK_NEXT_HEADERS): Use it.
24178         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
24179         rather than gl_CHECK_NEXT_HEADERS.
24180         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
24181         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
24182
24183 2011-01-18  Eric Blake  <eblake@redhat.com>
24184
24185         ansi-c++-opt: skip C++ dependency style if C++ is unused
24186         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
24187         tests when we know C++ compilation is not desired.
24188         Reported by Scott McCreary.
24189
24190 2011-01-18  Bruno Haible  <bruno@clisp.org>
24191
24192         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
24193         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
24194         (main): Perform test also when getrlimit and setrlimit don't exist or
24195         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
24196         limiting the address space size using setrlimit, compare the address
24197         space size before and after the the test.
24198         * tests/test-dprintf-posix2.c: Likewise.
24199         * tests/test-fprintf-posix3.sh: Update skip messages.
24200         * tests/test-dprintf-posix2.sh: Likewise.
24201         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
24202         * modules/dprintf-posix-tests (Depends-on): Likewise.
24203         Reported by Bruce Korb <bkorb@gnu.org> and
24204         Gary V. Vaughan <gary@gnu.org>.
24205
24206 2011-01-18  Bruno Haible  <bruno@clisp.org>
24207
24208         get-rusage-as: Improvement for Cygwin.
24209         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
24210         areas that are merely reserved.
24211
24212 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
24213
24214         strftime: remove dependencies on multibyte modules
24215
24216         strftime depended on mbrlen, mbsinit, and wchar, but these modules
24217         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
24218         only if __osf__ is defined, and I suspect OSF doesn't need these
24219         other modules.  If my guess is wrong, we'll need to come up with a
24220         variant of strftime that doesn't need the multibyte modules.
24221
24222         I discovered this problem when attempting modify Emacs to use the
24223         strftime module.  With the previous gnulib, this caused Emacs to
24224         need 31 new files, ranging from lib/config.charset to
24225         m4/wint_t.m4.  This was overkill and I expect would be offputting
24226         to the Emacs maintainers.  After this change, only 6 new files are
24227         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
24228         stdbool.m4, and tm_gmtoff.m4.
24229
24230         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
24231         Suggested by Bruno Haible in
24232         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
24233         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
24234         and do not check for wchar.h.
24235         * modules/strftime (Files): Remove m4/mbstate_t.m4.
24236         (Depends-on): Remove mbrlen, mbsinit, wchar.
24237
24238 2011-01-18  Bruno Haible  <bruno@clisp.org>
24239
24240         Tests for module 'get-rusage-as'.
24241         * modules/get-rusage-as-tests: New file.
24242         * tests/test-get-rusage-as.c: New file.
24243
24244         New module 'get-rusage-as'.
24245         * modules/get-rusage-as: New file.
24246         * lib/resource-ext.h: New file.
24247         * lib/get-rusage-as.c: New file.
24248
24249 2011-01-17  Eric Blake  <eblake@redhat.com>
24250
24251         sigaction: relax license from LGPLv3+ to LGPLv2+
24252         * modules/sigaction (License): Relax to LGPLv2+.
24253
24254 2011-01-14  Bruno Haible  <bruno@clisp.org>
24255
24256         filemode: Make function declarations usable in C++ mode.
24257         * lib/filemode.h: Enclose function declarations in extern "C" block.
24258         Reported by John W. Eaton <jwe@gnu.org>.
24259
24260 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
24261
24262         save-cwd: no longer include "xgetcwd.h"
24263         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
24264         This avoids a compilation failure in projects that use save-cwd
24265         without also using the xgetcwd module.
24266
24267 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
24268
24269         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
24270         This is so that a program like Emacs, which needs only dtoastr,
24271         does not have to bother with distributing and compiling ftoastr
24272         and ldtoastr.
24273         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
24274         * modules/dtoastr, modules/ldtoastr: New files.
24275         * modules/ftoastr: Now works just for 'float'.
24276         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
24277         (Makefile.am): Remove ftoastr.h (not needed and no effect),
24278         dtoastr.c, ldtoastr.c.
24279
24280 2011-01-11  Jim Meyering  <meyering@redhat.com>
24281
24282         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
24283         There is no need to work around the lack of the fchdir function,
24284         since gnulib can now provide a replacement when required.
24285         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
24286         * modules/save-cwd (Depends-on): Add fchdir.
24287
24288 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
24289
24290         openat, save-cwd: avoid xmalloc
24291
24292         This removes a direct (but undocumented) dependency of openat on
24293         xalloc, along with an indirect dependency via save-cwd.  It also
24294         removes a dependency of save-cwd on xgetcwd, and thereby
24295         indirectly on xalloc.  This change causes the openat substitute
24296         to fall back on save_cwd when memory is tight, and for save_cwd to
24297         fail instead of dying when memory is tight, but that's good enough.
24298         Problem and initial idea for fix reported by Bastien Roucaries in
24299         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
24300
24301         * lib/openat-proc.c: Include stdlib.h (for malloc), not
24302         xalloc.h (for xmalloc).
24303         (openat_proc_name): Use malloc, not xmalloc.
24304         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
24305         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
24306
24307         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
24308         This avoids heap allocation for file names whose lengths are in
24309         the range 512..1023, with the upper bound increasing to at most
24310         4031 depending on the platform's PATH_MAX.  (We do not want
24311         pathmax.h here as it might supply a non-constant PATH_MAX.)
24312         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
24313         Perhaps they should be moved to malloca.h?
24314         (OPENAT_BUFFER_SIZE): Use them.
24315
24316 2011-01-10  Bruno Haible  <bruno@clisp.org>
24317
24318         doc: Update users.txt.
24319         * users.txt: Add recutils.
24320
24321 2011-01-09  Karl Berry  <karl@gnu.org>
24322
24323         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
24324
24325         * doc/configmake.texi: New file.
24326         * doc/gnulib.texi: Include it.
24327         * modules/configmake: Move documentation from here.
24328
24329 2011-01-09  Bruno Haible  <bruno@clisp.org>
24330
24331         Update to Unicode 6.0.0.
24332         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
24333         (get_lbp): Update for Unicode 6.0.0.
24334         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
24335         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
24336         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
24337         U+11001, U+11038..U+11046. Remove U+06DE.
24338         (uc_width): Fix bounds of planes.
24339         * tests/uniwidth/test-uc_width2.sh: Same updates as in
24340         lib/uniwidth/width.c.
24341         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
24342         trailing whitespace removed.
24343         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
24344         without comments, but with the original copyright notice.
24345         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
24346         * lib/unicase/ignorable.h: Likewise.
24347         * lib/unicase/tocasefold.h: Likewise.
24348         * lib/unicase/tolower.h: Likewise.
24349         * lib/unicase/totitle.h: Likewise.
24350         * lib/unicase/toupper.h: Likewise.
24351         * lib/unictype/bidi_of.h: Likewise.
24352         * lib/unictype/blocks.h: Likewise.
24353         * lib/unictype/categ_C.h: Likewise.
24354         * lib/unictype/categ_Cn.h: Likewise.
24355         * lib/unictype/categ_L.h: Likewise.
24356         * lib/unictype/categ_Ll.h: Likewise.
24357         * lib/unictype/categ_Lm.h: Likewise.
24358         * lib/unictype/categ_Lo.h: Likewise.
24359         * lib/unictype/categ_Lu.h: Likewise.
24360         * lib/unictype/categ_M.h: Likewise.
24361         * lib/unictype/categ_Mc.h: Likewise.
24362         * lib/unictype/categ_Me.h: Likewise.
24363         * lib/unictype/categ_Mn.h: Likewise.
24364         * lib/unictype/categ_N.h: Likewise.
24365         * lib/unictype/categ_Nd.h: Likewise.
24366         * lib/unictype/categ_No.h: Likewise.
24367         * lib/unictype/categ_P.h: Likewise.
24368         * lib/unictype/categ_Po.h: Likewise.
24369         * lib/unictype/categ_S.h: Likewise.
24370         * lib/unictype/categ_Sc.h: Likewise.
24371         * lib/unictype/categ_Sk.h: Likewise.
24372         * lib/unictype/categ_Sm.h: Likewise.
24373         * lib/unictype/categ_So.h: Likewise.
24374         * lib/unictype/categ_of.h: Likewise.
24375         * lib/unictype/combining.h: Likewise.
24376         * lib/unictype/ctype_alnum.h: Likewise.
24377         * lib/unictype/ctype_alpha.h: Likewise.
24378         * lib/unictype/ctype_graph.h: Likewise.
24379         * lib/unictype/ctype_lower.h: Likewise.
24380         * lib/unictype/ctype_print.h: Likewise.
24381         * lib/unictype/ctype_punct.h: Likewise.
24382         * lib/unictype/ctype_upper.h: Likewise.
24383         * lib/unictype/decdigit.h: Likewise.
24384         * lib/unictype/digit.h: Likewise.
24385         * lib/unictype/numeric.h: Likewise.
24386         * lib/unictype/pr_alphabetic.h: Likewise.
24387         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
24388         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
24389         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
24390         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
24391         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
24392         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
24393         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
24394         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
24395         * lib/unictype/pr_case_ignorable.h: Likewise.
24396         * lib/unictype/pr_cased.h: Likewise.
24397         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
24398         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
24399         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
24400         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
24401         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
24402         * lib/unictype/pr_combining.h: Likewise.
24403         * lib/unictype/pr_composite.h: Likewise.
24404         * lib/unictype/pr_currency_symbol.h: Likewise.
24405         * lib/unictype/pr_decimal_digit.h: Likewise.
24406         * lib/unictype/pr_deprecated.h: Likewise.
24407         * lib/unictype/pr_format_control.h: Likewise.
24408         * lib/unictype/pr_grapheme_base.h: Likewise.
24409         * lib/unictype/pr_grapheme_extend.h: Likewise.
24410         * lib/unictype/pr_grapheme_link.h: Likewise.
24411         * lib/unictype/pr_id_continue.h: Likewise.
24412         * lib/unictype/pr_id_start.h: Likewise.
24413         * lib/unictype/pr_ideographic.h: Likewise.
24414         * lib/unictype/pr_lowercase.h: Likewise.
24415         * lib/unictype/pr_math.h: Likewise.
24416         * lib/unictype/pr_numeric.h: Likewise.
24417         * lib/unictype/pr_other_alphabetic.h: Likewise.
24418         * lib/unictype/pr_other_id_continue.h: Likewise.
24419         * lib/unictype/pr_other_math.h: Likewise.
24420         * lib/unictype/pr_punctuation.h: Likewise.
24421         * lib/unictype/pr_sentence_terminal.h: Likewise.
24422         * lib/unictype/pr_terminal_punctuation.h: Likewise.
24423         * lib/unictype/pr_unassigned_code_value.h: Likewise.
24424         * lib/unictype/pr_unified_ideograph.h: Likewise.
24425         * lib/unictype/pr_uppercase.h: Likewise.
24426         * lib/unictype/pr_xid_continue.h: Likewise.
24427         * lib/unictype/pr_xid_start.h: Likewise.
24428         * lib/unictype/scripts.h: Likewise.
24429         * lib/unictype/scripts_byname.gperf: Likewise.
24430         * lib/unictype/sy_java_ident.h: Likewise.
24431         * lib/unigbrk/gbrkprop.h: Likewise.
24432         * lib/unilbrk/lbrkprop1.h: Likewise.
24433         * lib/unilbrk/lbrkprop2.h: Likewise.
24434         * lib/uninorm/decomposition-table2.h: Likewise.
24435         * lib/uniwbrk/wbrkprop.h: Likewise.
24436         * tests/unicase/test-cased.c: Likewise.
24437         * tests/unicase/test-ignorable.c: Likewise.
24438         * tests/unicase/test-uc_tolower.c: Likewise.
24439         * tests/unicase/test-uc_totitle.c: Likewise.
24440         * tests/unicase/test-uc_toupper.c: Likewise.
24441         * tests/unictype/test-categ_C.c: Likewise.
24442         * tests/unictype/test-categ_Cn.c: Likewise.
24443         * tests/unictype/test-categ_L.c: Likewise.
24444         * tests/unictype/test-categ_Ll.c: Likewise.
24445         * tests/unictype/test-categ_Lm.c: Likewise.
24446         * tests/unictype/test-categ_Lo.c: Likewise.
24447         * tests/unictype/test-categ_Lu.c: Likewise.
24448         * tests/unictype/test-categ_M.c: Likewise.
24449         * tests/unictype/test-categ_Mc.c: Likewise.
24450         * tests/unictype/test-categ_Me.c: Likewise.
24451         * tests/unictype/test-categ_Mn.c: Likewise.
24452         * tests/unictype/test-categ_N.c: Likewise.
24453         * tests/unictype/test-categ_Nd.c: Likewise.
24454         * tests/unictype/test-categ_No.c: Likewise.
24455         * tests/unictype/test-categ_P.c: Likewise.
24456         * tests/unictype/test-categ_Po.c: Likewise.
24457         * tests/unictype/test-categ_S.c: Likewise.
24458         * tests/unictype/test-categ_Sc.c: Likewise.
24459         * tests/unictype/test-categ_Sk.c: Likewise.
24460         * tests/unictype/test-categ_Sm.c: Likewise.
24461         * tests/unictype/test-categ_So.c: Likewise.
24462         * tests/unictype/test-ctype_alnum.c: Likewise.
24463         * tests/unictype/test-ctype_alpha.c: Likewise.
24464         * tests/unictype/test-ctype_graph.c: Likewise.
24465         * tests/unictype/test-ctype_lower.c: Likewise.
24466         * tests/unictype/test-ctype_print.c: Likewise.
24467         * tests/unictype/test-ctype_punct.c: Likewise.
24468         * tests/unictype/test-ctype_upper.c: Likewise.
24469         * tests/unictype/test-decdigit.h: Likewise.
24470         * tests/unictype/test-digit.h: Likewise.
24471         * tests/unictype/test-numeric.h: Likewise.
24472         * tests/unictype/test-pr_alphabetic.c: Likewise.
24473         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
24474         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
24475         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
24476         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
24477         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
24478         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
24479         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
24480         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
24481         * tests/unictype/test-pr_case_ignorable.c: Likewise.
24482         * tests/unictype/test-pr_cased.c: Likewise.
24483         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
24484         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
24485         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
24486         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
24487         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
24488         * tests/unictype/test-pr_combining.c: Likewise.
24489         * tests/unictype/test-pr_composite.c: Likewise.
24490         * tests/unictype/test-pr_currency_symbol.c: Likewise.
24491         * tests/unictype/test-pr_decimal_digit.c: Likewise.
24492         * tests/unictype/test-pr_deprecated.c: Likewise.
24493         * tests/unictype/test-pr_format_control.c: Likewise.
24494         * tests/unictype/test-pr_grapheme_base.c: Likewise.
24495         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
24496         * tests/unictype/test-pr_grapheme_link.c: Likewise.
24497         * tests/unictype/test-pr_id_continue.c: Likewise.
24498         * tests/unictype/test-pr_id_start.c: Likewise.
24499         * tests/unictype/test-pr_ideographic.c: Likewise.
24500         * tests/unictype/test-pr_lowercase.c: Likewise.
24501         * tests/unictype/test-pr_math.c: Likewise.
24502         * tests/unictype/test-pr_numeric.c: Likewise.
24503         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
24504         * tests/unictype/test-pr_other_id_continue.c: Likewise.
24505         * tests/unictype/test-pr_other_math.c: Likewise.
24506         * tests/unictype/test-pr_punctuation.c: Likewise.
24507         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
24508         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
24509         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
24510         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
24511         * tests/unictype/test-pr_uppercase.c: Likewise.
24512         * tests/unictype/test-pr_xid_continue.c: Likewise.
24513         * tests/unictype/test-pr_xid_start.c: Likewise.
24514         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
24515         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
24516         changes.
24517         * lib/unictype/categ_Cc.h: Likewise.
24518         * lib/unictype/categ_Cf.h: Likewise.
24519         * lib/unictype/categ_Co.h: Likewise.
24520         * lib/unictype/categ_Cs.h: Likewise.
24521         * lib/unictype/categ_Lt.h: Likewise.
24522         * lib/unictype/categ_Nl.h: Likewise.
24523         * lib/unictype/categ_Pc.h: Likewise.
24524         * lib/unictype/categ_Pd.h: Likewise.
24525         * lib/unictype/categ_Pe.h: Likewise.
24526         * lib/unictype/categ_Pf.h: Likewise.
24527         * lib/unictype/categ_Pi.h: Likewise.
24528         * lib/unictype/categ_Ps.h: Likewise.
24529         * lib/unictype/categ_Z.h: Likewise.
24530         * lib/unictype/categ_Zl.h: Likewise.
24531         * lib/unictype/categ_Zp.h: Likewise.
24532         * lib/unictype/categ_Zs.h: Likewise.
24533         * lib/unictype/ctype_blank.h: Likewise.
24534         * lib/unictype/ctype_cntrl.h: Likewise.
24535         * lib/unictype/ctype_digit.h: Likewise.
24536         * lib/unictype/ctype_space.h: Likewise.
24537         * lib/unictype/ctype_xdigit.h: Likewise.
24538         * lib/unictype/mirror.h: Likewise.
24539         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
24540         * lib/unictype/pr_bidi_block_separator.h: Likewise.
24541         * lib/unictype/pr_bidi_common_separator.h: Likewise.
24542         * lib/unictype/pr_bidi_control.h: Likewise.
24543         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
24544         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
24545         * lib/unictype/pr_bidi_european_digit.h: Likewise.
24546         * lib/unictype/pr_bidi_pdf.h: Likewise.
24547         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
24548         * lib/unictype/pr_bidi_whitespace.h: Likewise.
24549         * lib/unictype/pr_dash.h: Likewise.
24550         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
24551         * lib/unictype/pr_diacritic.h: Likewise.
24552         * lib/unictype/pr_extender.h: Likewise.
24553         * lib/unictype/pr_hex_digit.h: Likewise.
24554         * lib/unictype/pr_hyphen.h: Likewise.
24555         * lib/unictype/pr_ids_binary_operator.h: Likewise.
24556         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
24557         * lib/unictype/pr_ignorable_control.h: Likewise.
24558         * lib/unictype/pr_iso_control.h: Likewise.
24559         * lib/unictype/pr_join_control.h: Likewise.
24560         * lib/unictype/pr_left_of_pair.h: Likewise.
24561         * lib/unictype/pr_line_separator.h: Likewise.
24562         * lib/unictype/pr_logical_order_exception.h: Likewise.
24563         * lib/unictype/pr_non_break.h: Likewise.
24564         * lib/unictype/pr_not_a_character.h: Likewise.
24565         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
24566         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
24567         * lib/unictype/pr_other_id_start.h: Likewise.
24568         * lib/unictype/pr_other_lowercase.h: Likewise.
24569         * lib/unictype/pr_other_uppercase.h: Likewise.
24570         * lib/unictype/pr_paired_punctuation.h: Likewise.
24571         * lib/unictype/pr_paragraph_separator.h: Likewise.
24572         * lib/unictype/pr_pattern_syntax.h: Likewise.
24573         * lib/unictype/pr_pattern_white_space.h: Likewise.
24574         * lib/unictype/pr_private_use.h: Likewise.
24575         * lib/unictype/pr_quotation_mark.h: Likewise.
24576         * lib/unictype/pr_radical.h: Likewise.
24577         * lib/unictype/pr_soft_dotted.h: Likewise.
24578         * lib/unictype/pr_space.h: Likewise.
24579         * lib/unictype/pr_titlecase.h: Likewise.
24580         * lib/unictype/pr_variation_selector.h: Likewise.
24581         * lib/unictype/pr_white_space.h: Likewise.
24582         * lib/unictype/pr_zero_width.h: Likewise.
24583         * lib/unictype/sy_c_ident.h: Likewise.
24584         * lib/unictype/sy_c_whitespace.h: Likewise.
24585         * lib/unictype/sy_java_whitespace.h: Likewise.
24586         * lib/uninorm/composition-table.gperf: Likewise.
24587         * lib/uninorm/decomposition-table1.h: Likewise.
24588         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
24589         LB8.
24590         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24591         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24592         * modules/unictype/*: Bump version number of expected libunistring
24593         version.
24594
24595 2011-01-09  Bruno Haible  <bruno@clisp.org>
24596
24597         Update to Unicode 5.2.0.
24598         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
24599         trailing whitespace removed.
24600
24601 2011-01-09  Bruno Haible  <bruno@clisp.org>
24602
24603         New Unicode character properties, from Unicode 5.2.0.
24604         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
24605         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
24606         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
24607         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
24608         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
24609         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
24610         uc_is_property_cased, uc_is_property_case_ignorable,
24611         uc_is_property_changes_when_lowercased,
24612         uc_is_property_changes_when_uppercased,
24613         uc_is_property_changes_when_titlecased,
24614         uc_is_property_changes_when_casefolded,
24615         uc_is_property_changes_when_casemapped): New declarations.
24616         * lib/unictype/pr_byname.gperf: Add the new properties.
24617         * modules/unictype/property-byname (Depends-on): Depend on the new
24618         properties modules.
24619         * modules/unictype/property-all (Depends-on): Likewise.
24620         * MODULES.html.sh (Unicode string functions): Add
24621         unictype/property-case-ignorable, unictype/property-cased,
24622         unictype/property-changes-when-casefolded,
24623         unictype/property-changes-when-casemapped,
24624         unictype/property-changes-when-lowercased,
24625         unictype/property-changes-when-titlecased,
24626         unictype/property-changes-when-uppercased.
24627
24628         New module 'unictype/property-changes-when-casemapped'.
24629         * modules/unictype/property-changes-when-casemapped: New file.
24630         * lib/unictype/pr_changes_when_casemapped.c: New file.
24631         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
24632         generated by gen-uni-tables.
24633         * modules/unictype/property-changes-when-casemapped-tests: New file.
24634         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
24635         automatically generated by gen-uni-tables.
24636
24637         New module 'unictype/property-changes-when-casefolded'.
24638         * modules/unictype/property-changes-when-casefolded: New file.
24639         * lib/unictype/pr_changes_when_casefolded.c: New file.
24640         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
24641         generated by gen-uni-tables.
24642         * modules/unictype/property-changes-when-casefolded-tests: New file.
24643         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
24644         automatically generated by gen-uni-tables.
24645
24646         New module 'unictype/property-changes-when-titlecased'.
24647         * modules/unictype/property-changes-when-titlecased: New file.
24648         * lib/unictype/pr_changes_when_titlecased.c: New file.
24649         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
24650         generated by gen-uni-tables.
24651         * modules/unictype/property-changes-when-titlecased-tests: New file.
24652         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
24653         automatically generated by gen-uni-tables.
24654
24655         New module 'unictype/property-changes-when-uppercased'.
24656         * modules/unictype/property-changes-when-uppercased: New file.
24657         * lib/unictype/pr_changes_when_uppercased.c: New file.
24658         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
24659         generated by gen-uni-tables.
24660         * modules/unictype/property-changes-when-uppercased-tests: New file.
24661         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
24662         automatically generated by gen-uni-tables.
24663
24664         New module 'unictype/property-changes-when-lowercased'.
24665         * modules/unictype/property-changes-when-lowercased: New file.
24666         * lib/unictype/pr_changes_when_lowercased.c: New file.
24667         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
24668         generated by gen-uni-tables.
24669         * modules/unictype/property-changes-when-lowercased-tests: New file.
24670         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
24671         automatically generated by gen-uni-tables.
24672
24673         New module 'unictype/property-case-ignorable'.
24674         * modules/unictype/property-case-ignorable: New file.
24675         * lib/unictype/pr_case_ignorable.c: New file.
24676         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
24677         by gen-uni-tables.
24678         * modules/unictype/property-case-ignorable-tests: New file.
24679         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
24680         generated by gen-uni-tables.
24681
24682         New module 'unictype/property-cased'.
24683         * modules/unictype/property-cased: New file.
24684         * lib/unictype/pr_cased.c: New file.
24685         * lib/unictype/pr_cased.h: New file, automatically generated by
24686         gen-uni-tables.
24687         * modules/unictype/property-cased-tests: New file.
24688         * tests/unictype/test-pr_cased.c: New file, automatically generated by
24689         gen-uni-tables.
24690
24691 2011-01-09  Bruno Haible  <bruno@clisp.org>
24692
24693         Update to Unicode 5.2.0.
24694         * lib/gen-uni-tables.c (output_predicate, output_category,
24695         output_combclass, output_bidi_category, output_decimal_digit_test,
24696         output_decimal_digit, output_digit_test, output_digit,
24697         output_numeric_test, output_numeric, output_mirror, output_scripts,
24698         output_scripts_byname, output_blocks, output_ident_category): Fix
24699         comment header.
24700         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
24701         get_wbp.
24702         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
24703         items.
24704         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
24705         Changes_When_Lowercased, Changes_When_Uppercased,
24706         Changes_When_Titlecased, Changes_When_Casefolded,
24707         Changes_When_Casemapped.
24708         (is_property_alphabetic, is_property_default_ignorable_code_point):
24709         Update for Unicode 5.2.0.
24710         (is_property_cased, is_property_case_ignorable,
24711         is_property_changes_when_lowercased,
24712         is_property_changes_when_uppercased,
24713         is_property_changes_when_titlecased,
24714         is_property_changes_when_casefolded,
24715         is_property_changes_when_casemapped): New functions.
24716         (output_properties): Output also the properties cased, case_ignorable,
24717         changes_when_lowercased, changes_when_uppercased,
24718         changes_when_titlecased, changes_when_casefolded,
24719         changes_when_casemapped.
24720         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
24721         Unicode TR#11 revision 17 -> 19.
24722         (LBP_CP): New enumeration value.
24723         (LBP_*): Adjust values accordingly.
24724         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
24725         TR#14 revision 22 -> 24.
24726         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
24727         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
24728         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
24729         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
24730         is_WBP_MIDLETTER.
24731         (output_composition_tables): Allow for 24 bits instead of 16 bits in
24732         the code1 and code2 of each composition rule.
24733         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
24734         * lib/unicase/ignorable.h: Likewise.
24735         * lib/unicase/tocasefold.h: Likewise.
24736         * lib/unicase/tolower.h: Likewise.
24737         * lib/unicase/totitle.h: Likewise.
24738         * lib/unicase/toupper.h: Likewise.
24739         * lib/unictype/bidi_of.h: Likewise.
24740         * lib/unictype/blocks.h: Likewise.
24741         * lib/unictype/categ_C.h: Likewise.
24742         * lib/unictype/categ_Cf.h: Likewise.
24743         * lib/unictype/categ_Cn.h: Likewise.
24744         * lib/unictype/categ_L.h: Likewise.
24745         * lib/unictype/categ_Ll.h: Likewise.
24746         * lib/unictype/categ_Lm.h: Likewise.
24747         * lib/unictype/categ_Lo.h: Likewise.
24748         * lib/unictype/categ_Lu.h: Likewise.
24749         * lib/unictype/categ_M.h: Likewise.
24750         * lib/unictype/categ_Mc.h: Likewise.
24751         * lib/unictype/categ_Mn.h: Likewise.
24752         * lib/unictype/categ_N.h: Likewise.
24753         * lib/unictype/categ_Nd.h: Likewise.
24754         * lib/unictype/categ_Nl.h: Likewise.
24755         * lib/unictype/categ_No.h: Likewise.
24756         * lib/unictype/categ_P.h: Likewise.
24757         * lib/unictype/categ_Pd.h: Likewise.
24758         * lib/unictype/categ_Po.h: Likewise.
24759         * lib/unictype/categ_S.h: Likewise.
24760         * lib/unictype/categ_Sc.h: Likewise.
24761         * lib/unictype/categ_So.h: Likewise.
24762         * lib/unictype/categ_of.h: Likewise.
24763         * lib/unictype/combining.h: Likewise.
24764         * lib/unictype/ctype_alnum.h: Likewise.
24765         * lib/unictype/ctype_alpha.h: Likewise.
24766         * lib/unictype/ctype_graph.h: Likewise.
24767         * lib/unictype/ctype_lower.h: Likewise.
24768         * lib/unictype/ctype_print.h: Likewise.
24769         * lib/unictype/ctype_punct.h: Likewise.
24770         * lib/unictype/ctype_upper.h: Likewise.
24771         * lib/unictype/decdigit.h: Likewise.
24772         * lib/unictype/digit.h: Likewise.
24773         * lib/unictype/numeric.h: Likewise.
24774         * lib/unictype/pr_alphabetic.h: Likewise.
24775         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
24776         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
24777         * lib/unictype/pr_bidi_european_digit.h: Likewise.
24778         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
24779         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
24780         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
24781         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
24782         * lib/unictype/pr_combining.h: Likewise.
24783         * lib/unictype/pr_composite.h: Likewise.
24784         * lib/unictype/pr_currency_symbol.h: Likewise.
24785         * lib/unictype/pr_dash.h: Likewise.
24786         * lib/unictype/pr_decimal_digit.h: Likewise.
24787         * lib/unictype/pr_deprecated.h: Likewise.
24788         * lib/unictype/pr_diacritic.h: Likewise.
24789         * lib/unictype/pr_extender.h: Likewise.
24790         * lib/unictype/pr_grapheme_base.h: Likewise.
24791         * lib/unictype/pr_grapheme_extend.h: Likewise.
24792         * lib/unictype/pr_grapheme_link.h: Likewise.
24793         * lib/unictype/pr_id_continue.h: Likewise.
24794         * lib/unictype/pr_id_start.h: Likewise.
24795         * lib/unictype/pr_ideographic.h: Likewise.
24796         * lib/unictype/pr_ignorable_control.h: Likewise.
24797         * lib/unictype/pr_logical_order_exception.h: Likewise.
24798         * lib/unictype/pr_lowercase.h: Likewise.
24799         * lib/unictype/pr_numeric.h: Likewise.
24800         * lib/unictype/pr_other_alphabetic.h: Likewise.
24801         * lib/unictype/pr_punctuation.h: Likewise.
24802         * lib/unictype/pr_sentence_terminal.h: Likewise.
24803         * lib/unictype/pr_terminal_punctuation.h: Likewise.
24804         * lib/unictype/pr_unassigned_code_value.h: Likewise.
24805         * lib/unictype/pr_unified_ideograph.h: Likewise.
24806         * lib/unictype/pr_uppercase.h: Likewise.
24807         * lib/unictype/pr_xid_continue.h: Likewise.
24808         * lib/unictype/pr_xid_start.h: Likewise.
24809         * lib/unictype/pr_zero_width.h: Likewise.
24810         * lib/unictype/scripts.h: Likewise.
24811         * lib/unictype/scripts_byname.gperf: Likewise.
24812         * lib/unictype/sy_java_ident.h: Likewise.
24813         * lib/unigbrk/gbrkprop.h: Likewise.
24814         * lib/unilbrk/lbrkprop1.h: Likewise.
24815         * lib/unilbrk/lbrkprop2.h: Likewise.
24816         * lib/unilbrk/lbrktables.h: Likewise.
24817         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
24818         LBP_CP. Implement rule LB30.
24819         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
24820         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
24821         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
24822         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
24823         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
24824         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
24825         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
24826         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
24827         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
24828         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
24829         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
24830         bits instead of 16 bits in the code1 and code2 of each composition
24831         rule.
24832         (uc_composition): Update for Unicode 5.2.0.
24833         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
24834         * lib/uninorm/decomposition-table2.h: Likewise.
24835         * lib/uniwbrk/wbrkprop.h: Likewise.
24836         * tests/unicase/test-cased.c: Likewise.
24837         * tests/unicase/test-ignorable.c: Likewise.
24838         * tests/unicase/test-uc_tolower.c: Likewise.
24839         * tests/unicase/test-uc_totitle.c: Likewise.
24840         * tests/unicase/test-uc_toupper.c: Likewise.
24841         * tests/unictype/test-categ_C.c: Likewise.
24842         * tests/unictype/test-categ_Cf.c: Likewise.
24843         * tests/unictype/test-categ_Cn.c: Likewise.
24844         * tests/unictype/test-categ_L.c: Likewise.
24845         * tests/unictype/test-categ_Ll.c: Likewise.
24846         * tests/unictype/test-categ_Lm.c: Likewise.
24847         * tests/unictype/test-categ_Lo.c: Likewise.
24848         * tests/unictype/test-categ_Lu.c: Likewise.
24849         * tests/unictype/test-categ_M.c: Likewise.
24850         * tests/unictype/test-categ_Mc.c: Likewise.
24851         * tests/unictype/test-categ_Mn.c: Likewise.
24852         * tests/unictype/test-categ_N.c: Likewise.
24853         * tests/unictype/test-categ_Nd.c: Likewise.
24854         * tests/unictype/test-categ_Nl.c: Likewise.
24855         * tests/unictype/test-categ_No.c: Likewise.
24856         * tests/unictype/test-categ_P.c: Likewise.
24857         * tests/unictype/test-categ_Pd.c: Likewise.
24858         * tests/unictype/test-categ_Po.c: Likewise.
24859         * tests/unictype/test-categ_S.c: Likewise.
24860         * tests/unictype/test-categ_Sc.c: Likewise.
24861         * tests/unictype/test-categ_So.c: Likewise.
24862         * tests/unictype/test-ctype_alnum.c: Likewise.
24863         * tests/unictype/test-ctype_alpha.c: Likewise.
24864         * tests/unictype/test-ctype_graph.c: Likewise.
24865         * tests/unictype/test-ctype_lower.c: Likewise.
24866         * tests/unictype/test-ctype_print.c: Likewise.
24867         * tests/unictype/test-ctype_punct.c: Likewise.
24868         * tests/unictype/test-ctype_upper.c: Likewise.
24869         * tests/unictype/test-decdigit.h: Likewise.
24870         * tests/unictype/test-digit.h: Likewise.
24871         * tests/unictype/test-numeric.h: Likewise.
24872         * tests/unictype/test-pr_alphabetic.c: Likewise.
24873         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
24874         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
24875         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
24876         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
24877         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
24878         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
24879         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
24880         * tests/unictype/test-pr_combining.c: Likewise.
24881         * tests/unictype/test-pr_composite.c: Likewise.
24882         * tests/unictype/test-pr_currency_symbol.c: Likewise.
24883         * tests/unictype/test-pr_dash.c: Likewise.
24884         * tests/unictype/test-pr_decimal_digit.c: Likewise.
24885         * tests/unictype/test-pr_deprecated.c: Likewise.
24886         * tests/unictype/test-pr_diacritic.c: Likewise.
24887         * tests/unictype/test-pr_extender.c: Likewise.
24888         * tests/unictype/test-pr_grapheme_base.c: Likewise.
24889         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
24890         * tests/unictype/test-pr_grapheme_link.c: Likewise.
24891         * tests/unictype/test-pr_id_continue.c: Likewise.
24892         * tests/unictype/test-pr_id_start.c: Likewise.
24893         * tests/unictype/test-pr_ideographic.c: Likewise.
24894         * tests/unictype/test-pr_ignorable_control.c: Likewise.
24895         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
24896         * tests/unictype/test-pr_lowercase.c: Likewise.
24897         * tests/unictype/test-pr_numeric.c: Likewise.
24898         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
24899         * tests/unictype/test-pr_punctuation.c: Likewise.
24900         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
24901         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
24902         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
24903         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
24904         * tests/unictype/test-pr_uppercase.c: Likewise.
24905         * tests/unictype/test-pr_xid_continue.c: Likewise.
24906         * tests/unictype/test-pr_xid_start.c: Likewise.
24907         * tests/unictype/test-pr_zero_width.c: Likewise.
24908         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
24909         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
24910         changed behaviour: line breaking is now disallowed between a letter
24911         or '=' and '('.
24912         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
24913         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
24914         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
24915         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
24916         * tests/uniwidth/test-uc_width2.sh: Same updates as in
24917         lib/uniwidth/width.c.
24918         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
24919         without comments, but with the original copyright notice.
24920         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
24921         changes.
24922         * lib/unictype/categ_Cc.h: Likewise.
24923         * lib/unictype/categ_Co.h: Likewise.
24924         * lib/unictype/categ_Cs.h: Likewise.
24925         * lib/unictype/categ_Lt.h: Likewise.
24926         * lib/unictype/categ_Me.h: Likewise.
24927         * lib/unictype/categ_Pc.h: Likewise.
24928         * lib/unictype/categ_Pe.h: Likewise.
24929         * lib/unictype/categ_Pf.h: Likewise.
24930         * lib/unictype/categ_Pi.h: Likewise.
24931         * lib/unictype/categ_Ps.h: Likewise.
24932         * lib/unictype/categ_Sk.h: Likewise.
24933         * lib/unictype/categ_Sm.h: Likewise.
24934         * lib/unictype/categ_Z.h: Likewise.
24935         * lib/unictype/categ_Zl.h: Likewise.
24936         * lib/unictype/categ_Zp.h: Likewise.
24937         * lib/unictype/categ_Zs.h: Likewise.
24938         * lib/unictype/ctype_blank.h: Likewise.
24939         * lib/unictype/ctype_cntrl.h: Likewise.
24940         * lib/unictype/ctype_digit.h: Likewise.
24941         * lib/unictype/ctype_space.h: Likewise.
24942         * lib/unictype/ctype_xdigit.h: Likewise.
24943         * lib/unictype/mirror.h: Likewise.
24944         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
24945         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
24946         * lib/unictype/pr_bidi_block_separator.h: Likewise.
24947         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
24948         * lib/unictype/pr_bidi_common_separator.h: Likewise.
24949         * lib/unictype/pr_bidi_control.h: Likewise.
24950         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
24951         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
24952         * lib/unictype/pr_bidi_pdf.h: Likewise.
24953         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
24954         * lib/unictype/pr_bidi_whitespace.h: Likewise.
24955         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
24956         * lib/unictype/pr_format_control.h: Likewise.
24957         * lib/unictype/pr_hex_digit.h: Likewise.
24958         * lib/unictype/pr_hyphen.h: Likewise.
24959         * lib/unictype/pr_ids_binary_operator.h: Likewise.
24960         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
24961         * lib/unictype/pr_iso_control.h: Likewise.
24962         * lib/unictype/pr_join_control.h: Likewise.
24963         * lib/unictype/pr_left_of_pair.h: Likewise.
24964         * lib/unictype/pr_line_separator.h: Likewise.
24965         * lib/unictype/pr_math.h: Likewise.
24966         * lib/unictype/pr_non_break.h: Likewise.
24967         * lib/unictype/pr_not_a_character.h: Likewise.
24968         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
24969         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
24970         * lib/unictype/pr_other_id_continue.h: Likewise.
24971         * lib/unictype/pr_other_id_start.h: Likewise.
24972         * lib/unictype/pr_other_lowercase.h: Likewise.
24973         * lib/unictype/pr_other_math.h: Likewise.
24974         * lib/unictype/pr_other_uppercase.h: Likewise.
24975         * lib/unictype/pr_paired_punctuation.h: Likewise.
24976         * lib/unictype/pr_paragraph_separator.h: Likewise.
24977         * lib/unictype/pr_pattern_syntax.h: Likewise.
24978         * lib/unictype/pr_pattern_white_space.h: Likewise.
24979         * lib/unictype/pr_private_use.h: Likewise.
24980         * lib/unictype/pr_quotation_mark.h: Likewise.
24981         * lib/unictype/pr_radical.h: Likewise.
24982         * lib/unictype/pr_soft_dotted.h: Likewise.
24983         * lib/unictype/pr_space.h: Likewise.
24984         * lib/unictype/pr_titlecase.h: Likewise.
24985         * lib/unictype/pr_variation_selector.h: Likewise.
24986         * lib/unictype/pr_white_space.h: Likewise.
24987         * lib/unictype/sy_c_ident.h: Likewise.
24988         * lib/unictype/sy_c_whitespace.h: Likewise.
24989         * lib/unictype/sy_java_whitespace.h: Likewise.
24990         * modules/uni*/*: Bump version number of expected libunistring version.
24991         Reported by Simon Josefsson.
24992
24993 2011-01-09  Karl Heuer  <kwzh@gnu.org>
24994
24995         useless-if-before-free: fix typo in --help and make the internal,
24996         automatic version date update process work once again.
24997         --help output contained a NUL character instead of the
24998         backslash-zero that was intended.  Also, the "must lie within
24999         the first 8 lines" line is on line 9, and hence not getting
25000         automatically updated.
25001         * build-aux/useless-if-before-free: Fix the former by adding a
25002         backslash, and the latter by condensing the three lines of what-it-does
25003         to a single line, leaving one line of slack for the future.
25004
25005 2011-01-09  Bruno Haible  <bruno@clisp.org>
25006
25007         uniwidth/width: Fix width of U+1D173..U+1D17A.
25008         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
25009         symbolic_width, output_width_property_test): New functions.
25010         (main): Invoke output_nonspacing_property, output_width_property_test.
25011         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
25012         U+1D173..U+1D17A.
25013         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
25014         1.
25015         * modules/uniwidth/*: Bump version number of expected libunistring
25016         version.
25017         * modules/unilbrk/*: Likewise.
25018
25019 2011-01-08  Bruno Haible  <bruno@clisp.org>
25020
25021         uninorm tests: Preserve copyright of Unicode data file.
25022         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
25023         Mention modifications.
25024
25025 2011-01-08  Bruno Haible  <bruno@clisp.org>
25026
25027         gen-uni-tables: Prepare for Unicode 5.2.0.
25028         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
25029         (debug_output_lbp, output_lbp): Update.
25030
25031 2011-01-08  Bruno Haible  <bruno@clisp.org>
25032
25033         unilbrk: Clarify gen-uni-tables.c code.
25034         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
25035         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
25036         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
25037
25038 2011-01-07  Bruno Haible  <bruno@clisp.org>
25039
25040         strtod: Restore errno when successfully parsing Infinity or NaN.
25041         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
25042         restore the original errno.
25043
25044 2011-01-07  Bruno Haible  <bruno@clisp.org>
25045
25046         remove test: Avoid failure on HP-UX 11.
25047         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
25048
25049 2011-01-07  Bruno Haible  <bruno@clisp.org>
25050
25051         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
25052         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
25053         error code.
25054
25055 2011-01-07  Pádraig Brady <P@draigBrady.com>
25056
25057         ignore-value: fixup comments, and add Eric Blake
25058         as an author since he rewrote the macros.
25059         * lib/ignore-value.h (ignore_value):  State that
25060         we now support aggregates.  Also specify exactly
25061         when the GCC warn_unused_result feature was added.
25062
25063 2011-01-06  Eric Blake  <eblake@redhat.com>
25064
25065         ignore-value: support aggregate types
25066         * lib/ignore-value.h (ignore_value): Provide separate gcc
25067         definition.
25068         * modules/ignore-value-tests: New test module.
25069         * tests/test-ignore-value.c: New test.
25070
25071         maint.mk: improve sc_prohibit_strcmp regex
25072         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
25073         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
25074         definition of STRNEQ.
25075
25076         signal: work around Haiku issue with SIGBUS
25077         * lib/siglist.h: Add comment.
25078         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
25079         strsignal's favoring of SIGSEGV.
25080         * tests/test-signal.c (main): Avoid test failure.
25081         * doc/posix-headers/signal.texi (signal.h): Document the issue.
25082         Reported by Scott McCreary.
25083
25084         maint.mk: add pre-release check to ensure submodule commits are public
25085         * top/maint.mk (public-submodule-commit): New rule.
25086         (submodule-checks): New variable.
25087         (alpha beta stable): Depend on the variable.
25088
25089 2011-01-05  Pádraig Brady <P@draigBrady.com>
25090         and Jim Meyering  <meyering@redhat.com>
25091
25092         ignore-value: make ignore_value more generic; deprecate ignore_ptr
25093         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
25094         (ATTRIBUTE_DEPRECATED): Define.
25095         (_ignore_case): New function.
25096         (ignore_value): New macro, to replace the old function.
25097         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
25098         * modules/ignore-value (Depends-on): Add stdint.
25099
25100 2011-01-04  Eric Blake  <eblake@redhat.com>
25101
25102         doc: regenerate INSTALL
25103         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
25104         @firstparagraphindent support, now that autoconf dropped it.
25105         (INSTALL_PRELUDE): Reinstate old macro.
25106         * doc/install.texi: Resync from autoconf.
25107         * doc/INSTALL: Reflect recent autoconf update.
25108         * doc/INSTALL.ISO: Likewise.
25109         * doc/INSTALL.UTF-8: Likewise.
25110         Reported by Karl Berry.
25111
25112 2011-01-04  Bruce Korb  <address@hidden>
25113
25114         git-version-gen: avoid a sub-shell
25115         * build-aux/git-version-gen: Redirect stderr in `...` via
25116         "exec 2>...", rather than via an added sub-shell.
25117
25118 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
25119
25120         git-version-gen: use (...) rather than sh -c '...'
25121         * build-aux/git-version-gen: Rather than hard-coding a shell's name
25122         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
25123
25124 2011-01-03  Jim Meyering  <meyering@redhat.com>
25125
25126         git-version-gen: convert leading TABs to spaces
25127         * build-aux/git-version-gen: Expand leading TABs.
25128
25129         git-version-gen: handle failed "git rev-list"
25130         * build-aux/git-version-gen: Rather than leaking a "fatal" error
25131         from git and proceeding as if it had succeeded but printed no SHA1
25132         checksums, suppress the diagnostic and handle the failure.
25133         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
25134
25135         git-version-gen: include command name in one more diagnostic
25136         * build-aux/git-version-gen: When the required .tarball-version file
25137         was missing or unreadable, you might see the diagnostic from "cat",
25138         but no trace of the name of the invoking script.  Now, you still see
25139         the diagnostic from cat, but also get one from "git-version-gen: ".
25140         Inspired by a patch from Bruce Korb.
25141
25142         update-copyright: adjust test to match changed code
25143         * tests/test-update-copyright.sh: Change test's expected output
25144         to match new actual output.
25145
25146 2011-01-02  Bruno Haible  <bruno@clisp.org>
25147
25148         getlogin_r: Avoid test failure on HP-UX 11.
25149         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
25150         ERANGE when the second argument is zero.
25151         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
25152         portability problem.
25153
25154 2011-01-02  Bruce Korb  <bkorb@gnu.org>
25155
25156         * build-aux/update-copyright: doc Simon's changes
25157
25158 2011-01-02  Simon Josefsson  <simon@josefsson.org>
25159
25160         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
25161         environment variable.
25162
25163 2011-01-02  Bruno Haible  <bruno@clisp.org>
25164
25165         unigbrk: Avoid gcc warnings.
25166         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
25167         unused variable.
25168         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
25169         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
25170         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
25171         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
25172         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
25173         Change type of first argument to 'const char *'.
25174         (main): Remove unused variable.
25175         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
25176         type of first argument to 'const char *'.
25177         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
25178         Likewise.
25179         (main): Change type of variable 's'.
25180         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
25181         to 'int'.
25182
25183 2011-01-02  Bruno Haible  <bruno@clisp.org>
25184
25185         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
25186         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
25187         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
25188         bug.
25189         * lib/pwrite.c: Undo 2010-12-31 patch.
25190         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
25191
25192 2011-01-02  Bruno Haible  <bruno@clisp.org>
25193
25194         pread: Fix test whether it works.
25195         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
25196
25197 2011-01-02  Bruno Haible  <bruno@clisp.org>
25198
25199         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
25200         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
25201         ends in "6". Don't require a specific month name. Try also the locale
25202         names found on HP-UX 11 and Solaris 7.
25203
25204 2011-01-02  Bruno Haible  <bruno@clisp.org>
25205
25206         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
25207         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
25208         C linkage.
25209         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
25210
25211 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25212
25213         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
25214         for consistency, since the "cluster" term is not used elsewhere.
25215         * lib/unigbrk.in.h: Update name.
25216         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
25217         * lib/unigbrk/u16-grapheme-next.c: Update name.
25218         * lib/unigbrk/u16-grapheme-prev.c: Update name.
25219         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
25220         * lib/unigbrk/u32-grapheme-next.c: Update name.
25221         * lib/unigbrk/u32-grapheme-prev.c: Update name.
25222         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
25223         * lib/unigbrk/u8-grapheme-next.c: Update name.
25224         * lib/unigbrk/u8-grapheme-prev.c: Update name.
25225         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
25226         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
25227         Suggested by Bruno Haible.
25228
25229 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25230
25231         Remove module 'u8-grapheme-len' as too redundant with
25232         'u8-grapheme-next'.
25233         * modules/unigbrk/u8-grapheme-len: Delete file.
25234         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
25235         * lib/unigbrk.in.h: Remove prototype for deleted function.
25236         * lib/unigbrk/u8-grapheme-len.c: Delete file.
25237         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
25238
25239         Remove module 'u16-grapheme-len' as too redundant with
25240         'u16-grapheme-next'.
25241         * modules/unigbrk/u16-grapheme-len: Delete file.
25242         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
25243         * lib/unigbrk.in.h: Remove prototype for deleted function.
25244         * lib/unigbrk/u16-grapheme-len.c: Delete file.
25245         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
25246
25247         Remove module 'u32-grapheme-len' as too redundant with
25248         'u32-grapheme-next'.
25249         * modules/unigbrk/u32-grapheme-len: Delete file.
25250         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
25251         * lib/unigbrk.in.h: Remove prototype for deleted function.
25252         * lib/unigbrk/u32-grapheme-len.c: Delete file.
25253         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
25254
25255         Suggested by Bruno Haible.
25256
25257 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
25258
25259         * unigbrk.in.h: Fix typo: "ben" => "been".
25260         Reported by Bruno Haible.
25261
25262 2011-01-01  Jim Meyering  <meyering@redhat.com>
25263
25264         maint: update almost all copyright ranges to include 2011
25265         Run the new "make update-copyright" rule.
25266
25267 2011-01-01  Jim Meyering  <meyering@redhat.com>
25268
25269         maint: update-copyright: exempt doc/INSTALL*
25270         * Makefile (update-copyright): Also exclude doc/INSTALL*,
25271         since they are generated.  Suggested by Bruno Haible.
25272
25273 2011-01-01  Jim Meyering  <meyering@redhat.com>
25274
25275         maint: refine the update-copyright rule
25276         * Makefile (update-copyright): Also exclude any file that includes
25277         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
25278         code that merely generates the comment.
25279
25280 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
25281
25282         New module 'u8-grapheme-len'.
25283         * modules/unigbrk/u8-grapheme-len: New file.
25284         * modules/unigbrk/u8-grapheme-len-tests: New file.
25285         * lib/unigbrk.in.h: Add prototype for new function.
25286         * lib/unigbrk/u8-grapheme-len.c: New file.
25287         * tests/unigbrk/test-u8-grapheme-len.c: New file.
25288
25289         New module 'u16-grapheme-len'.
25290         * modules/unigbrk/u16-grapheme-len: New file.
25291         * modules/unigbrk/u16-grapheme-len-tests: New file.
25292         * lib/unigbrk.in.h: Add prototype for new function.
25293         * lib/unigbrk/u16-grapheme-len.c: New file.
25294         * tests/unigbrk/test-u16-grapheme-len.c: New file.
25295
25296         New module 'u32-grapheme-len'.
25297         * modules/unigbrk/u32-grapheme-len: New file.
25298         * modules/unigbrk/u32-grapheme-len-tests: New file.
25299         * lib/unigbrk.in.h: Add prototype for new function.
25300         * lib/unigbrk/u32-grapheme-len.c: New file.
25301         * tests/unigbrk/test-u32-grapheme-len.c: New file.
25302
25303         New module 'u8-grapheme-next'.
25304         * modules/unigbrk/u8-grapheme-next: New file.
25305         * modules/unigbrk/u8-grapheme-next-tests: New file.
25306         * lib/unigbrk.in.h: Add prototype for new function.
25307         * lib/unigbrk/u8-grapheme-next.c: New file.
25308         * tests/unigbrk/test-u8-grapheme-next.c: New file.
25309
25310         New module 'u16-grapheme-next'.
25311         * modules/unigbrk/u16-grapheme-next: New file.
25312         * modules/unigbrk/u16-grapheme-next-tests: New file.
25313         * lib/unigbrk.in.h: Add prototype for new function.
25314         * lib/unigbrk/u16-grapheme-next.c: New file.
25315         * tests/unigbrk/test-u16-grapheme-next.c: New file.
25316
25317         New module 'u32-grapheme-next'.
25318         * modules/unigbrk/u32-grapheme-next: New file.
25319         * modules/unigbrk/u32-grapheme-next-tests: New file.
25320         * lib/unigbrk.in.h: Add prototype for new function.
25321         * lib/unigbrk/u32-grapheme-next.c: New file.
25322         * tests/unigbrk/test-u32-grapheme-next.c: New file.
25323
25324         New module 'u8-grapheme-prev'.
25325         * modules/unigbrk/u8-grapheme-prev: New file.
25326         * modules/unigbrk/u8-grapheme-prev-tests: New file.
25327         * lib/unigbrk.in.h: Add prototype for new function.
25328         * lib/unigbrk/u8-grapheme-prev.c: New file.
25329         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
25330
25331         New module 'u16-grapheme-prev'.
25332         * modules/unigbrk/u16-grapheme-prev: New file.
25333         * modules/unigbrk/u16-grapheme-prev-tests: New file.
25334         * lib/unigbrk.in.h: Add prototype for new function.
25335         * lib/unigbrk/u16-grapheme-prev.c: New file.
25336         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
25337
25338         New module 'u32-grapheme-prev'.
25339         * modules/unigbrk/u32-grapheme-prev: New file.
25340         * modules/unigbrk/u32-grapheme-prev-tests: New file.
25341         * lib/unigbrk.in.h: Add prototype for new function.
25342         * lib/unigbrk/u32-grapheme-prev.c: New file.
25343         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
25344
25345         New module 'u8-grapheme-breaks'.
25346         * modules/unigbrk/u8-grapheme-breaks: New file.
25347         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
25348         * lib/unigbrk.in.h: Add prototype for new function.
25349         * lib/unigbrk/u8-grapheme-breaks.c: New file.
25350         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
25351
25352         New module 'u16-grapheme-breaks'.
25353         * modules/unigbrk/u16-grapheme-breaks: New file.
25354         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
25355         * lib/unigbrk.in.h: Add prototype for new function.
25356         * lib/unigbrk/u16-grapheme-breaks.c: New file.
25357         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
25358
25359         New module 'u32-grapheme-breaks'.
25360         * modules/unigbrk/u32-grapheme-breaks: New file.
25361         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
25362         * lib/unigbrk.in.h: Add prototype for new function.
25363         * lib/unigbrk/u32-grapheme-breaks.c: New file.
25364         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
25365
25366         New module 'ulc-grapheme-breaks'.
25367         * modules/unigbrk/ulc-grapheme-breaks: New file.
25368         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
25369         * m4/locale-ar.m4: New file.
25370         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
25371         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
25372         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
25373
25374 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
25375
25376         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
25377         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
25378         modified how this file was generated before I initially submitted
25379         the module, but failed to regenerate it.  This meant that several
25380         of the level2 entries were wrong.
25381         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
25382         Remove the division-by-2 that is folded into the table now that
25383         gbrkprop.h has been regenerated properly.  Now -1 entries are
25384         handled correctly.
25385
25386         New module 'unigbrk/uc-gbrk-prop-tests'.
25387         * modules/unigbrk/uc-gbrk-prop-tests: New file.
25388         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
25389         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
25390         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
25391
25392 2011-01-01  Bruno Haible  <bruno@clisp.org>
25393
25394         Avoid use of hexadecimal escapes.
25395         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
25396         instead of hexadecimal escapes.
25397
25398 2011-01-01  Jim Meyering  <meyering@redhat.com>
25399
25400         maint: new rule to update copyright year ranges
25401         * Makefile (update-copyright): New rule.
25402
25403         maint: indent with TABs in Makefile
25404         * Makefile: Expand leading sequences of spaces to TABs
25405
25406         version-etc: update the copyright year it reports
25407         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
25408
25409 2010-12-31  Bruno Haible  <bruno@clisp.org>
25410
25411         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
25412         * lib/isfinite.c (zerof, zerod, zerol): New variables.
25413         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
25414         zero.
25415
25416 2010-12-31  Bruno Haible  <bruno@clisp.org>
25417
25418         pwrite: Work around HP-UX 11.11 bug.
25419         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
25420         works and set REPLACE_PWRITE if not.
25421         * lib/pwrite.c (pwrite): Add an implementation that uses the system
25422         function.
25423         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
25424
25425 2010-12-31  Bruno Haible  <bruno@clisp.org>
25426
25427         pread: Work around HP-UX 11 bugs.
25428         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
25429         and set REPLACE_PREAD if not.
25430         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
25431
25432 2010-12-31  Eric Blake  <eblake@redhat.com>
25433
25434         nl_langinfo: fix YESEXPR on Irix 6.5
25435         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
25436         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
25437         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
25438         it.
25439
25440 2010-12-31  Bruno Haible  <bruno@clisp.org>
25441
25442         iconv: Document HP-UX 11 bug.
25443         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
25444
25445 2010-12-31  Bruno Haible  <bruno@clisp.org>
25446
25447         ldexpl: Fix link error on HP-UX 11.
25448         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
25449         LDEXPL_LIBM, using $ISNANL_LIBM.
25450
25451 2010-12-31  Eric Blake  <eblake@redhat.com>
25452
25453         ftello: avoid compilation failure with SunStudio c89
25454         * lib/ftello.c (ftello): Use lseek, not llseek.
25455
25456         tests: avoid failing coreutils tests on cygwin
25457         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
25458         (create_exe_shims_): Return 0 when skipping.
25459
25460 2010-12-31  Bruno Haible  <bruno@clisp.org>
25461
25462         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
25463         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
25464
25465 2010-12-31  Bruno Haible  <bruno@clisp.org>
25466
25467         waitpid: Fix link error in C++ mode.
25468         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
25469
25470 2010-12-31  Bruno Haible  <bruno@clisp.org>
25471
25472         isnan: Use GCC built-ins when possible.
25473         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
25474         __builtin_isnan.
25475         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
25476         (isnan): Define using GCC built-ins for GCC >= 4.0.
25477
25478 2010-12-31  Bruno Haible  <bruno@clisp.org>
25479
25480         isnand: Fix mistake.
25481         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
25482         __builtin_isnand.
25483
25484 2010-12-31  Bruno Haible  <bruno@clisp.org>
25485
25486         open: Avoid C++ error on HP-UX 11.
25487         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
25488
25489 2010-12-31  Bruno Haible  <bruno@clisp.org>
25490
25491         time_r: Add missing declarations on HP-UX 11.
25492         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
25493         instead of HAVE_LOCALTIME_R.
25494         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
25495         HAVE_LOCALTIME_R always.
25496         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
25497         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
25498         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
25499         HAVE_LOCALTIME_R.
25500         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
25501         * doc/posix-functions/localtime_r.texi: Likewise.
25502
25503 2010-12-29  Eric Blake  <eblake@redhat.com>
25504
25505         mountlist: tweak previous commit
25506         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
25507         Reported by Paul Eggert.
25508
25509         mountlist: fix local drive detection on cygwin
25510         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
25511         that works for cygwin.
25512
25513 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
25514
25515         ftoastr, snprintf: ftoastr + snprintf module
25516         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
25517         since the snprintf module now should be good enough here.
25518         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
25519         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
25520         and gl_MODULE_INDICATOR([snprintf]), but the former enables
25521         GNULIB_SNPRINTF only for the test directory, and the latter
25522         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
25523         seems to suffice by itself.
25524
25525 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
25526
25527         alloca: one step towards thread-safety
25528         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
25529         need for a static variable.  All callers changed.  This does not
25530         make the alloca replacement thread-safe, but it's one step.
25531
25532         tests: minor indenting change
25533         * tests/init.sh: Sync from coreutils housekeeping patch
25534         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
25535         to keep lines within 80 columns.
25536
25537 2010-12-28  Jim Meyering  <meyering@redhat.com>
25538
25539         regex: don't infloop on persistent failing calloc
25540         * lib/regexec.c (build_trtable): Return failure indication upon
25541         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
25542         In glibc, this was fixed for version 2.13:
25543         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
25544
25545 2010-12-28  Bruno Haible  <bruno@clisp.org>
25546             Paul Eggert <eggert@cs.ucla.edu>
25547
25548         linkat: Make implementation robust against system behaviour variations.
25549         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
25550         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
25551         way, and to -2 if it needs a generic runtime test.
25552         * lib/linkat.c (solaris_optimized_link_immediate,
25553         solaris_optimized_link_follow): New functions.
25554         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
25555         (check_same_link): Use it.
25556
25557 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
25558
25559         New module 'unigbrk/base'.
25560         * modules/unigbrk/base: New file.
25561         * lib/unigbrk.in.h: New file.
25562
25563         New module 'unigbrk/uc-gbrk-prop'.
25564         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
25565         * modules/unigbrk/uc-gbrk-prop: New file.
25566         * lib/unigbrk/gbrkprop.h: New file.
25567         * lib/unigbrk/uc-gbrk-prop.c: New file.
25568
25569         New module 'unigbrk/uc-is-grapheme-break'.
25570         * modules/unigbrk/uc-is-grapheme-break: New file.
25571         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
25572         * lib/unigbrk/uc-is-grapheme-break.c: New file.
25573         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
25574         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
25575         * tests/unigbrk/GraphemeBreakTest.txt: New file.
25576
25577         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
25578
25579 2010-12-27  Bruno Haible  <bruno@clisp.org>
25580
25581         linkat test: Avoid failure on Solaris 11 2010-11.
25582         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
25583
25584 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
25585
25586         utimens: work around glibc rounding bug on more platforms
25587         * lib/utimens.c (fdutimens): Work around rounding bug even if
25588         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
25589         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
25590
25591 2010-12-27  Bruno Haible  <bruno@clisp.org>
25592
25593         select tests: Improve comments.
25594         * tests/test-select.c (do_select): Add comments.
25595
25596 2010-12-27  Bruno Haible  <bruno@clisp.org>
25597
25598         select tests: Safer way of handling timeout.
25599         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
25600         at every invocation.
25601
25602 2010-12-27  Bruno Haible  <bruno@clisp.org>
25603
25604         select tests: Use 'bool' where appropriate.
25605         * tests/test-select.c (connect_to_socket): Change argument type to
25606         'bool'.
25607
25608 2010-12-27  Bruno Haible  <bruno@clisp.org>
25609
25610         select tests: Use existing modules.
25611         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
25612         (configure.ac): Don't test for unistd.h.
25613         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
25614         declared in <unistd.h>.
25615
25616 2010-12-27  Bruno Haible  <bruno@clisp.org>
25617
25618         mbrtowc: Work around a Solaris 7 bug.
25619         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
25620         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
25621         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
25622         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
25623         MBRTOWC_NULL_ARG1_BUG.
25624         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
25625         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
25626         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
25627         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
25628
25629 2010-12-27  Jim Meyering  <meyering@redhat.com>
25630
25631         read-file.c: tweak syntax
25632         * lib/read-file.c (fread_file): Remove space after "*" in function
25633         definitions.
25634
25635 2010-12-27  Bruno Haible  <bruno@clisp.org>
25636
25637         times test: Avoid gcc warnings on OSF/1.
25638         * tests/test-times.c (main): Cast printf arguments from clock_t to
25639         'long int'.
25640
25641 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
25642
25643         utimens: work around glibc rounding bug on older Linux kernels
25644         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
25645         on Linux with a glibc whose utimes might not work, then work
25646         around a longstanding glibc bug involving rounding rather than
25647         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
25648         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
25649
25650 2010-12-26  Bruno Haible  <bruno@clisp.org>
25651
25652         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
25653         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
25654         _GL_CXXALIAS_SYS.
25655         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25656
25657 2010-12-26  Bruno Haible  <bruno@clisp.org>
25658
25659         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
25660         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
25661         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
25662         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
25663         looking for the declaration.
25664         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
25665         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
25666         problem.
25667         * doc/posix-functions/inet_pton.texi: Likewise.
25668
25669 2010-12-26  Bruno Haible  <bruno@clisp.org>
25670
25671         arpa_inet: Use the common idioms with C++ support.
25672         * lib/arpa_inet.in.h: Include c++defs.h.
25673         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
25674         support.
25675         * modules/arpa_inet (Depends-on): Add c++defs.
25676         (Makefile.am): Substitute the contents of c++defs.h.
25677         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
25678         * modules/arpa_inet-c++-tests: New file.
25679         * tests/test-arpa_inet-c++.cc: New file.
25680
25681 2010-12-25  Bruno Haible  <bruno@clisp.org>
25682
25683         Fix more C++ link errors on Solaris 8.
25684         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
25685         $(LIB_EACCESS).
25686         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
25687         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
25688         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
25689         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
25690         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
25691
25692 2010-12-25  Bruno Haible  <bruno@clisp.org>
25693
25694         printf-posix: Fix link error when a non-GCC compiler is used.
25695         * lib/stdio.in.h (printf): When not using GCC, override printf
25696         correctly.
25697         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25698
25699 2010-12-25  Bruno Haible  <bruno@clisp.org>
25700
25701         strerror_r-posix: Update doc.
25702         * doc/posix-functions/strerror_r.texi: Update doc about the return
25703         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
25704
25705 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
25706
25707         utimens: simplify the logic of the previous change
25708         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
25709         This should not affect whether the test succeeds or fails.
25710
25711         utimens: configure better on hosts with NFS clock skew
25712         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
25713         uses the clock of the local host.  It might use the clock of the
25714         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
25715         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
25716
25717 2010-12-25  Bruno Haible  <bruno@clisp.org>
25718
25719         ptsname test: Avoid failure on Solaris.
25720         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
25721         open a pseudo-terminal; don't use BSD-style ptys.
25722         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
25723
25724 2010-12-25  Bruno Haible  <bruno@clisp.org>
25725
25726         ptsname: Avoid ERANGE failure on some systems.
25727         * lib/ptsname.c (buffer): Increase size.
25728
25729 2010-12-25  Bruno Haible  <bruno@clisp.org>
25730
25731         rename, renameat: Avoid test failures at NFS mounted locations.
25732         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
25733         so that subsequent mkdir calls succeed.
25734
25735 2010-12-25  Bruno Haible  <bruno@clisp.org>
25736
25737         iswblank: Fix C++ link error on Solaris 8.
25738         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
25739         _GL_FUNCDECL_SYS.
25740
25741 2010-12-25  Bruno Haible  <bruno@clisp.org>
25742
25743         unistd: Fix C++ link error on Solaris 8.
25744         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
25745
25746 2010-12-25  Bruno Haible  <bruno@clisp.org>
25747
25748         readlink doc: Mention an old glibc bug.
25749         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
25750
25751 2010-12-25  Bruno Haible  <bruno@clisp.org>
25752
25753         fcntl-h: Fix for use of C++ on glibc systems.
25754         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
25755         also on glibc systems in C++ mode.
25756         Reported by Gary V. Vaughan <gary@gnu.org>.
25757
25758 2010-12-25  Bruno Haible  <bruno@clisp.org>
25759
25760         roundl-ieee: Make it work on OSF/1 5.1 with cc.
25761         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
25762
25763 2010-12-25  Bruno Haible  <bruno@clisp.org>
25764
25765         truncl-ieee: Make it work on OSF/1 5.1 with cc.
25766         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
25767         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
25768         test whether truncl works according to ISO C 99 with IEC 60559.
25769         * m4/truncl-ieee.m4: New file.
25770         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
25771         m4/signbit.m4.
25772         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
25773
25774 2010-12-25  Bruno Haible  <bruno@clisp.org>
25775
25776         ceill-ieee: Make it work on OSF/1 5.1 with cc.
25777         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
25778         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
25779         test whether ceill works according to ISO C 99 with IEC 60559.
25780         * m4/ceill-ieee.m4: New file.
25781         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
25782         m4/signbit.m4.
25783         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
25784
25785 2010-12-25  Bruno Haible  <bruno@clisp.org>
25786
25787         Ensure all prerequisites of <wchar.h> are included.
25788         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
25789         before <wchar.h>.
25790         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
25791         gl_MBRLEN_NUL_RETVAL): Likewise.
25792         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
25793         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
25794         AC_FUNC_MBRTOWC): Likewise.
25795         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25796         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
25797         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25798         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
25799         Likewise.
25800         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
25801         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
25802         (gl_WCHAR_H): Improve comments.
25803         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
25804
25805 2010-12-25  Bruno Haible  <bruno@clisp.org>
25806
25807         strtok_r: Fix C syntax error in autoconf macro.
25808         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
25809         characters in test program.
25810
25811 2010-12-24  Bruno Haible  <bruno@clisp.org>
25812
25813         ceil, trunc, round: Fix gcc warnings.
25814         * lib/ceil.c (MIN): Undefine before redefining.
25815         * lib/trunc.c (MIN): Likewise.
25816         * lib/round.c (MIN): Likewise.
25817         Include <math.h> first.
25818
25819 2010-12-24  Bruno Haible  <bruno@clisp.org>
25820
25821         select tests: Avoid failures on OSF/1 5.1.
25822         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
25823         failure of closing the last socket; it may fail with ECONNRESET.
25824
25825 2010-12-24  Eric Blake  <eblake@redhat.com>
25826
25827         stdint: avoid HP-UX 10.20 preprocessor bug
25828         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
25829         than #if.
25830         * tests/test-floor2.c (main): Likewise.
25831         Reported by Peter O'Gorman.
25832
25833         pipe: make obsoletion transition easier
25834         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
25835         * modules/pipe (Files): Include revived file.
25836         (Include): Drop reference, to mirror getdate's behavior.
25837
25838 2010-12-24  Bruno Haible  <bruno@clisp.org>
25839
25840         sys_socket: Hide mismatch of declarations on NonStop Kernel.
25841         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
25842         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
25843         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25844
25845 2010-12-24  Bruno Haible  <bruno@clisp.org>
25846
25847         gethostname: Ensure declaration on NonStop Kernel.
25848         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
25849         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25850
25851 2010-12-24  Bruno Haible  <bruno@clisp.org>
25852
25853         sys_select: Ensure all necessary types on NonStop Kernel.
25854         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
25855         include <sys/time.h>.
25856         * doc/posix-headers/sys_select.texi: Mention that it's missing on
25857         NonStop Kernel.
25858         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25859
25860 2010-12-24  Bruno Haible  <bruno@clisp.org>
25861
25862         sys_select: Remove unneeded include.
25863         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
25864         have <sys/select.h>.
25865
25866 2010-12-24  Bruno Haible  <bruno@clisp.org>
25867
25868         gethostname: Provide a fallback for HOST_NAME_MAX.
25869         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
25870         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
25871         instead.
25872         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25873
25874 2010-12-24  Bruno Haible  <bruno@clisp.org>
25875
25876         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
25877         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
25878         (SA_RESTART): Likewise.
25879         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25880
25881 2010-12-24  Bruno Haible  <bruno@clisp.org>
25882
25883         signal: Define NSIG.
25884         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
25885         * tests/test-signal.c (nsig): New variable.
25886         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
25887
25888 2010-12-24  Bruno Haible  <bruno@clisp.org>
25889
25890         rename, renameat: Avoid test failures on OSF/1 5.1.
25891         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
25892         alternative error codes.
25893         * tests/test-renameat.c (main): Likewise.
25894
25895 2010-12-24  Bruno Haible  <bruno@clisp.org>
25896
25897         *printf: Detect large precisions bug on Solaris 10/SPARC.
25898         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
25899         by Paul Eggert.
25900         * tests/test-snprintf-posix.h (test_function): Add this test code here
25901         too.
25902         * tests/test-sprintf-posix.h (test_function): Likewise.
25903         * tests/test-vasnprintf-posix.c (test_function): Likewise.
25904         * tests/test-vasprintf-posix.c (test_function): Likewise.
25905         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
25906         around by gnulib.
25907         * doc/posix-functions/printf.texi: Likewise.
25908         * doc/posix-functions/snprintf.texi: Likewise.
25909         * doc/posix-functions/sprintf.texi: Likewise.
25910         * doc/posix-functions/vfprintf.texi: Likewise.
25911         * doc/posix-functions/vprintf.texi: Likewise.
25912         * doc/posix-functions/vsnprintf.texi: Likewise.
25913         * doc/posix-functions/vsprintf.texi: Likewise.
25914         * doc/posix-functions/dprintf.texi: Undo last commit.
25915         * doc/posix-functions/vdprintf.texi: Likewise.
25916
25917 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
25918
25919         tests: port test-fdutimensat.c to Solaris 8
25920         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
25921         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
25922         On Solaris 8, it fails with errno == ENOSYS, because there is no
25923         futimens (so it can't use the fd), and there is no lutimens (so it
25924         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
25925
25926         vsnprintf: make more consistent with snprintf; doc fixes
25927
25928         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
25929         the byte count return problem was promoted from the snprintf-posix
25930         to the snprintf module.
25931         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
25932         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
25933         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
25934         * tests/test-snprintf.c (main): Check the byte count returned.
25935         * tests/test-vsnprintf.c (main): Likewise.
25936
25937 2010-12-23  Eric Blake  <eblake@redhat.com>
25938
25939         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
25940         * modules/sigpipe (License): Relax license.
25941
25942 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
25943
25944         doc: document Solaris printf bug with large float precisions
25945         * doc/posix-functions/dprintf.texi (dprintf):
25946         * doc/posix-functions/fprintf.texi (fprintf):
25947         * doc/posix-functions/printf.texi (printf):
25948         * doc/posix-functions/snprintf.texi (snprintf):
25949         * doc/posix-functions/sprintf.texi (sprintf):
25950         * doc/posix-functions/vdprintf.texi (vdprintf):
25951         * doc/posix-functions/vfprintf.texi (vfprintf):
25952         * doc/posix-functions/vprintf.texi (vprintf):
25953         * doc/posix-functions/vsnprintf.texi (vsnprintf):
25954         * doc/posix-functions/vsprintf.texi (vsprintf):
25955         Mention that these functions mishandle large floating point
25956         precisions on Solaris 10.  The same bug is also present in Solaris
25957         8, and I assume earlier.  This causes "cd gnulib-tests; make
25958         check" to fail on Solaris 8 (and I assume, later) when building
25959         the latest coreutils, in test-vasprintf-posix's call to
25960         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
25961         the wide flavors (e.g., wprintf) so this patch just updates the
25962         documentation for the narrow ones.
25963
25964         test-posixtm.c: add two tests
25965         * tests/test-posixtm.c: Add two tests, to highlight the
25966         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
25967         around this bug; this is merely to document it.
25968
25969 2010-12-22  Bruno Haible  <bruno@clisp.org>
25970
25971         getlogin_r: Work around portability problem on OSF/1.
25972         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
25973         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
25974         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
25975         test for a truncated result.
25976         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
25977         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
25978         * modules/getlogin_r (Depends-on): Add memchr.
25979         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
25980
25981 2010-12-22  Bruno Haible  <bruno@clisp.org>
25982
25983         ptsname: Avoid test failure on OSF/1 5.1.
25984         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
25985         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
25986         (same_slave): New function.
25987         (main): Use it to compare ptsname's result with the expected file name.
25988
25989 2010-12-22  Bruno Haible  <bruno@clisp.org>
25990
25991         Port extended stdio modules to HP NonStop Kernel.
25992         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
25993         macros.
25994         * lib/fbufmode.c: Update comments.
25995         * lib/fflush.c: Likewise.
25996         * lib/fpurge.c: Likewise.
25997         * lib/freadable.c: Likewise.
25998         * lib/freadahead.c: Likewise.
25999         * lib/freading.c: Likewise.
26000         * lib/freadptr.c: Likewise.
26001         * lib/freadseek.c: Likewise.
26002         * lib/fseeko.c: Likewise.
26003         * lib/fseterr.c: Likewise.
26004         * lib/fwritable.c: Likewise.
26005         * lib/fwriting.c: Likewise.
26006         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
26007
26008 2010-12-22  Bruno Haible  <bruno@clisp.org>
26009
26010         ttyname_r: Work around bug on OSF/1 5.1.
26011         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
26012         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
26013         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
26014         present.
26015         * lib/ttyname_r.c (ttyname_r): Update comments.
26016
26017 2010-12-22  Bruno Haible  <bruno@clisp.org>
26018
26019         round: Implement result sign according to IEEE 754.
26020         * lib/round.c (MIN, MINUS_ZERO): New macros.
26021         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
26022         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
26023         * tests/test-round-ieee.c (main): Likewise.
26024         * tests/test-roundl-ieee.c (main): Likewise.
26025
26026         trunc: Implement result sign according to IEEE 754.
26027         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
26028         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
26029         * tests/test-trunc2.c: Include minus-zero.h.
26030         (MINUS_ZERO): New macro.
26031         (trunc_reference): Keep in sync with lib/trunc.c.
26032         * tests/test-truncf2.c: Include minus-zero.h.
26033         (MINUS_ZERO): New macro.
26034         (truncf_reference): Keep in sync with lib/trunc.c.
26035         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
26036         * tests/test-trunc-ieee.c (main): Likewise.
26037         * tests/test-truncl-ieee.c (main): Likewise.
26038
26039         ceil: Implement result sign according to IEEE 754.
26040         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
26041         (FUNC): Return -0.0 for -1 < x < 0.
26042         * tests/test-ceil2.c: Include minus-zero.h.
26043         (MINUS_ZERO): New macro.
26044         (ceil_reference): Keep in sync with lib/ceil.c.
26045         * tests/test-ceilf2.c: Include minus-zero.h.
26046         (MINUS_ZERO): New macro.
26047         (ceilf_reference): Keep in sync with lib/ceil.c.
26048         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
26049         * tests/test-ceil-ieee.c (main): Likewise.
26050         * tests/test-ceill-ieee.c (main): Likewise.
26051
26052         floor: Implement result sign according to IEEE 754.
26053         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
26054         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
26055         * tests/test-floorf2.c (floorf_reference): Likewise.
26056         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
26057         * tests/test-floor-ieee.c (main): Likewise.
26058         * tests/test-floorl-ieee.c (main): Likewise.
26059
26060 2010-12-22  Bruno Haible  <bruno@clisp.org>
26061
26062         getaddrinfo: Update doc.
26063         * doc/posix-functions/gai_strerror.texi: Return type is also different
26064         on AIX and HP-UX.
26065
26066 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
26067
26068         getaddrinfo, inet_ntop: Update doc for Solaris.
26069         * doc/posix-functions/gai_strerror.texi: Return type is also an
26070         issue on Solaris 9 and earlier.
26071         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
26072         on Solaris 10 and earlier.
26073
26074 2010-12-21  Bruno Haible  <bruno@clisp.org>
26075
26076         New module 'roundl-ieee'.
26077         * modules/roundl-ieee: New file.
26078         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
26079         test whether roundl works according to ISO C 99 with IEC 60559.
26080         * m4/roundl-ieee.m4: New file.
26081         * modules/roundl-ieee-tests: New file.
26082         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
26083         * tests/test-roundl.c (main): Remove signbit tests.
26084         * modules/roundl-tests (Depends-on): Remove signbit.
26085         * doc/posix-functions/roundl.texi: Mention the new module.
26086
26087 2010-12-21  Bruno Haible  <bruno@clisp.org>
26088
26089         New module 'truncl-ieee'.
26090         * modules/truncl-ieee: New file.
26091         * modules/truncl-ieee-tests: New file.
26092         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
26093         * tests/test-truncl.c (main): Remove signbit tests.
26094         * modules/truncl-tests (Depends-on): Remove signbit.
26095         * doc/posix-functions/truncl.texi: Mention the new module.
26096
26097 2010-12-21  Bruno Haible  <bruno@clisp.org>
26098
26099         New module 'ceill-ieee'.
26100         * modules/ceill-ieee: New file.
26101         * modules/ceill-ieee-tests: New file.
26102         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
26103         * tests/test-ceill.c (main): Remove signbit tests.
26104         * modules/ceill-tests (Depends-on): Remove signbit.
26105         * doc/posix-functions/ceill.texi: Mention the new module.
26106
26107 2010-12-21  Bruno Haible  <bruno@clisp.org>
26108
26109         New module 'floorl-ieee'.
26110         * modules/floorl-ieee: New file.
26111         * modules/floorl-ieee-tests: New file.
26112         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
26113         * tests/test-floorl.c (main): Remove signbit tests.
26114         * modules/floorl-tests (Depends-on): Remove signbit.
26115         * doc/posix-functions/floorl.texi: Mention the new module.
26116
26117 2010-12-21  Bruno Haible  <bruno@clisp.org>
26118
26119         New module 'round-ieee'.
26120         * modules/round-ieee: New file.
26121         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
26122         whether round works according to ISO C 99 with IEC 60559.
26123         * m4/round-ieee.m4: New file.
26124         * modules/round-ieee-tests: New file.
26125         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
26126         * tests/test-round1.c (main): Remove signbit tests.
26127         * modules/round-tests (Depends-on): Remove 'signbit'.
26128         * doc/posix-functions/round.texi: Mention the new module.
26129
26130 2010-12-21  Bruno Haible  <bruno@clisp.org>
26131
26132         New module 'trunc-ieee'.
26133         * modules/trunc-ieee: New file.
26134         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
26135         whether trunc works according to ISO C 99 with IEC 60559.
26136         * m4/trunc-ieee.m4: New file.
26137         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
26138         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
26139         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
26140         * modules/trunc-ieee-tests: New file.
26141         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
26142         * tests/test-trunc1.c (main): Remove signbit tests.
26143         * modules/trunc-tests (Depends-on): Remove 'signbit'.
26144         * doc/posix-functions/trunc.texi: Mention the new module.
26145
26146 2010-12-21  Bruno Haible  <bruno@clisp.org>
26147
26148         New module 'ceil-ieee'.
26149         * modules/ceil-ieee: New file.
26150         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
26151         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
26152         ISO C 99 with IEC 60559.
26153         * m4/ceil-ieee.m4: New file.
26154         * modules/ceil (Files): Add lib/ceil.c.
26155         (Depends-on): Add 'float'.
26156         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26157         * lib/math.in.h (ceil): New declaration.
26158         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
26159         REPLACE_CEIL.
26160         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
26161         * modules/ceil-ieee-tests: New file.
26162         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
26163         * tests/test-math-c++.cc: Check the signature of 'ceil'.
26164         * doc/posix-functions/ceil.texi: Mention the new module.
26165
26166 2010-12-21  Bruno Haible  <bruno@clisp.org>
26167
26168         New module 'floor-ieee'.
26169         * modules/floor-ieee: New file.
26170         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
26171         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
26172         ISO C 99 with IEC 60559.
26173         * m4/floor-ieee.m4: New file.
26174         * modules/floor (Files): Add lib/floor.c.
26175         (Depends-on): Add 'float'.
26176         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
26177         * lib/math.in.h (floor): New declaration.
26178         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
26179         REPLACE_FLOOR.
26180         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
26181         * modules/floor-ieee-tests: New file.
26182         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
26183         * tests/test-math-c++.cc: Check the signature of 'floor'.
26184         * doc/posix-functions/floor.texi: Mention the new module.
26185
26186 2010-12-21  Bruno Haible  <bruno@clisp.org>
26187
26188         New module 'roundf-ieee'.
26189         * modules/roundf-ieee: New file.
26190         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
26191         test whether roundf works according to ISO C 99 with IEC 60559.
26192         * m4/roundf-ieee.m4: New file.
26193         * modules/roundf-ieee-tests: New file.
26194         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
26195         * tests/test-roundf1.c (main): Remove signbit tests.
26196         * modules/roundf-tests (Depends-on): Remove 'signbit'.
26197         * doc/posix-functions/roundf.texi: Mention the new module.
26198
26199 2010-12-21  Bruno Haible  <bruno@clisp.org>
26200
26201         New module 'truncf-ieee'.
26202         * modules/truncf-ieee: New file.
26203         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
26204         test whether truncf works according to ISO C 99 with IEC 60559.
26205         * m4/truncf-ieee.m4: New file.
26206         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
26207         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
26208         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
26209         * modules/truncf-ieee-tests: New file.
26210         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
26211         * tests/test-truncf1.c (main): Remove signbit tests.
26212         * modules/truncf-tests (Depends-on): Remove 'signbit'.
26213         * doc/posix-functions/truncf.texi: Mention the new module.
26214
26215 2010-12-21  Bruno Haible  <bruno@clisp.org>
26216
26217         New module 'ceilf-ieee'.
26218         * modules/ceilf-ieee: New file.
26219         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
26220         test whether ceilf works according to ISO C 99 with IEC 60559.
26221         * m4/ceilf-ieee.m4: New file.
26222         * modules/ceilf-ieee-tests: New file.
26223         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
26224         * tests/test-ceilf1.c (main): Remove signbit tests.
26225         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
26226         * doc/posix-functions/ceilf.texi: Mention the new module.
26227
26228 2010-12-21  Bruno Haible  <bruno@clisp.org>
26229
26230         New module 'floorf-ieee'.
26231         * modules/floorf-ieee: New file.
26232         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
26233         test whether floorf works according to ISO C 99 with IEC 60559.
26234         * m4/floorf-ieee.m4: New file.
26235         * modules/floorf-ieee-tests: New file.
26236         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
26237         * tests/test-floorf1.c (main): Remove signbit tests.
26238         * modules/floorf-tests (Depends-on): Remove 'signbit'.
26239         * doc/posix-functions/floorf.texi: Mention the new module.
26240
26241 2010-12-21  Bruno Haible  <bruno@clisp.org>
26242
26243         Support for minus zero in autoconf macros.
26244         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
26245         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
26246         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
26247         * tests/minus-zero.h: Update comments.
26248
26249 2010-12-21  Bruno Haible  <bruno@clisp.org>
26250
26251         Tests for module 'ceil'.
26252         * modules/ceil-tests: New file.
26253         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
26254         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
26255
26256 2010-12-21  Bruno Haible  <bruno@clisp.org>
26257
26258         Tests for module 'floor'.
26259         * modules/floor-tests: New file.
26260         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
26261         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
26262
26263 2010-12-21  Bruno Haible  <bruno@clisp.org>
26264
26265         math: Fix indentation.
26266         * lib/math.in.h (floorf): Fix indentation.
26267
26268 2010-12-21  Bruno Haible  <bruno@clisp.org>
26269
26270         Fix cross-compilation guesses on Solaris.
26271         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
26272         not match "solaris2.10".
26273         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26274         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
26275         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
26276
26277 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
26278
26279         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
26280         This fixes a problem observed with the latest coreutils snapshot
26281         that caused a test to fail on Solaris 8.  src/csplit.c's call
26282         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
26283         earlier, instead of returning the number of bytes that would have
26284         been generated; this causes csplit to incorrectly report memory
26285         exhaustion.
26286         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
26287         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
26288         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
26289         comments to match.
26290         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
26291         Fix typo in matching older versions of Solaris: "solaris2.10"
26292         is matched by the shell pattern "solaris2.[0-9]*".  This matters
26293         only for guessing while cross-compiling.
26294         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
26295
26296 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
26297
26298         ftoastr: fix comment again
26299         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
26300         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
26301         Also, simplify example a bit by using flags = 0.
26302
26303 2010-12-20  Bruno Haible  <bruno@clisp.org>
26304
26305         round*, trunc*: Update documentation regarding glibc.
26306         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
26307         * doc/posix-functions/round.texi: Likewise.
26308         * doc/posix-functions/roundl.texi: Likewise.
26309         * doc/posix-functions/truncf.texi: Likewise.
26310         * doc/posix-functions/trunc.texi: Likewise.
26311         * doc/posix-functions/truncl.texi: Likewise.
26312
26313 2010-12-20  Bruno Haible  <bruno@clisp.org>
26314
26315         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
26316         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
26317         * doc/posix-functions/round.texi: Likewise.
26318         * doc/posix-functions/roundl.texi: Likewise.
26319
26320 2010-12-20  Bruno Haible  <bruno@clisp.org>
26321
26322         ttyname_r: Add missing declaration on HP-UX 11.
26323         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
26324         HAVE_TTYNAME_R.
26325         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
26326         declared. Set HAVE_TTYNAME_R always.
26327         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26328         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
26329         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
26330         HAVE_TTYNAME_R.
26331         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
26332
26333 2010-12-20  Bruno Haible  <bruno@clisp.org>
26334
26335         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
26336         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
26337         * doc/posix-functions/getlogin_r.texi: Likewise.
26338         * tests/test-getlogin.c: Include <errno.h>.
26339         (main): Avoid test failure on HP-UX 11.11.
26340         * tests/test-getlogin_r.c (main): Likewise.
26341
26342 2010-12-20  Bruno Haible  <bruno@clisp.org>
26343
26344         getlogin_r: Add missing declaration on HP-UX 11.
26345         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
26346         declared also when it exists as a function.
26347         * doc/posix-functions/getlogin_r.texi: Document this workaround.
26348
26349 2010-12-20  Bruno Haible  <bruno@clisp.org>
26350
26351         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
26352         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
26353         through wcrtomb.
26354
26355 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
26356
26357         ftoastr: fix comment
26358         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
26359         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
26360
26361 2010-12-19  Bruno Haible  <bruno@clisp.org>
26362
26363         isnan: Ensure it is a macro.
26364         * lib/math.in.h (isnan): Define as a macro if not already a macro.
26365         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
26366         Solaris.
26367
26368 2010-12-19  Bruno Haible  <bruno@clisp.org>
26369
26370         ldexpl test: Fix link error on OSF/1 5.1.
26371         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
26372
26373 2010-12-19  Bruno Haible  <bruno@clisp.org>
26374
26375         wctype: Make it work in C++ mode on OSF/1 5.1.
26376         * lib/wctype.in.h (iswblank): Declare but not define here.
26377         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
26378         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
26379         * modules/wctype (Files): Add lib/iswblank.c.
26380
26381 2010-12-19  Bruno Haible  <bruno@clisp.org>
26382
26383         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
26384         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
26385         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
26386
26387 2010-12-19  Bruno Haible  <bruno@clisp.org>
26388
26389         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
26390         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
26391         _POSIX_PII_SOCKET.
26392         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
26393         * doc/posix-functions/recvfrom.texi: Likewise.
26394         * doc/posix-functions/send.texi: Likewise.
26395         * doc/posix-functions/sendto.texi: Likewise.
26396
26397 2010-12-19  Bruno Haible  <bruno@clisp.org>
26398
26399         tcgetsid: Add missing declaration on OSF/1 5.1.
26400         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
26401         HAVE_TCGETSID.
26402         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
26403         Don't set HAVE_TCGETSID.
26404         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
26405         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
26406         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
26407         HAVE_TCGETSID.
26408         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
26409
26410 2010-12-19  Bruno Haible  <bruno@clisp.org>
26411
26412         stdio: Fix problem with popen() declaration on OSF/1 5.1.
26413         * lib/stdio.in.h: During the include_next statement, let recursive
26414         includes of this file include only the system header file.
26415
26416 2010-12-19  Bruno Haible  <bruno@clisp.org>
26417
26418         iconv_open: Fix regression from 2010-12-04.
26419         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
26420         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
26421
26422 2010-12-19  Bruno Haible  <bruno@clisp.org>
26423
26424         stdbool test: Avoid a gcc warning.
26425         * tests/test-stdbool.c (main): Fail if e1 is false.
26426         Reported by Jim Meyering.
26427
26428 2010-12-19  Jim Meyering  <meyering@redhat.com>
26429
26430         setenv: restore to working order
26431         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
26432         mistakenly removed.
26433         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
26434         HAVE_SETENV.
26435         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
26436         HAVE_SETENV.
26437
26438 2010-12-19  Bruno Haible  <bruno@clisp.org>
26439
26440         Document some different function declarations on OSF/1 5.1.
26441         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
26442         * doc/posix-functions/inet_ntop.texi: Likewise.
26443         * doc/posix-functions/gethostname.texi: Likewise.
26444         * lib/unistd.in.h (gethostname): Update comment.
26445
26446 2010-12-19  Bruno Haible  <bruno@clisp.org>
26447
26448         doc: Mention vasprintf-posix module.
26449         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
26450         the 'vasprintf-posix' module.
26451         * doc/glibc-functions/vasprintf.texi: Likewise.
26452
26453 2010-12-19  Bruno Haible  <bruno@clisp.org>
26454
26455         unsetenv: Add missing declaration on OSF/1 5.1.
26456         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
26457         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
26458         Don't set HAVE_UNSETENV. In the test program, set _BSD.
26459         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
26460         not HAVE_UNSETENV.
26461         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
26462         HAVE_UNSETENV.
26463         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
26464
26465 2010-12-19  Bruno Haible  <bruno@clisp.org>
26466
26467         setenv: Add missing declaration on OSF/1 5.1.
26468         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
26469         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
26470         declared. Don't set HAVE_SETENV.
26471         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
26472         not HAVE_SETENV.
26473         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
26474         HAVE_SETENV.
26475         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
26476
26477 2010-12-19  Bruno Haible  <bruno@clisp.org>
26478
26479         nl_langinfo tests: Avoid gcc warning.
26480         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
26481
26482 2010-12-19  Bruno Haible  <bruno@clisp.org>
26483
26484         mknod: Avoid error in C++ mode on OSF/1 with GCC.
26485         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
26486         _GL_CXXALIAS_SYS.
26487
26488 2010-12-19  Bruno Haible  <bruno@clisp.org>
26489
26490         stdbool: Relax test.
26491         * tests/test-stdbool.c (e): Don't require that casts from a variable's
26492         address to 'bool' work in static initializer, for compilers other than
26493         GCC.
26494
26495 2010-12-19  Bruno Haible  <bruno@clisp.org>
26496
26497         ftello: Add missing declaration on OSF/1 5.1.
26498         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
26499         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
26500         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
26501         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
26502         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
26503
26504 2010-12-19  Bruno Haible  <bruno@clisp.org>
26505
26506         fseeko: Add missing declaration on OSF/1 5.1.
26507         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
26508         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
26509         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
26510         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
26511         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
26512
26513 2010-12-19  Bruno Haible  <bruno@clisp.org>
26514
26515         fchdir: Add missing declaration on OSF/1 5.1.
26516         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
26517         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
26518         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
26519         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
26520         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
26521
26522 2010-12-19  Bruno Haible  <bruno@clisp.org>
26523
26524         relocatable-prog-wrapper: Separate from relocatable-prog.
26525         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
26526         uninstall-relocwrapper rule here.
26527         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
26528         Reported by Ian Beckwith <ianb@erislabs.net>.
26529
26530 2010-12-19  Bruno Haible  <bruno@clisp.org>
26531
26532         unistr/u8-mbsnlen: Add missing dependency.
26533         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
26534         Reported by Ian Beckwith <ianb@erislabs.net>.
26535
26536 2010-12-19  Bruno Haible  <bruno@clisp.org>
26537
26538         iconv: Make it possible again to use this module without 'iconv-h'.
26539         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
26540         if it is not defined.
26541         Reported by Ian Beckwith <ianb@erislabs.net>.
26542
26543 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26544
26545         acl: port to Solaris 8 when copying from tmpfs to ufs
26546         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
26547         error number.  Problem observed on Solaris 8 with latest
26548         coreutils, with "mv A B", where A is on a tmpfs file system and B
26549         is on a ufs file system.  This caused coreutils' mv/part-symlink
26550         test to fail.
26551
26552         tests: set fail=0 at start
26553         * tests/init.sh (setup_): Move fail=0 initialization here ...
26554         (mktempd_): ... from here, so that tests can rely on fail being
26555         set to 0 initially.  This fixes a problem in coreutils; see:
26556         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
26557
26558 2010-12-18  Bruno Haible  <bruno@clisp.org>
26559
26560         memmem-simple: Stylistic changes.
26561         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
26562         Fix preprocessor directive indentation.
26563
26564 2010-12-15  Pádraig Brady <P@draigBrady.com>
26565
26566         memmem, memmem-simple: reorganize and expand empty needle check
26567         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
26568         functional checks to memmem-simple so that one has a fully functional
26569         memmem by using just this module.
26570         Restrict the performance only check to the memmem module.
26571         Also expand the empty needle check to ensure the correct
26572         pointer is returned, not just a non NULL pointer.
26573         * doc/glibc-functions/memmem.texi: Rearrange the portability
26574         documentation to correlate with the rearranged checks.
26575         Clarify exactly how the memmem and memmem-simple modules
26576         relate to each other.
26577
26578 2010-12-15  Pádraig Brady <P@draigBrady.com>
26579             Bruno Haible  <bruno@clisp.org>
26580
26581         Improve cross-compilation guesses for uClibc.
26582         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
26583         that uClibc does not have the glibc bug.
26584         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
26585         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
26586
26587 2010-12-14  Eric Blake  <eblake@redhat.com>
26588
26589         configmake: provide fallbacks for oldest supported autotools
26590         * m4/configmake.m4: New file.
26591         * modules/configmake (Files): Ship it.
26592         (configure.ac): Use it to guarantee fallbacks.
26593
26594 2010-12-13  Pádraig Brady <P@draigBrady.com>
26595
26596         read-file: Improve handling of large files
26597         * lib/read-file.c (fread_file): Minimize realloc()s
26598         for regular files, and better manage sizes around SIZE_MAX.
26599
26600 2010-12-13  Eric Blake  <eblake@redhat.com>
26601
26602         cloexec, fcntl: relax license
26603         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
26604         consent from all contributors.
26605         * modules/fcntl (License): Likewise.
26606
26607 2010-12-10  Bruno Haible  <bruno@clisp.org>
26608
26609         Tests for module 'pipe-posix'.
26610         * modules/pipe-posix-tests: New file.
26611         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
26612
26613 2010-12-10  Bruno Haible  <bruno@clisp.org>
26614
26615         pipe-posix: Make it work in C++ mode.
26616         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
26617         (pipe): Use common idiom, not a macro definition.
26618         * lib/pipe.c: New file.
26619         * m4/pipe.m4: New file.
26620         * modules/pipe-posix (Description): Enhance.
26621         (Files): Add lib/pipe.c, m4/pipe.m4.
26622         (configure.ac): Invoke gl_FUNC_PIPE.
26623         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
26624         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
26625         * tests/test-unistd-c++.cc: Check the signature of pipe.
26626
26627 2010-12-10  Bruno Haible  <bruno@clisp.org>
26628
26629         Rename module 'pipe' to 'spawn-pipe'.
26630         * modules/spawn-pipe: New file, renamed from modules/pipe.
26631         (Files, configure.ac, Makefile.am): Update.
26632         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
26633         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
26634         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
26635         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
26636         "spawn-pipe.h" instead of "pipe.h".
26637         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
26638         to gl_SPAWN_PIPE.
26639         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
26640         (Files, Makefile.am): Update.
26641         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
26642         Update.
26643         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
26644         Include "spawn-pipe.h" instead of "pipe.h".
26645         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
26646         * lib/javacomp.c: Likewise.
26647         * lib/javaversion.c: Likewise.
26648         * lib/pipe-filter-gi.c: Likewise.
26649         * lib/pipe-filter-ii.c: Likewise.
26650         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
26651         * modules/javacomp (Depends-on): Likewise.
26652         * modules/javaversion (Depends-on): Likewise.
26653         * modules/pipe-filter-gi (Depends-on): Likewise.
26654         * modules/pipe-filter-ii (Depends-on): Likewise.
26655         * MODULES.html.sh (Executing programs): Update.
26656         * NEWS: Mention the change.
26657
26658 2010-12-10  Eric Blake  <eblake@redhat.com>
26659
26660         pipe-posix: new module
26661         * modules/pipe-posix: New file.
26662         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
26663         (gl_UNISTD_H): Check for declaration.
26664         * modules/unistd (Makefile.am): Substitute it.
26665         * lib/unistd.in.h (pipe): Provide it for mingw.
26666         * doc/posix-functions/pipe.texi (pipe): Update documentation.
26667         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
26668
26669 2010-12-07  Bruno Haible  <bruno@clisp.org>
26670
26671         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
26672         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
26673         u8_strcmp_gnu.
26674         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
26675
26676 2010-12-06  Bruno Haible  <bruno@clisp.org>
26677
26678         Update internal documentation.
26679         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
26680
26681 2010-12-04  Bruno Haible  <bruno@clisp.org>
26682
26683         Put more information about failed tests into the test return codes.
26684         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
26685         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
26686         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
26687         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
26688         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
26689         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
26690         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
26691         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
26692         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
26693         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
26694         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
26695         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
26696         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
26697         * m4/stdint.m4 (gl_STDINT_H): Likewise.
26698         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
26699         returns a bit mask.
26700         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
26701         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
26702         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
26703         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
26704         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
26705         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
26706         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
26707         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
26708         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
26709         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
26710         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
26711         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
26712         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
26713         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
26714         * m4/link.m4 (gl_FUNC_LINK): Likewise.
26715         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
26716         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
26717         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
26718         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
26719         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
26720         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
26721         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
26722         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
26723         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
26724         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
26725         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
26726         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
26727         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
26728         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
26729         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
26730         gl_PRINTF_PRECISION): Likewise.
26731         * m4/regex.m4 (gl_REGEX): Likewise.
26732         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
26733         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
26734         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
26735         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
26736         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
26737         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
26738         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
26739         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
26740         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
26741         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26742         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
26743         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
26744         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
26745         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
26746         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
26747         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
26748         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
26749         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
26750         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
26751         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
26752         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
26753         enumerated value.
26754         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
26755
26756 2010-12-04  Bruno Haible  <bruno@clisp.org>
26757
26758         Update for Solaris 11 2010-11.
26759         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
26760         Express, released in November 2010.
26761
26762 2010-12-04  Bruno Haible  <bruno@clisp.org>
26763
26764         nproc: Relax license.
26765         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
26766         and Paul Eggert.
26767         Requested by Ludovic Courtès <ludo@gnu.org>.
26768
26769 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
26770
26771         utimecmp: fine-grained src to nearby coarse-grained dest
26772
26773         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
26774         and the source is on a file system with higher-resolution time
26775         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
26776         not work, and the time stamps are close together, the algorithm to
26777         determine the exact resolution from the read-back mtime was buggy:
26778         it had a "!=" where it should have had an "==".  This bug has been
26779         in the code ever since it was introduced to gnulib.
26780         Problem reported by Dan Jacobson in
26781         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
26782
26783 2010-11-30  Bruno Haible  <bruno@clisp.org>
26784
26785         strerror_r-posix: Fix autoconf test.
26786         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
26787
26788 2010-11-28  Bruno Haible  <bruno@clisp.org>
26789             Paul Eggert  <eggert@cs.ucla.edu>
26790
26791         Tests for module 'getdomainname'.
26792         * modules/getdomainname-tests: New file.
26793         * tests/test-getdomainname.c: New file, based on
26794         tests/test-gethostname.c.
26795
26796 2010-11-28  Bruno Haible  <bruno@clisp.org>
26797             Paul Eggert  <eggert@cs.ucla.edu>
26798
26799         getdomainname: Use the system function when possible.
26800         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
26801         (getdomainname): Replace if needed. Provide the declaration if it is
26802         missing. Don't use _GL_CXXALIAS_SYS_CAST.
26803         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
26804         (getdomainname): When the system has getdomainname, call the system
26805         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
26806         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
26807         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
26808         found in libnsl. Look for the declaration also in <netdb.h>. Replace
26809         the function if its second argument is of type 'int' or if it is found
26810         in libnsl.
26811         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
26812         <sys/systeminfo.h> and sysinfo().
26813         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
26814         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26815         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
26816         HAVE_GETDOMAINNAME.
26817         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
26818         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
26819         * doc/glibc-functions/getdomainname.texi: Document the problems with
26820         the getdomainname declaration.
26821
26822 2010-11-28  Bruno Haible  <bruno@clisp.org>
26823
26824         sys_socket: Ensure ss_family field on AIX.
26825         * lib/sys_socket.in.h (ss_family): New macro definition.
26826         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
26827         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
26828         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
26829         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
26830         * modules/sys_socket (Makefile.am): Substitute
26831         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
26832         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
26833
26834 2010-11-27  Bruno Haible  <bruno@clisp.org>
26835
26836         readline: Improve configure output.
26837         * m4/readline.m4 (gl_FUNC_READLINE): Make the
26838         "checking for readline..." result understandable.
26839
26840 2010-11-27  Bruno Haible  <bruno@clisp.org>
26841
26842         *printf-posix: Detect a bug on Solaris 10/x86.
26843         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
26844         for floating-point output.
26845         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
26846         directive.
26847         * tests/test-snprintf-posix.h (test_function): Likewise.
26848         * tests/test-sprintf-posix.h (test_function): Likewise.
26849         * tests/test-vasprintf-posix.c (test_function): Likewise.
26850         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
26851         * doc/posix-functions/printf.texi: Likewise.
26852         * doc/posix-functions/snprintf.texi: Likewise.
26853         * doc/posix-functions/sprintf.texi: Likewise.
26854         * doc/posix-functions/vfprintf.texi: Likewise.
26855         * doc/posix-functions/vprintf.texi: Likewise.
26856         * doc/posix-functions/vsnprintf.texi: Likewise.
26857         * doc/posix-functions/vsprintf.texi: Likewise.
26858         * doc/glibc-functions/obstack_printf.texi: Likewise.
26859         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
26860
26861 2010-11-27  Bruno Haible  <bruno@clisp.org>
26862
26863         Fix link error when module libunistring-optional is in use.
26864         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
26865         * modules/striconveha-tests (Makefile.am): Likewise.
26866
26867 2010-11-27  Bruno Haible  <bruno@clisp.org>
26868
26869         regex: Mention link dependencies.
26870         * modules/regex (Link): New section.
26871         * modules/rpmatch (Link): Likewise.
26872         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
26873
26874 2010-11-27  Bruno Haible  <bruno@clisp.org>
26875
26876         ftoastr: Fix compilation error on Solaris.
26877         * lib/ftoastr.c: Include <config.h>.
26878
26879 2010-11-27  Bruno Haible  <bruno@clisp.org>
26880
26881         getloadavg: Update documentation.
26882         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
26883
26884 2010-11-27  Bruno Haible  <bruno@clisp.org>
26885
26886         sys_socket: Fix test whether the functions are declared.
26887         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
26888         not <sys/select.h>.
26889
26890 2010-11-27  Bruno Haible  <bruno@clisp.org>
26891
26892         getpass: Make sure to get system declaration on some platforms.
26893         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
26894         gl_USE_SYSTEM_EXTENSIONS.
26895         * modules/getpass (Depends-on): Add extensions.
26896
26897 2010-11-26  Bruno Haible  <bruno@clisp.org>
26898
26899         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
26900         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
26901         'iconv' module is present.
26902         (ICONV_CONST): New macro.
26903         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
26904         ICONV_CONST.
26905         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
26906         set ICONV_CONST.
26907         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
26908         here.
26909         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
26910         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
26911         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
26912         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
26913         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
26914         present.
26915
26916 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
26917
26918         ftoastr: comment fix
26919         * lib/ftoastr.c: "little" -> "little or no" in comment
26920
26921 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
26922
26923         stdint: port to GCC 4.3 + OSX + Octave
26924         On this platform, stdint.h is buggy and defines int64_t to long
26925         long int.  The replacement defined it to long int, causing
26926         problems with C++ style name mangling.  Instead, trust the system
26927         definition if INT64_MAX is defined, and likewise for the unsigned
26928         variant.   Problem reported by Jarno Rajahalme in
26929         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
26930         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
26931         and don't mess with int64_t and INT64_MAX in this case.
26932         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
26933
26934 2010-11-24  Bruno Haible  <bruno@clisp.org>
26935
26936         doc: Corrections regarding MacOS X 10.4 and 10.5.
26937         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
26938         MacOS X.
26939         Reported by Simon Josefsson.
26940
26941 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
26942
26943         Uninstall ".bin" files installed by relocwrapper.
26944         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
26945         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
26946         unless it is already there.
26947
26948 2010-11-21  Bruno Haible  <bruno@clisp.org>
26949
26950         Update for NetBSD 5.0.
26951         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
26952         NetBSD; the test fails on NetBSD 5.0.
26953         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
26954         about NetBSD.
26955
26956 2010-11-21  Bruno Haible  <bruno@clisp.org>
26957
26958         Update for HP-UX 11.23 and HP-UX 11.31.
26959         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
26960         HP-UX.
26961
26962 2010-11-21  Bruno Haible  <bruno@clisp.org>
26963
26964         Update for MacOS X 10.5.
26965         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
26966         MacOS X; the test fails on MacOS X 10.5.8.
26967         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
26968         about MacOS X.
26969
26970 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
26971
26972         bootstrap: add bootstrap_sync option.
26973         See discussion at
26974         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
26975         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
26976         * build-aux/bootstrap: Accept --bootstrap-sync to update
26977         bootstrap if it is not identical to the local gnulib's
26978         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
26979         enable this by default.  Accept --no-bootstrap-sync to disable
26980         it.
26981
26982 2010-11-20  Bruno Haible  <bruno@clisp.org>
26983
26984         Ensure that <features.h> is included before __GLIBC__ is tested.
26985         * lib/printf-parse.h: Include <features.h>.
26986         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
26987         Reported by Mike Frysinger <vapier@gentoo.org>.
26988
26989         Ensure that <features.h> is included before __GLIBC__ is tested.
26990         * lib/wchar.in.h: Include <features.h>.
26991         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
26992         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
26993         Reported by Mike Frysinger <vapier@gentoo.org>.
26994
26995         Ensure that <features.h> is included before __GLIBC__ is tested.
26996         * lib/arpa_inet.in.h: Include <features.h>.
26997         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
26998         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
26999         Reported by Mike Frysinger <vapier@gentoo.org>.
27000
27001         Ensure that <features.h> is included before __GLIBC__ is tested.
27002         * build-aux/link-warning.h: Include <features.h>.
27003         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
27004         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
27005         Reported by Mike Frysinger <vapier@gentoo.org>.
27006
27007         Ensure that <features.h> is included before __GLIBC__ is tested.
27008         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
27009         Reported by Mike Frysinger <vapier@gentoo.org>.
27010
27011 2010-11-20  Bruno Haible  <bruno@clisp.org>
27012
27013         memmem: Fix autoconf test.
27014         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
27015
27016 2010-11-20  Bruno Haible  <bruno@clisp.org>
27017
27018         Port to uClibc.
27019         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
27020         * lib/fcntl.in.h: Likewise.
27021         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
27022         * lib/mbrtowc.c (mbrtowc): Likewise.
27023         * lib/relocatable.c (find_shared_library_fullname): Likewise.
27024         * lib/strerror_r.c: Likewise.
27025         * lib/unistr/u8-strnlen.c: Likewise.
27026         * lib/vasnprintf.c (decimal_point_char): Likewise.
27027         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
27028         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
27029         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
27030         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
27031         * tests/test-sigaction.c (handler, main): Likewise.
27032         * lib/freading.h: Treat uClibc like a non-glibc platform.
27033         * lib/freading.c: Likewise.
27034         * lib/gettext.h: Likewise.
27035         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
27036         Likewise.
27037         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
27038         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
27039         * lib/propername.c (proper_name_utf8): Likewise.
27040         * lib/spawn.in.h: Likewise.
27041         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
27042         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
27043         mem_cd_iconveh_internal): Likewise.
27044         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
27045         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
27046         strstr, strcasestr): Likewise.
27047         * lib/unicodeio.c (unicode_to_mb): Likewise.
27048         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
27049         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
27050         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
27051         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
27052         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
27053         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
27054         * lib/unistr/u8-stpncpy.c: Likewise.
27055         * lib/vasnprintf.c (VASNPRINTF): Likewise.
27056         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
27057         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
27058         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
27059         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
27060         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
27061         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
27062         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
27063         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
27064         Likewise.
27065         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27066         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
27067         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
27068         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
27069         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
27070         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
27071         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
27072         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
27073         * tests/test-getopt.h (OPTIND_MIN): Likewise.
27074         * tests/test-striconveha.c (main): Likewise.
27075         * tests/test-vasnprintf-posix.c (test_function): Likewise.
27076         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
27077         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
27078         * doc/posix-functions/getline.texi: Likewise.
27079         Reported by Mike Frysinger <vapier@gentoo.org>.
27080
27081 2010-11-20  Bruno Haible  <bruno@clisp.org>
27082
27083         nproc: Fix condition.
27084         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
27085         HAVE_PTHREAD_AFFINITY_NP.
27086
27087 2010-11-20  Bruno Haible  <bruno@clisp.org>
27088
27089         Fix a comment.
27090         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
27091
27092 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
27093
27094         ftoastr: don't assume snprintf
27095         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
27096         Implement a subset of snprintf here, by using sprintf safely.
27097         * modules/ftoastr (Depends-on): Remove snprintf.
27098
27099 2010-11-19  Jim Meyering  <meyering@redhat.com>
27100
27101         test-rename.h: fix compilation failure
27102         * tests/test-rename.h (test_rename): Add omitted "}".
27103
27104 2010-11-17  Jim Meyering  <meyering@redhat.com>
27105
27106         maint.mk: add a URL discussing the no-@acronym policy
27107         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
27108
27109 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
27110
27111         ftoastr: depend on snprintf, improve comments
27112         * lib/ftoastr.c: Also mention Loitsch's draft.
27113         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
27114         needed in the current implementation, but it might simplify
27115         speeding up the code later.
27116         * modules/ftoastr: Depend on snprintf; this improves portability.
27117         Suggested by Bruno Haible in the same email.
27118
27119         ftoastr: port to hosts lacking strtof and strtold
27120         Problem reported by Bruno Haible in
27121         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
27122         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
27123         environment and strtold (and presumably strtof) are not available.
27124         * modules/ftoastr (Files): Add m4/c-strtod.m4.
27125         (configure.ac): Require gl_C99_STRTOLD.
27126
27127 2010-11-18  Bruno Haible  <bruno@clisp.org>
27128
27129         c-strtold: Avoid link error on AIX 7.
27130         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
27131         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
27132         (gl_C_STRTOLD): Test whether strtold_l exists.
27133         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
27134
27135 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
27136
27137         intprops: new macro INT_BITS_STRLEN_BOUND
27138         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
27139         ftoastr.h.  This exposes an internal of intprops.h that was formerly
27140         not exposed.  Also, it uses a slightly tighter bound than before;
27141         though this makes no practical difference, we might as well be as
27142         tight as we easily can.
27143
27144         ftoastr: new module, for lossless conversion of floats to short strings
27145         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
27146         * modules/ftoastr: New files.
27147
27148 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
27149
27150         bootstrap: port to Solaris sed
27151         * build-aux/bootstrap (get_version): Port to Solaris sed.
27152         See Ralf Wildenhues's note in
27153         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
27154
27155 2010-11-14  Jim Meyering  <meyering@redhat.com>
27156
27157         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
27158         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
27159         and move definition closer to sole use.
27160
27161 2010-11-13  Jim Meyering  <meyering@redhat.com>
27162
27163         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
27164         Now we require at least autoconf-2.59, which means the work-around
27165         is no longer needed.
27166         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
27167         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
27168         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
27169         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
27170         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
27171
27172 2010-11-13  Bruno Haible  <bruno@clisp.org>
27173
27174         rename, renameat: Avoid test failures at NFS mounted locations.
27175         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
27176         functions.
27177         (test_rename): Use assert_nonexistent.
27178         * tests/test-rename.c: Include <dirent.h>.
27179         * tests/test-renameat.c: Likewise.
27180         Reported by Gary V. Vaughan <gary@gnu.org>.
27181
27182         rename, renameat: Document Linux bug with NFS
27183         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
27184         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
27185         * doc/posix-functions/renameat.texi: Likewise.
27186         Suggested by Eric Blake.
27187
27188 2010-11-13  Bruno Haible  <bruno@clisp.org>
27189
27190         rename test: Add comments.
27191         * tests/test-rename.h (test_rename): Add structure and comments.
27192
27193 2010-11-13  Eric Blake  <eblake@redhat.com>
27194
27195         maintainer-makefile: cover a few more files
27196         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
27197         scripts generated within C files, for libvirt.
27198
27199 2010-11-13  Bruno Haible  <bruno@clisp.org>
27200
27201         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
27202         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
27203         character, return the number of bytes that belong together, not always
27204         1.
27205         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
27206         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
27207         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
27208         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
27209         number of bytes of an invalid character.
27210         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
27211         (main): Invoke it.
27212         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
27213         results.
27214         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
27215         malformed byte sequences.
27216         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
27217         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
27218         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
27219         Reported by Ben Pfaff and Paolo Bonzini.
27220
27221 2010-11-13  Bruno Haible  <bruno@clisp.org>
27222
27223         openat: Work around glibc bug with fchownat() and empty file names.
27224         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
27225         (gl_FUNC_FCHOWNAT): Invoke it.
27226         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
27227         * doc/posix-functions/fchownat.texi: Document the glibc bug.
27228         Reported by Gary V. Vaughan <gary@gnu.org>.
27229
27230 2010-11-13  Bruno Haible  <bruno@clisp.org>
27231
27232         openat: Ensure autoconf macro ordering.
27233         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
27234         gl_USE_SYSTEM_EXTENSIONS.
27235         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
27236
27237 2010-11-13  Bruno Haible  <bruno@clisp.org>
27238
27239         Update comments.
27240         * lib/unistr/u8-check.c: Update file name in comments.
27241         * lib/unistr/u8-mblen.c: Likewise.
27242         * lib/unistr/u8-prev.c: Likewise.
27243         * lib/unistr/u8-strmblen.c: Likewise.
27244         * lib/unistr/u8-strmbtouc.c: Likewise.
27245
27246 2010-11-13  Jim Meyering  <meyering@redhat.com>
27247
27248         tests: avoid test failure on Solaris 10 due to lack of PATH export
27249         * tests/test-update-copyright.sh: Don't forget to export PATH.
27250
27251         init.sh: ensure that IFS is defined, just in case...
27252         * tests/init.sh (setup_): Ensure that IFS is defined,
27253         so that saving and restoring it works as expected.  This
27254         appears to be useful at least for an old version of dash
27255         from a long time ago (RH 6).  See here for details:
27256         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
27257
27258         maint.mk: tighten "test a == b" check
27259         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
27260         test to files that contain something like #!/bin/sh.
27261         Without this, coreutils would get two false positives in
27262         the comments of C source files.
27263
27264 2010-11-12  Eric Blake  <eblake@redhat.com>
27265
27266         bootstrap: fix typo in previous attempt
27267         * build-aux/bootstrap (buildreq): Correct the grouping.
27268         Reported by Paul Eggert.
27269
27270         maintainer-makefile: prohibit test x == x
27271         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
27272         Based on a report by Matthias Bolte.
27273
27274         bootstrap: allow FreeBSD gzip
27275         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
27276         which has no '.' and goes to stderr.
27277         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
27278         Reported by Matthias Bolte.
27279
27280         maintainer-makefile: check for i18n setup
27281         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
27282         will likely work.
27283
27284 2010-11-12  Bruno Haible  <bruno@clisp.org>
27285
27286         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
27287         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
27288         * lib/nanosleep.c (nanosleep): Likewise.
27289
27290 2010-11-11  Bruno Haible  <bruno@clisp.org>
27291
27292         fcntl-h: Fix for use of C++ on glibc systems.
27293         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
27294         also on glibc systems in C++ mode.
27295         Reported by Gary V. Vaughan <gary@gnu.org>.
27296
27297 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27298
27299         mknod: avoid false failure with dash
27300         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
27301
27302 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
27303
27304         unlink: Fix "is it should" typo in diagnostic.
27305         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
27306         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
27307
27308 2010-11-11  Bruno Haible  <bruno@clisp.org>
27309
27310         Tests for module 'strerror_r-posix'.
27311         * modules/strerror_r-posix-tests: New file.
27312         * tests/test-strerror_r.c: New file.
27313         * tests/test-string-c++.cc: Check the signature of strerror_r.
27314
27315         New module 'strerror_r-posix'.
27316         * lib/string.in.h (strerror_r): New declaration.
27317         * lib/strerror_r.c: New file.
27318         * m4/strerror_r.m4: New file.
27319         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
27320         of strerror_r.
27321         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
27322         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
27323         * modules/strerror_r-posix: New file.
27324         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
27325         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
27326         * doc/posix-functions/strerror_r.texi: Mention the new module and the
27327         portability problems.
27328
27329 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
27330
27331         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
27332         line is also considered for output. Quoted function name in shell
27333         command, so temporary files for functions like MyClass::operator()
27334         are removed correctly without errors.
27335
27336 2010-11-09  Bruno Haible  <bruno@clisp.org>
27337
27338         * doc/posix-functions/strerror.texi: List more failing platforms.
27339
27340         * doc/posix-functions/strerror.texi: Add a comment.
27341
27342 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
27343
27344         fdopendir: fix bug on MacOS X when low on file descriptors
27345
27346         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
27347         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
27348         All callers changed.
27349         (fdopendir): Invoke save_cwd at the top level, not after using
27350         multiple dup() calls to use up file descriptors.  Then retry
27351         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
27352         less than the maximum number of open file descriptors, because
27353         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
27354         on Mac OS X 10.6.4 for tar 1.24
27355         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
27356         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
27357         and for tar 1.25
27358         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
27359
27360 2010-11-07  Bruno Haible  <bruno@clisp.org>
27361
27362         vasnprintf: Support I flag on glibc systems.
27363         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
27364         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
27365         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
27366         snprintf function.
27367         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
27368         glibc systems.
27369         * tests/test-vasnprintf-posix3.c: New file.
27370         * modules/vasnprintf-posix-tests (Files): Add it.
27371         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
27372
27373 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
27374
27375         [html] Fix copy/paste bug: Use unique name for compiler warnings.
27376         * MODULES.html.sh: For compiler warnings, use name
27377         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
27378
27379 2010-11-05  Eric Blake  <eblake@redhat.com>
27380
27381         ceil, floor: avoid spurious failure with icc
27382         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
27383         [denormals-as-zero] when optimizing without -mieee-fp option.
27384         * tests/test-floorf2.c (floorf_reference): Likewise.
27385         * tests/test-ceilf1.c (dummy): New function.
27386         (main): Use it to outsmart icc's optimization.
27387         * tests/test-floorf1.c (dummy, main): Likewise.
27388
27389         tests: require working signbit
27390         * modules/ceilf-tests (Depends-on): Add signbit.
27391         * modules/ceill-tests (Depends-on): Likewise.
27392         * modules/floorf-tests (Depends-on): Likewise.
27393         * modules/floorl-tests (Depends-on): Likewise.
27394         * modules/round-tests (Depends-on): Likewise.
27395         * modules/roundf-tests (Depends-on): Likewise.
27396         * modules/roundl-tests (Depends-on): Likewise.
27397         * modules/trunc-tests (Depends-on): Likewise.
27398         * modules/truncf-tests (Depends-on): Likewise.
27399         * modules/truncl-tests (Depends-on): Likewise.
27400
27401         strtod: work around icc bug
27402         * lib/strtod.c (minus_zero): Define to working value.
27403         (strtod): Use it to avoid icc bug.
27404
27405         copysign: enhance tests
27406         * modules/copysign-tests (Files): Add minus-zero.h.
27407         * tests/test-copysign.c (main): Also test zeros.
27408
27409 2010-11-04  Eric Blake  <eblake@redhat.com>
27410
27411         ceil, floor, round, trunc: enhance tests of -0
27412         * tests/test-ceilf1.c (main): Ensure correct sign of result.
27413         * tests/test-ceill.c (main): Likewise.
27414         * tests/test-floorf1.c (main): Likewise.
27415         * tests/test-floorl.c (main): Likewise.
27416         * tests/test-round1.c (main): Likewise.
27417         * tests/test-roundf1.c (main): Likewise.
27418         * tests/test-roundl.c (main): Likewise.
27419         * tests/test-trunc1.c (main): Likewise.
27420         * tests/test-truncf1.c (main): Likewise.
27421         * tests/test-truncl.c (main): Likewise.
27422
27423 2010-11-04  Eric Blake  <eblake@redhat.com>
27424
27425         frexp, tests: work around ICC bug with -zero
27426         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
27427         works with more compilers.
27428         * tests/minus-zero.h: New file.
27429         * modules/ceilf-tests (Files): Include it.
27430         * modules/ceill-tests (Files): Likewise.
27431         * modules/floorf-tests (Files): Likewise.
27432         * modules/floorl-tests (Files): Likewise.
27433         * modules/frexp-nolibm-tests (Files): Likewise.
27434         * modules/frexp-tests (Files): Likewise.
27435         * modules/frexpl-nolibm-tests (Files): Likewise.
27436         * modules/frexpl-tests (Files): Likewise.
27437         * modules/isnan-tests (Files): Likewise.
27438         * modules/isnand-nolibm-tests (Files): Likewise.
27439         * modules/isnand-tests (Files): Likewise.
27440         * modules/isnanf-nolibm-tests (Files): Likewise.
27441         * modules/isnanf-tests (Files): Likewise.
27442         * modules/isnanl-nolibm-tests (Files): Likewise.
27443         * modules/isnanl-tests (Files): Likewise.
27444         * modules/round-tests (Files): Likewise.
27445         * modules/roundf-tests (Files): Likewise.
27446         * modules/roundl-tests (Files): Likewise.
27447         * modules/ldexpl-tests (Files): Likewise.
27448         * modules/signbit-tests (Files): Likewise.
27449         * modules/snprintf-posix-tests (Files): Likewise.
27450         * modules/sprintf-posix-tests (Files): Likewise.
27451         * modules/strtod-tests (Files): Likewise.
27452         * modules/trunc-tests (Files): Likewise.
27453         * modules/truncf-tests (Files): Likewise.
27454         * modules/truncl-tests (Files): Likewise.
27455         * modules/vsnprintf-posix-tests (Files): Likewise.
27456         * modules/vsprintf-posix-tests (Files): Likewise.
27457         * modules/vasnprintf-posix-tests (Files): Likewise.
27458         * modules/vasprintf-posix-tests (Files): Likewise.
27459         * tests/test-ceilf1.c (main): Use it.
27460         * tests/test-ceill.c (main): Likewise.
27461         * tests/test-floorf1.c (main): Likewise.
27462         * tests/test-floorl.c (main): Likewise.
27463         * tests/test-frexp.c (main): Likewise.
27464         * tests/test-frexpl.c (main): Likewise.
27465         * tests/test-isnan.c (main): Likewise.
27466         * tests/test-isnand.h (main): Likewise.
27467         * tests/test-isnanf.h (main): Likewise.
27468         * tests/test-isnanl.h (main): Likewise.
27469         * tests/test-ldexpl.c (main): Likewise.
27470         * tests/test-round.c (main): Likewise.
27471         * tests/test-roundf.c (main): Likewise.
27472         * tests/test-roundl.c (main): Likewise.
27473         * tests/test-signbit.c (test_signbitf, test_signbitd)
27474         (test_signbitl): Likewise.
27475         * tests/test-snprintf-posix.h (test_function): Likewise.
27476         * tests/test-sprintf-posix.h (test_function): Likewise.
27477         * tests/test-strtod.c (main): Likewise.
27478         * tests/test-trunc1.c (main): Likewise.
27479         * tests/test-truncf1.c (main): Likewise.
27480         * tests/test-truncl.c (main): Likewise.
27481
27482         isnanl: work around icc bug
27483         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
27484
27485 2010-11-03  Eric Blake  <eblake@redhat.com>
27486
27487         tests: fix compiler warnings
27488         * tests/test-getopt.h (test_getopt): Fix condition.
27489         * tests/test-getopt_long.h (test_getopt_long): Likewise.
27490         * tests/test-pipe2.c (main): Likewise.
27491         * tests/test-quotearg-simple.c (main): Avoid icc warning.
27492
27493         utimens: fix broken m4 test
27494         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
27495
27496 2010-10-28  Bruno Haible  <bruno@clisp.org>
27497
27498         posix_spawn*, getdtablesize: Relax license.
27499         * modules/posix_spawn (License): Change to LGPLv2+.
27500         * modules/posix_spawnp (License): Likewise.
27501         * modules/posix_spawn-internal (License): Likewise.
27502         * modules/posix_spawnattr_init (License): Likewise.
27503         * modules/posix_spawnattr_getflags (License): Likewise.
27504         * modules/posix_spawnattr_setflags (License): Likewise.
27505         * modules/posix_spawnattr_getpgroup (License): Likewise.
27506         * modules/posix_spawnattr_setpgroup (License): Likewise.
27507         * modules/posix_spawnattr_getschedparam (License): Likewise.
27508         * modules/posix_spawnattr_setschedparam (License): Likewise.
27509         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
27510         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
27511         * modules/posix_spawnattr_getsigdefault (License): Likewise.
27512         * modules/posix_spawnattr_setsigdefault (License): Likewise.
27513         * modules/posix_spawnattr_getsigmask (License): Likewise.
27514         * modules/posix_spawnattr_setsigmask (License): Likewise.
27515         * modules/posix_spawnattr_destroy (License): Likewise.
27516         * modules/posix_spawn_file_actions_init (License): Likewise.
27517         * modules/posix_spawn_file_actions_addclose (License): Likewise.
27518         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
27519         * modules/posix_spawn_file_actions_addopen (License): Likewise.
27520         * modules/posix_spawn_file_actions_destroy (License): Likewise.
27521         * modules/getdtablesize (License): Likewise.
27522         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
27523
27524 2010-10-26  Bruno Haible  <bruno@clisp.org>
27525
27526         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
27527         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
27528         Cygwin and mingw.
27529         Suggested by Eric Blake.
27530
27531 2010-10-26  Bruno Haible  <bruno@clisp.org>
27532
27533         stdio: Work around compilation error due to renameat() on Solaris 10.
27534         * lib/stdio.in.h: Include <unistd.h> on Solaris.
27535         * lib/renameat.c: Don't include <unistd.h> here.
27536         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
27537         Reported by Paul Eggert and Eric Blake.
27538
27539 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
27540
27541         renameat: port to Solaris 10, which declares renameat in unistd.h
27542
27543         * lib/renameat.c: Include unistd.h before stdio.h, because
27544         Solaris 10 declares renameat in unistd.h.  Problem encountered
27545         when building GNU tar 1.24 on Solaris 10.
27546
27547 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
27548
27549         fdopendir: fix C89 compilation
27550         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
27551         compilers.
27552
27553 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
27554
27555         inttostr: simplify by removing unnecessary redundancy
27556         * lib/anytostr.c: Don't include verify.h.
27557         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
27558         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
27559         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
27560         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
27561         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
27562         Likewise.
27563         * modules/inttostr (Depends-on): Remove 'verify'.
27564
27565 2010-10-23  Bruno Haible  <bruno@clisp.org>
27566
27567         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
27568         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
27569         Reported by Eric Blake.
27570
27571 2010-10-23  Bruno Haible  <bruno@clisp.org>
27572
27573         Tests: Fix LOCALE_JA on MirBSD 10.
27574         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
27575         to an UTF-8 locale.
27576         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
27577         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27578         Reported by Eric Blake.
27579
27580 2010-10-21  Bruno Haible  <bruno@clisp.org>
27581
27582         nl_langinfo test: Avoid test failure on NetBSD 5.
27583         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
27584         Reported by Eric Blake.
27585
27586 2010-10-21  Eric Blake  <eblake@redhat.com>
27587
27588         c-stack: work around libsigsegv 2.8 bug
27589         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
27590         overflow on at least PowerPC64.
27591
27592 2010-10-17  Bruno Haible  <bruno@clisp.org>
27593
27594         userspec: Drop redundant file.
27595         * modules/userspec (Files): Remove lib/inttostr.h.
27596
27597 2010-10-17  Bruno Haible  <bruno@clisp.org>
27598
27599         nl_langinfo tests: Silence some warnings.
27600         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
27601         Reported by Jim Meyering.
27602
27603 2010-10-17  Bruno Haible  <bruno@clisp.org>
27604
27605         Make use of GCC's attribute __alloc_size__.
27606         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
27607         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
27608         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
27609         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
27610         __alloc_size__.
27611         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
27612         Suggested by Jim Meyering.
27613
27614 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
27615
27616         bootstrap: anchor .gitignore entries.
27617         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
27618         with...
27619         (insert_vc_ignore): ... this new function, which prepends `/' to
27620         all .gitignore entries before passing them to
27621         insert_sorted_if_absent.
27622
27623 2010-10-16  Bruno Haible  <bruno@clisp.org>
27624
27625         nextafter: Fix configure check.
27626         * modules/nextafter (configure.ac): Correct expected prototype.
27627
27628 2010-10-16  Bruno Haible  <bruno@clisp.org>
27629
27630         termios: Update documentation.
27631         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
27632
27633 2010-10-16  Bruno Haible  <bruno@clisp.org>
27634
27635         tests: Make them compile with TinyCC.
27636         * tests/test-strstr.c (main): Remove parentheses around array
27637         initializer.
27638
27639 2010-10-15  Eric Blake  <eblake@redhat.com>
27640
27641         ignore-value: make header idempotent
27642         * lib/ignore-value.h: Add double-inclusion guards.
27643         Reported by Stefan Berger.
27644
27645 2010-10-15  Jim Meyering  <meyering@redhat.com>
27646
27647         GNUmakefile: handle "stable" target, not "major"
27648         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
27649         lists in maint.mk and announce-gen.  Without this, "make stable"
27650         would fail to ensure that $(VERSION) is up to date.
27651
27652 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
27653
27654         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
27655         & co.
27656
27657 2010-10-14  Bruno Haible  <bruno@clisp.org>
27658
27659         vasnprintf: Don't set errno to 0.
27660         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
27661         block that sets it to 0.
27662         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
27663
27664 2010-10-14  Bruno Haible  <bruno@clisp.org>
27665
27666         socketlib: Fix.
27667         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
27668         gl_PREREQ_SYS_H_WINSOCK2.
27669         Reported by Ian Beckwith <ianb@erislabs.net>.
27670
27671 2010-10-13  Jim Meyering  <meyering@redhat.com>
27672
27673         test-select-stdin.c: avoid warn_unused_result warnings
27674         * tests/test-select-stdin.c: Include "macros.h".
27675         ASSERT that read and fflush succeed.
27676
27677 2010-10-13  Jim Meyering  <meyering@redhat.com>
27678
27679         git-version-gen: do require git-VC'd files in cwd
27680         * build-aux/git-version-gen: Reject a git version string
27681         if there are no commits associated with the current directory.
27682         This avoids an unlikely false-positive (unrelated dir whose parent
27683         repository also contains a tag matching v*), as pointed out
27684         by Giuseppe Scrivano in
27685         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
27686
27687 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
27688
27689         argv-iter: omit nonconforming declaration
27690         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
27691         enum arg_iter_err declaration, which doesn't conform to C99.
27692         Solaris 10 cc warns about this.
27693
27694 2010-10-13  Eric Blake  <eblake@redhat.com>
27695
27696         termios: fix compilation on mingw
27697         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
27698         (gl_TERMIOS_H): Adjust it on mingw.
27699         * modules/termios (Makefile.am): Substitute new key.
27700         * lib/termios.in.h (includes): Make include_next conditional.
27701         * doc/posix-headers/termios.texi (termios.h): Update
27702         documentation.
27703         Reported by Daniel P. Berrange.
27704
27705 2010-10-13  Jim Meyering  <meyering@redhat.com>
27706
27707         git-version-gen: don't require that .git/ be in the current dir
27708         * build-aux/git-version-gen: Adjust this script so that it works
27709         when run from any working directory beneath the top-level .git/-
27710         containing directory.  Inspired by a patch from Giuseppe Scrivano,
27711         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
27712
27713         test-select: avoid warn_unused_result warnings
27714         * tests/test-select.c: Include "macros.h".
27715         ASSERT that each call to read, write, and pipe succeeds.
27716         While not technically required, also check each "close".
27717         * modules/select-tests (Files): Add tests/macros.h.
27718
27719         test-symlinkat: remove declaration of unused local
27720         * tests/test-symlinkat.c (main): Remove unused local, "buf".
27721
27722         test-inttostr: avoid shadowing warnings
27723         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
27724         and use malloc rather than the stack for the same reason as
27725         mentioned in the comment justifying the other allocation.
27726
27727 2010-10-11  Bruno Haible  <bruno@clisp.org>
27728
27729         stdlib: Allow multiple gnulib generated replacements to coexist.
27730         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
27731         Reported by Sam Steingold <sds@gnu.org>.
27732
27733 2010-10-11  Jim Meyering  <meyering@redhat.com>
27734
27735         fix a documentation typo
27736         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
27737
27738 2010-10-11  Eric Blake  <eblake@redhat.com>
27739
27740         futimens: work around Solaris 11 bug
27741         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
27742         * tests/test-futimens.h (test_futimens): Enhance, rather than
27743         weaken test.
27744         * doc/posix-functions/futimens.texi (futimens): Document the bug.
27745
27746 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
27747
27748         Indentation.
27749         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
27750         higher-level operators more to the left.
27751
27752 2010-10-11  Jim Meyering  <meyering@redhat.com>
27753
27754         test-futimens: avoid unwarranted test failure on Solaris 5.11
27755         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
27756         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
27757         because it tries to dereference the NULL name argument.
27758
27759 2010-10-11  Bruno Haible  <bruno@clisp.org>
27760
27761         Indentation.
27762         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
27763         indentation.
27764
27765 2010-10-11  Jim Meyering  <meyering@redhat.com>
27766
27767         spawn.in.h: make indentation consistent with parentheses
27768         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
27769         Make indentation consistent with parentheses.
27770
27771 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
27772
27773         Fix mismatched parens in previous commit
27774         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
27775         parens.
27776
27777 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
27778
27779         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
27780
27781         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
27782         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
27783         * lib/malloca.c: Include "verify.h".
27784         (verify1): Remove, replacing with a verify call.
27785         * lib/relocwrapper.c (verify1): Likewise.
27786         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
27787         Likewise.
27788         * modules/malloca (Depends-on): Add 'verify'.
27789         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
27790         * modules/vasnprintf (Depends-on): Add 'verify'.
27791         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
27792         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
27793         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
27794         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
27795         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
27796         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
27797         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
27798
27799         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
27800
27801         Formerly the style was sometimes 2*X - 1, because the C standard
27802         was wrongly thought to disallow ?: in integral constant expressions.
27803         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
27804         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
27805         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
27806         * lib/stdint.in.h (_verify_intmax_size): Likewise.
27807         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
27808         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
27809         verify that time_t cannot be floating.
27810
27811 2010-10-08  Eric Blake  <eblake@redhat.com>
27812
27813         time: enforce recent POSIX ruling that time_t is integral
27814         * lib/time.in.h (__time_t_must_be_integral): Detect any
27815         problematic systems, allowing the rest of gnulib to assume POSIX.
27816
27817 2010-10-08  Jim Meyering  <meyering@redhat.com>
27818
27819         fdopendir: fix a bug on systems lacking openat and /proc support
27820         OpenBSD 4.7 is one such system.  The most noticeable effect was
27821         failure of any application making nontrivial use of fts: rm, du,
27822         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
27823           ./rm: traversal failed: `a': Bad file descriptor
27824         Debugging that, you see that even though FD 6 was closed just
27825         prior to the opendir call in fd_clone_opendir, its resulting
27826         dir->dd_fd was 8, rather than the expected value of 6:
27827
27828         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
27829         93                close (fd);
27830         (gdb) n
27831         94                dir = fd_clone_opendir (dupfd);
27832         (gdb) n
27833         95                saved_errno = errno;
27834         (gdb) p dir->dd_fd
27835         $11 = 8
27836
27837         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
27838         The problem is that on OpenBSD, fd_clone_opendir has to resort
27839         to using the old-style save/restore CWD mechanism, due to its
27840         lack of openat/proc support, and *that* would steal the FD (6)
27841         that opendir was supposed to use.
27842
27843         The fix is to squirrel away the desired FD so that save_cwd uses a
27844         different one, and then free the dest FD right before calling opendir.
27845         That guarantees opendir will use the required file descriptor.
27846
27847         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
27848
27849 2010-10-08  Bruno Haible  <bruno@clisp.org>
27850
27851         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
27852         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
27853
27854 2010-10-08  Bruno Haible  <bruno@clisp.org>
27855
27856         nanosleep: Make replacement POSIX compliant.
27857         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
27858         is out of range.
27859         Reported by Jim Meyering.
27860
27861 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
27862
27863         bootstrap: add hook for altering gnulib.mk, for Bison
27864         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
27865         the Bison bootstrapping process can rewrite file names and variables
27866         in this file before later parts of 'bootstrap' use the file.
27867         Bison wants to include lib/gnulib.mk from the top-level makefile,
27868         so it needs the file names in this file to be relative to the top
27869         level, not relative to lib; plus it needs variable names to be
27870         rewritten.
27871         (slurp): Use the new function.
27872
27873         bootstrap: reformat for readability
27874         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
27875
27876 2010-10-08  Eric Blake  <eblake@redhat.com>
27877
27878         docs: update cygwin progress
27879         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
27880         1.7.7.
27881         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
27882         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
27883         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
27884         * doc/posix-functions/carg.texi (carg): Likewise.
27885         * doc/posix-functions/cargf.texi (cargf): Likewise.
27886         * doc/posix-functions/casin.texi (casin): Likewise.
27887         * doc/posix-functions/casinf.texi (casinf): Likewise.
27888         * doc/posix-functions/casinh.texi (casinh): Likewise.
27889         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
27890         * doc/posix-functions/catan.texi (catan): Likewise.
27891         * doc/posix-functions/catanf.texi (catanf): Likewise.
27892         * doc/posix-functions/catanh.texi (catanh): Likewise.
27893         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
27894         * doc/posix-functions/ccos.texi (ccos): Likewise.
27895         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
27896         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
27897         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
27898         * doc/posix-functions/cexp.texi (cexp): Likewise.
27899         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
27900         * doc/posix-functions/cimag.texi (cimag): Likewise.
27901         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
27902         * doc/posix-functions/clog.texi (clog): Likewise.
27903         * doc/posix-functions/clogf.texi (clogf): Likewise.
27904         * doc/posix-functions/conj.texi (conj): Likewise.
27905         * doc/posix-functions/conjf.texi (conjf): Likewise.
27906         * doc/posix-functions/cpow.texi (cpow): Likewise.
27907         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
27908         * doc/posix-functions/cproj.texi (cproj): Likewise.
27909         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
27910         * doc/posix-functions/creal.texi (creal): Likewise.
27911         * doc/posix-functions/crealf.texi (crealf): Likewise.
27912         * doc/posix-functions/csin.texi (csin): Likewise.
27913         * doc/posix-functions/csinf.texi (csinf): Likewise.
27914         * doc/posix-functions/csinh.texi (csinh): Likewise.
27915         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
27916         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
27917         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
27918         * doc/posix-functions/ctan.texi (ctan): Likewise.
27919         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
27920         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
27921         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
27922         * doc/posix-headers/complex.texi (complex.h): Likewise.
27923
27924 2010-10-07  Jim Meyering  <meyering@redhat.com>
27925
27926         parse-datetime: avoid compilation failure on OpenBSD 4.7
27927         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
27928         This works around a compilation failure on OpenBSD 4.7:
27929         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
27930
27931 2010-10-07  Eric Blake  <eblake@redhat.com>
27932
27933         docs: update cygwin progress
27934         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
27935         1.7.6.
27936         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
27937         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
27938         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
27939         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
27940         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
27941         Likewise.
27942         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
27943         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
27944         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
27945         Likewise.
27946         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
27947         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
27948         Likewise.
27949         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
27950         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
27951         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
27952         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
27953         Likewise.
27954         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
27955         Likewise.
27956         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
27957
27958         docs: update parse-datetime history
27959         * doc/parse-datetime.texi (Authors of parse_datetime): Better
27960         documentation of this function's history and alternatives.
27961
27962         cygwin: use more robust version check
27963         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
27964         exclude an eventual cygwin 1.9.1.
27965         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27966         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
27967         (gl_FUNC_STRCASESTR): Likewise.
27968         Reported by Bruno Haible.
27969
27970 2010-10-06  Bruno Haible  <bruno@clisp.org>
27971
27972         string, sys_select: Avoid #including large headers unless necessary.
27973         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
27974         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
27975         OSF/1, BeOS, Haiku.
27976         Reported by Jim Meyering.
27977
27978 2010-10-05  Eric Blake  <eblake@redhat.com>
27979
27980         memmem, strstr, strcasestr: fix bug with long periodic needle
27981         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
27982         periodic needle having false positive.
27983         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
27984         and cygwin 1.7.7.
27985         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
27986         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
27987         (gl_FUNC_STRCASESTR): Likewise.
27988         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
27989         * tests/test-memmem.c (main): Expose the bug.
27990         * tests/test-strcasestr.c (main): Likewise.
27991         * tests/test-strstr.c (main): Likewise.
27992         * tests/test-c-strcasestr.c (main): Likewise.
27993         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
27994         * doc/posix-functions/strstr.texi (strstr): Likewise.
27995         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
27996         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
27997
27998 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
27999
28000         parse-datetime: do some more renaming
28001         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
28002         parse_datetime, not get_date.  Mention the renaming.
28003         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
28004         in comments.
28005         * m4/bison.m4: Likewise.
28006
28007 2010-10-05  Eric Blake  <eblake@redhat.com>
28008
28009         parse-datetime: better name than get_date
28010         * NEWS: Reword the deprecation notice.
28011         * modules/get_date: Rename to modules/parse-datetime.
28012         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
28013         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
28014         * lib/get_date.y: Rename to lib/parse-datetime.y.
28015         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
28016         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
28017         * doc/getdate.texi: Provide fallback wrapper.
28018         * lib/getdate.h: Move guts, and wrap...
28019         * lib/parse-datetime.h: ...new file.
28020         * lib/parse-datetime.y (get_date): Rename...
28021         (parse_datetime): ...to this.
28022         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
28023         (gl_PARSE_DATETIME): ...to this.
28024         * doc/posix-functions/getdate.texi (get_date): Provide fallback
28025         documentation.
28026         * modules/getdate (Files): Provide fallback docs and header.
28027         (Notice, Depends-on): Update references.
28028         * tests/test-parse-datetime.c: Likewise.
28029         * DEPENDENCIES: Likewise.
28030         * MODULES.html.sh (Date and time <time.h>): Likewise.
28031         * doc/parse-datetime.texi (Date input formats)
28032         (Authors of parse_datetime): Likewise.
28033         * modules/parse-datetime (Files, configure.ac, Makefile.am)
28034         (Include): Likewise.
28035         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
28036         * gnulib-tool: Likewise.
28037         * m4/bison.m4 (gl_BISON): Likewise.
28038         Suggested by Bruno Haible.
28039
28040 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
28041
28042         more ports to Solaris tr, which needs [] around ranges
28043         * gnulib-tool: Solaris tr needs [] around ranges.
28044         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
28045         * tests/test-pipe-filter-gi1.c (main): Likewise.
28046         * tests/test-pipe-filter-ii1.c (main): Likewise.
28047
28048 2010-10-05  Eric Blake  <eblake@redhat.com>
28049
28050         bootstrap: fix Solaris regression
28051         * build-aux/bootstrap (check_versions): Solaris tr still needs []
28052         around ranges.
28053         Reported by Pádraig Brady.
28054
28055         bootstrap: work with pkg-config
28056         * build-aux/bootstrap (check_versions): Also transliterate - in
28057         prerequisite name.
28058         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
28059         prerequisites that were already found, to avoid confusion.
28060         Reported by Justin Clift.
28061
28062         faccessat: remove unused wrappers
28063         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
28064         presence of these wrappers dragged in -lgen on Solaris.
28065         Reported by Clemens Brogi; fix suggested by Paul Eggert.
28066
28067 2010-10-05  Jim Meyering  <meyering@redhat.com>
28068
28069         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
28070         * Makefile (sc_pragma_columns): New syntax-check rule.
28071
28072 2010-10-04  Bruno Haible  <bruno@clisp.org>
28073
28074         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
28075         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
28076         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
28077         Reported by Bruce Korb and Eric Blake.
28078
28079 2010-10-04  Bruno Haible  <bruno@clisp.org>
28080
28081         threadlib: Make option --with-libpth-prefix work.
28082         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
28083         use $LIBPTH, not just -lpth.
28084
28085 2010-10-04  Bruno Haible  <bruno@clisp.org>
28086
28087         Avoid line length limitation from HP NonStop system header files.
28088         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
28089         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
28090         * lib/ctype.in.h: Likewise.
28091         * lib/dirent.in.h: Likewise.
28092         * lib/errno.in.h: Likewise.
28093         * lib/fcntl.in.h: Likewise.
28094         * lib/float.in.h: Likewise.
28095         * lib/getopt.in.h: Likewise.
28096         * lib/iconv.in.h: Likewise.
28097         * lib/inttypes.in.h: Likewise.
28098         * lib/langinfo.in.h: Likewise.
28099         * lib/locale.in.h: Likewise.
28100         * lib/math.in.h: Likewise.
28101         * lib/netdb.in.h: Likewise.
28102         * lib/netinet_in.in.h: Likewise.
28103         * lib/poll.in.h: Likewise.
28104         * lib/pthread.in.h: Likewise.
28105         * lib/pty.in.h: Likewise.
28106         * lib/sched.in.h: Likewise.
28107         * lib/se-selinux.in.h: Likewise.
28108         * lib/search.in.h: Likewise.
28109         * lib/signal.in.h: Likewise.
28110         * lib/spawn.in.h: Likewise.
28111         * lib/stdarg.in.h: Likewise.
28112         * lib/stddef.in.h: Likewise.
28113         * lib/stdint.in.h: Likewise.
28114         * lib/stdio.in.h: Likewise.
28115         * lib/stdlib.in.h: Likewise.
28116         * lib/string.in.h: Likewise.
28117         * lib/strings.in.h: Likewise.
28118         * lib/sys_file.in.h: Likewise.
28119         * lib/sys_ioctl.in.h: Likewise.
28120         * lib/sys_select.in.h: Likewise.
28121         * lib/sys_socket.in.h: Likewise.
28122         * lib/sys_stat.in.h: Likewise.
28123         * lib/sys_time.in.h: Likewise.
28124         * lib/sys_times.in.h: Likewise.
28125         * lib/sys_utsname.in.h: Likewise.
28126         * lib/sys_wait.in.h: Likewise.
28127         * lib/sysexits.in.h: Likewise.
28128         * lib/termios.in.h: Likewise.
28129         * lib/time.in.h: Likewise.
28130         * lib/unistd.in.h: Likewise.
28131         * lib/wchar.in.h: Likewise.
28132         * lib/wctype.in.h: Likewise.
28133         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
28134         * modules/ctype (Makefile.am): Likewise.
28135         * modules/dirent (Makefile.am): Likewise.
28136         * modules/errno (Makefile.am): Likewise.
28137         * modules/fcntl-h (Makefile.am): Likewise.
28138         * modules/float (Makefile.am): Likewise.
28139         * modules/getopt-posix (Makefile.am): Likewise.
28140         * modules/iconv-h (Makefile.am): Likewise.
28141         * modules/inttypes (Makefile.am): Likewise.
28142         * modules/langinfo (Makefile.am): Likewise.
28143         * modules/locale (Makefile.am): Likewise.
28144         * modules/math (Makefile.am): Likewise.
28145         * modules/netdb (Makefile.am): Likewise.
28146         * modules/netinet_in (Makefile.am): Likewise.
28147         * modules/poll-h (Makefile.am): Likewise.
28148         * modules/pthread (Makefile.am): Likewise.
28149         * modules/pty (Makefile.am): Likewise.
28150         * modules/sched (Makefile.am): Likewise.
28151         * modules/search (Makefile.am): Likewise.
28152         * modules/selinux-h (Makefile.am): Likewise.
28153         * modules/signal (Makefile.am): Likewise.
28154         * modules/spawn (Makefile.am): Likewise.
28155         * modules/stdarg (Makefile.am): Likewise.
28156         * modules/stddef (Makefile.am): Likewise.
28157         * modules/stdint (Makefile.am): Likewise.
28158         * modules/stdio (Makefile.am): Likewise.
28159         * modules/stdlib (Makefile.am): Likewise.
28160         * modules/string (Makefile.am): Likewise.
28161         * modules/strings (Makefile.am): Likewise.
28162         * modules/sys_file (Makefile.am): Likewise.
28163         * modules/sys_ioctl (Makefile.am): Likewise.
28164         * modules/sys_select (Makefile.am): Likewise.
28165         * modules/sys_socket (Makefile.am): Likewise.
28166         * modules/sys_stat (Makefile.am): Likewise.
28167         * modules/sys_time (Makefile.am): Likewise.
28168         * modules/sys_times (Makefile.am): Likewise.
28169         * modules/sys_utsname (Makefile.am): Likewise.
28170         * modules/sys_wait (Makefile.am): Likewise.
28171         * modules/sysexits (Makefile.am): Likewise.
28172         * modules/termios (Makefile.am): Likewise.
28173         * modules/time (Makefile.am): Likewise.
28174         * modules/unistd (Makefile.am): Likewise.
28175         * modules/wchar (Makefile.am): Likewise.
28176         * modules/wctype (Makefile.am): Likewise.
28177
28178 2010-10-04  Bruno Haible  <bruno@clisp.org>
28179
28180         read-file tests: Avoid a test failure on NonStop Kernel.
28181         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
28182         a regular file.
28183         Reported by Joachim Schmitz <schmitz@hp.com>.
28184
28185 2010-10-03  Bruno Haible  <bruno@clisp.org>
28186
28187         gnulib-tool: Fixes for --create-testdir with --libtool.
28188         * gnulib-tool (func_get_automake_snippet): Don't augment
28189         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
28190         an executable.
28191         (func_create_testdir): Handle module 'alloca' like func_import.
28192         Reported by Bruce Korb <bruce.korb@gmail.com>.
28193
28194 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
28195
28196         Avoid some lines longer than 80 characters.
28197         * lib/stdint.in.h: Break long comment lines.
28198         * lib/math.in.h: Likewise.
28199         (_GL_NUM_UINT_WORDS): New macro, for readability.
28200         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
28201         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
28202         * lib/stdlib.in.h: Likewise.
28203         * lib/spawn.in.h: Likewise.
28204         * lib/sys_socket.in.h: Update an URL.
28205         * lib/sys_stat.in.h: Break long line.
28206
28207 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
28208
28209         Improve pmccabe2html.
28210         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
28211         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
28212         when the sources change. Remove the line in the HTML about "Used
28213         ranges" (which implied that there might be other unused ranges),
28214         rename "Resume" to "Summary" (easier to understand for more users).
28215         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
28216         styles, and some unnecessary blank lines.
28217
28218 2010-10-03  Bruno Haible  <bruno@clisp.org>
28219             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
28220
28221         acl: Add support for ACLs on NonStop Kernel.
28222         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
28223         Check whether the function aclsort() exists.
28224         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
28225         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
28226         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28227         (acl_nontrivial [HAVE_ACLSORT]: New function.
28228         (file_has_acl): Implement for NonStop Kernel.
28229         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28230         (qset_acl): Implement for NonStop Kernel.
28231         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
28232         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
28233         (main): Implement for NonStop Kernel.
28234         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
28235         Kernel. Handle this flavor.
28236         * tests/test-set-mode-acl.sh: Likewise.
28237         * tests/test-copy-acl.sh: Likewise.
28238         * tests/test-copy-file.sh: Likewise.
28239
28240 2010-10-03  Bruno Haible  <bruno@clisp.org>
28241
28242         Info about ACLs on NonStop Kernel.
28243         * doc/acl-resources.txt: Add info about NonStop Kernel.
28244         References by Joachim Schmitz <schmitz@hp.com>.
28245
28246 2010-10-02  Bruno Haible  <bruno@clisp.org>
28247
28248         Define missing EDQUOT on NonStop Kernel.
28249         * lib/errno.in.h (EDQUOT): Assign a value if missing.
28250         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
28251         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
28252         missing.
28253         * doc/posix-headers/errno.texi: Mention the NSK bug.
28254         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
28255         Reported by Joachim Schmitz <schmitz@hp.com>.
28256
28257 2010-10-02  Bruno Haible  <bruno@clisp.org>
28258
28259         Update doc for POSIX:2008.
28260         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
28261         Update URL of POSIX specification.
28262
28263 2010-10-02  Bruno Haible  <bruno@clisp.org>
28264
28265         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
28266         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
28267         from gnulib, not from Automake.
28268
28269 2010-10-02  Bruno Haible  <bruno@clisp.org>
28270
28271         New module 'system-posix'.
28272         * modules/system-posix: New file.
28273         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
28274         module is present.
28275         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
28276         GNULIB_SYSTEM_POSIX.
28277         * modules/stdlib (Depends-on): Remove sys_wait.
28278         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
28279         * doc/posix-functions/system.texi: Mention the new module.
28280         * doc/posix-headers/stdlib.texi: Likewise.
28281         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
28282         define test_sys_wait_macros to a no-op.
28283         Reported by Sam Steingold <sds@gnu.org>.
28284
28285 2010-09-30  Bruno Haible  <bruno@clisp.org>
28286
28287         More renaming from 'getdate' to 'get_date'.
28288         * doc/get_date.texi: Renamed from doc/getdate.texi.
28289         * modules/get_date (Files): Update.
28290         * MODULES.html.sh (Date and time <time.h>): Update.
28291         * DEPENDENCIES: Update.
28292         * gnulib-tool: Update comment.
28293         * m4/bison.m4 (gl_BISON): Likewise.
28294         * m4/get_date.m4 (gl_GET_DATE): Likewise.
28295
28296 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
28297
28298         bootstrap: support ACLOCAL_FLAGS during aclocal
28299         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
28300         can add additional -I dir for third-party .m4 files.
28301
28302 2010-09-30  Eric Blake  <eblake@redhat.com>
28303
28304         bootstrap: use glibtoolize on MacOS
28305         * build-aux/bootstrap (check_versions): Convert libtool into
28306         libtoolize.
28307         (tool search): Move libtool check earlier, and look for
28308         glibtoolize for MacOS.
28309         (gnulib_tool_options): Auto-add --libtool when appropriate.
28310         Reported by Justin Clift.
28311
28312         poll: fix typo that broke test on MacOS
28313         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
28314         Reported by Justin Clift.
28315
28316         getdate: rename to get_date
28317         Note: getdate.h is not renamed, to minimize client impact.
28318         * modules/getdate: Mark obsolete.  Move old contents...
28319         * modules/get_date: ...to new module name.
28320         * modules/getdate-tests: Move...
28321         * modules/get_date-tests: ...here.
28322         * m4/getdate.m4: Move...
28323         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
28324         * lib/getdate.y: Move...
28325         * lib/get_date.y: ...here.
28326         * tests/test-getdate.c: Move...
28327         * tests/test-get_date.c: ...here.
28328         * doc/posix-functions/getdate.texi (getdate): Update name.
28329         * NEWS: Mention the change.
28330
28331 2010-09-29  Bruno Haible  <bruno@clisp.org>
28332
28333         Separate the module 'waitpid' from the module 'sys_wait'.
28334         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
28335         present.
28336         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
28337         gl_MODULE_INDICATOR_FOR_TESTS.
28338         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
28339         * modules/sys_wait (Depends-on): Remove waitpid.
28340         (Makefile.am): Substitute GNULIB_WAITPID.
28341         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
28342         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
28343         signature only if the 'waitpid' module is present.
28344         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
28345         * NEWS: Mention the change.
28346         * modules/grantpt (Depends-on): Add waitpid.
28347         * modules/wait-process (Depends-on): Likewise.
28348
28349 2010-09-29  Bruno Haible  <bruno@clisp.org>
28350
28351         More tests for module 'sys_wait'.
28352         * modules/sys_wait-c++-tests: New file.
28353         * tests/test-sys_wait-c++.cc: New file.
28354         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
28355         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
28356
28357 2010-09-29  Bruno Haible  <bruno@clisp.org>
28358
28359         New module 'waitpid'.
28360         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
28361         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
28362         Don't include <process.h>.
28363         (waitpid): Declare only, using modern idiom.
28364         * m4/waitpid.m4: New file.
28365         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
28366         * modules/waitpid: New file.
28367         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
28368         (Makefile.am): Update.
28369         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
28370
28371 2010-09-28  Bruno Haible  <bruno@clisp.org>
28372
28373         poll: Assume ANSI C.
28374         * lib/poll.c (poll): Use an ANSI C declaration.
28375
28376 2010-09-28  Bruno Haible  <bruno@clisp.org>
28377
28378         poll-h: Create poll.h on all platforms.
28379         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
28380         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
28381         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
28382         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
28383         (gl_REPLACE_POLL_H): Don't set POLL_H.
28384         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
28385         * modules/poll-h (Depends-on): Add include_next.
28386         (Makefile.am): Create poll.h unconditionally. Substitute also
28387         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
28388
28389 2010-09-28  Bruno Haible  <bruno@clisp.org>
28390
28391         Tests for module 'poll-h'.
28392         * modules/poll-h-c++-tests: New file.
28393         * tests/test-poll-h-c++.cc: New file.
28394
28395         Tests for module 'poll-h'.
28396         * modules/poll-h-tests: New file.
28397         * tests/test-poll-h.c: New file.
28398
28399 2010-09-28  Bruno Haible  <bruno@clisp.org>
28400
28401         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
28402         * modules/poll-h (Depends-on): Add 'extensions'.
28403
28404 2010-09-28  Bruno Haible  <bruno@clisp.org>
28405
28406         New module 'poll-h'.
28407         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
28408         (poll): Use modern idiom.
28409         * modules/poll-h: New file.
28410         * modules/poll (Files): Remove lib/poll.in.h.
28411         (Depends-on): Add poll-h.
28412         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
28413         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
28414         * m4/poll_h.m4: New file.
28415         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
28416         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
28417         and invoke gl_REPLACE_POLL_H.
28418         * lib/poll.c: Use common idiom.
28419         * tests/test-poll.c: Likewise.
28420         * doc/posix-headers/poll.texi: Mention the poll-h module.
28421         Suggested by Eric Blake.
28422
28423 2010-09-26  Bruno Haible  <bruno@clisp.org>
28424
28425         sys_wait: Implement WSTOPSIG.
28426         * lib/sys_wait.in.h (WSTOPSIG): New macro.
28427         Reported by Simon Josefsson.
28428
28429 2010-09-26  Simon Josefsson  <simon@josefsson.org>
28430
28431         stdlib, sys_wait: Avoid compilation error on mingw.
28432         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
28433
28434 2010-09-26  Bruno Haible  <bruno@clisp.org>
28435
28436         stdlib tests: Avoid code duplication.
28437         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
28438         * modules/sys_wait-tests (Files): Likewise.
28439         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
28440         * tests/test-stdlib.c: Include test-sys_wait.h.
28441         (main): Invoke test_sys_wait_macros.
28442         * tests/test-sys_wait.c: Include test-sys_wait.h.
28443         (main): Invoke test_sys_wait_macros.
28444
28445 2010-09-25  Simon Josefsson  <simon@josefsson.org>
28446
28447         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
28448         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
28449         sure Windows sockets are working before calling getaddrinfo.
28450         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
28451         * doc/gnulib.texi (Windows sockets): Fix typo.
28452
28453 2010-09-25  Bruno Haible  <bruno@clisp.org>
28454
28455         Tests for module 'regex-quote'.
28456         * modules/regex-quote-tests: New file.
28457         * tests/test-regex-quote.c: New file.
28458
28459         New module 'regex-quote'.
28460         * lib/regex-quote.h: New file.
28461         * lib/regex-quote.c: New file.
28462         * modules/regex-quote: New file.
28463         Suggested by Reuben Thomas <rrt@sc3d.org>.
28464
28465 2010-09-24  Bruno Haible  <bruno@clisp.org>
28466
28467         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
28468         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
28469
28470 2010-09-23  Bruno Haible  <bruno@clisp.org>
28471
28472         setenv: Relax license.
28473         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
28474         Blake.
28475         Requested by Eric Blake.
28476
28477 2010-09-22  Bruno Haible  <bruno@clisp.org>
28478
28479         termios: Relax license.
28480         * modules/termios (License): Change to LGPLv2+.
28481         Requested by Eric Blake.
28482
28483 2010-09-22  Bruno Haible  <bruno@clisp.org>
28484
28485         threadlib: Allow the package to change the default to 'no'.
28486         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
28487         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
28488         Reported by Paul Eggert.
28489
28490 2010-09-22  Pádraig Brady  <P@draigbrady.com>
28491             Bruno Haible  <bruno@clisp.org>
28492
28493         Fix endless loop in mbmemcasecoll.
28494         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
28495         byte.
28496         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
28497
28498 2010-09-22  Bruno Haible  <bruno@clisp.org>
28499
28500         Tests for module 'memcoll'.
28501         * modules/memcoll-tests: New file.
28502         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
28503
28504         memcoll, xmemcoll: Clarify size vs. length.
28505         * modules/memcoll.c (memcoll0): Clarify specification.
28506         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
28507         passed to collate_error.
28508
28509 2010-09-22  Bruno Haible  <bruno@clisp.org>
28510
28511         Tests for module 'memcasecmp'.
28512         * modules/memcasecmp-tests: New file.
28513         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
28514
28515 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
28516
28517         * lib/pthread.in.h: Add split double-inclusion guard, and include
28518         system <pthread.h> if there is one.  Use @@-style as in other
28519         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
28520         pthread.h doesn't.
28521         (pthread_mutexattr_destroy, pthread_mutexattr_init):
28522         (pthread_mutexattr_settype, pthread_mutex_trylock):
28523         New static inline functions, if there's no system <pthread.h>.
28524         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
28525         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
28526         Approximate with mutexes if the system lacks spinlocks, as in
28527         MacOS.
28528         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
28529         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
28530         @@-style.  Check for spinlocks separately.
28531         (gl_PTHREAD_DEFAULTS): New macro.
28532         * modules/pthread: Redo to use a more typical style for in.h files.
28533
28534 2010-09-21  Eric Blake  <eblake@redhat.com>
28535
28536         net_if: enhance tests
28537         * tests/test-net_if.c (main): Move signature checks earlier.
28538         Print failures to stderr.
28539         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
28540         Document the bug that we do not yet fix.
28541
28542 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
28543
28544         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
28545         about gnulib, not GSS.
28546
28547 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
28548
28549         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
28550         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
28551         for Emacs.
28552         * build-aux/pmccabe2html: Make Makefile.am example code more
28553         cut-and-paste friendly.
28554
28555 2010-09-21  Simon Josefsson  <simon@josefsson.org>
28556
28557         * tests/test-net_if.c: New file.
28558         * modules/net_if-tests: New file.
28559
28560 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
28561
28562         pthread: add pthread_spin_destroy
28563         * lib/pthread.in.h (pthread_spin_destroy): New function.
28564
28565 2010-09-19  Bruno Haible  <bruno@clisp.org>
28566
28567         gnulib-tool: Fix --help output.
28568         * gnulib-tool (func_usage): Fix help message.
28569         Reported by Reuben Thomas <rrt@sc3d.org>.
28570
28571 2010-09-18  Jim Meyering  <meyering@redhat.com>
28572
28573         maint.mk: avoid unexpanded \n in two diagnostics
28574         * top/maint.mk (sc_prohibit_always_true_header_tests):
28575         Don't use a literal \n in a halt=... assignment.  It would not be
28576         expanded, and the two \n bytes would appear in the diagnostic output
28577         rather than the desired newline.  Use halt=$$(printf ... instead.
28578         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
28579
28580 2010-09-18  Bruno Haible  <bruno@clisp.org>
28581
28582         netinet_in: Doc tweak.
28583         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
28584         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28585
28586 2010-09-18  Jim Meyering  <meyering@redhat.com>
28587
28588         init.sh: correct an outdated comment
28589         * tests/init.sh (create_exe_shims_):  s/function/alias/
28590
28591         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
28592         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
28593         a file named "*.exe" is removed between the glob expansion and the
28594         processing of that oddly named file.
28595
28596 2010-09-17  Eric Blake  <eblake@redhat.com>
28597
28598         mirbsd: add some more support
28599         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
28600         in BSD family.
28601         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
28602         devices as OpenBSD.
28603         * m4/host-os.m4 (mirbsd): Add MirBSD.
28604
28605         tests: fix unportable assumption on sys/wait.h
28606         * tests/test-sys_wait.c (main): Relax test.
28607         * tests/test-stdlib.c (main): Likewise.
28608
28609         init.sh: accommodate directory with no .exes
28610         * tests/init.sh: Accomodate directory containing only scripts.
28611
28612         tests: avoid compiler warning
28613         * tests/test-stdlib.c (main): Use the variable.
28614
28615         fdutimens, fdutimensat: update signature, again
28616         * lib/utimens.h (gl_futimens): Delete, and move signature...
28617         (fdutimens): ...here.
28618         (fdutimensat): Rearrange signature.
28619         (lutimensat): Rename variable for clarity.
28620         * lib/fdutimensat.c (fdutimensat): Update signature.
28621         * lib/utimens.c (fdutimens): Likewise.
28622         (gl_futimens): Delete.
28623         (utimens, lutimens): Update callers.
28624         * lib/futimens.c (futimens): Likewise.
28625         * tests/test-fdutimensat.c: Likewise.
28626         * tests/test-utimens.c: Likewise.
28627         * tests/test-futimens.h: Update comment.
28628         * NEWS: Mention this.
28629         Suggested by Paul Eggert.
28630
28631 2010-09-17  Bruno Haible  <bruno@clisp.org>
28632
28633         Take over the maintenance of some older macros from Autoconf.
28634         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
28635         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
28636         GNU Autoconf.
28637         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
28638         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
28639
28640 2010-09-17  Eric Blake  <eblake@redhat.com>
28641
28642         fdutimensat: drop atflag validation
28643         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
28644         with valid fd, to close a race scenario where futimens is
28645         unsupported and FILE was replaced by a symlink.
28646         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
28647         accordingly.
28648         Suggested by Paul Eggert.
28649
28650 2010-09-16  Bruno Haible  <bruno@clisp.org>
28651
28652         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
28653         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
28654
28655 2010-09-16  Bruno Haible  <bruno@clisp.org>
28656
28657         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
28658         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
28659         login_tty exists.
28660         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28661
28662 2010-09-16  Bruno Haible  <bruno@clisp.org>
28663
28664         login_tty: Make the replacement code work on BSD systems.
28665         * lib/login_tty.c: Include <sys/ioctl.h>.
28666         (login_tty): Use ioctl TIOCSCTTY when available.
28667         * modules/login_tty (Depends-on): Add sys_ioctl.
28668         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28669
28670 2010-09-16  Bruno Haible  <bruno@clisp.org>
28671
28672         login_tty: Stricter unit test.
28673         * modules/login_tty-tests (Depends-on): Add tcgetsid.
28674         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
28675         and tcgetsid() after login_tty.
28676         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28677
28678 2010-09-16  Bruno Haible  <bruno@clisp.org>
28679
28680         New module 'tcgetsid'.
28681         * lib/tcgetsid.c: New file.
28682         * m4/tcgetsid.m4: New file.
28683         * modules/tcgetsid: New file.
28684         * modules/termios (Depends-on): Add c++defs, warn-on-use.
28685         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
28686         GNULIB_TCGETSID, HAVE_TCGETSID.
28687         * lib/termios.in.h: Include <sys/types.h>.
28688         (tcgetsid): New declaration.
28689         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
28690         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
28691         * doc/posix-functions/tcgetsid.texi: Mention the new module.
28692         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
28693
28694 2010-09-16  Bruno Haible  <bruno@clisp.org>
28695
28696         Tests for module 'termios'.
28697         * modules/termios-c++-tests: New file.
28698         * modules/termios-tests: New file.
28699         * tests/test-termios-c++.cc: New file.
28700         * tests/test-termios.c: New file.
28701
28702         New module 'termios'.
28703         * modules/termios: New file.
28704         * lib/termios.in.h: New file.
28705         * m4/termios_h.m4: New file.
28706         * doc/posix-headers/termios.texi: Mention the new module.
28707
28708 2010-09-16  Eric Blake  <eblake@redhat.com>
28709
28710         fdutimensat: add an atflag parameter
28711         * lib/fdutimensat.c (fdutimensat): Add new parameter.
28712         * lib/utimens.h (fdutimensat): Update prototype.
28713         * tests/test-fdutimensat.c: Adjust test to match.
28714         * NEWS: Document the change.
28715         Suggested by Paul Eggert.
28716
28717 2010-09-16  Bruno Haible  <bruno@clisp.org>
28718
28719         Fix typos in comments.
28720         * lib/striconveh.h: Fix typo in comment.
28721         * lib/login_tty.c (login_tty): Likewise.
28722
28723 2010-09-15  Bruno Haible  <bruno@clisp.org>
28724
28725         stdlib: clarify MirBSD WEXITSTATUS bug
28726         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
28727         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28728
28729 2010-09-15  Eric Blake  <eblake@redhat.com>
28730
28731         stdlib: work around MirBSD WEXITSTATUS bug
28732         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
28733         * modules/stdlib (Depends-on): Add sys_wait.
28734         * tests/test-sys_wait.c (main): Enhance test.
28735         * tests/test-stdlib.c (main): Likewise.
28736         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
28737
28738         docs: mention MacOS issue with WEXITSTATUS(constant)
28739         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
28740         issue.
28741         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
28742
28743         strnlen: add tests
28744         * modules/strnlen-tests: New file.
28745         * tests/test-strnlen.c: Likewise.
28746
28747 2010-09-14  Bruno Haible  <bruno@clisp.org>
28748
28749         unistr/base: Avoid link errors when module 'libunistring' is also used.
28750         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
28751         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
28752         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
28753         Declare also when HAVE_LIBUNISTRING is set.
28754         Reported by Pádraig Brady <P@draigbrady.com>.
28755
28756 2010-09-14  Eric Blake  <eblake@redhat.com>
28757
28758         test-rawmemchr: make more robust
28759         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
28760         (Depends-on, configure.ac): Add needed prerequisites to use it.
28761         * modules/memchr-tests (Files, Depends-on, configure.ac):
28762         Likewise, to avoid implicit reliance on memchr module prereqs.
28763         * tests/test-memchr.c (main): Ensure proper masking.
28764         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
28765         reads.
28766
28767         memchr: detect glibc Alpha bug
28768         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
28769         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
28770         Alpha.
28771         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
28772         * tests/test-memchr.c (main): Enhance test.
28773         Reported by Nelson H. F. Beebe.
28774
28775 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28776
28777         fts, getcwd, glob: audit for dirfd returning -1
28778         * lib/fts.c (opendir): Remove #define; no longer used.
28779         (opendirat): New arg PDIR_FD.  All callers changed.
28780         (fts_build, _opendir2): Use new opendirat to avoid the need for
28781         dirfd, or for checking whether dirfd returns a negative value.
28782         Don't use opendir; always use openat followed by fdopendir.
28783         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
28784         it.
28785         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
28786         returns -1 here.
28787         * modules/fts (Depends-on): Remove dirfd.
28788         * modules/getcwd (Depends-on): Likewise.
28789
28790 2010-09-13  Eric Blake  <eblake@redhat.com>
28791
28792         float: fix broken MirBSD header
28793         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
28794         * doc/posix-headers/float.texi (float.h): Document it.
28795
28796 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
28797
28798         fts: use O_NOFOLLOW to avoid race condition when opening a directory
28799         * lib/fts.c (opendirat): New arg extra_flags.
28800         (__opendir2): Use it to avoid following symlinks when opening
28801         a directory, if symlinks are not supposed to be followed.  See
28802         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
28803
28804         fdopendir: preserve argument fd before returning
28805         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
28806         (fdopendir_with_dup, fd_clone_opendir): New static functions.
28807         (fdopendir): Use them, arranging for FD to be open to the same
28808         directory that it was when it started.  (It might be temporarily
28809         closed while fdopendir is running, so this not thread- or
28810         signal-safe.)  Be careful to do the right thing even when file
28811         descriptors are scarce and dup fails with errno == EMFILE.  See
28812         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
28813
28814 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
28815
28816         regex: Pass the system regex if its only problem is 32-bit regoff_t.
28817         * NEWS: Document change.
28818         * m4/regex.m4: Disable test for regoff_t size.
28819
28820 2010-09-13  Jim Meyering  <meyering@redhat.com>
28821
28822         fts: don't operate on an invalid file descriptor after failed dup
28823         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
28824         negative file descriptor.
28825
28826 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
28827
28828         savedir: add streamsavedir, deprecate fdsavedir
28829         * NEWS: Mention deprecation of fdsavedir.
28830         * lib/savedir.c (streamsavedir): New extern function, whose name
28831         ends in "savedir" to be consistent with the others.  This differs
28832         from savedirstream in that it doesn't close its argument.  The
28833         next version of GNU tar will use this instead of fdsavedir, to
28834         avoid some race conditions and conserve file descriptors.
28835         (savedirstream): Reimplement as a wrapper around streamsavedir.
28836         (fdsavedir): Add a comment deprecating this function.  As far as
28837         I know, only GNU tar used it, and GNU tar doesn't need it any more.
28838         * lib/savedir.h (streamsavedir): New decl.
28839         (fdsavedir): Add a comment deprecating this.
28840
28841 2010-09-10  Bruno Haible  <bruno@clisp.org>
28842
28843         langinfo: Fix last commit.
28844         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
28845         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
28846         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
28847
28848 2010-09-10  Bruno Haible  <bruno@clisp.org>
28849
28850         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
28851         * lib/progreloc.c (O_EXEC): Define fallback.
28852
28853 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
28854
28855         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
28856         * NEWS: Document recent changes to fcntl-h.
28857         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
28858         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
28859         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
28860         Similarly for O_SEARCH; this last was already true, but not documented.
28861         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
28862         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
28863         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
28864         Likewise.
28865         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
28866         is zero, not whether it is defined.
28867         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
28868         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
28869         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
28870
28871 2010-09-10  Bruno Haible  <bruno@clisp.org>
28872
28873         langinfo, nl_langinfo: Fix for IRIX 5.3.
28874         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
28875         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
28876         HAVE_LANGINFO_YESEXPR.
28877         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
28878         HAVE_LANGINFO_YESEXPR.
28879         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
28880         HAVE_LANGINFO_T_FMT_AMPM is 0.
28881         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
28882         HAVE_LANGINFO_YESEXPR is 0.
28883         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
28884         NOEXPR.
28885         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
28886         * doc/posix-functions/nl_langinfo.texi: Likewise.
28887         Reported by Eric Blake.
28888
28889 2010-09-10  Bruno Haible  <bruno@clisp.org>
28890
28891         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
28892         * doc/glibc-functions/login_tty.texi: Mention the include file problem
28893         on FreeBSD 8.0 and OpenBSD 4.6.
28894         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
28895         * m4/pty_h.m4 (gl_PTY_H): Likewise.
28896         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
28897         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
28898         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
28899         ac_includes_default.
28900         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
28901
28902 2010-09-09  Eric Blake  <eblake@redhat.com>
28903
28904         strsignal: work around NetBSD bug
28905         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
28906         * lib/string.in.h (includes): Likewise.
28907         * doc/posix-functions/strsignal.texi (strsignal): Document the
28908         bug.
28909         Reported by Nelson H. F. Beebe.
28910
28911         gnulib-tool: work with NetBSD /bin/sh
28912         * gnulib-tool (func_cache_var, func_cache_lookup_module)
28913         (func_get_description, func_get_comment, func_get_status)
28914         (func_get_notice, func_get_applicability, func_get_filelist)
28915         (func_get_dependencies, func_get_autoconf_early_snippet)
28916         (func_get_autoconf_snippet, func_get_automake_snippet)
28917         (func_get_include_directive, func_get_link_directive)
28918         (func_get_license, func_get_maintainer, func_import): Avoid
28919         shell syntax errors from parsing syntax extensions.
28920
28921 2010-09-09  Bruno Haible  <bruno@clisp.org>
28922
28923         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
28924         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
28925         a reliable way to determine whether the 'alias' command works.
28926
28927 2010-09-08  Jim Meyering  <meyering@redhat.com>
28928
28929         init.sh: penalize a set-x-impaired shell; don't disqualify it
28930         * tests/init.sh: Too many shells corrupt application stderr when
28931         you set -x, so we can't afford to disqualify them, since at least
28932         on Irix-6.5, that would disqualify all bourne shells.
28933         Instead, use a two-pass approach.
28934         On the first pass, try to find a shell that meets the stricter
28935         condition that set -x does not corrupt stderr.
28936         If no shell meets the stricter condition, retest each candidate
28937         shell, but without that extra condition.  Finally, when
28938         VERBOSE=yes is requested and set -x might cause trouble, simply
28939         issue a warning and refrain from enabling debug output.
28940
28941 2010-09-08  Eric Blake  <eblake@redhat.com>
28942
28943         unsetenv: fix OpenBSD bug
28944         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
28945         * doc/posix-functions/unsetenv.texi (unsetenv): Update
28946         documentation.
28947         Reported by Jim Meyering.
28948
28949         strtod: work around IRIX 6.5 bug
28950         * lib/strtod.c (strtod): Reparse number on shorter string if
28951         exponent parse was invalid.
28952         * tests/test-strtod.c (main): Add check for "0x1p 2".
28953         Reported by Tom G. Christensen.
28954
28955         getopt: optimize previous patch
28956         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
28957         empty variable.  Speed up awk script.
28958         Reported by Paolo Bonzini.
28959
28960 2010-09-08  Jim Meyering  <meyering@redhat.com>
28961
28962         test.sh: disqualify shells for which set -x corrupts stderr
28963         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
28964         and OpenBSD 4.7.  They make it so with "set -x", environment settings
28965         appear in stderr output.  For example, this command:
28966             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
28967         prints "P=1" on those two systems:
28968
28969 2010-09-08  Bruno Haible  <bruno@clisp.org>
28970
28971         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
28972         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
28973         commands, because some shells ignore redirections when there is an
28974         error in the command lookup.
28975         Reported by Eric Blake.
28976
28977 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
28978
28979         * lib/regex.h: Fix a mention of `regex_compile' (should be
28980         `re_compile_pattern').
28981         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
28982         (re_set_registers): Correct name of parameter in comment.
28983
28984         * doc/regex.texi: Add documentation for missing syntax flags.
28985         Remove commented-out documentation of defunct syntax option
28986         RE_NO_EMPTY_ALTS.
28987         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
28988         Add documentation of re_set_registers.
28989         Document trick to re-use a pattern buffer by setting fastmap manually.
28990         Update documentation of struct re_pattern_buffer per public members.
28991         Uncomment documentation of equivalence class operators and
28992         collating symbol operators, since they are now implemented,
28993         Explain leftmost-longest matching in relation to alternatives.
28994         Tidy documentation of substring matching.
28995         Remove POSIX documentation, which is done better in
28996         glibc, and refer the reader there. Keep BSD API documentation, as
28997         that is not readily available elsewhere.
28998
28999 2010-09-07  Eric Blake  <eblake@redhat.com>
29000
29001         getopt: handle POSIXLY_CORRECT set but not exported
29002         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
29003         export state of POSIXLY_CORRECT, due to bash set -o posix.
29004         Reported by Dustin J. Mitchell.
29005
29006 2010-09-05  Bruno Haible  <bruno@clisp.org>
29007
29008         gnulib-tool: Highlight the changed options.
29009         * gnulib-tool (func_usage): Display the --import, --add-import,
29010         --remove-import explanations in bold font.
29011
29012 2010-09-06  Karl Berry  <karl@gnu.org>
29013
29014         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
29015
29016 2010-09-05  Bruno Haible  <bruno@clisp.org>
29017
29018         uniwidth/width: Update comment.
29019         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
29020         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
29021
29022 2010-09-05  Bruno Haible  <bruno@clisp.org>
29023
29024         isinf, isnan: Relax license.
29025         * modules/isinf (License): Change from GPL to LGPL, with consent from
29026         Ben Pfaff.
29027         * modules/isnan (License): Likewise.
29028         Requested by Ludovic Courtès.
29029
29030 2010-09-04  Bruno Haible  <bruno@clisp.org>
29031
29032         gnulib-tool: Help migration from --import to --add-import or --update.
29033         * gnulib-tool: Emit a verbose error message when --import is used
29034         without any module name.
29035
29036 2010-09-04  Bruno Haible  <bruno@clisp.org>
29037
29038         Update doc about gnulib-tool.
29039         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
29040         'gnulib-tool --update' in more detail.
29041         Reported by Eric Blake.
29042
29043 2010-09-04  Bruno Haible  <bruno@clisp.org>
29044
29045         gnulib-tool: Change --import. New options --add/remove-import.
29046         * gnulib-tool: New options --add-import, --remove-import.
29047         (func_usage): Document them.
29048         (have_associative): Define always.
29049         (func_import): In import mode, don't merge the specified settings with
29050         the cached settings. Implement remove-import mode.
29051         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
29052         Explain when to use them versus --import.
29053         (Simple update): Use --add-import instead of --import.
29054         * NEWS: Mention the change.
29055
29056 2010-09-04  Bruno Haible  <bruno@clisp.org>
29057
29058         * doc/gnulib-tool.texi (Initial import): Update paragraph about
29059         separate gnulib.mk.
29060
29061 2010-09-04  Bruno Haible  <bruno@clisp.org>
29062
29063         gnulib-tool: Don't talk about CVS any more.
29064         * gnulib-tool (func_usage, func_import): Write "version control"
29065         instead of CVS.
29066
29067 2010-09-04  Jim Meyering  <meyering@redhat.com>
29068
29069         maint.mk: avoid obscure sc_copyright_check failure in coreutils
29070         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
29071         false positives (whose names may be ill-chosen) when searching
29072         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
29073         would cause a false-positive.
29074
29075         avoid coreutils "make distcheck" failure
29076         Coreutils tests with an absolute build directory name that contains
29077         a space.  Not quoting this directory name caused a failure.
29078         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
29079         * tests/test-vc-list-files-cvs.sh: Likewise.
29080
29081 2010-09-04  Bruno Haible  <bruno@clisp.org>
29082
29083         gnulib-tool: Avoid error when run in a package without Makefile.am.
29084         * gnulib-tool: When collecting the m4dirs in a package that does not
29085         have a Makefile.am, eliminate those directories that contain no
29086         gnulib-cache.m4. Fix expression that counts these directories.
29087
29088 2010-09-04  Bruno Haible  <bruno@clisp.org>
29089
29090         update-copyright test: Improve output when perl is missing or too old.
29091         * tests/test-update-copyright.sh: Move test of Perl version down after
29092         the test whether Perl exists. Provide an explanation relating Perl's
29093         error message to Automake's SKIP: message.
29094
29095 2010-09-04  Bruno Haible  <bruno@clisp.org>
29096
29097         Don't augment PATH in TESTS_ENVIRONMENT.
29098         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
29099         set abs_aux_dir instead of augmenting PATH.
29100         * modules/vc-list-files-tests (Makefile.am): Likewise.
29101         * tests/test-update-copyright.sh: Augment PATH here.
29102         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
29103         path_prepend_.
29104         * tests/test-vc-list-files-git.sh: Likewise.
29105
29106 2010-09-04  Jim Meyering  <meyering@redhat.com>
29107
29108         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
29109         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
29110
29111 2010-09-04  Bruno Haible  <bruno@clisp.org>
29112
29113         strdup: Fix compilation error in C++ mode.
29114         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
29115         the macro.
29116
29117 2010-09-04  Bruno Haible  <bruno@clisp.org>
29118
29119         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
29120         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
29121         macro into a function.
29122         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
29123
29124 2010-09-04  Bruno Haible  <bruno@clisp.org>
29125
29126         Set PATH_SEPARATOR the same way autoconf does.
29127         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
29128         the value of PATH_SEPARATOR the same way autoconf-generated configure
29129         scripts do.
29130         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
29131         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
29132
29133 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
29134
29135         Set PATH_SEPARATOR the same way autoconf does.
29136         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
29137         the same way autoconf-generated configure scripts do.
29138         * posix-modules: Likewise.
29139
29140 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
29141
29142         hash: fix safe_hasher const typo
29143         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
29144         const; otherwise, there is a type error later.
29145
29146 2010-09-02  Jim Meyering  <meyering@redhat.com>
29147
29148         test-update-copyright.sh: require perl 5.8.0
29149         * tests/test-update-copyright.sh: Require 5.8.0,
29150         which Tom G. Christensen has confirmed is adequate,
29151         while 5.6.1 is not.
29152
29153 2010-09-02  Eric Blake  <eblake@redhat.com>
29154
29155         tests: init.sh improvements for re-exec'ing with zsh
29156         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
29157         -vx through shell re-exec.
29158         Reported by Tom G. Christensen.
29159
29160         wctype: fix typo in previous commit
29161         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
29162         Reported by Ludovic Courtès.
29163
29164 2010-09-02  Jim Meyering  <meyering@redhat.com>
29165
29166         test-update-copyright.sh: skip test if Perl is too old
29167         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
29168         Reported by Tom G. Christensen.
29169
29170 2010-09-02  Bruno Haible  <bruno@clisp.org>
29171
29172         wctype: Avoid compilation error on IRIX 6.5.30.
29173         * lib/wctype.in.h (iswblank): Declare with a replacement if
29174         REPLACE_ISWBLANK is set.
29175         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
29176         declared. Set REPLACE_ISWBLANK.
29177         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
29178         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
29179         * doc/posix-headers/wctype.texi: Likewise.
29180         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
29181
29182 2010-09-01  Bruno Haible  <bruno@clisp.org>
29183
29184         New module 'socketlib'.
29185         * modules/socketlib: New file.
29186         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
29187         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
29188         * modules/sockets (Depends-on): Add socketlib.
29189         Suggested by Sam Steingold <sds@gnu.org>.
29190
29191 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
29192
29193         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
29194
29195         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
29196         when one needs search access to a directory but not read access.
29197         On systems where it is available, it works in some cases where
29198         O_RDONLY does not, namely on directories that are searchable but
29199         not readable, and which need only to be searchable.  If O_SEARCH
29200         is not available, fall back to the traditional method of using
29201         O_RDONLY.
29202
29203         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
29204         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
29205         when opening a directory that needs only to be searchable.
29206         * lib/chdir-safer.c (chdir_no_follow): Likewise.
29207         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
29208         * lib/openat-proc.c (openat_proc_name): Likewise.
29209         * lib/openat.c (openat_needs_fchdir): Likewise.
29210         * lib/save-cwd.c (save_cwd): Likewise.
29211         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
29212
29213 2010-08-28  Bruno Haible  <bruno@clisp.org>
29214
29215         New module 'host-cpu-c-abi'.
29216         * modules/host-cpu-c-abi: New file.
29217         * m4/host-cpu-c-abi.m4: New file, based on part of
29218         clisp/src/m4/general.m4.
29219         Requested by Sam Steingold <sds@gnu.org>.
29220
29221 2010-08-31  Eric Blake  <eblake@redhat.com>
29222         and Jim Meyering  <meyering@redhat.com>
29223
29224         hash: factor, and guard against misbehaving hasher function
29225         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
29226         of table->hasher's return value.  Also protect against a hash value
29227         so large that adding it to table->bucket results in a NULL pointer.
29228         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
29229         Use it in place of open-coded check-and-abort.
29230
29231 2010-08-30  Bruno Haible  <bruno@clisp.org>
29232
29233         hash: silence spurious clang warning
29234         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
29235         Reported by Eric Blake.
29236
29237 2010-08-30  Eric Blake  <eblake@redhat.com>
29238
29239         strstr, memmem, strcasestr: avoid leaked shell message
29240         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
29241         FreeBSD.
29242         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
29243         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
29244
29245         tests: silence clang warning
29246         * tests/test-malloca.c (do_allocation): Avoid dead store.
29247
29248 2010-08-29  Bruno Haible  <bruno@clisp.org>
29249
29250         gettext: Fix recent mistake.
29251         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
29252
29253 2010-08-29  Bruno Haible  <bruno@clisp.org>
29254
29255         selinux-h: Offer a --without-selinux option.
29256         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
29257         --without-selinux was specified, skip all tests and define
29258         HAVE_SELINUX_SELINUX_H to 0.
29259         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
29260         set LIB_SELINUX to empty.
29261         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
29262         gl_LIBSELINUX. If --without-selinux was specified, replace
29263         selinux/context.h.
29264         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
29265
29266 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29267             Bruno Haible  <bruno@clisp.org>
29268
29269         Make the module 'realloc-gnu' work again on AIX and OSF/1.
29270         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
29271         of HAVE_REALLOC.
29272         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
29273         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
29274         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
29275         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
29276
29277 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29278             Bruno Haible  <bruno@clisp.org>
29279
29280         Make the module 'calloc-gnu' work again on AIX and OSF/1.
29281         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
29282         HAVE_CALLOC.
29283         * lib/xmalloc.c: Update accordingly.
29284         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
29285         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
29286         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
29287
29288 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29289             Bruno Haible  <bruno@clisp.org>
29290
29291         Make the module 'malloc-gnu' work again on AIX and OSF/1.
29292         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
29293         HAVE_MALLOC.
29294         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
29295         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
29296         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
29297
29298 2010-08-29  Bruno Haible  <bruno@clisp.org>
29299
29300         Update modules list.
29301         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
29302         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
29303         (String handling <string.h>): Add astrxfrm.
29304         (File system functions): Add readlinkat.
29305
29306 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29307
29308         Tests for module 'realloc-gnu'.
29309         * modules/realloc-gnu-tests: New file.
29310         * tests/test-realloc-gnu.c: New file.
29311
29312         Tests for module 'calloc-gnu'.
29313         * modules/calloc-gnu-tests: New file.
29314         * tests/test-calloc-gnu.c: New file.
29315
29316         Tests for module 'malloc-gnu'.
29317         * modules/malloc-gnu-tests: New file.
29318         * tests/test-malloc-gnu.c: New file.
29319
29320 2010-08-28  Bruno Haible  <bruno@clisp.org>
29321
29322         Rename module 'realloc' -> 'realloc-gnu'.
29323         * modules/realloc-gnu: New file, copied from modules/realloc.
29324         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
29325         obsolete.
29326         * modules/mgetgroups (Depends-on): Update.
29327         * doc/posix-functions/realloc.texi: Update.
29328         * NEWS: Mention the change.
29329
29330         Rename module 'calloc' -> 'calloc-gnu'.
29331         * modules/calloc-gnu: New file, copied from modules/calloc.
29332         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
29333         obsolete.
29334         * doc/posix-functions/calloc.texi: Update.
29335         * NEWS: Mention the change.
29336
29337         Rename module 'malloc' -> 'malloc-gnu'.
29338         * modules/malloc-gnu: New file, copied from modules/malloc.
29339         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
29340         obsolete.
29341         * modules/argp (Depends-on): Update.
29342         * modules/regex (Depends-on): Update.
29343         * doc/posix-functions/malloc.texi: Update.
29344         * NEWS: Mention the change.
29345
29346 2010-08-28  Eric Blake  <eblake@redhat.com>
29347
29348         pread, pwrite: add missing dependency
29349         * modules/pread (Depends-on): Add extensions.
29350         * modules/pwrite (Depends-on): Likewise.
29351
29352 2010-08-28  Bruno Haible  <bruno@clisp.org>
29353
29354         unistr/u*-strchr: Fix tests dependencies.
29355         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
29356         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
29357         Reported by Ian Beckwith <ianb@erislabs.net>.
29358
29359 2010-08-28  Bruno Haible  <bruno@clisp.org>
29360
29361         read-file: Don't occupy too much unused memory.
29362         * lib/read-file.c (fread_file): Shrink the buffer at the end.
29363
29364 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
29365             Eric Blake  <eblake@redhat.com>
29366             Bruno Haible  <bruno@clisp.org>
29367
29368         read-file: Avoid memory reallocations with regular files.
29369         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
29370         (fread_file): With regular files, use the remaining length as the
29371         initial buffer size.  Check against overflow.
29372         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
29373         sys_stat.
29374
29375 2010-08-28  Bruno Haible  <bruno@clisp.org>
29376
29377         ftello: Relax license.
29378         * modules/ftello (License): Relax to LGPLv2+.
29379         Reported by Eric Blake.
29380
29381 2010-08-28  Bruno Haible  <bruno@clisp.org>
29382
29383         Avoid relocwrapper link errors due to gnulib replacement functions.
29384         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
29385         function.
29386         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29387
29388 2010-08-28  Bruno Haible  <bruno@clisp.org>
29389
29390         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
29391         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
29392         defined.
29393         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
29394         Suggested by Eric Blake.
29395
29396 2010-08-28  Bruno Haible  <bruno@clisp.org>
29397
29398         sys_socket, netdb: Ensure socklen_t gets defined.
29399         * modules/sys_socket (Depends-on): Add socklen.
29400         * modules/netdb (Depends-on): Likewise.
29401         * modules/getaddrinfo (Depends-on): Remove socklen.
29402         * modules/getsockopt (Depends-on): Likewise.
29403         * modules/setsockopt (Depends-on): Likewise.
29404         * tests/test-sys_socket.c: Check that socklen_t is defined.
29405         * tests/test-netdb.c: Likewise.
29406         * m4/socklen.m4: Update comments.
29407         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29408
29409 2010-08-27  Eric Blake  <eblake@redhat.com>
29410
29411         login_tty: add missing dependency
29412         * modules/login_tty (Depends-on): Add pty.
29413
29414 2010-08-26  Eric Blake  <eblake@redhat.com>
29415
29416         lib-symbol-versions: fix m4 quoting
29417         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
29418         format for AC_LINK_IFELSE.
29419
29420         glob: fix compile test
29421         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
29422
29423         btowc: fix missing file
29424         * modules/btowc (Files): Also ship locale-fr.m4.
29425
29426         lseek: fix link test
29427         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
29428         AC_LINK_IFELSE.
29429
29430         include_next: silence autoconf 2.68 warning
29431         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
29432         AC_COMPILE_IFELSE as special.
29433         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
29434         autoconf < 2.68.
29435
29436         acl: fix compilation test
29437         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
29438         AC_COMPILE_IFELSE.
29439
29440 2010-08-26  Bruno Haible  <bruno@clisp.org>
29441
29442         Modernize AC_TRY_RUN invocations.
29443         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
29444         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
29445         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
29446         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
29447         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
29448         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
29449         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
29450         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
29451         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29452         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29453         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
29454         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
29455         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
29456         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
29457         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
29458         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
29459         gl_MBRLEN_NUL_RETVAL): Likewise.
29460         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
29461         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
29462         Likewise.
29463         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
29464         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
29465         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
29466         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
29467         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
29468         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
29469         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
29470         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
29471         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
29472         Likewise.
29473         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
29474         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
29475         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
29476         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
29477         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29478         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
29479         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
29480         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
29481         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
29482         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
29483
29484 2010-08-26  Bruno Haible  <bruno@clisp.org>
29485
29486         Modernize AC_TRY_LINK invocations.
29487         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
29488         AC_TRY_LINK.
29489         * m4/argp.m4 (gl_ARGP): Likewise.
29490         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
29491         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
29492         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
29493         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
29494         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
29495         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
29496         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
29497         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
29498         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
29499         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
29500         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
29501         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
29502         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
29503         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
29504         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
29505         * m4/hostent.m4 (gl_HOSTENT): Likewise.
29506         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
29507         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
29508         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
29509         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
29510         Likewise.
29511         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
29512         Likewise.
29513         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
29514         Likewise.
29515         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
29516         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
29517         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
29518         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
29519         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
29520         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
29521         * m4/servent.m4 (gl_SERVENT): Likewise.
29522         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
29523         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
29524         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
29525         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
29526         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
29527         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
29528         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
29529         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
29530         * modules/tsearch-tests (configure.ac): Likewise.
29531
29532 2010-08-26  Bruno Haible  <bruno@clisp.org>
29533
29534         Modernize AC_TRY_COMPILE invocations.
29535         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
29536         AC_TRY_COMPILE.
29537         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
29538         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
29539         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
29540         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
29541         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
29542         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
29543         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
29544         * m4/lock.m4 (gl_LOCK): Likewise.
29545         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
29546         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
29547         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
29548         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
29549         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
29550         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
29551         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
29552         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
29553         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
29554         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
29555         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
29556         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
29557         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
29558         extraneous semicolon.
29559
29560 2010-08-26  Jim Meyering  <meyering@redhat.com>
29561
29562         stat-time: relax license LGPL
29563         * modules/stat-time (License): Change from GPL to LGPL,
29564         with consent from all contributors, for use in libguile.
29565         Requested by Ludovic Courtès.
29566
29567 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
29568
29569         poll: return immediately on POLLHUP.
29570         * lib/poll.c (poll): Always set timeout before wait_timeout is
29571         computed.
29572
29573 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29574
29575         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
29576         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
29577         rmdir ("dir/.//"), unlinkat.
29578
29579 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
29580
29581         stdbool: avoid spurious failure with modern xlc
29582         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
29583
29584 2010-08-24  Bruno Haible  <bruno@clisp.org>
29585
29586         getloadavg: simplify code
29587         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
29588         gl_have_func. Update comments.
29589
29590 2010-08-24  Eric Blake  <eblake@redhat.com>
29591
29592         getloadavg: don't define SVR4 on cygwin
29593         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
29594         only define SVR4 when -lkvm is required.
29595         Reported by Yaakov Selkowitz.
29596
29597 2010-08-24  Bruno Haible  <bruno@clisp.org>
29598
29599         priv-set: fix comment
29600         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
29601
29602 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
29603
29604         priv-set: fix comments
29605         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
29606         to match code, as suggested by David Bartley in:
29607         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
29608
29609 2010-08-23  Eric Blake  <eblake@redhat.com>
29610
29611         stdbool: avoid rejecting clang
29612         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
29613         * tests/test-stdbool.c: Enable more tests if using the system
29614         <stdbool.h> instead of the gnulib replacement.
29615         (main): Move xlc bug test to a runtime test for all compilers.
29616         Reported by Anders Kaseorg.
29617
29618         argz: fix shell quoting issue
29619         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
29620         Reported by Charles Wilson.
29621
29622 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
29623             Erik Faye-Lund <kusmabite@gmail.com>
29624
29625         poll, select: handle ERROR_BROKEN_PIPE.
29626         * lib/poll.c (win32_compute_revents): Return POLLHUP when
29627         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
29628         * lib/select.c (win32_compute_revents): Do not mark a pipe
29629         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
29630
29631 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
29632
29633         fts: allow compilation with C++
29634         * lib/fts_.h: Specify extern "C" linkage with C++.
29635
29636 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29637
29638         Fix gnulib-tool sed script de-commentation for AIX sed.
29639         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
29640         sed.
29641
29642 2010-08-17  Eric Blake  <eblake@redhat.com>
29643
29644         test-stddef: test for (some) offsetof bugs
29645         * tests/test-stddef.c: Enhance test to ensure correct type of
29646         offsetof.
29647         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
29648         that we are not fixing at this time.
29649
29650 2010-08-15  Bruno Haible  <bruno@clisp.org>
29651
29652         stpncpy: Allow stpncpy to be defined as a macro.
29653         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
29654         if it's already correctly declared.
29655         * lib/string.in.h (stpncpy): Undefine before redefining.
29656         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
29657
29658 2010-08-14  Bruno Haible  <bruno@clisp.org>
29659
29660         Rename module 'memxfrm' to 'amemxfrm'.
29661         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
29662         (amemxfrm): Renamed from memxfrm.
29663         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
29664         (amemxfrm): Renamed from memxfrm.
29665         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
29666         * NEWS: Mention the change.
29667         * MODULES.html.sh (String handling <string.h>): Update.
29668         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
29669         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
29670         * lib/unicase/u16-casexfrm.c: Likewise.
29671         * lib/unicase/u32-casexfrm.c: Likewise.
29672         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
29673         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
29674         * lib/uninorm/u16-normxfrm.c: Likewise.
29675         * lib/uninorm/u32-normxfrm.c: Likewise.
29676         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
29677         memxfrm.
29678         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
29679         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
29680         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
29681         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
29682         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
29683         Suggested by Paul Eggert.
29684
29685 2010-08-14  Bruno Haible  <bruno@clisp.org>
29686
29687         Tests for module 'astrxfrm'.
29688         * modules/astrxfrm-tests: New file.
29689         * tests/test-astrxfrm.c: New file.
29690
29691         New module 'astrxfrm'.
29692         * lib/astrxfrm.h: New file.
29693         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
29694         * modules/astrxfrm: New file.
29695
29696 2010-08-14  Reuben Thomas <rrt@sc3d.org>
29697
29698         regex: Tweak doc.
29699         * doc/regex.texi (Overview): Don't mention regex.c.
29700         (GNU Regular Expression Compiling): Likewise.
29701         (Match-end-of-line Operator): Mention 'not_eol'.
29702
29703 2010-08-14  Brian Gough  <bjg@gnu.org>
29704             Bruno Haible  <bruno@clisp.org>
29705
29706         git-merge-changelog: add doc relating to use with bzr and hg.
29707         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
29708
29709 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
29710
29711         pthread: fix pthread.h creation for srcdir != builddir
29712         * modules/pthread (Makefile.am): Fix the rule to work also in a
29713         non-srcdir build.
29714
29715 2010-08-13  Karl Berry  <karl@gnu.org>
29716
29717         * doc/regex.texi (Predefined Syntaxes): @smallexample.
29718         * doc/posix-*/*: force line break before @url of POSIX
29719         specifications.
29720         Suggested by Werner Lemberg.
29721
29722 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
29723
29724         strtod: fix const diagnostic
29725         * lib/strtod.c (strtod): Don't assign const char * to char *,
29726         as this elicits a warning from GCC when warnings are enabled.
29727
29728 2010-08-10  Pádraig Brady <P@draigbrady.com>
29729         and Eric Blake  <eblake@redhat.com>
29730
29731         copy-acl: ignore ENOTSUP on HP-UX
29732         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
29733         so that it is available for HP-UX.
29734         * lib/copy-acl.c (qcopy_acl): Use it.
29735         Reported by Patrick M. Callahan.
29736
29737 2010-08-10  Eric Blake  <eblake@redhat.com>
29738
29739         open, chown: relax license
29740         * modules/open (License): Change to LGPLv2+, with consent by all
29741         authors, for use in augeas.
29742         * modules/chown (License): Likewise.
29743         * modules/lchown (Likewise): Likewise.
29744         Requested by Adam Stokes.
29745
29746 2010-08-09  Karl Berry  <karl@gnu.org>
29747
29748         * build-aux/ar-lib: new file, import from Automake.
29749         * config/srclist.txt: autocheck for updates.
29750
29751 2010-08-09  Eric Blake  <eblake@redhat.com>
29752
29753         readlinkat: adjust client modules
29754         * modules/areadlinkat (Depends-on): Use readlinkat, not
29755         symlinkat.
29756         * modules/areadlinkat-with-size (Depends-on): Likewise.
29757
29758         mknod: be more vocal about danger of running tests as root
29759         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
29760         root, since that is just asking for problems.
29761         Suggested by Bruno Haible, based on a report by Rainer Tammer.
29762
29763         readlinkat: split into its own module
29764         * modules/symlinkat: Split readlinkat...
29765         * modules/readlinkat: ...into separate module.
29766         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
29767         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
29768         * lib/symlinkat.c (readlinkat): Move...
29769         * lib/readlinkat.c: ...into new file.
29770         * modules/symlinkat-tests: Split readlinkat test...
29771         * modules/readlinkat-tests: ...into separate module.
29772         * tests/test-symlinkat.c: Split...
29773         * tests/test-readlinkat.c: ...into new file.
29774         * NEWS: Document the split.
29775         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
29776         * lib/unistd.in.h (readlinkat): Likewise.
29777         Suggested by Bruno Haible.
29778
29779 2010-08-08  Bruno Haible  <bruno@clisp.org>
29780
29781         memxfrm: Speed up.
29782         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
29783         that usually only one call to strxfrm is necessary for each string
29784         part.
29785         Reported by Paul Eggert <eggert@cs.ucla.edu>.
29786
29787 2010-08-07  Karl Berry  <karl@gnu.org>
29788
29789         * doc/posix-headers/limits.texi,
29790         * doc/posix-functions/malloc.texi,
29791         * doc/posix-functions/strsignal.texi: missing @item.
29792         * doc/ld-version-script.texi: spurious leading i.
29793         * doc/regex.texi (Interval Operators): no commas inside @var.
29794
29795 2010-08-01  Bruno Haible  <bruno@clisp.org>
29796
29797         Integrate the regex documentation.
29798         * doc/gnulib.texi: Define 'cn' index.
29799         (Regular expressions): New a chapter that includes regex.texi and
29800         regexprops-generic.texi.
29801         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
29802         syntax.
29803
29804         Whitespace cleanup.
29805         * doc/regex.texi: Remove trailing spaces.
29806
29807         Add regex documentation.
29808         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
29809         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
29810         Written by Kathy A. Hargreaves and Karl Berry.
29811
29812 2010-08-01  Bruno Haible  <bruno@clisp.org>
29813
29814         link: Update documentation.
29815         * doc/posix-functions/link.texi: Update regarding Solaris.
29816
29817 2010-07-31  Bruno Haible  <bruno@clisp.org>
29818
29819         Update modules list.
29820         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
29821         (String handling <string.h>): Add memcmp2, memxfrm.
29822         (Container data structures): Add xlist, xsublist, xoset.
29823         (Core language properties): Add alignof, unused-parameter.
29824         (Process control, Numeric conversion functions <stdlib.h>): Renamed
29825         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
29826         (Unibyte characters <ctype.h>): New section.
29827         (String handling <string.h>): New section.
29828         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
29829         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
29830         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
29831         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
29832         tan, tanh, tanl, y0, y1, yn.
29833         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
29834         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
29835         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
29836         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
29837         unlockpt, vdprintf, vdprintf-posix.
29838         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
29839         (File system functions): Add concat-filename, sys_file, sys_ioctl,
29840         xconcat-filename.
29841         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
29842         getdtablesize, pipe2, pipe2-safer.
29843         (Security): New section.
29844         (Networking functions): Add accept4.
29845         (Signal handling): Add sigpipe.
29846         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
29847         mbmemcasecoll.
29848         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
29849         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
29850         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
29851         pipe-filter-ii.
29852         (Misc): Add argp-version-etc, login_tty, parse-duration.
29853
29854 2010-07-31  Bruno Haible  <bruno@clisp.org>
29855
29856         Improve doc in MODULES.html.
29857         * modules/linkat (Description): Add the word "function".
29858         * modules/mkfifo (Description): Likewise.
29859         * modules/mknod (Description): Likewise.
29860         * modules/remove (Description): Likewise.
29861         * modules/renameat (Description): Likewise.
29862         * modules/stat (Description): Likewise.
29863         * modules/symlink (Description): Likewise.
29864         * modules/unlink (Description): Likewise.
29865
29866 2010-07-31  Bruno Haible  <bruno@clisp.org>
29867
29868         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
29869         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
29870         option --enable/disable-c++ instead of --enable/disable-cxx.
29871         * NEWS: Mention the change.
29872
29873 2010-07-31  Bruno Haible  <bruno@clisp.org>
29874
29875         readlink, areadlink: Relax test a bit.
29876         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
29877         alternative to ENOTDIR.
29878         * tests/test-areadlink.h (test_areadlink): Likewise.
29879         Reported by Rainer Tammer.
29880
29881 2010-07-31  Bruno Haible  <bruno@clisp.org>
29882
29883         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
29884         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
29885         character, perform the search using U_STRCHR.
29886         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
29887         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
29888         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
29889         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
29890         Suggested by Paolo Bonzini.
29891
29892 2010-07-31  Bruno Haible  <bruno@clisp.org>
29893
29894         unistr/u*-strstr: Fix dependencies.
29895         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
29896         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
29897         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
29898
29899 2010-07-31  Bruno Haible  <bruno@clisp.org>
29900
29901         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
29902         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
29903         the beginning of the loop.
29904         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
29905         cases in 'switch' statement.
29906
29907         unistr/u8-strchr: Fix several bugs.
29908         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
29909         the string. When not found, return NULL, not a pointer near the end.
29910
29911         More tests for unistr/u8-strchr.
29912         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
29913         that the function does not read past the first occurrence of the byte
29914         being searched.
29915         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
29916         * tests/unistr/test-u16-strchr.c (main): New function.
29917         * tests/unistr/test-u32-strchr.c (main): New function.
29918
29919 2010-07-31  Bruno Haible  <bruno@clisp.org>
29920
29921         posix-modules: Ignore backup files of documentation files.
29922         * posix-modules: grep only through files named *.texi.
29923
29924 2010-07-31  Bruno Haible  <bruno@clisp.org>
29925
29926         symlinkat: Fix documentation.
29927         * doc/posix-functions/readlinkat.texi: Fix module name.
29928
29929 2010-07-31  Bruno Haible  <bruno@clisp.org>
29930
29931         fchownat: Replace also when chown has the trailing slash bug.
29932         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
29933         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
29934         introduced on 2010-04-10.
29935         Reported by Rainer Tammer.
29936
29937 2010-07-31  Bruno Haible  <bruno@clisp.org>
29938
29939         linkat: Work around AIX 7.1 bug.
29940         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
29941         whether linkat handles trailing slash correctly. If not, replace linkat
29942         and define LINKAT_TRAILING_SLASH_BUG.
29943         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
29944         check whether (fd1,file1) points to a directory if file1 or file2 ends
29945         in a slash. Code taken from lib/link.c.
29946         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
29947         Reported by Rainer Tammer.
29948
29949 2010-07-31  Bruno Haible  <bruno@clisp.org>
29950
29951         Correctly determine whether pow is available in libc on AIX 7 with xlc.
29952         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
29953         This disables an xlc optimization that was causing wrong test results.
29954         Reported by Rainer Tammer.
29955
29956 2010-07-31  Bruno Haible  <bruno@clisp.org>
29957
29958         iconv: Work around AIX 6.1..7.1 bug.
29959         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
29960         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
29961         cross-compiling, guess no on all versions of AIX.
29962         Reported by Rainer Tammer.
29963
29964 2010-07-31  Bruno Haible  <bruno@clisp.org>
29965
29966         readlink: Relax test a bit.
29967         * tests/test-readlink.h (test_readlink): Allow different errno value
29968         when readlink is called with a file name that ends in / and refers to
29969         a file.
29970         Suggested by Eric Blake.
29971         Reported by Rainer Tammer.
29972
29973 2010-07-31  Bruno Haible  <bruno@clisp.org>
29974
29975         copysign: Does not require -lm on glibc systems.
29976         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
29977         gl_COMMON_DOUBLE_MATHFUNC.
29978         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
29979
29980 2010-07-31  Bruno Haible  <bruno@clisp.org>
29981
29982         duplocale: Work around AIX 7.1 bug.
29983         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
29984         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
29985         * lib/duplocale.c (rpl_duplocale): Update comment.
29986         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
29987         Reported by Rainer Tammer.
29988
29989 2010-07-30  Bruno Haible  <bruno@clisp.org>
29990
29991         dirfd: Avoid link error on AIX 7.1.
29992         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
29993         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
29994         exist, set REPLACE_DIRFD.
29995         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
29996         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
29997         * doc/posix-functions/dirfd.texi: Update.
29998         Reported by Rainer Tammer.
29999
30000 2010-07-30  Eric Blake  <eblake@redhat.com>
30001
30002         strtod: next round of AIX fixes
30003         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
30004         exponent.
30005         * tests/test-strtod.c (main): Enhance tests.
30006         * doc/posix-functions/strtod.texi (strtod): Document next bug.
30007         Reported by Rainer Tammer.
30008
30009         futimens: fix configure check
30010         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
30011         Reported by Bruno Haible.
30012
30013 2010-07-30  Bruno Haible  <bruno@clisp.org>
30014
30015         getline: Update regarding AIX.
30016         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
30017         Reported by Rainer Tammer.
30018
30019 2010-07-30  Bruno Haible  <bruno@clisp.org>
30020
30021         wcwidth: Drop replacement on AIX 7.
30022         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
30023         AIX 7.
30024         Reported by Rainer Tammer.
30025
30026 2010-07-30  Bruno Haible  <bruno@clisp.org>
30027
30028         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
30029         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
30030         a 'char *'.
30031         Reported by Rainer Tammer.
30032
30033 2010-07-30  Bruno Haible  <bruno@clisp.org>
30034
30035         unlink: Update regarding AIX.
30036         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
30037         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
30038         Reported by Rainer Tammer.
30039
30040 2010-07-30  Bruno Haible  <bruno@clisp.org>
30041
30042         symlink: Update regarding AIX.
30043         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
30044         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
30045         Reported by Rainer Tammer.
30046
30047 2010-07-30  Bruno Haible  <bruno@clisp.org>
30048
30049         strndup: Update regarding AIX.
30050         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
30051         AIX 7.
30052         Reported by Rainer Tammer.
30053
30054 2010-07-30  Bruno Haible  <bruno@clisp.org>
30055
30056         stat: Update regarding AIX.
30057         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
30058         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
30059         Reported by Rainer Tammer.
30060
30061 2010-07-30  Bruno Haible  <bruno@clisp.org>
30062
30063         truncl: Fix autoconf test.
30064         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
30065         whether truncl works.
30066         Reported by Rainer Tammer.
30067
30068 2010-07-30  Bruno Haible  <bruno@clisp.org>
30069
30070         round: Update regarding AIX.
30071         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
30072         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
30073         Reported by Rainer Tammer.
30074
30075 2010-07-30  Bruno Haible  <bruno@clisp.org>
30076
30077         rename: Update regarding AIX.
30078         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
30079         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
30080         Reported by Rainer Tammer.
30081
30082 2010-07-30  Bruno Haible  <bruno@clisp.org>
30083
30084         printf.m4: Update regarding AIX.
30085         * m4/printf.m4: Update comments regarding AIX.
30086         Reported by Rainer Tammer.
30087
30088 2010-07-30  Bruno Haible  <bruno@clisp.org>
30089
30090         iconv: Update regarding AIX.
30091         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
30092         AIX 7.
30093         Reported by Rainer Tammer.
30094
30095 2010-07-30  Bruno Haible  <bruno@clisp.org>
30096
30097         getopt: Update regarding AIX.
30098         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
30099         no on AIX.
30100         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
30101         Reported by Rainer Tammer.
30102
30103 2010-07-30  Bruno Haible  <bruno@clisp.org>
30104
30105         ldexpl; Update regarding AIX.
30106         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
30107         on AIX 7.
30108         Reported by Rainer Tammer.
30109
30110 2010-07-30  Bruno Haible  <bruno@clisp.org>
30111
30112         frexpl: Update regarding AIX.
30113         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
30114         on AIX 7.
30115         Reported by Rainer Tammer.
30116
30117 2010-07-30  Bruno Haible  <bruno@clisp.org>
30118
30119         open, fopen: Update regarding AIX.
30120         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
30121         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
30122         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
30123         * doc/posix-functions/fopen.texi: Likewise.
30124         Reported by Rainer Tammer.
30125
30126 2010-07-30  Bruno Haible  <bruno@clisp.org>
30127
30128         chown: Update doc regarding AIX.
30129         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
30130         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
30131         Reported by Rainer Tammer.
30132
30133 2010-07-30  Eric Blake  <eblake@redhat.com>
30134
30135         strtod: fix bug in replacement function on AIX
30136         * lib/strtod.c (strtod): Special case broken "0x" parse in
30137         underlying strtod.
30138         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
30139         * doc/posix-functions/strtod.texi (strtod): Likewise.
30140         Reported by Rainer Tammer.
30141
30142 2010-07-30  Bruno Haible  <bruno@clisp.org>
30143
30144         mbrlen: Fix cross-compilation guess for AIX.
30145         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
30146         guess. Leftover from 2008-12-22.
30147
30148 2010-07-30  Bruno Haible  <bruno@clisp.org>
30149
30150         mbrtowc: Fix cross-compilation guess for AIX.
30151         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
30152         guess. Leftover from 2008-12-21.
30153
30154 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
30155
30156         init.sh: work around trap limitation of some shells
30157         * tests/init.sh (setup_): Move exit trap outside of shell function.
30158
30159 2010-07-29  Eric Blake  <eblake@redhat.com>
30160
30161         strtod: aid debugging
30162         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
30163         understanding why strtod is rejected.
30164
30165 2010-07-28  Bruno Haible  <bruno@clisp.org>
30166
30167         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
30168         * lib/unistr/u8-chr.c: Include <string.h>.
30169         * tests/unistr/test-u8-chr.c: Likewise.
30170         * tests/unistr/test-u16-chr.c: Likewise.
30171         * tests/unistr/test-u32-chr.c: Likewise.
30172         * tests/unistr/test-u8-strchr.c: Likewise.
30173         * tests/unistr/test-u16-strchr.c: Likewise.
30174         * tests/unistr/test-u32-strchr.c: Likewise.
30175         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
30176         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
30177         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
30178         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
30179
30180 2010-07-28  Bruno Haible  <bruno@clisp.org>
30181
30182         Use spaces for indentation, not tabs.
30183         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
30184
30185 2010-07-27  Bruno Haible  <bruno@clisp.org>
30186
30187         mbspcasecmp: Fix function specification.
30188         * lib/string.in.h (mbspcasecmp): Fix specification comment.
30189         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
30190         Reported by Eric Blake <eblake@redhat.com>.
30191
30192 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
30193
30194         timespec: use cast and not conditional, as truncation isn't possible
30195         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
30196         instead of a conditional.  Comment about the situation in more detail.
30197         This undoes most of the 2009-10-29 patch.
30198
30199 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
30200
30201         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
30202         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
30203         * lib/unistr/u8-strchr.c: Likewise.
30204         * modules/unistr/u8-chr: Depend on memchr.
30205
30206         unistr/u*-strchr: add tests
30207         * modules/unistr/u8-strchr-tests: New file.
30208         * modules/unistr/u16-strchr-tests: New file.
30209         * modules/unistr/u32-strchr-tests: New file.
30210         * tests/unistr/test-strchr.h: New file.
30211         * tests/unistr/test-u8-strchr.c: New file.
30212         * tests/unistr/test-u16-strchr.c: New file.
30213         * tests/unistr/test-u32-strchr.c: New file.
30214
30215         unistr/u*-chr: test multibyte sequences more
30216         * tests/unistr/test-chr.h: Do complete testing of the characters in the
30217         test vector.
30218         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
30219         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
30220         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
30221
30222         unistr/u*-chr: test multibyte sequences
30223         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
30224
30225         unistr/u*-chr: prepare for multibyte tests
30226         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
30227         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
30228         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
30229         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
30230         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
30231         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
30232
30233 2010-07-18  Bruno Haible  <bruno@clisp.org>
30234
30235         unistr/u8-strchr: Optimize non-ASCII argument case.
30236         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
30237         because the first byte often matches anyway.
30238         Reported by Pádraig Brady <P@draigbrady.com>.
30239
30240 2010-07-15  Karl Berry  <karl@gnu.org>
30241
30242         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
30243
30244 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
30245
30246         getcwd: on Solaris, work better if ancestors are inaccessible
30247         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
30248         buffer and size, try again with a large buffer.  This works better
30249         on Solaris, since its getcwd succeeds even if the path to the root
30250         is inaccessible, and this is helpful in common cases such as .zfs
30251         hidden directories.  Problem reported by J Chapman Flack in
30252         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
30253         Use system getcwd if it's declared, not merely if it's partly
30254         working; use the partly-working test only to avoid needless effort
30255         if the system getcwd fails.
30256         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
30257         comment that was already obsolete and is now even more obsolete.
30258         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
30259         now might call strdup.
30260
30261 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
30262
30263         pthread: Add enough so that coreutils/src/sort.c compiles.
30264         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
30265         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
30266         gnulib. Include <sched.h> and <time.h>, as per POSIX.
30267         Include <sys/types.h>, in case it defines pthread_t.
30268         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
30269         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
30270         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
30271         (pthread_rwlockattr_t, pthread_spinlock_t):
30272         New typedefs, if HAVE_PTHREAD_T is not defined.
30273         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
30274         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
30275         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
30276         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
30277         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
30278         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
30279         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
30280         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
30281         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
30282         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
30283         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
30284         New macros.
30285         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
30286         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
30287         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
30288         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
30289         (pthread_spin_unlock): New dummy functions.
30290         (pthread_create): Return EAGAIN; don't set errno.
30291         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
30292         require AC_C_INLINE.
30293         * modules/pthread (Depends-on): Add sched, time.
30294         (pthread.h): Use AM_V_GEN.
30295
30296 2010-07-13  Bruno Haible  <bruno@clisp.org>
30297
30298         striconveh: Don't malloc memory if the result buffer is sufficient.
30299         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
30300         buffer if its size is sufficient.
30301         Reported by Ludovic Courtès <ludo@gnu.org>.
30302
30303 2010-07-13  Bruno Haible  <bruno@clisp.org>
30304
30305         strtod: Add safety check.
30306         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
30307
30308 2010-07-12  Bruno Haible  <bruno@clisp.org>
30309
30310         Unify tests that set gl_cv_func_ldexpl_no_libm.
30311         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
30312         gl_FUNC_LDEXPL.
30313         (gl_FUNC_LDEXPL): Invoke it.
30314         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30315
30316 2010-07-12  Bruno Haible  <bruno@clisp.org>
30317
30318         Unify tests that set gl_cv_func_ldexp_no_libm.
30319         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
30320         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
30321         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
30322         (configure.ac): Simply invoke gl_FUNC_LDEXP.
30323         * modules/strtod (Files): Add m4/ldexp.m4.
30324
30325 2010-07-12  Bruno Haible  <bruno@clisp.org>
30326
30327         Unify tests that set gl_cv_func_frexpl_no_libm.
30328         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
30329         gl_FUNC_FREXPL_NO_LIBM.
30330         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
30331         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
30332
30333 2010-07-12  Bruno Haible  <bruno@clisp.org>
30334
30335         Unify tests that set gl_cv_func_frexp_no_libm.
30336         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
30337         gl_FUNC_FREXP_NO_LIBM.
30338         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
30339         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
30340
30341 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
30342
30343         memcoll: clarify sizes versus lengths, document better, and tweak perf
30344         * lib/memcoll.c (strcoll_loop, memcoll0):
30345         Improve quality of descriptive comments.  Name variables
30346         consistently as to whether they are lengths (which do not include
30347         terminating null) versus sizes (which do).
30348         * lib/xmemcoll.c (xmemcoll0): Likewise.
30349         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
30350         returned when s1size == 0; this is easier to compile and saves
30351         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
30352
30353 2010-07-12  Bruno Haible  <bruno@clisp.org>
30354
30355         Tests for module '_Exit'.
30356         * modules/_Exit-tests: New file.
30357         * tests/test-_Exit.sh: New file.
30358         * tests/test-_Exit.c: New file.
30359
30360         New module '_Exit'.
30361         * lib/stdlib.in.h (__attribute__): New macro.
30362         (_Exit): New declaration.
30363         * lib/_Exit.c: New file.
30364         * m4/_Exit.m4: New file.
30365         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
30366         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
30367         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
30368         * modules/_Exit: New file.
30369         * tests/test-stdlib-c++.cc (_Exit): Check signature.
30370         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
30371
30372 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
30373
30374         strtod: make it more-accurate typically, and don't require libm
30375         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
30376         Include limits.h.  Don't include string.h.
30377         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
30378         (locale_isspace): New function, so that no casts are needed to
30379         check whether *s is a space.
30380         (ldexp): Provide an unused dummy if not available.
30381         (scale_radix_exp, parse_number, underlying_strtod): New functions.
30382         (strtod): Use them.  This implementation prefers to use the
30383         underlying strtod if available, falling back on our own code
30384         only to fix known bugs.  This is more likely to produce an
30385         accurate result.  Also, it avoids the use of libm functions.
30386         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
30387         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
30388         was absent, but it caused a test failure with coreutils.
30389         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
30390         with libm.
30391         * modules/strtod (Makefile.am, Link): libm is no longer needed.
30392         * modules/strtod-tests (Makefile.am): Likewise.
30393
30394 2010-07-11  Pádraig Brady  <P@draigBrady.com>
30395             Bruno Haible  <bruno@clisp.org>
30396
30397         unistr/u8-strchr: Optimize ASCII argument case.
30398         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
30399
30400 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
30401
30402         (x)memcoll: minor tweaks
30403         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
30404         is after the type that it qualifies.
30405         (memcoll0): Likewise.
30406         * lib/memcoll.h (memcoll0): Likewise.
30407         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
30408         * lib/xmemcoll.h (xmemcoll0): Likewise.
30409         * lib/memcoll.c (memcoll0): Correct the comment.  This function
30410         differs from memcoll in that the NUL byte is part of the argument.
30411         Omit the abort-checks, as performance is a real issue here.  Plus,
30412         the checks were wrong anyway (an off-by-one error).  Omit local
30413         variable 'diff', as it's a bit clearer that way.
30414         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
30415         no longer needed.
30416
30417 2010-07-08  Chen Guo <chenguo4@yahoo.com>
30418
30419         (x)memcoll: speedup when input is known to be NUL delimited
30420         * lib/memcoll.c: Include stdlib.
30421         (memcoll0): New function.
30422         (strcoll_loop): New function, refactored for use in both memcoll
30423         and memcoll0.
30424         * lib/memcoll.h (memcoll0): Add prototype.
30425         * lib/xmemcoll.c (xmemcoll0): New function.
30426         (collate_error): New function, refactored for use in both xmemcoll
30427         and xmemcoll0.
30428         * lib/xmemcoll.h (xmemcoll0): Add prototype.
30429         * m4/memcoll.m4: add inline invocation.
30430
30431 2010-07-06  Pádraig Brady  <P@draigBrady.com>
30432
30433         * build-aux/bootstrap: Remove any local translations
30434         from the translation project synchronization directory,
30435         so that local only translations are not distributed.
30436
30437 2010-07-04  Bruno Haible  <bruno@clisp.org>
30438
30439         fsusage: Clarify which code applies to which platforms.
30440         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
30441         platform.
30442         * lib/fsusage.c (get_fs_usage): Likewise.
30443
30444 2010-07-04  Bruno Haible  <bruno@clisp.org>
30445
30446         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
30447         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
30448         Reported by Martin Lambers <marlam@marlam.de>.
30449
30450 2010-07-04  Jim Meyering  <meyering@redhat.com>
30451
30452         hash: once again explicitly disallow insertion of NULL
30453         * lib/hash.c (hash_insert0): Reinstate just-removed test:
30454         inserting a NULL pointer cannot work with these functions.
30455         Add a comment with details.
30456         This reverts part of the 2010-07-01 commit, 5bef1a35
30457         "hash: extend module to deal with non-pointer keys".
30458
30459 2010-07-01  Bruno Haible  <bruno@clisp.org>
30460
30461         stdbool: Update doc.
30462         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
30463         Info from Christian Weisgerber <naddy@mips.inka.de>.
30464
30465 2010-07-01  Jim Meyering  <meyering@redhat.com>
30466
30467         hash: extend module to deal with non-pointer keys
30468         * lib/hash.c (hash_insert0): New interface, much like hash_insert
30469         but that allows insertion of non-pointer entries.
30470         Do not disallow an ENTRY value of NULL.
30471         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
30472         * lib/hash.h (hash_insert0): Declare.
30473
30474 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
30475
30476         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
30477         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
30478         not present (i.e. with autoconf 2.59 and when using gettextize, not
30479         gnulib), require AC_GNU_SOURCE instead.
30480
30481 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
30482
30483         idpriv-drop: Fix tests.
30484         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
30485         not to the test-idpriv-droptemp program.
30486
30487 2010-06-29  Bruno Haible  <bruno@clisp.org>
30488
30489         string: Fix syntax error with g++ 2.96.
30490         * lib/string.in.h (__pure__): Remove definition.
30491         (_GL_ATTRIBUTE_PURE): New macro.
30492         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
30493         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
30494         Reported by Christian Weisgerber <naddy@mips.inka.de>.
30495
30496 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
30497
30498         unitypes: Fix bug introduced on 2010-05-18.
30499         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
30500
30501 2010-06-22  Eric Blake  <eblake@redhat.com>
30502
30503         memmem: slight optimization
30504         * lib/str-two-way.h (critical_factorization): Update comments.
30505         Reduce work during factorization phase.
30506         Reported by Carlos Bueno <carlos@bueno.org>.
30507
30508 2010-06-21  Bruno Haible  <bruno@clisp.org>
30509
30510         Fix HAVE_CALLOC_POSIX misnomer.
30511         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
30512         !HAVE_CALLOC_POSIX.
30513         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
30514         HAVE_CALLOC_POSIX.
30515         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
30516         instead of HAVE_CALLOC_POSIX.
30517         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
30518         HAVE_CALLOC_POSIX.
30519
30520         Use modern idiom for calloc() replacement.
30521         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
30522         AC_FUNC_CALLOC.
30523         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
30524         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
30525         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30526         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
30527         (gl_REPLACE_CALLOC): New macro.
30528
30529 2010-06-21  Bruno Haible  <bruno@clisp.org>
30530
30531         Fix HAVE_REALLOC_POSIX misnomer.
30532         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
30533         !HAVE_REALLOC_POSIX.
30534         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
30535         HAVE_REALLOC_POSIX.
30536         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
30537         instead of HAVE_REALLOC_POSIX.
30538         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
30539         HAVE_REALLOC_POSIX.
30540
30541         Use modern idiom for realloc() replacement.
30542         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
30543         AC_FUNC_REALLOC.
30544         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
30545         Autoconf's AC_FUNC_REALLOC.
30546         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30547         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
30548         (gl_REPLACE_REALLOC): New macro.
30549         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
30550
30551 2010-06-21  Bruno Haible  <bruno@clisp.org>
30552
30553         Fix HAVE_MALLOC_POSIX misnomer.
30554         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
30555         !HAVE_MALLOC_POSIX.
30556         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
30557         HAVE_MALLOC_POSIX.
30558         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
30559         instead of HAVE_MALLOC_POSIX.
30560         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
30561         HAVE_MALLOC_POSIX.
30562
30563         Use modern idiom for malloc() replacement.
30564         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
30565         AC_FUNC_MALLOC.
30566         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
30567         Autoconf's AC_FUNC_MALLOC.
30568         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
30569         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
30570         (gl_REPLACE_MALLOC): New macro.
30571         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
30572
30573 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
30574
30575         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
30576         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
30577         This macro takes 3 arguments, not 4.
30578
30579 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
30580
30581         ipv6: fix detection under mingw
30582         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
30583         in6_addr.
30584
30585 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
30586
30587         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
30588         that strtod() works when cross-compiling to a glibc version known
30589         to work.
30590
30591 2010-06-15  Bruno Haible  <bruno@clisp.org>
30592
30593         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
30594
30595 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
30596
30597         select: Correct timeout.
30598         * lib/select.c (rpl_select): Compute wait_timeout correctly.
30599
30600 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
30601
30602         git-version-gen: init shell var to avoid env var influence
30603         * build-aux/git-version-gen (v): Init shell var to empty.
30604
30605 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
30606
30607         priv-set: Don't assume that priv.h exists merely because getppriv does.
30608         See Jan Andersen's bug report about AIX 5L in
30609         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
30610         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
30611         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
30612         * lib/priv-set.h: Likewise.
30613         * tests/test-priv-set.c: Likewise.
30614
30615 2010-06-13  Bruno Haible  <bruno@clisp.org>
30616
30617         relocatable: Make it easier to test whether to install wrappers.
30618         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
30619         RELOCATABLE_VIA_WRAPPER.
30620
30621 2010-06-13  Bruno Haible  <bruno@clisp.org>
30622
30623         gnulib-tool: Display specified modules and dependencies differently.
30624         * gnulib-tool (func_show_module_list): New function.
30625         (func_import, func_create_testdir): Invoke it.
30626         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
30627
30628 2010-06-13  Bruno Haible  <bruno@clisp.org>
30629
30630         gnulib-tool: Align code of func_import and func_create_testdir.
30631         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
30632         specified_modules.
30633
30634 2010-06-12  Jim Meyering  <meyering@redhat.com>
30635
30636         test-inttostr: avoid spurious failure on Solaris 9
30637         * tests/test-inttostr.c (main): Skip the test when snprintf fails
30638         to accept "%ju".  Reported by Bruno Haible.
30639
30640 2010-06-11  Jim Meyering  <meyering@redhat.com>
30641
30642         test-sys_socket: mark variables as used more readably
30643         * tests/test-sys_socket.c (main): Mark otherwise unused variables
30644         as "used" explicitly via (void) statement casts.  This is more
30645         readable than using them in an artificial return expression.
30646         Suggestion from Bruno Haible.
30647
30648 2010-06-11  Bruno Haible  <bruno@clisp.org>
30649
30650         Avoid some more warnings from "gcc -Wwrite-strings".
30651         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
30652         to 'const char *'.
30653         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
30654         * tests/test-c-strcasestr.c (main): Likewise.
30655         * tests/test-mbscasestr1.c (main): Likewise.
30656         * tests/test-mbscasestr2.c (main): Likewise.
30657         * tests/test-memmem.c (main): Likewise.
30658         * tests/test-strstr.c (main): Likewise.
30659         * tests/test-strcasestr.c (main): Likewise.
30660
30661 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30662
30663         init.sh: change framework_failure_ to fail with status 99, not 1
30664         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
30665         automake's parallel-tests rule that this is an unexpected failure,
30666         even if the test is listed in XFAIL_TESTS.
30667
30668 2010-06-11  Jim Meyering  <meyering@redhat.com>
30669
30670         test-inttostr: avoid warnings about 4-6KB literal strings
30671         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
30672         Include "macros.h", for its definition of ASSERT.
30673         (CK): s/assert/ASSERT/
30674         * modules/inttostr-tests (Files): Add macros.h.
30675
30676         init.sh: don't use $ME_ or skip_ before they are defined
30677         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
30678         their first uses.  Also hoist their companions: warn_, fail_,
30679         framework_failure_, $stderr_fileno.  Prompted by a patch from
30680         Stefano Lattarini.
30681
30682         test-sys_socket: avoid set-but-not-used warnings from gcc
30683         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
30684         avoid warning about set-but-not-used variables.
30685
30686         test-xvasprintf: avoid 'const' discard warnings
30687         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
30688         "const" when assigning from literal strings.
30689         (test_xasprintf): Add "void" in function argument list to placate
30690         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
30691
30692         tests: avoid compilation warnings in argmatch and exclude tests...
30693         in packages that define ARGMATCH_DIE_DECL, like coreutils.
30694         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
30695         Since it always exits, declare with the "noreturn" attribute.
30696         * tests/test-argmatch.c: Likewise.
30697
30698         tests: avoid 'const' discard warnings in mbsstr tests
30699         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
30700         * tests/test-mbsstr2.c (main): Likewise.
30701
30702         test-verify: avoid warning from gcc's -Wmissing-declarations
30703         * tests/test-verify.c (function): Declare to be static.
30704
30705         test-inttostr.c: include <string.h> for use of strcmp
30706         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
30707
30708         test-linkat: avoid failed assertion on "other" architectures
30709         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
30710         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
30711         sparc: https://bugs.launchpad.net/bugs/591968
30712
30713 2010-06-11  Jim Meyering  <meyering@redhat.com>
30714
30715         printf.m4: avoid autoconf's "Expanded Before Required" warning
30716         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
30717         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
30718         autoconf warning.
30719
30720 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
30721
30722         Replacement header templates are now named with ".in", not "_".
30723         * doc/gnulib-intro.texi: Correct.
30724
30725 2010-06-10  Jim Meyering  <meyering@redhat.com>
30726
30727         inttostr-tests: depend on snprintf, not snprintf-posix
30728         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
30729         snprintf-posix, to avoid this aclocal failure:
30730           missing file gnulib-tests/vasnprintf.c
30731           configure.ac:45: error: expected source file, required through \
30732           AC_LIBSOURCES, not found
30733
30734 2010-06-10  Jim Meyering  <meyering@redhat.com>
30735
30736         inttostr: add a new function, inttostr, and tests
30737         The namesake function was not available.  The existence of the
30738         template file, inttostr.c makes its addition nontrivial.
30739         * lib/anytostr.c: Rename from inttostr.c.
30740         (anytostr): Rename from inttostr.
30741         * lib/inttostr.c: New file.
30742         * modules/inttostr (Files): Add anytostr.c.
30743         (Makefile.am): Set lib_SOURCES instead of ...
30744         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
30745         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
30746         * lib/offtostr.c: Likewise.
30747         * lib/uinttostr.c: Likewise.
30748         * lib/umaxtostr.c: Likewise.
30749         * modules/inttostr-tests: New file.
30750         * tests/test-inttostr.c: New file.  Test these functions.
30751
30752 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
30753             Bruno Haible  <bruno@clisp.org>
30754
30755         Add "Extending Gnulib" chapter to manual.
30756         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
30757         chapter.
30758         (Extending Gnulib): New chapter.
30759         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
30760         chapter.
30761
30762 2010-06-09  Bruno Haible  <bruno@clisp.org>
30763
30764         Avoid relocwrapper link errors due to gnulib replacement functions.
30765         * lib/areadlink.c: Use the system's malloc, realloc functions.
30766         (areadlink): Set errno to ENOMEM explicitly.
30767         * modules/areadlink (Depends-on): Remove malloc-posix.
30768         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30769
30770 2010-06-09  Bruno Haible  <bruno@clisp.org>
30771
30772         Avoid relocwrapper link errors due to gnulib replacement functions.
30773         * lib/canonicalize-lgpl.c: Use the system's malloc function.
30774         * lib/malloca.c: Likewise.
30775         * lib/relocatable.c: Likewise.
30776         * lib/progreloc.c: Use the system's malloc, sprintf functions.
30777         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
30778         * lib/setenv.c: Use the system's malloc, realloc functions.
30779         * lib/strerror.c: Use the system's sprintf function.
30780         Reported by Ben Pfaff <blp@cs.stanford.edu>.
30781
30782 2010-06-04  Bruno Haible  <bruno@clisp.org>
30783
30784         Prefer documented low-level autoconf macro names.
30785         * m4/lib-link.m4: Use m4_translit instead of translit.
30786         * m4/environ.m4: Likewise.
30787         * m4/mathfunc.m4: Likewise.
30788         * m4/onceonly.m4: Likewise.
30789         * m4/stdint.m4: Likewise.
30790         Suggested by Eric Blake.
30791
30792 2010-06-04  Martin Lambers  <marlam@marlam.de>
30793             Bruno Haible  <bruno@clisp.org>
30794
30795         havelib: Allow library names with '+' characters.
30796         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
30797         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
30798
30799 2010-06-09  Bruno Haible  <bruno@clisp.org>
30800
30801         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
30802         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
30803         realloc failed.
30804
30805 2010-06-08  Peter Simons  <simons@cryp.to>
30806
30807         maint.mk: make the news-check rule more configurable
30808         * top/maint.mk (news-check-lines-spec): New variable.
30809         (news-check): Use "sed -n 1,10p" in place of "head".
30810
30811 2010-06-07  Jim Meyering  <meyering@redhat.com>
30812
30813         do-release-commit-and-tag: fix typo in --help
30814         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
30815
30816         regex: avoid new dead-code warning with gcc-4.6.0
30817         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
30818         if-block containing a while-loop.  It's been unused for at least
30819         5 years.
30820
30821 2010-06-05  Bruno Haible  <bruno@clisp.org>
30822
30823         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
30824         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
30825
30826 2010-06-04  Bruno Haible  <bruno@clisp.org>
30827
30828         Update to GNU gettext 0.18.1.
30829         * modules/gettext (configure.ac): Require gettext infrastructure from
30830         version 0.18.1.
30831
30832 2010-06-03  Bruno Haible  <bruno@clisp.org>
30833
30834         Don't use AC_LIBOBJ with file names in subdirectories.
30835         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
30836         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
30837         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
30838         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
30839         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
30840         gl_LIBUNISTRING_LIBSOURCE.
30841         (Makefile.am): Augment lib_SOURCES here, conditionally.
30842         * NEWS: Drop requirement for Automake option 'subdir-objects'.
30843
30844 2010-06-03  Bruno Haible  <bruno@clisp.org>
30845
30846         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
30847         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
30848         expansion does not end with a newline.
30849         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
30850         unnecessary newline.
30851
30852 2010-06-03  Bruno Haible  <bruno@clisp.org>
30853
30854         Reduce dependencies.
30855         * tests/test-quotearg.h: New file, extracted from
30856         tests/test-quotearg.c.
30857         * tests/test-quotearg-simple.c: New file, extracted from
30858         tests/test-quotearg.c.
30859         * tests/test-quotearg.c: Don't include <ctype.h>.
30860         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
30861         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
30862         use_quote_double_quotes, use_quotearg_colon): Moved to
30863         tests/test-quotearg.h.
30864         (results_g, flag_results, custom_quotes, custom_results): Moved
30865         to tests/test-quotearg-simple.c.
30866         (main): Moved the part that does not depend on gettext to
30867         tests/test-quotearg-simple.c. Return 77 if the test cannot be
30868         performed.
30869         * modules/quotearg-simple: New file.
30870         * modules/quotearg-simple-tests: New file.
30871         * modules/quotearg (Depends-on): Add quotearg-simple.
30872         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
30873         (Files): Add tests/test-quotearg.h.
30874         Reported by Paolo Bonzini.
30875
30876 2010-06-03  Bruno Haible  <bruno@clisp.org>
30877
30878         Reduce dependencies.
30879         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
30880
30881 2010-06-03  Bruno Haible  <bruno@clisp.org>
30882
30883         time: Undefine more broken macros.
30884         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
30885         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
30886         Reported by Eric Blake.
30887
30888 2010-06-03  Bruno Haible  <bruno@clisp.org>
30889
30890         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
30891         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
30892         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
30893         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
30894         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
30895         Reported by Ludovic Courtès <ludo@gnu.org>.
30896
30897 2010-06-02  Eric Blake  <eblake@redhat.com>
30898
30899         time: work with mingw + pthreads-win32 library
30900         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
30901         if timespec is defined only in pthread.h.
30902         * modules/time (Makefile.am): Substitute it.
30903         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
30904         <pthread.h>, when needed.
30905         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
30906         from the library.
30907
30908 2010-05-31  Bruno Haible  <bruno@clisp.org>
30909
30910         Avoid expanding two macros in the wrong order.
30911         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
30912         gl_LIBUNISTRING if it is defined.
30913         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
30914         autoconf >= 2.64.
30915         Reported by Ludovic Courtès <ludo@gnu.org>.
30916
30917 2010-05-27  Jim Meyering  <meyering@redhat.com>
30918
30919         maint.mk: also prohibit "#undef" of always-defined symbols
30920         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
30921         Allow more than one space before the symbol name.
30922         (sc_prohibit_always-defined_macros): Use grep's -E, now that
30923         the regexp uses alternation.
30924
30925 2010-05-26  Eric Blake  <eblake@redhat.com>
30926
30927         maint.mk: avoid echo -e
30928         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
30929         Convert all uses of echo -* to printf.
30930         Reported by Matthias Bolte.
30931
30932 2010-05-25  Bruno Haible  <bruno@clisp.org>
30933
30934         Update to GNU gettext 0.18, part 2.
30935         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
30936         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
30937
30938 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30939
30940         Add missing include in test-pwrite.c.
30941         * tests/test-pwrite.c: Include string.h, for strcmp.
30942
30943 2010-05-24  Bruno Haible  <bruno@clisp.org>
30944
30945         * NEWS: Mention requirement for Automake option 'subdir-objects'.
30946
30947 2010-05-24  Bruno Haible  <bruno@clisp.org>
30948
30949         Don't use conversion with transliteration in u{8,16,32}_strcoll.
30950         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
30951         iconveh_error argument.
30952         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
30953         U_STRCONV_TO_LOCALE.
30954         * lib/unistr/u16-strcoll.c: Likewise.
30955         * lib/unistr/u32-strcoll.c: Likewise.
30956         * modules/unistr/u8-strcoll (Depends-on): Add
30957         uniconv/u8-strconv-to-enc, localcharset. Remove
30958         uniconv/u8-strconv-to-locale.
30959         (configure.ac): Bump version number.
30960         * modules/unistr/u16-strcoll (Depends-on): Add
30961         uniconv/u16-strconv-to-enc, localcharset. Remove
30962         uniconv/u16-strconv-to-locale.
30963         (configure.ac): Bump version number.
30964         * modules/unistr/u32-strcoll (Depends-on): Add
30965         uniconv/u32-strconv-to-enc, localcharset. Remove
30966         uniconv/u32-strconv-to-locale.
30967         (configure.ac): Bump version number.
30968
30969 2010-05-24  Bruno Haible  <bruno@clisp.org>
30970
30971         Avoid a test failure on NetBSD 5.0.
30972         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
30973         an iconv() bug.
30974
30975 2010-05-24  Bruno Haible  <bruno@clisp.org>
30976
30977         Adjust #include directive style.
30978         * modules/regex (Includes): Recommend to write <regex.h>.
30979
30980 2010-05-24  Bruno Haible  <bruno@clisp.org>
30981
30982         regex: Don't require alloca.
30983         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
30984         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
30985         only inside if (0).
30986
30987 2010-05-23  Jim Meyering  <meyering@redhat.com>
30988
30989         test-renameat.c: include <sys/stat.h>
30990         * tests/test-renameat.c: Include <sys/stat.h>; required for
30991         definition of S_IS* macros.
30992
30993 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
30994
30995         Update maintainer documentation for 'relocatable-prog' module.
30996         * doc/relocatable-maint.texi: Update.
30997         Comments by Bruno Haible.
30998
30999 2010-05-23  Bruno Haible  <bruno@clisp.org>
31000
31001         git-merge-changelog: Enable --split-merged-entry by default.
31002         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
31003         (usage): Don't mention this option any more.
31004         Reported by Ralf Wildenhues.
31005
31006 2010-05-23  Jim Meyering  <meyering@redhat.com>
31007
31008         test-pwrite: do not leave behind a test file named "out"
31009         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
31010         The trivial-looking use of init.sh is really necessary.
31011         It ensures that the temporary file, "out", is created in
31012         a temporary directory, and removed upon termination.
31013         * tests/test-pwrite.sh: Re-add file.
31014         * modules/pwrite-tests: Reference it.
31015
31016 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31017
31018         Fix output redirection buglet in init.sh.
31019         * tests/init.sh: Fix redirection of stderr.
31020
31021 2010-05-20  Simon Josefsson  <simon@josefsson.org>
31022
31023         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
31024
31025 2010-05-17  Simon Josefsson  <simon@josefsson.org>
31026
31027         * modules/valgrind-tests: New file.
31028         * m4/valgrind-tests.m4: New file.
31029         * doc/valgrind-tests.texi: New file.
31030         * doc/gnulib.texi (Running self-tests under valgrind): New
31031         section.
31032
31033 2010-05-19  Bruno Haible  <bruno@clisp.org>
31034
31035         Clean up dead code in recent commit.
31036         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
31037         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
31038         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
31039         Suggested by Paolo Bonzini.
31040
31041 2010-05-19  Bruno Haible  <bruno@clisp.org>
31042
31043         Avoid valgrind error reports from libunistring.
31044         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
31045         * modules/libunistring (Files): Add it.
31046         * modules/libunistring-optional (Files): Likewise.
31047
31048 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
31049             Bruno Haible  <bruno@clisp.org>
31050
31051         New module 'libunistring-optional'.
31052         * modules/libunistring-optional: New file.
31053         * m4/libunistring-base.m4: New file.
31054         * m4/libunistring-optional.m4: New file.
31055         * lib/unicase.in.h: Renamed from lib/unicase.h.
31056         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
31057         * lib/unictype.in.h: Renamed from lib/unictype.h.
31058         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
31059         * lib/uniname.in.h: Renamed from lib/uniname.h.
31060         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
31061         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
31062         * lib/unistr.in.h: Renamed from lib/unistr.h.
31063         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
31064         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
31065         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
31066         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
31067         gl_LIBUNISTRING. If the library was found, determine the installed
31068         version and set LIBUNISTRING_VERSION.
31069         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
31070         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
31071         handle a configuration option --with-included-libunistring.
31072         * modules/libunistring (Files): Add m4/absolute-header.m4.
31073         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
31074         Add m4/libunistring-base.m4.
31075         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31076         (Makefile.am): Build unicase.h from unicase.in.h.
31077         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
31078         Add m4/libunistring-base.m4.
31079         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31080         (Makefile.am): Build uniconv.h from uniconv.in.h.
31081         * modules/unictype/base (Files): Use unictype.in.h instead of
31082         unictype.h. Add m4/libunistring-base.m4.
31083         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31084         (Makefile.am): Build unictype.h from unictype.in.h.
31085         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
31086         Add m4/libunistring-base.m4.
31087         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31088         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
31089         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
31090         Add m4/libunistring-base.m4.
31091         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31092         (Makefile.am): Build uniname.h from uniname.in.h.
31093         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
31094         Add m4/libunistring-base.m4.
31095         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31096         (Makefile.am): Build uninorm.h from uninorm.in.h.
31097         * modules/unistdio/base (Files): Use unistdio.in.h instead of
31098         unistdio.h. Add m4/libunistring-base.m4.
31099         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31100         (Makefile.am): Build unistdio.h from unistdio.in.h.
31101         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
31102         Add m4/libunistring-base.m4.
31103         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31104         (Makefile.am): Build unistr.h from unistr.in.h.
31105         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
31106         Add m4/libunistring-base.m4.
31107         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31108         (Makefile.am): Build unitypes.h from unitypes.in.h.
31109         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
31110         Add m4/libunistring-base.m4.
31111         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31112         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
31113         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
31114         uniwidth.h. Add m4/libunistring-base.m4.
31115         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
31116         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
31117         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
31118         instead of augmenting lib_SOURCES.
31119         * modules/unicase/empty-suffix-context: Likewise.
31120         * modules/unicase/locale-language: Likewise.
31121         * modules/unicase/tolower: Likewise.
31122         * modules/unicase/totitle: Likewise.
31123         * modules/unicase/toupper: Likewise.
31124         * modules/unicase/u8-casecmp: Likewise.
31125         * modules/unicase/u8-casecoll: Likewise.
31126         * modules/unicase/u8-casefold: Likewise.
31127         * modules/unicase/u8-casexfrm: Likewise.
31128         * modules/unicase/u8-ct-casefold: Likewise.
31129         * modules/unicase/u8-ct-tolower: Likewise.
31130         * modules/unicase/u8-ct-totitle: Likewise.
31131         * modules/unicase/u8-ct-toupper: Likewise.
31132         * modules/unicase/u8-is-cased: Likewise.
31133         * modules/unicase/u8-is-casefolded: Likewise.
31134         * modules/unicase/u8-is-lowercase: Likewise.
31135         * modules/unicase/u8-is-titlecase: Likewise.
31136         * modules/unicase/u8-is-uppercase: Likewise.
31137         * modules/unicase/u8-prefix-context: Likewise.
31138         * modules/unicase/u8-suffix-context: Likewise.
31139         * modules/unicase/u8-tolower: Likewise.
31140         * modules/unicase/u8-totitle: Likewise.
31141         * modules/unicase/u8-toupper: Likewise.
31142         * modules/unicase/u16-casecmp: Likewise.
31143         * modules/unicase/u16-casecoll: Likewise.
31144         * modules/unicase/u16-casefold: Likewise.
31145         * modules/unicase/u16-casexfrm: Likewise.
31146         * modules/unicase/u16-ct-casefold: Likewise.
31147         * modules/unicase/u16-ct-tolower: Likewise.
31148         * modules/unicase/u16-ct-totitle: Likewise.
31149         * modules/unicase/u16-ct-toupper: Likewise.
31150         * modules/unicase/u16-is-cased: Likewise.
31151         * modules/unicase/u16-is-casefolded: Likewise.
31152         * modules/unicase/u16-is-lowercase: Likewise.
31153         * modules/unicase/u16-is-titlecase: Likewise.
31154         * modules/unicase/u16-is-uppercase: Likewise.
31155         * modules/unicase/u16-prefix-context: Likewise.
31156         * modules/unicase/u16-suffix-context: Likewise.
31157         * modules/unicase/u16-tolower: Likewise.
31158         * modules/unicase/u16-totitle: Likewise.
31159         * modules/unicase/u16-toupper: Likewise.
31160         * modules/unicase/u32-casecmp: Likewise.
31161         * modules/unicase/u32-casecoll: Likewise.
31162         * modules/unicase/u32-casefold: Likewise.
31163         * modules/unicase/u32-casexfrm: Likewise.
31164         * modules/unicase/u32-ct-casefold: Likewise.
31165         * modules/unicase/u32-ct-tolower: Likewise.
31166         * modules/unicase/u32-ct-totitle: Likewise.
31167         * modules/unicase/u32-ct-toupper: Likewise.
31168         * modules/unicase/u32-is-cased: Likewise.
31169         * modules/unicase/u32-is-casefolded: Likewise.
31170         * modules/unicase/u32-is-lowercase: Likewise.
31171         * modules/unicase/u32-is-titlecase: Likewise.
31172         * modules/unicase/u32-is-uppercase: Likewise.
31173         * modules/unicase/u32-prefix-context: Likewise.
31174         * modules/unicase/u32-suffix-context: Likewise.
31175         * modules/unicase/u32-tolower: Likewise.
31176         * modules/unicase/u32-totitle: Likewise.
31177         * modules/unicase/u32-toupper: Likewise.
31178         * modules/unicase/ulc-casecmp: Likewise.
31179         * modules/unicase/ulc-casecoll: Likewise.
31180         * modules/unicase/ulc-casexfrm: Likewise.
31181         * modules/uniconv/u8-conv-from-enc: Likewise.
31182         * modules/uniconv/u8-conv-to-enc: Likewise.
31183         * modules/uniconv/u8-strconv-from-enc: Likewise.
31184         * modules/uniconv/u8-strconv-from-locale: Likewise.
31185         * modules/uniconv/u8-strconv-to-enc: Likewise.
31186         * modules/uniconv/u8-strconv-to-locale: Likewise.
31187         * modules/uniconv/u16-conv-from-enc: Likewise.
31188         * modules/uniconv/u16-conv-to-enc: Likewise.
31189         * modules/uniconv/u16-strconv-from-enc: Likewise.
31190         * modules/uniconv/u16-strconv-from-locale: Likewise.
31191         * modules/uniconv/u16-strconv-to-enc: Likewise.
31192         * modules/uniconv/u16-strconv-to-locale: Likewise.
31193         * modules/uniconv/u32-conv-from-enc: Likewise.
31194         * modules/uniconv/u32-conv-to-enc: Likewise.
31195         * modules/uniconv/u32-strconv-from-enc: Likewise.
31196         * modules/uniconv/u32-strconv-from-locale: Likewise.
31197         * modules/uniconv/u32-strconv-to-enc: Likewise.
31198         * modules/uniconv/u32-strconv-to-locale: Likewise.
31199         * modules/unictype/bidicategory-byname: Likewise.
31200         * modules/unictype/bidicategory-name: Likewise.
31201         * modules/unictype/bidicategory-of: Likewise.
31202         * modules/unictype/bidicategory-test: Likewise.
31203         * modules/unictype/block-list: Likewise.
31204         * modules/unictype/block-test: Likewise.
31205         * modules/unictype/category-C: Likewise.
31206         * modules/unictype/category-Cc: Likewise.
31207         * modules/unictype/category-Cf: Likewise.
31208         * modules/unictype/category-Cn: Likewise.
31209         * modules/unictype/category-Co: Likewise.
31210         * modules/unictype/category-Cs: Likewise.
31211         * modules/unictype/category-L: Likewise.
31212         * modules/unictype/category-Ll: Likewise.
31213         * modules/unictype/category-Lm: Likewise.
31214         * modules/unictype/category-Lo: Likewise.
31215         * modules/unictype/category-Lt: Likewise.
31216         * modules/unictype/category-Lu: Likewise.
31217         * modules/unictype/category-M: Likewise.
31218         * modules/unictype/category-Mc: Likewise.
31219         * modules/unictype/category-Me: Likewise.
31220         * modules/unictype/category-Mn: Likewise.
31221         * modules/unictype/category-N: Likewise.
31222         * modules/unictype/category-Nd: Likewise.
31223         * modules/unictype/category-Nl: Likewise.
31224         * modules/unictype/category-No: Likewise.
31225         * modules/unictype/category-P: Likewise.
31226         * modules/unictype/category-Pc: Likewise.
31227         * modules/unictype/category-Pd: Likewise.
31228         * modules/unictype/category-Pe: Likewise.
31229         * modules/unictype/category-Pf: Likewise.
31230         * modules/unictype/category-Pi: Likewise.
31231         * modules/unictype/category-Po: Likewise.
31232         * modules/unictype/category-Ps: Likewise.
31233         * modules/unictype/category-S: Likewise.
31234         * modules/unictype/category-Sc: Likewise.
31235         * modules/unictype/category-Sk: Likewise.
31236         * modules/unictype/category-Sm: Likewise.
31237         * modules/unictype/category-So: Likewise.
31238         * modules/unictype/category-Z: Likewise.
31239         * modules/unictype/category-Zl: Likewise.
31240         * modules/unictype/category-Zp: Likewise.
31241         * modules/unictype/category-Zs: Likewise.
31242         * modules/unictype/category-and: Likewise.
31243         * modules/unictype/category-and-not: Likewise.
31244         * modules/unictype/category-byname: Likewise.
31245         * modules/unictype/category-name: Likewise.
31246         * modules/unictype/category-none: Likewise.
31247         * modules/unictype/category-of: Likewise.
31248         * modules/unictype/category-or: Likewise.
31249         * modules/unictype/category-test: Likewise.
31250         * modules/unictype/combining-class: Likewise.
31251         * modules/unictype/ctype-alnum: Likewise.
31252         * modules/unictype/ctype-alpha: Likewise.
31253         * modules/unictype/ctype-blank: Likewise.
31254         * modules/unictype/ctype-cntrl: Likewise.
31255         * modules/unictype/ctype-digit: Likewise.
31256         * modules/unictype/ctype-graph: Likewise.
31257         * modules/unictype/ctype-lower: Likewise.
31258         * modules/unictype/ctype-print: Likewise.
31259         * modules/unictype/ctype-punct: Likewise.
31260         * modules/unictype/ctype-space: Likewise.
31261         * modules/unictype/ctype-upper: Likewise.
31262         * modules/unictype/ctype-xdigit: Likewise.
31263         * modules/unictype/decimal-digit: Likewise.
31264         * modules/unictype/digit: Likewise.
31265         * modules/unictype/mirror: Likewise.
31266         * modules/unictype/numeric: Likewise.
31267         * modules/unictype/property-alphabetic: Likewise.
31268         * modules/unictype/property-ascii-hex-digit: Likewise.
31269         * modules/unictype/property-bidi-arabic-digit: Likewise.
31270         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
31271         * modules/unictype/property-bidi-block-separator: Likewise.
31272         * modules/unictype/property-bidi-boundary-neutral: Likewise.
31273         * modules/unictype/property-bidi-common-separator: Likewise.
31274         * modules/unictype/property-bidi-control: Likewise.
31275         * modules/unictype/property-bidi-embedding-or-override: Likewise.
31276         * modules/unictype/property-bidi-eur-num-separator: Likewise.
31277         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
31278         * modules/unictype/property-bidi-european-digit: Likewise.
31279         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
31280         * modules/unictype/property-bidi-left-to-right: Likewise.
31281         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
31282         * modules/unictype/property-bidi-other-neutral: Likewise.
31283         * modules/unictype/property-bidi-pdf: Likewise.
31284         * modules/unictype/property-bidi-segment-separator: Likewise.
31285         * modules/unictype/property-bidi-whitespace: Likewise.
31286         * modules/unictype/property-byname: Likewise.
31287         * modules/unictype/property-combining: Likewise.
31288         * modules/unictype/property-composite: Likewise.
31289         * modules/unictype/property-currency-symbol: Likewise.
31290         * modules/unictype/property-dash: Likewise.
31291         * modules/unictype/property-decimal-digit: Likewise.
31292         * modules/unictype/property-default-ignorable-code-point: Likewise.
31293         * modules/unictype/property-deprecated: Likewise.
31294         * modules/unictype/property-diacritic: Likewise.
31295         * modules/unictype/property-extender: Likewise.
31296         * modules/unictype/property-format-control: Likewise.
31297         * modules/unictype/property-grapheme-base: Likewise.
31298         * modules/unictype/property-grapheme-extend: Likewise.
31299         * modules/unictype/property-grapheme-link: Likewise.
31300         * modules/unictype/property-hex-digit: Likewise.
31301         * modules/unictype/property-hyphen: Likewise.
31302         * modules/unictype/property-id-continue: Likewise.
31303         * modules/unictype/property-id-start: Likewise.
31304         * modules/unictype/property-ideographic: Likewise.
31305         * modules/unictype/property-ids-binary-operator: Likewise.
31306         * modules/unictype/property-ids-trinary-operator: Likewise.
31307         * modules/unictype/property-ignorable-control: Likewise.
31308         * modules/unictype/property-iso-control: Likewise.
31309         * modules/unictype/property-join-control: Likewise.
31310         * modules/unictype/property-left-of-pair: Likewise.
31311         * modules/unictype/property-line-separator: Likewise.
31312         * modules/unictype/property-logical-order-exception: Likewise.
31313         * modules/unictype/property-lowercase: Likewise.
31314         * modules/unictype/property-math: Likewise.
31315         * modules/unictype/property-non-break: Likewise.
31316         * modules/unictype/property-not-a-character: Likewise.
31317         * modules/unictype/property-numeric: Likewise.
31318         * modules/unictype/property-other-alphabetic: Likewise.
31319         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
31320         * modules/unictype/property-other-grapheme-extend: Likewise.
31321         * modules/unictype/property-other-id-continue: Likewise.
31322         * modules/unictype/property-other-id-start: Likewise.
31323         * modules/unictype/property-other-lowercase: Likewise.
31324         * modules/unictype/property-other-math: Likewise.
31325         * modules/unictype/property-other-uppercase: Likewise.
31326         * modules/unictype/property-paired-punctuation: Likewise.
31327         * modules/unictype/property-paragraph-separator: Likewise.
31328         * modules/unictype/property-pattern-syntax: Likewise.
31329         * modules/unictype/property-pattern-white-space: Likewise.
31330         * modules/unictype/property-private-use: Likewise.
31331         * modules/unictype/property-punctuation: Likewise.
31332         * modules/unictype/property-quotation-mark: Likewise.
31333         * modules/unictype/property-radical: Likewise.
31334         * modules/unictype/property-sentence-terminal: Likewise.
31335         * modules/unictype/property-soft-dotted: Likewise.
31336         * modules/unictype/property-space: Likewise.
31337         * modules/unictype/property-terminal-punctuation: Likewise.
31338         * modules/unictype/property-test: Likewise.
31339         * modules/unictype/property-titlecase: Likewise.
31340         * modules/unictype/property-unassigned-code-value: Likewise.
31341         * modules/unictype/property-unified-ideograph: Likewise.
31342         * modules/unictype/property-uppercase: Likewise.
31343         * modules/unictype/property-variation-selector: Likewise.
31344         * modules/unictype/property-white-space: Likewise.
31345         * modules/unictype/property-xid-continue: Likewise.
31346         * modules/unictype/property-xid-start: Likewise.
31347         * modules/unictype/property-zero-width: Likewise.
31348         * modules/unictype/scripts: Likewise.
31349         * modules/unictype/syntax-c-ident: Likewise.
31350         * modules/unictype/syntax-c-whitespace: Likewise.
31351         * modules/unictype/syntax-java-ident: Likewise.
31352         * modules/unictype/syntax-java-whitespace: Likewise.
31353         * modules/unilbrk/u8-possible-linebreaks: Likewise.
31354         * modules/unilbrk/u8-width-linebreaks: Likewise.
31355         * modules/unilbrk/u16-possible-linebreaks: Likewise.
31356         * modules/unilbrk/u16-width-linebreaks: Likewise.
31357         * modules/unilbrk/u32-possible-linebreaks: Likewise.
31358         * modules/unilbrk/u32-width-linebreaks: Likewise.
31359         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
31360         * modules/unilbrk/ulc-width-linebreaks: Likewise.
31361         * modules/uniname/uniname: Likewise.
31362         * modules/uninorm/canonical-decomposition: Likewise.
31363         * modules/uninorm/composition: Likewise.
31364         * modules/uninorm/decomposing-form: Likewise.
31365         * modules/uninorm/decomposition: Likewise.
31366         * modules/uninorm/filter: Likewise.
31367         * modules/uninorm/nfc: Likewise.
31368         * modules/uninorm/nfd: Likewise.
31369         * modules/uninorm/nfkc: Likewise.
31370         * modules/uninorm/nfkd: Likewise.
31371         * modules/uninorm/u8-normalize: Likewise.
31372         * modules/uninorm/u8-normcmp: Likewise.
31373         * modules/uninorm/u8-normcoll: Likewise.
31374         * modules/uninorm/u8-normxfrm: Likewise.
31375         * modules/uninorm/u16-normalize: Likewise.
31376         * modules/uninorm/u16-normcmp: Likewise.
31377         * modules/uninorm/u16-normcoll: Likewise.
31378         * modules/uninorm/u16-normxfrm: Likewise.
31379         * modules/uninorm/u32-normalize: Likewise.
31380         * modules/uninorm/u32-normcmp: Likewise.
31381         * modules/uninorm/u32-normcoll: Likewise.
31382         * modules/uninorm/u32-normxfrm: Likewise.
31383         * modules/unistdio/u8-asnprintf: Likewise.
31384         * modules/unistdio/u8-asprintf: Likewise.
31385         * modules/unistdio/u8-snprintf: Likewise.
31386         * modules/unistdio/u8-sprintf: Likewise.
31387         * modules/unistdio/u8-u8-asnprintf: Likewise.
31388         * modules/unistdio/u8-u8-asprintf: Likewise.
31389         * modules/unistdio/u8-u8-snprintf: Likewise.
31390         * modules/unistdio/u8-u8-sprintf: Likewise.
31391         * modules/unistdio/u8-u8-vasnprintf: Likewise.
31392         * modules/unistdio/u8-u8-vasprintf: Likewise.
31393         * modules/unistdio/u8-u8-vsnprintf: Likewise.
31394         * modules/unistdio/u8-u8-vsprintf: Likewise.
31395         * modules/unistdio/u8-vasnprintf: Likewise.
31396         * modules/unistdio/u8-vasprintf: Likewise.
31397         * modules/unistdio/u8-vsnprintf: Likewise.
31398         * modules/unistdio/u8-vsprintf: Likewise.
31399         * modules/unistdio/u16-asnprintf: Likewise.
31400         * modules/unistdio/u16-asprintf: Likewise.
31401         * modules/unistdio/u16-snprintf: Likewise.
31402         * modules/unistdio/u16-sprintf: Likewise.
31403         * modules/unistdio/u16-u16-asnprintf: Likewise.
31404         * modules/unistdio/u16-u16-asprintf: Likewise.
31405         * modules/unistdio/u16-u16-snprintf: Likewise.
31406         * modules/unistdio/u16-u16-sprintf: Likewise.
31407         * modules/unistdio/u16-u16-vasnprintf: Likewise.
31408         * modules/unistdio/u16-u16-vasprintf: Likewise.
31409         * modules/unistdio/u16-u16-vsnprintf: Likewise.
31410         * modules/unistdio/u16-u16-vsprintf: Likewise.
31411         * modules/unistdio/u16-vasnprintf: Likewise.
31412         * modules/unistdio/u16-vasprintf: Likewise.
31413         * modules/unistdio/u16-vsnprintf: Likewise.
31414         * modules/unistdio/u16-vsprintf: Likewise.
31415         * modules/unistdio/u32-asnprintf: Likewise.
31416         * modules/unistdio/u32-asprintf: Likewise.
31417         * modules/unistdio/u32-snprintf: Likewise.
31418         * modules/unistdio/u32-sprintf: Likewise.
31419         * modules/unistdio/u32-u32-asnprintf: Likewise.
31420         * modules/unistdio/u32-u32-asprintf: Likewise.
31421         * modules/unistdio/u32-u32-snprintf: Likewise.
31422         * modules/unistdio/u32-u32-sprintf: Likewise.
31423         * modules/unistdio/u32-u32-vasnprintf: Likewise.
31424         * modules/unistdio/u32-u32-vasprintf: Likewise.
31425         * modules/unistdio/u32-u32-vsnprintf: Likewise.
31426         * modules/unistdio/u32-u32-vsprintf: Likewise.
31427         * modules/unistdio/u32-vasnprintf: Likewise.
31428         * modules/unistdio/u32-vasprintf: Likewise.
31429         * modules/unistdio/u32-vsnprintf: Likewise.
31430         * modules/unistdio/u32-vsprintf: Likewise.
31431         * modules/unistdio/ulc-asnprintf: Likewise.
31432         * modules/unistdio/ulc-asprintf: Likewise.
31433         * modules/unistdio/ulc-fprintf: Likewise.
31434         * modules/unistdio/ulc-snprintf: Likewise.
31435         * modules/unistdio/ulc-sprintf: Likewise.
31436         * modules/unistdio/ulc-vasnprintf: Likewise.
31437         * modules/unistdio/ulc-vasprintf: Likewise.
31438         * modules/unistdio/ulc-vfprintf: Likewise.
31439         * modules/unistdio/ulc-vsnprintf: Likewise.
31440         * modules/unistdio/ulc-vsprintf: Likewise.
31441         * modules/unistr/u8-check: Likewise.
31442         * modules/unistr/u8-chr: Likewise.
31443         * modules/unistr/u8-cmp: Likewise.
31444         * modules/unistr/u8-cmp2: Likewise.
31445         * modules/unistr/u8-cpy: Likewise.
31446         * modules/unistr/u8-cpy-alloc: Likewise.
31447         * modules/unistr/u8-endswith: Likewise.
31448         * modules/unistr/u8-mblen: Likewise.
31449         * modules/unistr/u8-mbsnlen: Likewise.
31450         * modules/unistr/u8-mbtouc: Likewise.
31451         * modules/unistr/u8-mbtouc-unsafe: Likewise.
31452         * modules/unistr/u8-mbtoucr: Likewise.
31453         * modules/unistr/u8-move: Likewise.
31454         * modules/unistr/u8-next: Likewise.
31455         * modules/unistr/u8-prev: Likewise.
31456         * modules/unistr/u8-set: Likewise.
31457         * modules/unistr/u8-startswith: Likewise.
31458         * modules/unistr/u8-stpcpy: Likewise.
31459         * modules/unistr/u8-stpncpy: Likewise.
31460         * modules/unistr/u8-strcat: Likewise.
31461         * modules/unistr/u8-strchr: Likewise.
31462         * modules/unistr/u8-strcmp: Likewise.
31463         * modules/unistr/u8-strcoll: Likewise.
31464         * modules/unistr/u8-strcpy: Likewise.
31465         * modules/unistr/u8-strcspn: Likewise.
31466         * modules/unistr/u8-strdup: Likewise.
31467         * modules/unistr/u8-strlen: Likewise.
31468         * modules/unistr/u8-strmblen: Likewise.
31469         * modules/unistr/u8-strmbtouc: Likewise.
31470         * modules/unistr/u8-strncat: Likewise.
31471         * modules/unistr/u8-strncmp: Likewise.
31472         * modules/unistr/u8-strncpy: Likewise.
31473         * modules/unistr/u8-strnlen: Likewise.
31474         * modules/unistr/u8-strpbrk: Likewise.
31475         * modules/unistr/u8-strrchr: Likewise.
31476         * modules/unistr/u8-strspn: Likewise.
31477         * modules/unistr/u8-strstr: Likewise.
31478         * modules/unistr/u8-strtok: Likewise.
31479         * modules/unistr/u8-to-u16: Likewise.
31480         * modules/unistr/u8-to-u32: Likewise.
31481         * modules/unistr/u8-uctomb: Likewise.
31482         * modules/unistr/u16-check: Likewise.
31483         * modules/unistr/u16-chr: Likewise.
31484         * modules/unistr/u16-cmp: Likewise.
31485         * modules/unistr/u16-cmp2: Likewise.
31486         * modules/unistr/u16-cpy: Likewise.
31487         * modules/unistr/u16-cpy-alloc: Likewise.
31488         * modules/unistr/u16-endswith: Likewise.
31489         * modules/unistr/u16-mblen: Likewise.
31490         * modules/unistr/u16-mbsnlen: Likewise.
31491         * modules/unistr/u16-mbtouc: Likewise.
31492         * modules/unistr/u16-mbtouc-unsafe: Likewise.
31493         * modules/unistr/u16-mbtoucr: Likewise.
31494         * modules/unistr/u16-move: Likewise.
31495         * modules/unistr/u16-next: Likewise.
31496         * modules/unistr/u16-prev: Likewise.
31497         * modules/unistr/u16-set: Likewise.
31498         * modules/unistr/u16-startswith: Likewise.
31499         * modules/unistr/u16-stpcpy: Likewise.
31500         * modules/unistr/u16-stpncpy: Likewise.
31501         * modules/unistr/u16-strcat: Likewise.
31502         * modules/unistr/u16-strchr: Likewise.
31503         * modules/unistr/u16-strcmp: Likewise.
31504         * modules/unistr/u16-strcoll: Likewise.
31505         * modules/unistr/u16-strcpy: Likewise.
31506         * modules/unistr/u16-strcspn: Likewise.
31507         * modules/unistr/u16-strdup: Likewise.
31508         * modules/unistr/u16-strlen: Likewise.
31509         * modules/unistr/u16-strmblen: Likewise.
31510         * modules/unistr/u16-strmbtouc: Likewise.
31511         * modules/unistr/u16-strncat: Likewise.
31512         * modules/unistr/u16-strncmp: Likewise.
31513         * modules/unistr/u16-strncpy: Likewise.
31514         * modules/unistr/u16-strnlen: Likewise.
31515         * modules/unistr/u16-strpbrk: Likewise.
31516         * modules/unistr/u16-strrchr: Likewise.
31517         * modules/unistr/u16-strspn: Likewise.
31518         * modules/unistr/u16-strstr: Likewise.
31519         * modules/unistr/u16-strtok: Likewise.
31520         * modules/unistr/u16-to-u32: Likewise.
31521         * modules/unistr/u16-to-u8: Likewise.
31522         * modules/unistr/u16-uctomb: Likewise.
31523         * modules/unistr/u32-check: Likewise.
31524         * modules/unistr/u32-chr: Likewise.
31525         * modules/unistr/u32-cmp: Likewise.
31526         * modules/unistr/u32-cmp2: Likewise.
31527         * modules/unistr/u32-cpy: Likewise.
31528         * modules/unistr/u32-cpy-alloc: Likewise.
31529         * modules/unistr/u32-endswith: Likewise.
31530         * modules/unistr/u32-mblen: Likewise.
31531         * modules/unistr/u32-mbsnlen: Likewise.
31532         * modules/unistr/u32-mbtouc: Likewise.
31533         * modules/unistr/u32-mbtouc-unsafe: Likewise.
31534         * modules/unistr/u32-mbtoucr: Likewise.
31535         * modules/unistr/u32-move: Likewise.
31536         * modules/unistr/u32-next: Likewise.
31537         * modules/unistr/u32-prev: Likewise.
31538         * modules/unistr/u32-set: Likewise.
31539         * modules/unistr/u32-startswith: Likewise.
31540         * modules/unistr/u32-stpcpy: Likewise.
31541         * modules/unistr/u32-stpncpy: Likewise.
31542         * modules/unistr/u32-strcat: Likewise.
31543         * modules/unistr/u32-strchr: Likewise.
31544         * modules/unistr/u32-strcmp: Likewise.
31545         * modules/unistr/u32-strcoll: Likewise.
31546         * modules/unistr/u32-strcpy: Likewise.
31547         * modules/unistr/u32-strcspn: Likewise.
31548         * modules/unistr/u32-strdup: Likewise.
31549         * modules/unistr/u32-strlen: Likewise.
31550         * modules/unistr/u32-strmblen: Likewise.
31551         * modules/unistr/u32-strmbtouc: Likewise.
31552         * modules/unistr/u32-strncat: Likewise.
31553         * modules/unistr/u32-strncmp: Likewise.
31554         * modules/unistr/u32-strncpy: Likewise.
31555         * modules/unistr/u32-strnlen: Likewise.
31556         * modules/unistr/u32-strpbrk: Likewise.
31557         * modules/unistr/u32-strrchr: Likewise.
31558         * modules/unistr/u32-strspn: Likewise.
31559         * modules/unistr/u32-strstr: Likewise.
31560         * modules/unistr/u32-strtok: Likewise.
31561         * modules/unistr/u32-to-u16: Likewise.
31562         * modules/unistr/u32-to-u8: Likewise.
31563         * modules/unistr/u32-uctomb: Likewise.
31564         * modules/uniwbrk/u8-wordbreaks: Likewise.
31565         * modules/uniwbrk/u16-wordbreaks: Likewise.
31566         * modules/uniwbrk/u32-wordbreaks: Likewise.
31567         * modules/uniwbrk/ulc-wordbreaks: Likewise.
31568         * modules/uniwbrk/wordbreak-property: Likewise.
31569         * modules/uniwidth/u8-strwidth: Likewise.
31570         * modules/uniwidth/u8-width: Likewise.
31571         * modules/uniwidth/u16-strwidth: Likewise.
31572         * modules/uniwidth/u16-width: Likewise.
31573         * modules/uniwidth/u32-strwidth: Likewise.
31574         * modules/uniwidth/u32-width: Likewise.
31575         * modules/uniwidth/width: Likewise.
31576         * modules/unicase/cased-tests (Makefile.am): Link all test programs
31577         with $(LIBUNISTRING).
31578         * modules/unicase/ignorable-tests: Likewise.
31579         * modules/unicase/locale-language-tests: Likewise.
31580         * modules/unicase/tolower-tests: Likewise.
31581         * modules/unicase/totitle-tests: Likewise.
31582         * modules/unicase/toupper-tests: Likewise.
31583         * modules/unicase/u8-casecmp-tests: Likewise.
31584         * modules/unicase/u8-casecoll-tests: Likewise.
31585         * modules/unicase/u8-casefold-tests: Likewise.
31586         * modules/unicase/u8-is-cased-tests: Likewise.
31587         * modules/unicase/u8-is-casefolded-tests: Likewise.
31588         * modules/unicase/u8-is-lowercase-tests: Likewise.
31589         * modules/unicase/u8-is-titlecase-tests: Likewise.
31590         * modules/unicase/u8-is-uppercase-tests: Likewise.
31591         * modules/unicase/u8-tolower-tests: Likewise.
31592         * modules/unicase/u8-totitle-tests: Likewise.
31593         * modules/unicase/u8-toupper-tests: Likewise.
31594         * modules/unicase/u16-casecmp-tests: Likewise.
31595         * modules/unicase/u16-casecoll-tests: Likewise.
31596         * modules/unicase/u16-casefold-tests: Likewise.
31597         * modules/unicase/u16-is-cased-tests: Likewise.
31598         * modules/unicase/u16-is-casefolded-tests: Likewise.
31599         * modules/unicase/u16-is-lowercase-tests: Likewise.
31600         * modules/unicase/u16-is-titlecase-tests: Likewise.
31601         * modules/unicase/u16-is-uppercase-tests: Likewise.
31602         * modules/unicase/u16-tolower-tests: Likewise.
31603         * modules/unicase/u16-totitle-tests: Likewise.
31604         * modules/unicase/u16-toupper-tests: Likewise.
31605         * modules/unicase/u32-casecmp-tests: Likewise.
31606         * modules/unicase/u32-casecoll-tests: Likewise.
31607         * modules/unicase/u32-casefold-tests: Likewise.
31608         * modules/unicase/u32-is-cased-tests: Likewise.
31609         * modules/unicase/u32-is-casefolded-tests: Likewise.
31610         * modules/unicase/u32-is-lowercase-tests: Likewise.
31611         * modules/unicase/u32-is-titlecase-tests: Likewise.
31612         * modules/unicase/u32-is-uppercase-tests: Likewise.
31613         * modules/unicase/u32-tolower-tests: Likewise.
31614         * modules/unicase/u32-totitle-tests: Likewise.
31615         * modules/unicase/u32-toupper-tests: Likewise.
31616         * modules/unicase/ulc-casecmp-tests: Likewise.
31617         * modules/unicase/ulc-casecoll-tests: Likewise.
31618         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
31619         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
31620         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
31621         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
31622         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
31623         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
31624         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
31625         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
31626         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
31627         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
31628         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
31629         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
31630         * modules/unictype/bidicategory-byname-tests: Likewise.
31631         * modules/unictype/bidicategory-name-tests: Likewise.
31632         * modules/unictype/bidicategory-of-tests: Likewise.
31633         * modules/unictype/bidicategory-test-tests: Likewise.
31634         * modules/unictype/block-list-tests: Likewise.
31635         * modules/unictype/block-of-tests: Likewise.
31636         * modules/unictype/block-test-tests: Likewise.
31637         * modules/unictype/category-C-tests: Likewise.
31638         * modules/unictype/category-Cc-tests: Likewise.
31639         * modules/unictype/category-Cf-tests: Likewise.
31640         * modules/unictype/category-Cn-tests: Likewise.
31641         * modules/unictype/category-Co-tests: Likewise.
31642         * modules/unictype/category-Cs-tests: Likewise.
31643         * modules/unictype/category-L-tests: Likewise.
31644         * modules/unictype/category-Ll-tests: Likewise.
31645         * modules/unictype/category-Lm-tests: Likewise.
31646         * modules/unictype/category-Lo-tests: Likewise.
31647         * modules/unictype/category-Lt-tests: Likewise.
31648         * modules/unictype/category-Lu-tests: Likewise.
31649         * modules/unictype/category-M-tests: Likewise.
31650         * modules/unictype/category-Mc-tests: Likewise.
31651         * modules/unictype/category-Me-tests: Likewise.
31652         * modules/unictype/category-Mn-tests: Likewise.
31653         * modules/unictype/category-N-tests: Likewise.
31654         * modules/unictype/category-Nd-tests: Likewise.
31655         * modules/unictype/category-Nl-tests: Likewise.
31656         * modules/unictype/category-No-tests: Likewise.
31657         * modules/unictype/category-P-tests: Likewise.
31658         * modules/unictype/category-Pc-tests: Likewise.
31659         * modules/unictype/category-Pd-tests: Likewise.
31660         * modules/unictype/category-Pe-tests: Likewise.
31661         * modules/unictype/category-Pf-tests: Likewise.
31662         * modules/unictype/category-Pi-tests: Likewise.
31663         * modules/unictype/category-Po-tests: Likewise.
31664         * modules/unictype/category-Ps-tests: Likewise.
31665         * modules/unictype/category-S-tests: Likewise.
31666         * modules/unictype/category-Sc-tests: Likewise.
31667         * modules/unictype/category-Sk-tests: Likewise.
31668         * modules/unictype/category-Sm-tests: Likewise.
31669         * modules/unictype/category-So-tests: Likewise.
31670         * modules/unictype/category-Z-tests: Likewise.
31671         * modules/unictype/category-Zl-tests: Likewise.
31672         * modules/unictype/category-Zp-tests: Likewise.
31673         * modules/unictype/category-Zs-tests: Likewise.
31674         * modules/unictype/category-and-not-tests: Likewise.
31675         * modules/unictype/category-and-tests: Likewise.
31676         * modules/unictype/category-byname-tests: Likewise.
31677         * modules/unictype/category-name-tests: Likewise.
31678         * modules/unictype/category-none-tests: Likewise.
31679         * modules/unictype/category-of-tests: Likewise.
31680         * modules/unictype/category-or-tests: Likewise.
31681         * modules/unictype/category-test-withtable-tests: Likewise.
31682         * modules/unictype/combining-class-tests: Likewise.
31683         * modules/unictype/ctype-alnum-tests: Likewise.
31684         * modules/unictype/ctype-alpha-tests: Likewise.
31685         * modules/unictype/ctype-blank-tests: Likewise.
31686         * modules/unictype/ctype-cntrl-tests: Likewise.
31687         * modules/unictype/ctype-digit-tests: Likewise.
31688         * modules/unictype/ctype-graph-tests: Likewise.
31689         * modules/unictype/ctype-lower-tests: Likewise.
31690         * modules/unictype/ctype-print-tests: Likewise.
31691         * modules/unictype/ctype-punct-tests: Likewise.
31692         * modules/unictype/ctype-space-tests: Likewise.
31693         * modules/unictype/ctype-upper-tests: Likewise.
31694         * modules/unictype/ctype-xdigit-tests: Likewise.
31695         * modules/unictype/decimal-digit-tests: Likewise.
31696         * modules/unictype/digit-tests: Likewise.
31697         * modules/unictype/mirror-tests: Likewise.
31698         * modules/unictype/numeric-tests: Likewise.
31699         * modules/unictype/property-alphabetic-tests: Likewise.
31700         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
31701         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
31702         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
31703         * modules/unictype/property-bidi-block-separator-tests: Likewise.
31704         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
31705         * modules/unictype/property-bidi-common-separator-tests: Likewise.
31706         * modules/unictype/property-bidi-control-tests: Likewise.
31707         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
31708         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
31709         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
31710         * modules/unictype/property-bidi-european-digit-tests: Likewise.
31711         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
31712         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
31713         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
31714         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
31715         * modules/unictype/property-bidi-pdf-tests: Likewise.
31716         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
31717         * modules/unictype/property-bidi-whitespace-tests: Likewise.
31718         * modules/unictype/property-byname-tests: Likewise.
31719         * modules/unictype/property-combining-tests: Likewise.
31720         * modules/unictype/property-composite-tests: Likewise.
31721         * modules/unictype/property-currency-symbol-tests: Likewise.
31722         * modules/unictype/property-dash-tests: Likewise.
31723         * modules/unictype/property-decimal-digit-tests: Likewise.
31724         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
31725         * modules/unictype/property-deprecated-tests: Likewise.
31726         * modules/unictype/property-diacritic-tests: Likewise.
31727         * modules/unictype/property-extender-tests: Likewise.
31728         * modules/unictype/property-format-control-tests: Likewise.
31729         * modules/unictype/property-grapheme-base-tests: Likewise.
31730         * modules/unictype/property-grapheme-extend-tests: Likewise.
31731         * modules/unictype/property-grapheme-link-tests: Likewise.
31732         * modules/unictype/property-hex-digit-tests: Likewise.
31733         * modules/unictype/property-hyphen-tests: Likewise.
31734         * modules/unictype/property-id-continue-tests: Likewise.
31735         * modules/unictype/property-id-start-tests: Likewise.
31736         * modules/unictype/property-ideographic-tests: Likewise.
31737         * modules/unictype/property-ids-binary-operator-tests: Likewise.
31738         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
31739         * modules/unictype/property-ignorable-control-tests: Likewise.
31740         * modules/unictype/property-iso-control-tests: Likewise.
31741         * modules/unictype/property-join-control-tests: Likewise.
31742         * modules/unictype/property-left-of-pair-tests: Likewise.
31743         * modules/unictype/property-line-separator-tests: Likewise.
31744         * modules/unictype/property-logical-order-exception-tests: Likewise.
31745         * modules/unictype/property-lowercase-tests: Likewise.
31746         * modules/unictype/property-math-tests: Likewise.
31747         * modules/unictype/property-non-break-tests: Likewise.
31748         * modules/unictype/property-not-a-character-tests: Likewise.
31749         * modules/unictype/property-numeric-tests: Likewise.
31750         * modules/unictype/property-other-alphabetic-tests: Likewise.
31751         * modules/unictype/property-other-default-ignorable-code-point-tests:
31752         Likewise.
31753         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
31754         * modules/unictype/property-other-id-continue-tests: Likewise.
31755         * modules/unictype/property-other-id-start-tests: Likewise.
31756         * modules/unictype/property-other-lowercase-tests: Likewise.
31757         * modules/unictype/property-other-math-tests: Likewise.
31758         * modules/unictype/property-other-uppercase-tests: Likewise.
31759         * modules/unictype/property-paired-punctuation-tests: Likewise.
31760         * modules/unictype/property-paragraph-separator-tests: Likewise.
31761         * modules/unictype/property-pattern-syntax-tests: Likewise.
31762         * modules/unictype/property-pattern-white-space-tests: Likewise.
31763         * modules/unictype/property-private-use-tests: Likewise.
31764         * modules/unictype/property-punctuation-tests: Likewise.
31765         * modules/unictype/property-quotation-mark-tests: Likewise.
31766         * modules/unictype/property-radical-tests: Likewise.
31767         * modules/unictype/property-sentence-terminal-tests: Likewise.
31768         * modules/unictype/property-soft-dotted-tests: Likewise.
31769         * modules/unictype/property-space-tests: Likewise.
31770         * modules/unictype/property-terminal-punctuation-tests: Likewise.
31771         * modules/unictype/property-test-tests: Likewise.
31772         * modules/unictype/property-titlecase-tests: Likewise.
31773         * modules/unictype/property-unassigned-code-value-tests: Likewise.
31774         * modules/unictype/property-unified-ideograph-tests: Likewise.
31775         * modules/unictype/property-uppercase-tests: Likewise.
31776         * modules/unictype/property-variation-selector-tests: Likewise.
31777         * modules/unictype/property-white-space-tests: Likewise.
31778         * modules/unictype/property-xid-continue-tests: Likewise.
31779         * modules/unictype/property-xid-start-tests: Likewise.
31780         * modules/unictype/property-zero-width-tests: Likewise.
31781         * modules/unictype/scripts-tests: Likewise.
31782         * modules/unictype/syntax-c-ident-tests: Likewise.
31783         * modules/unictype/syntax-c-whitespace-tests: Likewise.
31784         * modules/unictype/syntax-java-ident-tests: Likewise.
31785         * modules/unictype/syntax-java-whitespace-tests: Likewise.
31786         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
31787         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
31788         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
31789         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
31790         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
31791         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
31792         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
31793         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
31794         * modules/uniname/uniname-tests: Likewise.
31795         * modules/uninorm/canonical-decomposition-tests: Likewise.
31796         * modules/uninorm/compat-decomposition-tests: Likewise.
31797         * modules/uninorm/composition-tests: Likewise.
31798         * modules/uninorm/decomposing-form-tests: Likewise.
31799         * modules/uninorm/decomposition-tests: Likewise.
31800         * modules/uninorm/filter-tests: Likewise.
31801         * modules/uninorm/nfc-tests: Likewise.
31802         * modules/uninorm/nfd-tests: Likewise.
31803         * modules/uninorm/nfkc-tests: Likewise.
31804         * modules/uninorm/nfkd-tests: Likewise.
31805         * modules/uninorm/u8-normcmp-tests: Likewise.
31806         * modules/uninorm/u8-normcoll-tests: Likewise.
31807         * modules/uninorm/u16-normcmp-tests: Likewise.
31808         * modules/uninorm/u16-normcoll-tests: Likewise.
31809         * modules/uninorm/u32-normcmp-tests: Likewise.
31810         * modules/uninorm/u32-normcoll-tests: Likewise.
31811         * modules/unistdio/u8-asnprintf-tests: Likewise.
31812         * modules/unistdio/u8-vasnprintf-tests: Likewise.
31813         * modules/unistdio/u8-vasprintf-tests: Likewise.
31814         * modules/unistdio/u8-vsnprintf-tests: Likewise.
31815         * modules/unistdio/u8-vsprintf-tests: Likewise.
31816         * modules/unistdio/u16-asnprintf-tests: Likewise.
31817         * modules/unistdio/u16-vasnprintf-tests: Likewise.
31818         * modules/unistdio/u16-vasprintf-tests: Likewise.
31819         * modules/unistdio/u16-vsnprintf-tests: Likewise.
31820         * modules/unistdio/u16-vsprintf-tests: Likewise.
31821         * modules/unistdio/u32-asnprintf-tests: Likewise.
31822         * modules/unistdio/u32-vasnprintf-tests: Likewise.
31823         * modules/unistdio/u32-vasprintf-tests: Likewise.
31824         * modules/unistdio/u32-vsnprintf-tests: Likewise.
31825         * modules/unistdio/u32-vsprintf-tests: Likewise.
31826         * modules/unistdio/ulc-asnprintf-tests: Likewise.
31827         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
31828         * modules/unistdio/ulc-vasprintf-tests: Likewise.
31829         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
31830         * modules/unistdio/ulc-vsprintf-tests: Likewise.
31831         * modules/unistr/u8-check-tests: Likewise.
31832         * modules/unistr/u8-chr-tests: Likewise.
31833         * modules/unistr/u8-cmp-tests: Likewise.
31834         * modules/unistr/u8-cmp2-tests: Likewise.
31835         * modules/unistr/u8-cpy-alloc-tests: Likewise.
31836         * modules/unistr/u8-cpy-tests: Likewise.
31837         * modules/unistr/u8-mblen-tests: Likewise.
31838         * modules/unistr/u8-mbsnlen-tests: Likewise.
31839         * modules/unistr/u8-mbtouc-tests: Likewise.
31840         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
31841         * modules/unistr/u8-mbtoucr-tests: Likewise.
31842         * modules/unistr/u8-move-tests: Likewise.
31843         * modules/unistr/u8-next-tests: Likewise.
31844         * modules/unistr/u8-prev-tests: Likewise.
31845         * modules/unistr/u8-set-tests: Likewise.
31846         * modules/unistr/u8-stpcpy-tests: Likewise.
31847         * modules/unistr/u8-stpncpy-tests: Likewise.
31848         * modules/unistr/u8-strcat-tests: Likewise.
31849         * modules/unistr/u8-strcmp-tests: Likewise.
31850         * modules/unistr/u8-strcoll-tests: Likewise.
31851         * modules/unistr/u8-strcpy-tests: Likewise.
31852         * modules/unistr/u8-strdup-tests: Likewise.
31853         * modules/unistr/u8-strlen-tests: Likewise.
31854         * modules/unistr/u8-strmblen-tests: Likewise.
31855         * modules/unistr/u8-strmbtouc-tests: Likewise.
31856         * modules/unistr/u8-strncat-tests: Likewise.
31857         * modules/unistr/u8-strncmp-tests: Likewise.
31858         * modules/unistr/u8-strncpy-tests: Likewise.
31859         * modules/unistr/u8-strnlen-tests: Likewise.
31860         * modules/unistr/u8-to-u16-tests: Likewise.
31861         * modules/unistr/u8-to-u32-tests: Likewise.
31862         * modules/unistr/u8-uctomb-tests: Likewise.
31863         * modules/unistr/u16-check-tests: Likewise.
31864         * modules/unistr/u16-chr-tests: Likewise.
31865         * modules/unistr/u16-cmp-tests: Likewise.
31866         * modules/unistr/u16-cmp2-tests: Likewise.
31867         * modules/unistr/u16-cpy-alloc-tests: Likewise.
31868         * modules/unistr/u16-cpy-tests: Likewise.
31869         * modules/unistr/u16-mblen-tests: Likewise.
31870         * modules/unistr/u16-mbsnlen-tests: Likewise.
31871         * modules/unistr/u16-mbtouc-tests: Likewise.
31872         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
31873         * modules/unistr/u16-mbtoucr-tests: Likewise.
31874         * modules/unistr/u16-move-tests: Likewise.
31875         * modules/unistr/u16-next-tests: Likewise.
31876         * modules/unistr/u16-prev-tests: Likewise.
31877         * modules/unistr/u16-set-tests: Likewise.
31878         * modules/unistr/u16-stpcpy-tests: Likewise.
31879         * modules/unistr/u16-stpncpy-tests: Likewise.
31880         * modules/unistr/u16-strcat-tests: Likewise.
31881         * modules/unistr/u16-strcmp-tests: Likewise.
31882         * modules/unistr/u16-strcoll-tests: Likewise.
31883         * modules/unistr/u16-strcpy-tests: Likewise.
31884         * modules/unistr/u16-strdup-tests: Likewise.
31885         * modules/unistr/u16-strlen-tests: Likewise.
31886         * modules/unistr/u16-strmblen-tests: Likewise.
31887         * modules/unistr/u16-strmbtouc-tests: Likewise.
31888         * modules/unistr/u16-strncat-tests: Likewise.
31889         * modules/unistr/u16-strncmp-tests: Likewise.
31890         * modules/unistr/u16-strncpy-tests: Likewise.
31891         * modules/unistr/u16-strnlen-tests: Likewise.
31892         * modules/unistr/u16-to-u32-tests: Likewise.
31893         * modules/unistr/u16-to-u8-tests: Likewise.
31894         * modules/unistr/u16-uctomb-tests: Likewise.
31895         * modules/unistr/u32-check-tests: Likewise.
31896         * modules/unistr/u32-chr-tests: Likewise.
31897         * modules/unistr/u32-cmp-tests: Likewise.
31898         * modules/unistr/u32-cmp2-tests: Likewise.
31899         * modules/unistr/u32-cpy-alloc-tests: Likewise.
31900         * modules/unistr/u32-cpy-tests: Likewise.
31901         * modules/unistr/u32-mblen-tests: Likewise.
31902         * modules/unistr/u32-mbsnlen-tests: Likewise.
31903         * modules/unistr/u32-mbtouc-tests: Likewise.
31904         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
31905         * modules/unistr/u32-mbtoucr-tests: Likewise.
31906         * modules/unistr/u32-move-tests: Likewise.
31907         * modules/unistr/u32-next-tests: Likewise.
31908         * modules/unistr/u32-prev-tests: Likewise.
31909         * modules/unistr/u32-set-tests: Likewise.
31910         * modules/unistr/u32-stpcpy-tests: Likewise.
31911         * modules/unistr/u32-stpncpy-tests: Likewise.
31912         * modules/unistr/u32-strcat-tests: Likewise.
31913         * modules/unistr/u32-strcmp-tests: Likewise.
31914         * modules/unistr/u32-strcoll-tests: Likewise.
31915         * modules/unistr/u32-strcpy-tests: Likewise.
31916         * modules/unistr/u32-strdup-tests: Likewise.
31917         * modules/unistr/u32-strlen-tests: Likewise.
31918         * modules/unistr/u32-strmblen-tests: Likewise.
31919         * modules/unistr/u32-strmbtouc-tests: Likewise.
31920         * modules/unistr/u32-strncat-tests: Likewise.
31921         * modules/unistr/u32-strncmp-tests: Likewise.
31922         * modules/unistr/u32-strncpy-tests: Likewise.
31923         * modules/unistr/u32-strnlen-tests: Likewise.
31924         * modules/unistr/u32-to-u16-tests: Likewise.
31925         * modules/unistr/u32-to-u8-tests: Likewise.
31926         * modules/unistr/u32-uctomb-tests: Likewise.
31927         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
31928         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
31929         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
31930         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
31931         * modules/uniwidth/u8-strwidth-tests: Likewise.
31932         * modules/uniwidth/u8-width-tests: Likewise.
31933         * modules/uniwidth/u16-strwidth-tests: Likewise.
31934         * modules/uniwidth/u16-width-tests: Likewise.
31935         * modules/uniwidth/u32-strwidth-tests: Likewise.
31936         * modules/uniwidth/u32-width-tests: Likewise.
31937         * modules/uniwidth/width-tests: Likewise.
31938
31939 2010-05-18  Richard Jones  <rjones@redhat.com>
31940
31941         doc: users.txt: list hivex
31942         * users.txt: Add hivex.
31943
31944 2010-05-18  Richard Jones  <rjones@redhat.com>
31945
31946         doc: users.txt: list febootstrap
31947         * users.txt: Add febootstrap.
31948
31949 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
31950
31951         bootstrap: fix an error when gnulib is not used as a git submodule
31952         * build-aux/bootstrap (gnulib_path): If its length is zero then
31953         assign "gnulib" to it.
31954         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
31955
31956 2010-05-16  Bruno Haible  <bruno@clisp.org>
31957
31958         Avoid autoconf warnings about AM_ICONV.
31959         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
31960         2.64.
31961
31962 2010-05-16  Bruno Haible  <bruno@clisp.org>
31963
31964         absolute-header: Make the macro usable in more situations.
31965         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
31966         from gl_ABSOLUTE_HEADER.
31967         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
31968
31969 2010-05-16  James Youngman  <jay@gnu.org>
31970
31971         doc: update users.txt
31972         * users.txt: Add CSSC.
31973
31974 2010-05-16  Jim Meyering  <meyering@redhat.com>
31975
31976         init.sh: fix an error in the previous change; add more comments
31977         * tests/init.sh: Compare exit code in loop against 9, not 2.
31978         Patch by Bruno Haible.
31979         Make the two tests more similar by adding an empty "then" clause.
31980         Add comments.
31981
31982         init.sh: avoid unnecessary shell re-exec
31983         * tests/init.sh: Improve the re-exec-required check to first test the
31984         current shell.  If it passes the test, do not search for a shell that
31985         does pass, and do not re-exec.  This test is particularly contorted to
31986         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
31987         of $(...) evokes a syntax error and causes immediate shell exit with
31988         status 2.  Bruno Haible reported that the re-exec made it impossible
31989         to single-step through any init.sh-using script.
31990
31991 2010-05-16  Bruno Haible  <bruno@clisp.org>
31992
31993         Fix collision between gnulib's and libintl's printf replacements.
31994         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
31995         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
31996         (printf): When using GNU C, map the __printf__ function to rpl_printf
31997         via __asm__. When not using GNU C, define rpl_printf instead of
31998         __printf__.
31999         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
32000         commit.
32001         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
32002         commit.
32003         * m4/asm-underscore.m4: New file.
32004         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
32005         * modules/stdio (Files): Add m4/asm-underscore.m4.
32006         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
32007         Reported by Ben Pfaff.
32008
32009 2010-05-16  Bruno Haible  <bruno@clisp.org>
32010
32011         verify: Avoid skipping the test on openSUSE 11.0.
32012         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
32013
32014 2010-05-13  Bruno Haible  <bruno@clisp.org>
32015
32016         Avoid useless warnings from G++.
32017         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
32018         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
32019         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32020
32021 2010-05-11  Jim Meyering  <meyering@redhat.com>
32022
32023         maint.mk: tweak preceding change
32024         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
32025         regexps tighter by anchoring at EOL, and make the new group "shy"
32026         for slightly decreased overhead.
32027
32028 2010-05-11  Eric Blake  <eblake@redhat.com>
32029
32030         maint.mk: gnulib doesn't guarantee NSIG
32031         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
32032
32033 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
32034
32035         test-pwrite.c: Remove unused variable declaration.
32036         * tests/test-pwrite.c (main): Remove read_buf declaration.
32037
32038         Remove useless test-pwrite.sh file.
32039         * tests/test-pwrite.sh: Delete file.
32040         * modules/pwrite-tests: Remove references.
32041         Reported by Bruno Haible.
32042
32043 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
32044
32045         init.sh: fix a typo
32046         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
32047
32048 2010-05-10  Jim Meyering  <meyering@redhat.com>
32049
32050         maint.mk: avoid using a temporary file in the always-defined-macros check
32051         * top/maint.mk (.re-defmac): Remove rule.
32052         (gl_trap_): Remove definition.
32053         (sc_prohibit_always-defined_macros): Rewrite not to create and
32054         depend on a temporary file.  Instead, depend on GNU grep's ability
32055         to read a list of regular expressions from stdin when given "-f -".
32056
32057 2010-05-09  Bruno Haible  <bruno@clisp.org>
32058
32059         Update to GNU gettext 0.18, part 1.
32060         * m4/gettext.m4: Update to GNU gettext 0.18.
32061         * m4/intl.m4: Likewise.
32062         * m4/po.m4: Likewise.
32063         * modules/gettext (Files): Add m4/fcntl-o.m4.
32064         (configure.ac): Require gettext infrastructure from version 0.18.
32065
32066 2010-05-09  Jim Meyering  <meyering@redhat.com>
32067
32068         init.sh: enable MALLOC_PERTURB_
32069         * tests/init.sh: Enable glibc's malloc-perturbing option.
32070
32071         maint.mk: improve sc_cross_check_PATH_usage_in_tests
32072         With my recent change in init.sh from the two-line form:
32073             -#   : ${srcdir=.}
32074             -#   . "$srcdir/init.sh"; path_prepend_ .
32075             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
32076         I noticed that using the one-line form would cause this test
32077         to fail with a false-positive, or to stop working altogether,
32078         depending on whether help-version changed or all the tests did.
32079         * top/maint.mk (_hv_regex): Remove this definition.
32080         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
32081         (_hv_regex_strong): Use a stronger regex to check for conformance.
32082         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
32083         Give a separate diagnostic for lack of conforming use.
32084
32085         maint.mk: prohibit definition of symbols defined by gnulib
32086         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
32087         definition of symbols defined by gnulib.
32088
32089 2010-05-09  Bruno Haible  <bruno@clisp.org>
32090
32091         acl: Avoid test failure on Cygwin-hosted mingw.
32092         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
32093
32094 2010-05-09  Bruno Haible  <bruno@clisp.org>
32095
32096         error: Use system's fcntl function.
32097         * lib/error.c (fcntl): Undefine.
32098
32099 2010-05-09  Jim Meyering  <meyering@redhat.com>
32100
32101         verify: adjust formatting to be more consistent
32102         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
32103         argument-list '('s, and after one comma.
32104
32105 2010-05-09  Bruno Haible  <bruno@clisp.org>
32106
32107         error: More reliable output on mingw.
32108         * lib/error.c: Include <windows.h>.
32109         (is_open): New function.
32110         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
32111         defined.
32112
32113 2010-05-09  Bruno Haible  <bruno@clisp.org>
32114
32115         vasnprintf: Fix syntax errors in libintl build on mingw.
32116         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
32117         pad_ourselves and prec_ourselves after use.
32118
32119 2010-05-08  Bruno Haible  <bruno@clisp.org>
32120
32121         * lib/config.charset: Update comments for Cygwin 1.7.
32122         * lib/localcharset.c: Likewise.
32123
32124 2010-05-07  Jim Meyering  <meyering@redhat.com>
32125
32126         init.sh: improve comments
32127         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
32128         . "${srcdir=.}/init.sh"; path_prepend_ .
32129         Add a note about path_prepend_ and the alternative of using
32130         TESTS_ENVIRONMENT.
32131
32132 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
32133
32134         exclude: Unescape hashed patterns in wildcard mode.
32135         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
32136         to the hash list.
32137         * tests/test-exclude8.sh: New test case.
32138         * modules/exclude-tests: Add new test.
32139
32140 2010-05-05  Eric Blake  <eblake@redhat.com>
32141
32142         verify: automate tests
32143         * modules/verify-tests: New module.
32144         * tests/test-verify.sh: New file.
32145         * tests/test-verify.c: Guard each negative test with a unique id.
32146         Also avoid warning about unused left hand of comma expressions.
32147
32148 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
32149
32150         Further improvements to verify.h, suggested by Eric Blake.
32151         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
32152         the GL_* versions, to avoid collision with OpenGL.
32153         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
32154         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
32155         than testing merely whether it's defined.
32156
32157         Modify verify.h to pacify gcc -Wredundant_decls.
32158         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
32159         These use the prefix "GL_" since they're likely to be useful elsewhere.
32160         We may need to break them out into a different .h file.
32161         (__COUNTER__): Define to 0 if the compiler doesn't support it.
32162         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
32163         of verify_function__.
32164
32165 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
32166
32167         Tests for module pwrite.
32168         * modules/pwrite-tests: New file.
32169         * tests/test-pwrite.sh: New file.
32170         * tests/test-pwrite.c: New file.
32171
32172         New module pwrite.
32173         * lib/unistd.in.h (pwrite): New declaration.
32174         * lib/pwrite.c: New file, from glibc with modifications.
32175         * m4/pwrite.m4: New file.
32176         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
32177         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
32178         REPLACE_PWRITE.
32179         * modules/pwrite: New file.
32180         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
32181         REPLACE_PWRITE.
32182         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
32183         * doc/posix-functions/pwrite.texi: Mention the new module.
32184
32185 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
32186
32187         pread: Update documentation.
32188         * doc/posix-functions/pread.texi: Mention the 'pread' module.
32189
32190 2010-05-04  Eric Blake  <eblake@redhat.com>
32191
32192         docs: update cygwin progress
32193         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
32194         this bug.
32195         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
32196         Added in cygwin 1.7.2.
32197         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
32198         Likewise.
32199         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
32200         Likewise.
32201         * doc/glibc-functions/dup3.texi (dup3): Likewise.
32202         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
32203         * doc/glibc-functions/accept4.texi (accept4): Likewise.
32204         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
32205         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
32206         Mention nproc module.
32207         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
32208         bug in cygwin 1.7.5 addition.
32209         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
32210         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
32211         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
32212         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
32213         1.7.5.
32214         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
32215         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
32216         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
32217         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
32218         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
32219         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
32220         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
32221         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
32222         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
32223         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
32224         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
32225         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
32226         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
32227         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
32228         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
32229         Likewise.
32230         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
32231         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
32232         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
32233         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
32234         Likewise.
32235         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
32236         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
32237         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
32238         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
32239         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
32240         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
32241         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
32242         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
32243         Likewise.
32244         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
32245         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
32246         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
32247         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
32248         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
32249         Likewise.
32250         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
32251         Likewise.
32252         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
32253         Likewise.
32254         * doc/glibc-functions/xdrrec_endofrecord.texi
32255         (xdrrec_endofrecord): Likewise.
32256         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
32257         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
32258         Likewise.
32259         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
32260         Likewise.
32261
32262 2010-05-04  Jim Meyering  <meyering@redhat.com>
32263
32264         gendocs.sh: make its "-s FILE" option more useful
32265         * build-aux/gendocs.sh: When honoring the -s FILE option, update
32266         $PACKAGE to reflect the probably-different basename of "FILE".
32267
32268 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
32269
32270         bootstrap: don't ignore download_po_files failure
32271         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
32272         failure.
32273
32274 2010-05-03  Jim Meyering  <meyering@redhat.com>
32275
32276         maint.mk: allow to pass options to gendocs.sh
32277         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
32278         (gendocs_options_): New overridable variable.
32279
32280         gnu-web-doc-update: don't ignore configure or build failure
32281         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
32282
32283         announce-gen: backslash-escape '@'s in --help output
32284         * build-aux/announce-gen: Fix syntax errors.
32285
32286         maint.mk, announce-gen: allow project-specific announcement mail headers
32287         * top/maint.mk (translation_project_): Define default.
32288         (announcement_Cc_, announcement_mail_headers_): Likewise.
32289         (announcement): Invoke announce-gen with new --mail-headers option.
32290         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
32291
32292         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
32293         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
32294         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
32295         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
32296         line in the "err2" output file when running "make check" in verbose
32297         mode (i.e., with set -x enabled).
32298
32299 2010-05-03  Bruno Haible  <bruno@clisp.org>
32300
32301         wctob: Fix for weird platforms.
32302         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
32303         argument value.
32304
32305 2010-05-03  Jim Meyering  <meyering@redhat.com>
32306
32307         maint.mk: prohibit unwarranted use of <strings.h>
32308         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
32309         strings.h in a file that does not also use strcasecmp, strncasecmp,
32310         ffs or ffsll.
32311
32312         maint.mk: remove obsolete comments
32313         * top/maint.mk: Remove stale, commented-out rules.
32314
32315 2010-05-02  Bruno Haible  <bruno@clisp.org>
32316
32317         wcwidth: Declare also when it's aliased.
32318         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
32319         macro.
32320
32321 2010-05-02  Bruno Haible  <bruno@clisp.org>
32322
32323         Fix regression from 2010-04-25.
32324         * gnulib-tool (func_modules_transitive_closure): Check the status of
32325         all modules, not only of the tests that are of the form foo-tests where
32326         foo is a module.
32327
32328 2010-05-02  Bruno Haible  <bruno@clisp.org>
32329
32330         wctob: Work around nasty Cygwin 1.7.2 bug.
32331         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
32332         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
32333
32334 2010-05-01  Bruno Haible  <bruno@clisp.org>
32335
32336         fpurge: Sharper test.
32337         * tests/test-fpurge.c (main): Add one more ftell check.
32338         * modules/fpurge-tests (Depends-on): Add ftell.
32339         Suggested by Eric Blake.
32340
32341 2010-05-01  Bruno Haible  <bruno@clisp.org>
32342
32343         ftello: Another test.
32344         * tests/test-ftello3.c: New file.
32345         * modules/ftello-tests (Files): Add it.
32346         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
32347         MOSTLYCLEANFILES.
32348
32349         ftell: Another test.
32350         * tests/test-ftell3.c: New file.
32351         * modules/ftell-tests (Files): Add it.
32352         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
32353         MOSTLYCLEANFILES.
32354
32355 2010-05-01  Bruno Haible  <bruno@clisp.org>
32356
32357         ftell, ftello: Work around Solaris bug.
32358         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
32359         * lib/ftello.c: Include stdio-impl.h.
32360         (ftello): On Solaris, when _IOWRT is set, compute the result without
32361         looking at _IOREAD.
32362         * modules/ftello (Files): Add lib/stdio-impl.h.
32363         * doc/posix-functions/ftell.texi: Mention Solaris bug.
32364         * doc/posix-functions/ftello.texi: Likewise.
32365         Reported by Eric Blake.
32366
32367 2010-05-01  Bruno Haible  <bruno@clisp.org>
32368
32369         freading: Adapt to special meaning of _IOREAD flag on Solaris.
32370         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
32371         the _IOWRT flag is also set.
32372
32373 2010-05-01  Bruno Haible  <bruno@clisp.org>
32374
32375         Fix doc about a HP-UX stdio bug.
32376         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
32377         * doc/posix-functions/ftello.texi: Likewise.
32378
32379 2010-05-01  Bruno Haible  <bruno@clisp.org>
32380
32381         lseek test: Fix failure on Solaris.
32382         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
32383         output.
32384
32385 2010-04-30  Jim Meyering  <meyering@redhat.com>
32386
32387         bootstrap: don't ignore failure to generate po*/Makevars
32388         * build-aux/bootstrap (with_gettext): Don't ignore failure
32389         to create po/Makevars or runtime-po/Makevars.
32390
32391 2010-04-29  Eric Blake  <eblake@redhat.com>
32392
32393         headers: relax license to LGPLv2+
32394         * modules/fcntl-h (License): Relax license.
32395         * modules/getopt-posix (License): Likewise.
32396         * modules/locale (License): Likewise.
32397         * modules/math (License): Likewise.
32398         * modules/pty (License): Likewise.
32399         * modules/sched (License): Likewise.
32400         * modules/search (License): Likewise.
32401         * modules/spawn (License): Likewise.
32402         * modules/stdarg (License): Likewise.
32403         * modules/sysexits (License): Likewise.
32404
32405 2010-04-29  Jim Meyering  <meyering@redhat.com>
32406
32407         inttypes: relax license to LGPLv2+
32408         * modules/inttypes (License): Relax license.
32409
32410 2010-04-29  Simon Josefsson  <simon@josefsson.org>
32411
32412         * top/maint.mk (indent): Run twice to produce idempotent results.
32413
32414 2010-04-28  Bruno Haible  <bruno@clisp.org>
32415
32416         getdate: Generate getdate.c in the source directory.
32417         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
32418         MOSTLYCLEANFILES.
32419         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
32420
32421 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
32422
32423         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
32424         is not declared as a const *; avoid warnings in that case.
32425
32426 2010-04-28  Eric Blake  <eblake@redhat.com>
32427
32428         canonicalize-lgpl: avoid compiler warning
32429         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
32430         declaration' / 'extraneous semicolon' warning with some compilers.
32431         Reported by Andreas Gruenbacher.
32432
32433 2010-04-28  Jim Meyering  <meyering@redhat.com>
32434
32435         init.sh: ensure a more reliable exit status when exiting via trap
32436         * tests/init.sh (setup_): Don't rely on $? in signal handler.
32437         Inspired by patches from Dmitry V. Levin.
32438         Also trap on signal 3 (SIGQUIT).
32439
32440 2010-04-27  Bruno Haible  <bruno@clisp.org>
32441
32442         Update doc about utimes().
32443         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
32444         'utimens' module.
32445         Reported by Andreas Gruenbacher <agruen@suse.de>.
32446
32447 2010-04-27  Eric Blake  <eblake@redhat.com>
32448
32449         full-read, full-write: relax license
32450         * modules/full-read (License): Drop to LGPLv2+.
32451         * modules/full-write (License): Likewise.
32452         * modules/safe-read (License): Likewise.
32453         * modules/safe-write (License): Likewise.
32454
32455         pthread: mention library for linking
32456         * modules/pthread (Link): Mention $(LIB_PTHREAD).
32457
32458 2010-04-27  Jim Meyering  <meyering@redhat.com>
32459
32460         maint.mk: fix a bug introduced in last change
32461         * top/maint.mk (gl_assured_headers_): Now that all names are on
32462         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
32463         is not anchored to end of word, it should be adequate.
32464
32465         maint.mk: avoid side-effect in latest syntax-check
32466         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
32467         to run commands via $(shell...), and hence to incur cost only when
32468         the new rule is actually run.
32469
32470         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
32471         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
32472         and use that to create a regexp used to detect all #if HAVE_..._H uses.
32473         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
32474         (gl_assured_headers_, az_, AZ_): Define.
32475         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
32476
32477 2010-04-26  Jim Meyering  <jim@meyering.net>
32478             Bruno Haible  <bruno@clisp.org>
32479
32480         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
32481         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
32482         Prompted by an exchange with Gilles Espinasse.
32483
32484 2010-04-26  Jim Meyering  <meyering@redhat.com>
32485
32486         git-version-gen: aesthetic tweak
32487         * build-aux/git-version-gen: Use "$nl" rather than a literal,
32488         so that the command remains on a single line.
32489
32490 2010-04-26  Eric Blake  <eblake@redhat.com>
32491
32492         git-version-gen: allow use on EBCDIC hosts
32493         * build-aux/git-version-gen (dirty): Use literal rather than tying
32494         ourselves to ascii.
32495         Reported by Steve Goetze.
32496
32497 2010-04-25  Bruno Haible  <bruno@clisp.org>
32498
32499         netdb: Add support for GNULIB_POSIXCHECK.
32500         * lib/netdb.in.h: Include warn-on-use.h.
32501         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
32502         functions are used when GNULIB_POSIXCHECK is defined and the
32503         getaddrinfo module is not in use.
32504         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
32505         freeaddrinfo, gai_strerror, getnameinfo are declared.
32506         * modules/netdb (Depends-on): Add warn-on-use.
32507         (Makefile.am): Include warn-on-use.h in netdb.h.
32508
32509 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
32510
32511         build: avoid "make check" failure without .git/ directory
32512         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
32513         there is no .git/ directory.
32514
32515 2010-04-25  Bruno Haible  <bruno@clisp.org>
32516
32517         ptsname: Fix misuse of ttyname_r.
32518         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
32519         of errno.
32520
32521 2010-04-25  Bruno Haible  <bruno@clisp.org>
32522
32523         ttyname_r: Make it work on Solaris 10.
32524         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
32525         if the system function has the POSIX declaration. Test whether the
32526         function fails if the buffer is less than 128 bytes large.
32527         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
32528         system's ttyname_r function. Provide a reasonably large buffer.
32529         * modules/ttyname_r (Depends-on): Add extensions.
32530         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
32531
32532 2010-04-25  Bruno Haible  <bruno@clisp.org>
32533
32534         Use the 'extensions' module for some more functions on Solaris.
32535         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
32536         module.
32537         * doc/posix-functions/ctime_r.texi: Likewise.
32538         * doc/posix-functions/getgrgid_r.texi: Likewise.
32539         * doc/posix-functions/getgrnam_r.texi: Likewise.
32540         * doc/posix-functions/getpwnam_r.texi: Likewise.
32541         * doc/posix-functions/getpwuid_r.texi: Likewise.
32542         * doc/posix-functions/readdir_r.texi: Likewise.
32543         * doc/posix-functions/sigwait.texi: Likewise.
32544         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
32545         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
32546
32547 2010-04-25  Bruno Haible  <bruno@clisp.org>
32548
32549         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
32550         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
32551         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
32552         * lib/ttyname_r.c: Include <limits.h>.
32553         (ttyname_r): Define using the system's ttyname_r function, if it exists
32554         and not on Solaris.
32555         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
32556         set.
32557         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
32558         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
32559         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
32560         Reported by Simon Josefsson.
32561
32562 2010-04-25  Bruno Haible  <bruno@clisp.org>
32563
32564         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
32565         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
32566         * doc/posix-functions/ctime_r.texi: Likewise.
32567         * doc/posix-functions/getgrgid_r.texi: Likewise.
32568         * doc/posix-functions/getgrnam_r.texi: Likewise.
32569         * doc/posix-functions/getlogin_r.texi: Likewise.
32570         * doc/posix-functions/getpwnam_r.texi: Likewise.
32571         * doc/posix-functions/getpwuid_r.texi: Likewise.
32572         * doc/posix-functions/readdir_r.texi: Likewise.
32573         * doc/posix-functions/sigwait.texi: Likewise.
32574         * doc/posix-functions/ttyname_r.texi: Likewise.
32575         Reported by Simon Josefsson.
32576
32577 2010-04-25  Bruno Haible  <bruno@clisp.org>
32578
32579         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
32580         * gnulib-tool (func_usage): Document that --with-*-tests options apply
32581         also to --create-testdir.
32582         (func_acceptable): Don't consider the status of *-tests modules here.
32583         (func_modules_transitive_closure): Consider it here, before including a
32584         test module.
32585         (func_import, func_create_testdir): Set inc_all_direct_tests,
32586         inc_all_indirect_tests.
32587         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
32588         --create-testdir and --create-megatestdir.
32589
32590 2010-04-25  Bruno Haible  <bruno@clisp.org>
32591
32592         gnulib-tool: Add --without-*-tests options.
32593         * gnulib-tool (func_usage): Document the --without-*-tests options.
32594         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
32595         excl_unportable_tests): New variables.
32596         Fail if they are specified with --import or --update.
32597         (func_acceptable): Respect the excl_*_tests variables.
32598         (func_import): Set the excl_*_tests variables to empty.
32599
32600 2010-04-25  Simon Josefsson  <simon@josefsson.org>
32601             Bruno Haible  <bruno@clisp.org>
32602
32603         Work around a MacOS X 10.4 bug with openpty.
32604         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
32605         * tests/test-openpty.c (main): Close the master side explicitly.
32606
32607 2010-04-25  Bruno Haible  <bruno@clisp.org>
32608
32609         strnlen: Fix a C++ test error on MacOS X and Solaris.
32610         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
32611         the function is not declared.
32612         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
32613         Simon Josefsson.
32614
32615 2010-04-24  Bruno Haible  <bruno@clisp.org>
32616
32617         Avoid a gcc warning.
32618         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
32619         of correct type for %08lx directive.
32620         Reported by Eric Blake.
32621
32622 2010-04-24  Bruno Haible  <bruno@clisp.org>
32623
32624         vasnprintf: Correct errno value in case of out-of-memory.
32625         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
32626         or sprintf. Use the errno value from SNPRINTF or sprintf.
32627         Reported by Ian Beckwith <ianb@erislabs.net>.
32628
32629 2010-04-24  Bruno Haible  <bruno@clisp.org>
32630
32631         ansi-c++-opt: Find correct compiler when cross-compiling.
32632         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
32633         AC_CHECK_PROGS.
32634         Reported by Simon Josefsson.
32635
32636 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
32637
32638         vc-list-files: Add support for subversion
32639         * build-aux/vc-list-files: Use "svn list" to generate the list of
32640         files controlled by subversion.
32641
32642 2010-04-23  Jim Meyering  <meyering@redhat.com>
32643
32644         vc-list-files tests: convert to use init.sh
32645         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
32646         path_prepend_.
32647         Use Exit, not exit.
32648         Use skip_ rather than open coding it.
32649         Remove trap set-up and compare definitions.
32650         * tests/test-vc-list-files-git.sh: Likewise.
32651         * modules/vc-list-files-tests (Files): Add tests/init.sh.
32652
32653 2010-04-22  Simon Josefsson  <simon@josefsson.org>
32654
32655         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
32656         backup files.
32657
32658 2010-04-21  Simon Josefsson  <simon@josefsson.org>
32659
32660         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
32661
32662 2010-04-20  Eric Blake  <eblake@redhat.com>
32663
32664         tests: be robust to ignored SIGPIPE
32665         * tests/test-select-in.sh: Consume all output.
32666         * tests/test-lseek.sh: Check correct exit status, while avoiding
32667         EPIPE.
32668
32669 2010-04-20  Simon Josefsson  <simon@josefsson.org>
32670             Bruno Haible  <bruno@clisp.org>
32671
32672         visibility: Don't use -fvisibility if it leads to a warning.
32673         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
32674         yes, don't pretend that visibility works if it leads to a warning.
32675         Reported by Mike Gran <spk121@yahoo.com>.
32676
32677 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
32678
32679         * build-aux/bootstrap: Use "git -h" for testing for supported options
32680         instead of "git --help".  The short-form option only shows a summary,
32681         and doesn't layout the full man page.  Grep for the full option name
32682         in the summary, too.
32683
32684 2010-04-19  Bruno Haible  <bruno@clisp.org>
32685
32686         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
32687         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
32688         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
32689         mention of RELOCATABLE_STRIP.
32690         Reported by Sylvain Beucler <beuc@beuc.net>.
32691
32692 2010-04-19  Bruno Haible  <bruno@clisp.org>
32693
32694         * lib/diffseq.h: Fix typo in comment.
32695         Reported by Eric Blake.
32696
32697 2010-04-19  Bruno Haible  <bruno@clisp.org>
32698
32699         ioctl: Move autoconf macro to a .m4 file.
32700         * m4/ioctl.m4: New file, extracted from modules/ioctl.
32701         * modules/ioctl (Files): Add it.
32702         (configure.ac): Simply invoke gl_FUNC_IOCTL.
32703         Reported by Ian Beckwith <ianb@erislabs.net>.
32704
32705 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
32706             Bruno Haible  <bruno@clisp.org>
32707
32708         diffseq: Accommodate use-case with abstract arrays.
32709         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
32710         is not defined.
32711         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
32712         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
32713
32714 2010-04-18  Bruno Haible  <bruno@clisp.org>
32715
32716         * doc/posix-headers/stdbool.texi: More precise wording.
32717
32718 2010-04-17  Jim Meyering  <meyering@redhat.com>
32719
32720         maint.mk: use gnu-style indentation in an embedded perl script
32721         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
32722         Rename variable: s/two/last_two_bytes/
32723
32724 2010-04-16  Eric Blake  <eblake@redhat.com>
32725
32726         test-stdbool: skip test that fails with Solaris CC
32727         * tests/test-stdbool.c (f): Skip test that causes compilation
32728         error under buggy C++ compiler.
32729         * lib/stdbool.in.h: Document the limitation.
32730         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
32731
32732         setenv: allow compilation with C++
32733         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
32734         register keyword.
32735
32736         stdint: allow test to pass with C++
32737         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
32738
32739         getopt: allow compilation with C++
32740         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
32741         struct.
32742         * lib/getopt.c (_getopt_internal_r): Use correct type.
32743         Reported by Dagobert Michelson, via Joel E. Denny.
32744
32745 2010-04-16  Bruno Haible  <bruno@clisp.org>
32746
32747         Override netdb.h always.
32748         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
32749         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
32750         Reported by Ludovic Courtès <ludo@gnu.org>.
32751
32752 2010-04-15  Bruno Haible  <bruno@clisp.org>
32753
32754         openpty: Fix mistake from 2010-03-21.
32755         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
32756         Reported by Simon Josefsson.
32757
32758 2010-04-15  Eric Blake  <eblake@redhat.com>
32759
32760         test-forkpty: fix expected signature
32761         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
32762         Reported by Simon Josefsson.
32763
32764 2010-04-15  Jim Meyering  <meyering@redhat.com>
32765
32766         maint.mk: texinfo_suffix_re_: correct the default regexp
32767         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
32768
32769         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
32770         make it configurable via texinfo_suffix_re_.
32771
32772 2010-04-14  Eric Blake  <eblake@redhat.com>
32773
32774         strtok_r: relax license to LGPLv2+
32775         * modules/strtok_r (License): Relax license.
32776         Reported by Matthias Bolte.
32777
32778 2010-04-14  Simon Josefsson  <simon@josefsson.org>
32779
32780         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
32781         version 1.4.4 by default instead of requiring the libgcrypt
32782         version used during build.  This makes it possible to use the
32783         application with older but still binary compatible libgcrypt
32784         versions.
32785
32786 2010-04-13  Eric Blake  <eblake@redhat.com>
32787
32788         getopt-gnu: match recent glibc fixes and posix ruling
32789         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
32790         '+' handling, when requesting extensions.
32791         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
32792         'W;' handling.
32793         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
32794         * doc/posix-functions/getopt.texi (getopt): Document this.
32795         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
32796         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32797         Likewise.
32798
32799         getopt: merge bug fixes from glibc
32800         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
32801         diagnostics.  Honor '+:' correctly.  Reject ';'.
32802
32803         getopt-posix: detect MacOS bug
32804         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
32805         optind when missing a required argument.
32806         * doc/posix-functions/getopt.texi (getopt): Document the bug.
32807         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
32808         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
32809         Likewise.
32810
32811         getopt-posix: avoid spurious failure on Solaris
32812         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
32813         an indicator that setting optind=1 is sufficient for reset.
32814
32815         getopt-posix: avoid spurious failure on FreeBSD
32816         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
32817         in POSIX mode, since the m4 test uses it.
32818
32819         gnulib-tool: silence warning on BSD sh
32820         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
32821
32822 2010-04-13  Jim Meyering  <meyering@redhat.com>
32823
32824         doc: users.txt: GNU patch now uses gnulib
32825         * users.txt: Add patch.
32826
32827 2010-04-12  Jim Meyering  <meyering@redhat.com>
32828
32829         maint.mk: generate more concise timing data for syntax-check rules
32830         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
32831         " done" from each line that reports a syntax-check test duration.
32832
32833 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
32834
32835         git-version-gen: use "git update-index..." rather than "git status"
32836         * build-aux/git-version-gen: Use git update-index --refresh, not
32837         "git status".  With some versions of git, "git status" would fail
32838         to update the index and result in an unwarranted "-dirty" suffix.
32839
32840 2010-04-11  Jim Meyering  <meyering@redhat.com>
32841
32842         openat: correct formatting (no semantic change)
32843         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
32844         Suggested by Bruno Haible.
32845
32846 2010-04-11  Bruno Haible  <bruno@clisp.org>
32847
32848         Stricter declaration checking in testdirs.
32849         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32850         If for_tests is true, augment AM_CPPFLAGS to define
32851         GNULIB_STRICT_CHECKING.
32852         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
32853         GNULIB_STRICT_CHECKING is defined, verify that the function is
32854         declared.
32855
32856 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
32857             Bruno Haible  <bruno@clisp.org>
32858
32859         libunistring: Improve configure output.
32860         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
32861         Don't say "consider installing GNU libunistring" when checking again
32862         with libiconv.
32863
32864 2010-04-11  Bruno Haible  <bruno@clisp.org>
32865
32866         libunistring: Correct value of $LTLIBUNISTRING.
32867         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
32868         correct the value of $LTLIBUNISTRING.
32869
32870 2010-04-11  Bruno Haible  <bruno@clisp.org>
32871
32872         havelib: Add static libraries to LIBS in the right order.
32873         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
32874         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
32875
32876 2010-04-11  Bruno Haible  <bruno@clisp.org>
32877
32878         libunistring: Detect libunistring also when it depends on libiconv.
32879         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
32880         the second AC_LIB_HAVE_LINKFLAGS invocation.
32881
32882 2010-04-11  James Youngman  <jay@gnu.org>
32883
32884         close-stream: declare local scalars to be "const"
32885         * lib/close-stream.c (close_stream): Make boolean variables const
32886         to document the fact that we set but do not change them.
32887
32888 2010-04-11  Bruno Haible  <bruno@clisp.org>
32889
32890         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
32891
32892 2010-04-11  Jim Meyering  <meyering@redhat.com>
32893
32894         maint.mk: don't include dist-check.mk
32895         * top/maint.mk: Remove bogus include directive.
32896
32897         maint.mk: improve empty-line-at-EOF check
32898         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
32899         solution, rather than tail+Perl-based one.  The latter would read
32900         a few kilobytes from the end of each file, and did not handle empty
32901         files properly.
32902
32903         maint.mk: print the elapsed time for each syntax-check rule
32904         * top/maint.mk (sc_m_rules_): Save start time in a file.
32905         (sc_z_rules_): New rules: remove temp file and print elapsed time.
32906         (local-check): Interpose the .z rules
32907
32908 2010-04-11  Jim Meyering  <meyering@redhat.com>
32909
32910         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
32911         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
32912         empty file with one that ends in an empty line.
32913
32914 2010-04-10  Bruno Haible  <bruno@clisp.org>
32915
32916         mkdir: Make it work on mingw64.
32917         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
32918         * lib/mkdir.c: Update comment.
32919         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
32920
32921 2010-04-10  Bruno Haible  <bruno@clisp.org>
32922
32923         Don't override improved macro from newer autoconf.
32924         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
32925         autoconf >= 2.62.
32926         Reported by Joel E. Denny <jdenny@clemson.edu>.
32927
32928 2010-04-10  Jim Meyering  <meyering@redhat.com>
32929
32930         maint.mk: new syntax-check rule: prohibit empty lines at end of file
32931         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
32932
32933         maint.mk: correct a diagnostic
32934         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
32935         in diagnostic; now use $prohibit.
32936
32937 2010-04-10  Bruno Haible  <address@hidden>
32938
32939         fchownat: Fix a C++ test error on Solaris 8.
32940         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
32941         the function does not exist.
32942
32943 2010-04-10  Bruno Haible  <bruno@clisp.org>
32944
32945         vasnprintf: Add more tests.
32946         * tests/test-vasnprintf-posix.c: Include <errno.h>.
32947         (test_function): Test converting an invalid wide string.
32948
32949         vasnprintf: Correct handling of unconvertible wide string arguments.
32950         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
32951         VASNPRINTF.
32952         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
32953         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
32954         smaller than the expected maximum need for the directive. Set errno to
32955         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
32956         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
32957         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
32958         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
32959         * modules/vasnprintf (Files): Add m4/printf.m4.
32960         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32961
32962 2010-04-10  Bruno Haible  <bruno@clisp.org>
32963
32964         vasnprintf: Fix crash in %ls directive.
32965         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
32966         string is passed as argument to %ls, with no precision and no width.
32967         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32968
32969 2010-04-10  Bruno Haible  <bruno@clisp.org>
32970
32971         vasnprintf: Fix multiple test failures on mingw.
32972         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
32973         _snprintf, or snwprintf, not _snwprintf.
32974
32975 2010-04-10  Bruno Haible  <bruno@clisp.org>
32976
32977         write: Fix a C++ test error on mingw.
32978         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
32979
32980 2010-04-10  Bruno Haible  <bruno@clisp.org>
32981
32982         vasnprintf test: Reduce code duplication.
32983         * tests/test-vasnprintf.c (test_function): New function, extracted from
32984         test_vasnprintf.
32985         (test_vasnprintf, test_asnprintf): Invoke it.
32986
32987 2010-04-10  Bruno Haible  <bruno@clisp.org>
32988
32989         strnlen: Fix warning in C++ mode on MacOS X.
32990         * lib/string.in.h (strnlen): Use the modern idiom.
32991         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
32992         defining strnlen as a macro already in <config.h>.
32993         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32994         REPLACE_STRNLEN.
32995         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
32996         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
32997
32998 2010-04-08  James Youngman  <jay@gnu.org>
32999
33000         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
33001         the example.
33002
33003 2010-04-09  Jim Meyering  <meyering@redhat.com>
33004
33005         maint.mk: print better diagnostic when there is no $(_hv_file)
33006         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
33007         announce that when $(_hv_file) (aka help-version) does not exist.
33008
33009         init.sh: run tr in the "C" locale to avoid multibyte interpretation
33010         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
33011         not try to interpret its random input bytes.  Jarno Rajahalme reported
33012         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
33013         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
33014         (mktempd_): Likewise, just in case.
33015
33016         ftruncate: add two years to projected module removal date: 2012
33017         * m4/ftruncate.m4: Adjust comments.
33018
33019         ftruncate: mark module as obsolete; even MinGW provides it, now
33020         * modules/ftruncate (Status): Obsolete.
33021         (Notice): Say that.
33022         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
33023         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
33024
33025 2010-04-08  Bruno Haible  <bruno@clisp.org>
33026
33027         Fix side effects from tests-related modules.
33028         * modules/dprintf-posix (Comment): New section.
33029         * modules/fprintf-posix (Comment): Likewise.
33030         * modules/obstack-printf-posix (Comment): Likewise.
33031         * modules/printf-posix (Comment): Likewise.
33032         * modules/snprintf-posix (Comment): Likewise.
33033         * modules/sprintf-posix (Comment): Likewise.
33034         * modules/vasnprintf-posix (Comment): Likewise.
33035         * modules/vasprintf-posix (Comment): Likewise.
33036         * modules/vdprintf-posix (Comment): Likewise.
33037         * modules/vfprintf-posix (Comment): Likewise.
33038         * modules/vprintf-posix (Comment): Likewise.
33039         * modules/vsnprintf-posix (Comment): Likewise.
33040         * modules/vsprintf-posix (Comment): Likewise.
33041         * modules/xprintf-posix (Comment): Likewise.
33042         * modules/xvasprintf-posix (Comment): Likewise.
33043         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
33044         * modules/floorf-tests (Depends-on): Likewise.
33045         * modules/round-tests (Depends-on): Likewise.
33046         * modules/roundf-tests (Depends-on): Likewise.
33047         * modules/trunc-tests (Depends-on): Likewise.
33048         * modules/truncf-tests (Depends-on): Likewise.
33049         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
33050         'fprintf-posix' module is not present.
33051         * tests/test-floorf2.c (check): Likewise.
33052         * tests/test-trunc2.c (check): Likewise.
33053         * tests/test-truncf2.c (check): Likewise.
33054         * tests/test-round2.c (equal): Likewise.
33055         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
33056
33057 2010-04-07  Karl Berry  <karl@gnu.org>
33058
33059         * config/srclist.txt,
33060         * config/srclistvars.sh,
33061         * config/srclist-update: doc fixes.
33062
33063 2010-04-07  Jim Meyering  <meyering@redhat.com>
33064
33065         maint.mk: add a PATH crosschecking syntax-check rule
33066         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
33067         Useful if you use a test like the one in help-version (coreutils,
33068         diffutils, grep, gzip) that ensures $(VERSION) matches what is
33069         printed by prog --version.
33070
33071 2010-04-06  Bruno Haible  <bruno@clisp.org>
33072
33073         Fix link error on mingw.
33074         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
33075         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
33076
33077 2010-04-06  Bruno Haible  <bruno@clisp.org>
33078
33079         Assume rmdir exists.
33080         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
33081
33082 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
33083
33084         doc: update users.txt
33085         * users.txt: Add gcal.
33086
33087 2010-04-06  Jim Meyering  <meyering@redhat.com>
33088
33089         init.sh: simply unset TMPDIR rather than risking env -i
33090         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
33091         although it probably works fine on all Unix-based systems, some
33092         systems (Cygwin?) cannot tolerate a totally cleared environment.
33093         Suggestion from Eric Blake.
33094
33095 2010-04-06  Jim Meyering  <meyering@redhat.com>
33096
33097         init.sh: portability fix: use env's POSIX-specified -i option not -u
33098         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
33099         than unportable env -u.  Solaris 5.11's env lacks support for -u.
33100
33101 2010-04-05  Bruno Haible  <bruno@clisp.org>
33102
33103         btowc: Work around Cygwin 1.7.2 bug.
33104         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
33105         does not map NUL to 0.
33106         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
33107
33108 2010-04-05  Bruno Haible  <bruno@clisp.org>
33109
33110         Make the multithread modules work on Cygwin 1.7.2.
33111         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
33112         imported symbols can be declared weak, so that it returns "no" on
33113         Cygwin 1.7.2.
33114
33115 2010-04-05  Bruno Haible  <bruno@clisp.org>
33116
33117         Use the module 'strncat'.
33118         * modules/unistr/u8-strncat (Depends-on): Add strncat.
33119
33120         Tests for module 'strncat'.
33121         * modules/strncat-tests: New file.
33122         * tests/test-strncat.c: New file.
33123
33124         New module 'strncat'.
33125         * lib/string.in.h (strncat): New declaration.
33126         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
33127         * m4/strncat.m4: New file, based on m4/memchr.m4.
33128         * modules/strncat: New file.
33129         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
33130         is declared.
33131         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
33132         REPLACE_STRNCAT.
33133         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
33134         REPLACE_STRNCAT.
33135         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
33136         module.
33137         * tests/test-string-c++.cc: Check signature of strncat.
33138
33139 2010-04-05  Jim Meyering  <meyering@redhat.com>
33140
33141         xstrtoumax-tests: convert to use init.sh
33142         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
33143         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33144         Use Exit, not exit.
33145         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33146
33147         xstrtoimax-tests: convert to use init.sh
33148         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
33149         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33150         Use Exit, not exit.
33151         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33152
33153 2010-04-05  Bruno Haible  <bruno@clisp.org>
33154
33155         sys_socket: Avoid #define replacements in C++ mode.
33156         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
33157         warning to the function if possible, rather than #defining the symbol
33158         to a dysfunctional alias.
33159
33160 2010-04-05  Bruno Haible  <bruno@clisp.org>
33161
33162         fseeko: Fix C++ test error on mingw.
33163         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
33164         gl_FUNC_FSEEKO.
33165         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
33166         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
33167         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
33168         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
33169
33170 2010-04-05  Bruno Haible  <bruno@clisp.org>
33171
33172         duplocale: Improve test output.
33173         * tests/test-duplocale.c (main): Print reason for skipped test.
33174
33175 2010-04-05  Bruno Haible  <bruno@clisp.org>
33176
33177         Assume rmdir exists.
33178         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
33179         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
33180
33181 2010-04-05  Bruno Haible  <bruno@clisp.org>
33182
33183         Fix link error on Solaris 8 with cc.
33184         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
33185
33186 2010-04-05  Bruno Haible  <bruno@clisp.org>
33187
33188         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
33189         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
33190
33191 2010-04-05  Bruno Haible  <bruno@clisp.org>
33192
33193         vasprintf: Update documentation.
33194         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
33195
33196 2010-04-05  Bruno Haible  <bruno@clisp.org>
33197
33198         ptsname: Improve test.
33199         * tests/test-ptsname.c (main): Also try the various master names of BSD
33200         systems.
33201
33202 2010-04-05  Bruno Haible  <bruno@clisp.org>
33203
33204         memchr: Avoid a possible C++ test error.
33205         * lib/string.in.h (memchr): Provide declaration if function is missing.
33206         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
33207         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
33208         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
33209         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
33210
33211 2010-04-05  Bruno Haible  <bruno@clisp.org>
33212
33213         strtok_r: Improve idiom.
33214         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
33215         AC_LIBOBJ is used.
33216
33217 2010-04-05  Bruno Haible  <bruno@clisp.org>
33218
33219         strdup: Improve idiom.
33220         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
33221         AC_LIBOBJ is used.
33222         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
33223         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
33224         when AC_LIBOBJ is used.
33225
33226 2010-04-05  Bruno Haible  <bruno@clisp.org>
33227
33228         mbsinit, mbrtowc, wcrtomb: Improve idioms.
33229         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
33230         don't set REPLACE_MBSINIT to 1.
33231         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
33232         don't set REPLACE_MBRTOWC to 1.
33233         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
33234         exist, don't set REPLACE_MBSRTOWCS to 1.
33235         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
33236         exist, don't set REPLACE_MBSNRTOWCS to 1.
33237         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
33238         don't set REPLACE_WCRTOMB to 1.
33239         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
33240         exist, don't set REPLACE_WCSRTOMBS to 1.
33241         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
33242         exist, don't set REPLACE_WCSNRTOMBS to 1.
33243
33244 2010-04-05  Bruno Haible  <bruno@clisp.org>
33245
33246         ldexpl: Improve idiom.
33247         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
33248         make sure to set HAVE_DECL_LDEXPL to 0.
33249
33250 2010-04-05  Jim Meyering  <meyering@redhat.com>
33251
33252         xstrtol-tests: convert to use init.sh
33253         * modules/xstrtol-tests (Files): Add tests/init.sh.
33254         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33255         Use Exit, not exit.
33256         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33257
33258         atexit-tests: convert to use init.sh
33259         * modules/atexit-tests (Files): Add tests/init.sh.
33260         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
33261         Use Exit, not exit.
33262         Remove uses of $EXEEXT and "./" to run a program in the current dir.
33263
33264         init.sh: fix typo
33265         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
33266
33267         init.sh: make it easier for a test script to write to the tty, ...
33268         when using automake's parallel-tests mode.
33269         * tests/init.sh (stderr_fileno_): Define overridable variable.
33270         (warn_): New function, to use it.
33271         (fail_, skip_, framework_failure_): Use warn_.
33272
33273 2010-04-04  Bruno Haible  <bruno@clisp.org>
33274
33275         btowc: Avoid warning.
33276         * lib/btowc.c: Include <stdlib.h>.
33277         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
33278
33279 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
33280             Bruno Haible  <bruno@clisp.org>
33281
33282         wchar: Port to NetBSD 1.5.
33283         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
33284         * lib/wctype.in.h (WEOF): Likewise.
33285
33286 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
33287             Bruno Haible  <bruno@clisp.org>
33288
33289         Port extended stdio to NetBSD 1.5.
33290         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
33291         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
33292         older.
33293
33294 2010-04-04  Bruno Haible  <bruno@clisp.org>
33295
33296         string: Remove unused substitution.
33297         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
33298         HAVE_DECL_STRERROR.
33299         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
33300
33301 2010-04-04  Bruno Haible  <bruno@clisp.org>
33302
33303         strtod: Avoid a possible C++ test error.
33304         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
33305         set REPLACE_STRTOD.
33306
33307 2010-04-04  Bruno Haible  <bruno@clisp.org>
33308
33309         strerror: Update documentation.
33310         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
33311
33312 2010-04-04  Bruno Haible  <bruno@clisp.org>
33313
33314         stdio: Fix some C++ test errors on Solaris 8 with GCC.
33315         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
33316         _GL_CXXALIAS_SYS_CAST.
33317
33318 2010-04-04  Bruno Haible  <bruno@clisp.org>
33319
33320         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
33321         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
33322         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
33323         REPLACE_FREXPL to 1.
33324         * doc/posix-functions/frexpl.texi: Update documentation.
33325
33326 2010-04-04  Bruno Haible  <bruno@clisp.org>
33327
33328         math: Fix some C++ test errors on Solaris 8 and Cygwin.
33329         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
33330
33331 2010-04-04  Bruno Haible  <bruno@clisp.org>
33332
33333         Implement nanosleep for native Windows.
33334         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
33335
33336 2010-04-04  Bruno Haible  <bruno@clisp.org>
33337
33338         math: Fix some C++ test errors on Solaris 8.
33339         * lib/math.in.h (truncf, trunc): Use simpler idiom.
33340
33341 2010-04-04  Bruno Haible  <bruno@clisp.org>
33342
33343         math: Fix some C++ test errors on Cygwin.
33344         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
33345         truncl): Provide declaration if the system does not have it.
33346         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
33347         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
33348         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
33349         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
33350         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
33351         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
33352         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
33353         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
33354         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
33355         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
33356         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
33357         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
33358         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
33359         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
33360         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
33361         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
33362         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
33363         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
33364         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
33365         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
33366         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
33367         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
33368
33369 2010-04-04  Bruno Haible  <bruno@clisp.org>
33370
33371         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
33372         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
33373         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
33374         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
33375         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
33376         * m4/isinf.m4 (gl_ISINF): Likewise.
33377         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
33378
33379 2010-04-04  Bruno Haible  <bruno@clisp.org>
33380
33381         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
33382         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
33383
33384 2010-04-04  Bruno Haible  <bruno@clisp.org>
33385
33386         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
33387         * modules/tmpfile (configure.ac): Update.
33388
33389         tmpfile: Fix C++ test error on mingw.
33390         * lib/stdio.in.h (tmpfile): New declaration.
33391         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
33392         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
33393         * modules/tmpfile (Depends-on): Add stdio.
33394         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
33395         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
33396         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
33397         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
33398         REPLACE_TMPFILE.
33399         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
33400
33401 2010-04-04  Bruno Haible  <bruno@clisp.org>
33402
33403         ioctl: Fix C++ test error on mingw.
33404         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
33405         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
33406         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
33407
33408 2010-04-03  Bruno Haible  <bruno@clisp.org>
33409
33410         wcwidth: Fix C++ test error on mingw.
33411         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
33412         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
33413         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
33414
33415 2010-04-03  Bruno Haible  <bruno@clisp.org>
33416
33417         nanosleep: Fix C++ test error on mingw.
33418         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
33419         * lib/time.in.h (nanosleep): Use modern idiom.
33420         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
33421         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
33422         REPLACE_NANOSLEEP to 1.
33423         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
33424         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
33425
33426 2010-04-03  Bruno Haible  <bruno@clisp.org>
33427
33428         strptime: Fix C++ test error on mingw.
33429         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
33430         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
33431         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
33432         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
33433         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
33434         not REPLACE_STRPTIME.
33435         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
33436         REPLACE_STRPTIME.
33437
33438 2010-04-03  Bruno Haible  <bruno@clisp.org>
33439
33440         timegm: Fix C++ test error on mingw.
33441         * lib/time.in.h (timegm): Use modern idiom.
33442         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
33443         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
33444         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
33445         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
33446
33447 2010-04-03  Bruno Haible  <bruno@clisp.org>
33448
33449         timegm: Assume declaration if function exists.
33450         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
33451         if it exists. Don't clobber ac_cv_func_timegm.
33452
33453 2010-04-03  Bruno Haible  <bruno@clisp.org>
33454
33455         time_r: Fix C++ test error on mingw.
33456         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
33457         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
33458         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
33459         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
33460         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
33461
33462 2010-04-03  Bruno Haible  <bruno@clisp.org>
33463
33464         time_r: Minor updates.
33465         * modules/time_r (Description): Mention the provided functions.
33466         * lib/time_r.c: Don't include <string.h>.
33467         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
33468         * doc/posix-functions/localtime_r.texi: Likewise.
33469
33470 2010-04-03  Bruno Haible  <bruno@clisp.org>
33471
33472         time: Fix regression introduced on 2010-03-08.
33473         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
33474         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
33475
33476 2010-04-03  Jim Meyering  <meyering@redhat.com>
33477
33478         maint.mk: don't silently disable project-specific syntax-check rules
33479         * top/maint.mk (_prohibit_regexp): Define, to help people realize
33480         that they need to convert their project-specific syntax-check rules
33481         to use the new _sc_search_regexp.
33482
33483 2010-04-03  Bruno Haible  <bruno@clisp.org>
33484
33485         fchdir: Fix regression introduced on 2010-03-08.
33486         * lib/unistd.in.h (fchdir): Fix declaration.
33487         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
33488         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
33489         REPLACE_FCHDIR.
33490         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
33491         REPLACE_FCHDIR.
33492
33493 2010-04-03  Bruno Haible  <bruno@clisp.org>
33494
33495         getpagesize: Fix C++ test error on mingw.
33496         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
33497         system does not declare the function.
33498         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
33499         declared.
33500         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33501         HAVE_DECL_GETPAGESIZE.
33502         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
33503
33504 2010-04-03  Bruno Haible  <bruno@clisp.org>
33505
33506         stdio: Make C++ tests work on mingw.
33507         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
33508         does not declare the function.
33509
33510 2010-04-03  Bruno Haible  <bruno@clisp.org>
33511
33512         ftello: Fix C++ test error on mingw.
33513         * lib/stdio.in.h (ftello): Use modern idiom.
33514         * lib/ftello.c (ftello): Renamed from rpl_ftello.
33515         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
33516         is missing and that it needs to be replaced.
33517         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
33518         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
33519         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
33520
33521 2010-04-03  Bruno Haible  <bruno@clisp.org>
33522
33523         fseeko: Fix C++ test error on mingw.
33524         * lib/stdio.in.h (fseeko): Use modern idiom.
33525         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
33526         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
33527         is missing and that it needs to be replaced.
33528         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
33529         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
33530         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
33531
33532 2010-04-03  Bruno Haible  <bruno@clisp.org>
33533
33534         mkstemp: Fix C++ test error on mingw.
33535         * lib/stdlib.in.h (mkstemp): Use modern idiom.
33536         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
33537         function is missing and that it needs to be replaced.
33538         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
33539         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
33540
33541 2010-04-03  Bruno Haible  <bruno@clisp.org>
33542
33543         stpncpy: Fix C++ test error on mingw.
33544         * lib/string.in.h (stpncpy): Use modern idiom.
33545         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
33546         function is missing and that it needs to be replaced.
33547         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
33548         REPLACE_STPNCPY.
33549         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
33550
33551 2010-04-03  Bruno Haible  <bruno@clisp.org>
33552
33553         sys_stat: Fix C++ test error on mingw.
33554         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
33555         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
33556
33557 2010-04-03  Bruno Haible  <bruno@clisp.org>
33558
33559         pty: Update doc.
33560         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
33561
33562 2010-04-03  Bruno Haible  <bruno@clisp.org>
33563
33564         unistd: Fix C++ test error on mingw.
33565         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
33566
33567 2010-04-03  Bruno Haible  <bruno@clisp.org>
33568
33569         Update doc regarding mingw.
33570         * doc/glibc-functions/openpty.texi: Update regarding mingw.
33571         * doc/glibc-functions/login_tty.texi: Likewise.
33572         * doc/glibc-functions/forkpty.texi: Likewise.
33573
33574 2010-04-03  Bruno Haible  <bruno@clisp.org>
33575
33576         stdlib: Avoid compilation failure of c-strtold on mingw.
33577         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
33578
33579 2010-04-03  Bruno Haible  <bruno@clisp.org>
33580
33581         locale: Make C++ tests work on Cygwin and mingw.
33582         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
33583         cannot provide the function.
33584         Reported by Simon Josefsson.
33585
33586 2010-04-03  Bruno Haible  <bruno@clisp.org>
33587
33588         localename: Port to MacOS X 10.6.
33589         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
33590         memory layout of the locales in MacOS X 10.6 as well.
33591         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
33592
33593 2010-04-02  Bruno Haible  <bruno@clisp.org>
33594
33595         gnulib-tool: Ensure that long-running tests are executed last.
33596         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
33597         running tests after the one for the other tests.
33598
33599 2010-04-02  Bruno Haible  <bruno@clisp.org>
33600
33601         gnulib-tool: Ensure the tests in the main directory are executed first.
33602         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
33603         start with the current directory.
33604
33605 2010-04-02  Bruno Haible  <bruno@clisp.org>
33606
33607         Tests for module 'havelib', moved here from GNU gettext.
33608         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
33609         modifications.
33610         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
33611         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
33612         with modifications.
33613         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
33614         modifications.
33615         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
33616         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
33617         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
33618         with modifications.
33619         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
33620         with modifications.
33621         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
33622         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
33623         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
33624         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
33625         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
33626         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
33627         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
33628         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
33629         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
33630         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
33631         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
33632         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
33633         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
33634         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
33635         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
33636         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
33637         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
33638         with modifications.
33639         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
33640         with modifications.
33641         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
33642         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
33643         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
33644         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
33645         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
33646         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
33647         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
33648         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
33649         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
33650         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
33651         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
33652         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
33653         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
33654         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
33655         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
33656         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
33657         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
33658         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
33659         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
33660         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
33661         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
33662         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
33663         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
33664         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
33665         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
33666         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
33667         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
33668         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
33669         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
33670         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
33671         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
33672         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
33673         * tests/havelib/rpathx/rpathx.c: New file, from
33674         gettext/autoconf-lib-link.
33675         * tests/havelib/rpathx/Makefile.am: New file, from
33676         gettext/autoconf-lib-link.
33677         * tests/havelib/rpathx/configure.ac: New file, from
33678         gettext/autoconf-lib-link with modifications.
33679         * tests/havelib/rpathy/rpathy.c: New file, from
33680         gettext/autoconf-lib-link.
33681         * tests/havelib/rpathy/Makefile.am: New file, from
33682         gettext/autoconf-lib-link.
33683         * tests/havelib/rpathy/configure.ac: New file, from
33684         gettext/autoconf-lib-link with modifications.
33685         * tests/havelib/rpathz/rpathz.c: New file, from
33686         gettext/autoconf-lib-link.
33687         * tests/havelib/rpathz/Makefile.am: New file, from
33688         gettext/autoconf-lib-link.
33689         * tests/havelib/rpathz/configure.ac: New file, from
33690         gettext/autoconf-lib-link with modifications.
33691         * tests/havelib/rpathlx/usex.c: New file, from
33692         gettext/autoconf-lib-link.
33693         * tests/havelib/rpathlx/Makefile.am: New file, from
33694         gettext/autoconf-lib-link.
33695         * tests/havelib/rpathlx/configure.ac: New file, from
33696         gettext/autoconf-lib-link with modifications.
33697         * tests/havelib/rpathly/usey.c: New file, from
33698         gettext/autoconf-lib-link.
33699         * tests/havelib/rpathly/Makefile.am: New file, from
33700         gettext/autoconf-lib-link.
33701         * tests/havelib/rpathly/configure.ac: New file, from
33702         gettext/autoconf-lib-link with modifications.
33703         * tests/havelib/rpathlz/usez.c: New file, from
33704         gettext/autoconf-lib-link.
33705         * tests/havelib/rpathlz/Makefile.am: New file, from
33706         gettext/autoconf-lib-link.
33707         * tests/havelib/rpathlz/configure.ac: New file, from
33708         gettext/autoconf-lib-link with modifications.
33709         * tests/havelib/rpathlyx/usey.c: New file, from
33710         gettext/autoconf-lib-link.
33711         * tests/havelib/rpathlyx/Makefile.am: New file, from
33712         gettext/autoconf-lib-link.
33713         * tests/havelib/rpathlyx/configure.ac: New file, from
33714         gettext/autoconf-lib-link with modifications.
33715         * tests/havelib/rpathlzyx/usez.c: New file, from
33716         gettext/autoconf-lib-link.
33717         * tests/havelib/rpathlzyx/Makefile.am: New file, from
33718         gettext/autoconf-lib-link.
33719         * tests/havelib/rpathlzyx/configure.ac: New file, from
33720         gettext/autoconf-lib-link with modifications.
33721         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
33722         with modifications.
33723
33724 2010-04-02  Bruno Haible  <bruno@clisp.org>
33725
33726         gnulib-tool: Create distributed built sources also for the tests.
33727         * gnulib-tool (func_create_testdir): Also generate distributed built
33728         sources in the tests directory.
33729
33730 2010-04-02  Bruno Haible  <bruno@clisp.org>
33731
33732         gnulib-tool: Obey user's environment variables.
33733         * gnulib-tool (func_create_testdir): When creating built sources,
33734         respect the environment variables for autoconf, automake, etc. given by
33735         the user.
33736
33737 2010-04-02  Bruno Haible  <bruno@clisp.org>
33738
33739         gnulib-tool: Provide the value of --m4-base to modules.
33740         * gnulib-tool (func_import, func_create_testdir): Emit a definition
33741         of gl_m4_base.
33742
33743 2010-04-02  Eric Blake  <eblake@redhat.com>
33744
33745         maint.mk: fix some fallout
33746         * NEWS: Document the incompatible change, and its effect on cfg.mk.
33747         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
33748
33749 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
33750
33751         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
33752         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
33753         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
33754         (sc_cast_of_x_alloc_return_value): Likewise.
33755         (sc_cast_of_alloca_return_value): Likewise.
33756         (sc_space_tab): Likewise.
33757         (sc_prohibit_atoi_atof): Likewise.
33758         (sc_prohibit_magic_number_exit): Likewise.
33759         (sc_error_exit_success): Likewise.
33760         (sc_file_system): Likewise.
33761         (sc_prohibit_have_config_h): Likewise.
33762         (sc_require_config_h): Likewise.
33763         (sc_prohibit_HAVE_MBRTOWC): Likewise.
33764         (sc_obsolete_symbols): Likewise.
33765         (sc_changelog): Likewise.
33766         (sc_program_name): Likewise.
33767         (sc_the_the): Likewise.
33768         (sc_trailing_blank): Likewise.
33769         (sc_two_space_separator_in_usage): Likewise.
33770         (sc_useless_cpp_parens): Likewise.
33771         (sc_GPL_version): Likewise.
33772         (sc_GFDL_version): Likewise.
33773         (sc_texinfo_acronym): Likewise.
33774         (sc_prohibit_cvs_keyword): Likewise.
33775         (sc_prohibit_stat_st_blocks): Likewise.
33776         (sc_prohibit_S_IS_definition): Likewise.
33777         (sc_redundant_const): Likewise.
33778         (sc_makefile_TAB_only_indentation): Likewise.
33779         (sc_m4_quote_check): Likewise.
33780         (sc_makefile_path_separator_check): Likewise.
33781         (sc_copyright_check): Likewise.
33782         (sc_Wundef_boolean): Likewise.
33783         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
33784
33785         maint.mk: match 0 or more whitespace-before-function-call '('
33786         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
33787         that have zero or two-and-more spaces between the function name
33788         and the open parenthesis.
33789         (sc_error_message_warn_fatal): Likewise.
33790         (sc_error_message_uppercase): Likewise.
33791         (sc_error_message_period): Likewise.
33792
33793 2010-03-31  Eric Blake  <eblake@redhat.com>
33794
33795         maint.mk: check for [ as well as test
33796         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
33797         Based on a libvirt report by Matthias Bolte.
33798
33799         gnumakefile: don't squelch _version output
33800         * top/GNUmakefile (_version): Create one-shot dependency rather
33801         than using $(shell) when version must be regenerated.
33802         (_autoreconf): Run verbosely, by default.
33803
33804         sys_time: avoid compiler warnings
33805         * lib/sys_time.in.h (includes): Ensure gcc pragma is
33806         unconditional, fixing regression from 2010-03-29.
33807         Reported by Simon Josefsson.
33808
33809 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
33810
33811         maint.mk: s/_header_without_use/_sc_header_without_use/
33812         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
33813         (sc_prohibit_assert_without_use): Use the new name.
33814         (sc_prohibit_close_stream_without_use): Likewise.
33815         (sc_prohibit_getopt_without_use): Likewise.
33816         (sc_prohibit_quotearg_without_use): Likewise.
33817         (sc_prohibit_quote_without_use): Likewise.
33818         (sc_prohibit_long_options_without_use): Likewise.
33819         (sc_prohibit_inttostr_without_use): Likewise.
33820         (sc_prohibit_ignore_value_without_use): Likewise.
33821         (sc_prohibit_error_without_use): Likewise.
33822         (sc_prohibit_xalloc_without_use): Likewise.
33823         (sc_prohibit_hash_without_use): Likewise.
33824         (sc_prohibit_hash_pjw_without_use): Likewise.
33825         (sc_prohibit_safe_read_without_use): Likewise.
33826         (sc_prohibit_argmatch_without_use): Likewise.
33827         (sc_prohibit_canonicalize_without_use): Likewise.
33828         (sc_prohibit_root_dev_ino_without_use): Likewise.
33829         (sc_prohibit_openat_without_use): Likewise.
33830         (sc_prohibit_c_ctype_without_use): Likewise.
33831         (sc_prohibit_signal_without_use): Likewise.
33832         (sc_prohibit_intprops_without_use): Likewise.
33833
33834 2010-03-30  Eric Blake  <eblake@redhat.com>
33835
33836         maint: improve module indicators
33837         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
33838         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
33839         columns, and avoid extra macro expansion.
33840
33841         fdopendir: work around FreeBSD bug
33842         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
33843         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
33844         * modules/dirent (Makefile.am): Substitute it.
33845         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
33846         declaration.
33847         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
33848         fix.
33849         Reported by Christian Weisgerber <naddy@mips.inka.de>.
33850
33851 2010-03-29  Bruno Haible  <bruno@clisp.org>
33852
33853         Emit #pragma system_header after the inclusion guard, not before.
33854         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
33855         guard that spans the entire file, not before. This enables an
33856         optimization in GCC's preprocessor.
33857         * lib/ctype.in.h: Likewise.
33858         * lib/dirent.in.h: Likewise.
33859         * lib/errno.in.h: Likewise.
33860         * lib/float.in.h: Likewise.
33861         * lib/getopt.in.h: Likewise.
33862         * lib/iconv.in.h: Likewise.
33863         * lib/langinfo.in.h: Likewise.
33864         * lib/locale.in.h: Likewise.
33865         * lib/math.in.h: Likewise.
33866         * lib/netdb.in.h: Likewise.
33867         * lib/netinet_in.in.h: Likewise.
33868         * lib/pty.in.h: Likewise.
33869         * lib/sched.in.h: Likewise.
33870         * lib/se-selinux.in.h: Likewise.
33871         * lib/search.in.h: Likewise.
33872         * lib/spawn.in.h: Likewise.
33873         * lib/stdarg.in.h: Likewise.
33874         * lib/stdint.in.h: Likewise.
33875         * lib/string.in.h: Likewise.
33876         * lib/strings.in.h: Likewise.
33877         * lib/sys_file.in.h: Likewise.
33878         * lib/sys_ioctl.in.h: Likewise.
33879         * lib/sys_time.in.h: Likewise.
33880         * lib/sys_times.in.h: Likewise.
33881         * lib/sys_utsname.in.h: Likewise.
33882         * lib/sys_wait.in.h: Likewise.
33883         * lib/sysexits.in.h: Likewise.
33884         * lib/wctype.in.h: Likewise.
33885
33886 2010-03-28  James Youngman  <jay@gnu.org>
33887
33888         save-cwd: don't leak a file descriptor when the caller execs.
33889         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
33890         saved file descriptor.
33891         * modules/save-cwd (Depends-on): Depend on cloexec.
33892
33893 2010-03-29  Bruno Haible  <bruno@clisp.org>
33894
33895         Remove vestiges of fts-lgpl module.
33896         * lib/fts_.h: Assume GNULIB_FTS is 1.
33897         * lib/fts.c: Likewise.
33898         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
33899
33900 2010-03-28  Bruno Haible  <bruno@clisp.org>
33901
33902         Fix definition of tests witness macro.
33903         * gnulib-tool (func_import): Fix definition of witness macro.
33904
33905 2010-03-28  Bruno Haible  <bruno@clisp.org>
33906
33907         Fix ioctl's protoype on glibc systems.
33908         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
33909         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
33910         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
33911         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
33912         signature. If not, arrange to replace the ioctl function.
33913         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
33914         REPLACE_IOCTL.
33915         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
33916         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
33917         Reported by Ludovic Courtès <ludo@gnu.org>.
33918
33919 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
33920
33921         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
33922         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
33923         made it so grep -r --include=GLOB* ... did not work.
33924
33925 2010-03-26  Jim Meyering  <meyering@redhat.com>
33926             Eric Blake  <eblake@redhat.com>
33927
33928         maint.mk: prohibit use of test's -o and -a operators
33929         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
33930
33931 2010-03-28  Bruno Haible  <bruno@clisp.org>
33932
33933         Remove unused GNULIB_XYZ macro definitions.
33934         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
33935         invocation.
33936
33937 2010-03-28  Bruno Haible  <bruno@clisp.org>
33938
33939         Mark privileged tests modules.
33940         * modules/idpriv-drop-tests (Status): New section.
33941         * modules/idpriv-droptemp-tests (Status): New section.
33942
33943 2010-03-28  Bruno Haible  <bruno@clisp.org>
33944
33945         Split C++ tests into separate tests modules.
33946         * modules/dirent-c++-tests: New file, extracted from
33947         modules/dirent-tests.
33948         * modules/dirent-tests: Depend on it.
33949         * modules/fcntl-h-c++-tests: New file, extracted from
33950         modules/fcntl-h-tests.
33951         * modules/fcntl-h-tests: Depend on it.
33952         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
33953         * modules/glob-tests: Depend on it.
33954         * modules/iconv-h-c++-tests: New file, extracted from
33955         modules/iconv-h-tests.
33956         * modules/iconv-h-tests: Depend on it.
33957         * modules/langinfo-c++-tests: New file, extracted from
33958         modules/langinfo-tests.
33959         * modules/langinfo-tests: Depend on it.
33960         * modules/locale-c++-tests: New file, extracted from
33961         modules/locale-tests.
33962         * modules/locale-tests: Depend on it.
33963         * modules/math-c++-tests: New file, extracted from modules/math-tests.
33964         * modules/math-tests: Depend on it.
33965         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
33966         * modules/pty-tests: Depend on it.
33967         * modules/search-c++-tests: New file, extracted from
33968         modules/search-tests.
33969         * modules/search-tests: Depend on it.
33970         * modules/signal-c++-tests: New file, extracted from
33971         modules/signal-tests.
33972         * modules/signal-tests: Depend on it.
33973         * modules/spawn-c++-tests: New file, extracted from
33974         modules/spawn-tests.
33975         * modules/spawn-tests: Depend on it.
33976         * modules/stdio-c++-tests: New file, extracted from
33977         modules/stdio-tests.
33978         * modules/stdio-tests: Depend on it.
33979         * modules/stdlib-c++-tests: New file, extracted from
33980         modules/stdlib-tests.
33981         * modules/stdlib-tests: Depend on it.
33982         * modules/string-c++-tests: New file, extracted from
33983         modules/string-tests.
33984         * modules/string-tests: Depend on it.
33985         * modules/sys_ioctl-c++-tests: New file, extracted from
33986         modules/sys_ioctl-tests.
33987         * modules/sys_ioctl-tests: Depend on it.
33988         * modules/sys_select-c++-tests: New file, extracted from
33989         modules/sys_select-tests.
33990         * modules/sys_select-tests: Depend on it.
33991         * modules/sys_socket-c++-tests: New file, extracted from
33992         modules/sys_socket-tests.
33993         * modules/sys_socket-tests: Depend on it.
33994         * modules/sys_stat-c++-tests: New file, extracted from
33995         modules/sys_stat-tests.
33996         * modules/sys_stat-tests: Depend on it.
33997         * modules/sys_time-c++-tests: New file, extracted from
33998         modules/sys_time-tests.
33999         * modules/sys_time-tests: Depend on it.
34000         * modules/time-c++-tests: New file, extracted from modules/time-tests.
34001         * modules/time-tests: Depend on it.
34002         * modules/unistd-c++-tests: New file, extracted from
34003         modules/unistd-tests.
34004         * modules/unistd-tests: Depend on it.
34005         * modules/wchar-c++-tests: New file, extracted from
34006         modules/wchar-tests.
34007         * modules/wchar-tests: Depend on it.
34008         * modules/wctype-c++-tests: New file, extracted from
34009         modules/wctype-tests.
34010         * modules/wctype-tests: Depend on it.
34011         Reported by Simon Josefsson.
34012
34013 2010-03-28  Bruno Haible  <bruno@clisp.org>
34014
34015         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
34016         * gnulib-tool (func_exists_module): New function, extracted from
34017         func_verify_module.
34018         (func_verify_module): Use it.
34019         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
34020         'foo' only if 'foo' exists.
34021         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
34022         module.
34023
34024 2010-03-28  Bruno Haible  <bruno@clisp.org>
34025
34026         gnulib-tool: Add support for special categories of tests.
34027         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
34028         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
34029         (func_usage): Document them.
34030         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
34031         inc_unportable_tests, inc_all_tests): New variables.
34032         (func_acceptable): Consider these variables.
34033         (func_modules_transitive_closure): Make it work when the 'Status' field
34034         consists of multiple words.
34035         (func_import): Store and restore the values of inc_cxx_tests,
34036         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
34037         inc_all_tests in gnulib-comp.m4.
34038         (func_create_testdir): Set inc_all_tests to true.
34039         * doc/gnulib.texi (Extra tests modules): New section.
34040         Suggested by Jim Meyering.
34041
34042 2010-03-28  Bruno Haible  <bruno@clisp.org>
34043
34044         ansi-c++-opt: Allow turning off the C++ build by default.
34045         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
34046         gl_CXX_CHOICE_DEFAULT_NO is defined.
34047         Requested by Eric Blake.
34048
34049 2010-03-28  Bruno Haible  <bruno@clisp.org>
34050
34051         unistd: Avoid #define replacements in C++ mode.
34052         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
34053         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
34054         setsockopt, shutdown, select): In C++, attach a warning to the function
34055         if possible, rather than #defining the symbol to a dysfunctional alias.
34056         Reported by John W. Eaton <jwe@gnu.org>.
34057
34058 2010-03-28  Bruno Haible  <bruno@clisp.org>
34059
34060         Fix link errors on mingw.
34061         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
34062         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
34063         $(LIBSOCKET).
34064         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
34065         $(LIBSOCKET).
34066
34067 2010-03-28  Bruno Haible  <bruno@clisp.org>
34068             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34069
34070         lib-ignore: Determine different options for different compilers.
34071         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
34072         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
34073         Add comments.
34074         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
34075         * NEWS: Mention the change.
34076
34077 2010-03-27  Bruno Haible  <bruno@clisp.org>
34078
34079         Remove unused GNULIB_XYZ macro definitions.
34080         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
34081         * modules/fseek (configure.ac): Likewise.
34082         * modules/ioctl (configure.ac): Likewise.
34083         * modules/open (configure.ac): Likewise.
34084         * modules/stdlib-safer (configure.ac): Likewise.
34085
34086 2010-03-27  Bruno Haible  <bruno@clisp.org>
34087
34088         Add a remark about certain modules.
34089         * modules/malloc (Comment): New section.
34090         * modules/realloc (Comment): Likewise.
34091         * modules/sigpipe (Comment): Likewise.
34092
34093 2010-03-27  Bruno Haible  <bruno@clisp.org>
34094
34095         Resolve conflict between the two kinds of module indicators.
34096         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
34097         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
34098         * modules/canonicalize (configure.ac): Invoke
34099         gl_MODULE_INDICATOR_FOR_TESTS.
34100         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
34101         GNULIB_XYZ.
34102         * tests/test-dirent-c++.cc: Likewise.
34103         * tests/test-dirent-safer.c: Likewise.
34104         * tests/test-dup2.c: Likewise.
34105         * tests/test-fchdir.c: Likewise.
34106         * tests/test-fcntl-h-c++.cc: Likewise.
34107         * tests/test-getopt.c: Likewise.
34108         * tests/test-getopt.h: Likewise.
34109         * tests/test-langinfo-c++.cc: Likewise.
34110         * tests/test-locale-c++.cc: Likewise.
34111         * tests/test-math-c++.cc: Likewise.
34112         * tests/test-pty-c++.cc: Likewise.
34113         * tests/test-search-c++.cc: Likewise.
34114         * tests/test-signal-c++.cc: Likewise.
34115         * tests/test-spawn-c++.cc: Likewise.
34116         * tests/test-stdio-c++.cc: Likewise.
34117         * tests/test-stdlib-c++.cc: Likewise.
34118         * tests/test-string-c++.cc: Likewise.
34119         * tests/test-sys_ioctl-c++.cc: Likewise.
34120         * tests/test-sys_select-c++.cc: Likewise.
34121         * tests/test-sys_socket-c++.cc: Likewise.
34122         * tests/test-sys_stat-c++.cc: Likewise.
34123         * tests/test-sys_time-c++.cc: Likewise.
34124         * tests/test-time-c++.cc: Likewise.
34125         * tests/test-unistd-c++.cc: Likewise.
34126         * tests/test-wchar-c++.cc: Likewise.
34127         * tests/uninorm/test-u8-nfc.c: Likewise.
34128         * tests/uninorm/test-u8-nfd.c: Likewise.
34129         * tests/uninorm/test-u8-nfkc.c: Likewise.
34130         * tests/uninorm/test-u8-nfkd.c: Likewise.
34131         * tests/uninorm/test-u16-nfc.c: Likewise.
34132         * tests/uninorm/test-u16-nfd.c: Likewise.
34133         * tests/uninorm/test-u16-nfkc.c: Likewise.
34134         * tests/uninorm/test-u16-nfkd.c: Likewise.
34135         * tests/uninorm/test-u32-nfc.c: Likewise.
34136         * tests/uninorm/test-u32-nfc-big.c: Likewise.
34137         * tests/uninorm/test-u32-nfd.c: Likewise.
34138         * tests/uninorm/test-u32-nfd-big.c: Likewise.
34139         * tests/uninorm/test-u32-nfkc.c: Likewise.
34140         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
34141         * tests/uninorm/test-u32-nfkd.c: Likewise.
34142         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
34143         * tests/uninorm/test-u32-normalize-big.c: Likewise.
34144
34145 2010-03-27  Bruno Haible  <bruno@clisp.org>
34146
34147         Distinguish two kinds of module indicators.
34148         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
34149         gl_MODULE_INDICATOR.
34150         (gl_MODULE_INDICATOR): New macro.
34151         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
34152         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
34153         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
34154         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
34155         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
34156         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
34157         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
34158         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
34159         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
34160         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
34161         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
34162         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
34163         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
34164         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
34165         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
34166         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
34167         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
34168         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
34169         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
34170         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
34171         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
34172         * modules/cloexec (configure.ac): Likewise.
34173         * modules/getopt-gnu (configure.ac): Likewise.
34174         * modules/uninorm/u8-normalize (configure.ac): Likewise.
34175         * modules/uninorm/u16-normalize (configure.ac): Likewise.
34176         * modules/uninorm/u32-normalize (configure.ac): Likewise.
34177         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
34178
34179 2010-03-27  Bruno Haible  <bruno@clisp.org>
34180
34181         New module description field 'Comment'.
34182         * gnulib-tool: New option --extract-comment.
34183         (func_usage): Document it.
34184         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
34185         (func_get_comment): New function.
34186         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
34187
34188 2010-03-27  Bruno Haible  <bruno@clisp.org>
34189
34190         Addendum to 2010-02-07 commit.
34191         * gnulib-tool (func_usage): Document --extract-applicability option.
34192
34193 2010-03-27  Bruno Haible  <bruno@clisp.org>
34194
34195         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
34196         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
34197         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
34198         rather than link errors.
34199
34200 2010-03-27  Bruno Haible  <bruno@clisp.org>
34201
34202         Avoid side effects from tests-related modules on the compilation of lib.
34203         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
34204         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
34205         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
34206         parameter. Emit into AM_CPPFLAGS a definition of the designated C
34207         macro.
34208         (func_import): Define a witness macro. Assign it a value that depends
34209         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
34210         tests-related modules.
34211         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
34212         Reported by Jim Meyering.
34213
34214 2010-03-27  Bruno Haible  <bruno@clisp.org>
34215
34216         Factorize common .m4 code.
34217         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
34218         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
34219         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
34220         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
34221         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
34222         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
34223         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
34224         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
34225         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
34226         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
34227         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
34228         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
34229         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
34230         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
34231         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
34232         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
34233         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
34234         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
34235         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
34236         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
34237         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
34238         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
34239         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
34240         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
34241         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
34242         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
34243         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
34244         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
34245         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
34246         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
34247         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
34248         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
34249
34250 2010-03-27  Bruno Haible  <bruno@clisp.org>
34251
34252         Fix a compilation error on Cygwin with g++ >= 4.3.
34253         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
34254         if it is undefined or if we alias it to chmod.
34255         (lstat): Don't warn about the use of this function if it is undefined
34256         or if we alias it to stat.
34257         Reported by Simon Josefsson.
34258
34259 2010-03-27  Bruno Haible  <bruno@clisp.org>
34260
34261         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
34262         * modules/getlogin (configure.ac): Update.
34263
34264         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
34265         * modules/getlogin_r (configure.ac): Update.
34266
34267         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
34268         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
34269         * modules/inet_ntop (configure.ac): Update.
34270
34271         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
34272         * modules/inet_pton (configure.ac): Update.
34273
34274         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
34275         * modules/mbslen (configure.ac): Update.
34276
34277         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
34278         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
34279         * modules/forkpty (configure.ac): Update.
34280         * modules/openpty (configure.ac): Update.
34281
34282 2010-03-26  Simon Josefsson  <simon@josefsson.org>
34283
34284         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
34285         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
34286
34287 2010-03-25  Eric Blake  <eblake@redhat.com>
34288
34289         maint: use pragma consistently across replacement headers
34290         * lib/ctype.in.h (system_header): Hoist for consistent placement.
34291         * lib/dirent.in.h (system_header): Likewise.
34292         * lib/errno.in.h (system_header): Likewise.
34293         * lib/float.in.h (system_header): Likewise.
34294         * lib/getopt.in.h (system_header): Likewise.
34295         * lib/iconv.in.h (system_header): Likewise.
34296         * lib/inttypes.in.h (system_header): Likewise.
34297         * lib/langinfo.in.h (system_header): Likewise.
34298         * lib/locale.in.h (system_header): Likewise.
34299         * lib/math.in.h (system_header): Likewise.
34300         * lib/netdb.in.h (system_header): Likewise.
34301         * lib/netinet_in.in.h (system_header): Likewise.
34302         * lib/pty.in.h (system_header): Likewise.
34303         * lib/sched.in.h (system_header): Likewise.
34304         * lib/se-selinux.in.h (system_header): Likewise.
34305         * lib/search.in.h (system_header): Likewise.
34306         * lib/spawn.in.h (system_header): Likewise.
34307         * lib/stdarg.in.h (system_header): Likewise.
34308         * lib/stdint.in.h (system_header): Likewise.
34309         * lib/string.in.h (system_header): Likewise.
34310         * lib/strings.in.h (system_header): Likewise.
34311         * lib/sys_file.in.h (system_header): Likewise.
34312         * lib/sys_ioctl.in.h (system_header): Likewise.
34313         * lib/sys_socket.in.h (system_header): Likewise.
34314         * lib/sys_times.in.h (system_header): Likewise.
34315         * lib/sys_utsname.in.h (system_header): Likewise.
34316         * lib/sys_wait.in.h (system_header): Likewise.
34317         * lib/sysexits.in.h (system_header): Likewise.
34318         * lib/unistd.in.h (system_header): Likewise.
34319         * lib/wctype.in.h (system_header): Likewise.
34320
34321         arpa/inet: fix mingw compilation warning
34322         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
34323         Reported by Matthew Bolte.
34324
34325 2010-03-25  Bruno Haible  <bruno@clisp.org>
34326
34327         Avoid collision between gnulib wrapper and libintl wrapper.
34328         * lib/printf.c (printf): Don't define if a printf wrapper is already
34329         defined in intl/printf.c.
34330         Reported by Michel Boaventura <michel@michelboaventura.com>.
34331
34332 2010-03-25  Bruno Haible  <bruno@clisp.org>
34333
34334         Use ANSI C.
34335         * lib/readutmp.h (getutent): Provide ANSI C prototype.
34336
34337 2010-03-25  Bruno Haible  <bruno@clisp.org>
34338
34339         Minor formatting changes.
34340         * lib/acosl.c: Insert space before function argument list.
34341         * lib/argz.c: Likewise.
34342         * lib/asinl.c: Likewise.
34343         * lib/expl.c: Likewise.
34344         * lib/gen-uni-tables.c: Likewise.
34345         * lib/gettext.h: Likewise.
34346         * lib/glthread/lock.h: Likewise.
34347         * lib/tanl.c: Likewise.
34348         * lib/uniname/uniname.c: Likewise.
34349         * tests/test-idpriv-drop.c: Likewise.
34350         * tests/test-idpriv-droptemp.c: Likewise.
34351         * tests/test-lock.c: Likewise.
34352         * tests/test-tls.c: Likewise.
34353         * lib/argp-help.c: Insert space before function-like macro argument
34354         list.
34355         * lib/memcmp.c: Likewise.
34356         * tests/test-base64.c: Likewise.
34357         * lib/localename.c: Insert space before sizeof's argument list.
34358         * lib/safe-alloc.h: Likewise.
34359         * lib/file-set.h: Insert space before macro argument list.
34360         * tests/test-argp.c: Likewise.
34361         * lib/argp-namefrob.h: Insert space before function parameter list.
34362         * lib/getaddrinfo.c: Likewise.
34363         * lib/netdb.in.h: Likewise.
34364         * lib/parse-duration.h: Likewise.
34365         * lib/parse-duration.c: Likewise.
34366         * lib/poll.c: Likewise.
34367         * lib/select.c: Likewise.
34368         * lib/trim.h: Likewise.
34369         * tests/test-usleep.c: Likewise.
34370         * lib/ldexpl.c: Insert space before function parameter list and before
34371         function argument list.
34372         * lib/logl.c: Likewise.
34373         * lib/sqrtl.c: Likewise.
34374         * lib/trim.c: Likewise.
34375         * lib/cosl.c: Use GNU style indentation. Insert space before function
34376         argument list.
34377         * lib/sinl.c: Likewise.
34378         * lib/tsearch.c: Insert space after 'for'.
34379         Reported by Jim Meyering.
34380
34381 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
34382
34383         * maint.mk (sc_Wundef_boolean): Check for the presence of the
34384         config header before grepping, as it's not present before
34385         autoreconf/configure are run.  Reported by Simon Josefsson.
34386
34387 2010-03-23  Bruno Haible  <bruno@clisp.org>
34388
34389         pt_chown: Make it work with automake < 1.11.
34390         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
34391         Reported by Simon Josefsson.
34392
34393 2010-03-23  Bruno Haible  <bruno@clisp.org>
34394
34395         pt_chown: Don't depend on GPLed modules.
34396         * lib/pt_chown.c: Don't include idpriv.h.
34397         (main): Don't drop privileges.
34398         * modules/pt_chown (Depends-on): Remove idpriv-drop.
34399         Reported by Simon Josefsson.
34400
34401 2010-03-24  Simon Josefsson  <simon@josefsson.org>
34402
34403         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
34404         suggestions from karl@freefriends.org (Karl Berry).
34405
34406 2010-03-22  Eric Blake  <eblake@redhat.com>
34407
34408         gethostname: further tweaks
34409         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
34410         are overriding gethostname.
34411         Suggested by Bruno Haible.
34412
34413 2010-03-21  Bruno Haible  <bruno@clisp.org>
34414
34415         Fix comments.
34416         * lib/forkpty.c (rpl_forkpty): Fix comment.
34417         * lib/openpty.c (rpl_openpty): Likewise.
34418         Reported by Eric Blake.
34419
34420 2010-03-22  Eric Blake  <eblake@redhat.com>
34421
34422         gethostname: fix build on mingw
34423         * lib/unistd.in.h (includes): Work around fact that mingw
34424         <winsock2.h> re-includes <unistd.h>, by avoiding any
34425         redeclarations if we are being included by <winsock2.h>.
34426         Reported by Matthias Bolte.
34427
34428 2010-03-21  Bruno Haible  <bruno@clisp.org>
34429
34430         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
34431         * lib/forkpty.c (forkpty): New replacement function, from glibc with
34432         modifications.
34433         * lib/pty.in.h (forkpty): Update declaration. Add comments.
34434         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
34435         provide the replacement.
34436         * modules/forkpty (Depends-on): Add openpty, login_tty.
34437         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
34438         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
34439         * doc/glibc-functions/forkpty.texi: More supported platforms.
34440         * config/srclist.txt: Add forkpty.c (commented).
34441
34442 2010-03-21  Bruno Haible  <bruno@clisp.org>
34443
34444         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
34445         (Makefile.am): Verify that PTY_LIB is defined.
34446
34447         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
34448
34449 2010-03-21  Bruno Haible  <bruno@clisp.org>
34450
34451         Tests for module 'login_tty'.
34452         * modules/login_tty-tests: New file.
34453         * tests/test-login_tty.c: New file.
34454
34455         New module 'login_tty'.
34456         * lib/login_tty.c: New file.
34457         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
34458         * modules/login_tty: New file.
34459         * doc/glibc-functions/login_tty.texi: Mention the new module.
34460
34461 2010-03-21  Bruno Haible  <bruno@clisp.org>
34462
34463         login_tty: Documentation.
34464         * doc/glibc-functions/login_tty.texi: New file.
34465         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
34466
34467 2010-03-21  Bruno Haible  <bruno@clisp.org>
34468
34469         pty: Consistent macro naming.
34470         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
34471         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
34472         * modules/pty (configure.ac): Update.
34473
34474 2010-03-21  Bruno Haible  <bruno@clisp.org>
34475
34476         Tests for openpty: Make stricter.
34477         * tests/test-openpty.c (main): Add test of canonical processing and
34478         erase.
34479         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
34480
34481         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
34482         * lib/openpty.c (openpty): New replacement function.
34483         * lib/pty.in.h: Include <termios.h>.
34484         (openpty): Update declaration. Add comments.
34485         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
34486         is not declared, arrange to provide the replacement. Check for _getpty
34487         and posix_openpt.
34488         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
34489         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
34490         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
34491         * modules/pty-tests (test_pty_c___LDADD): New variable.
34492         * doc/glibc-functions/openpty.texi: More supported platforms.
34493
34494 2010-03-21  Bruno Haible  <bruno@clisp.org>
34495
34496         setenv: Tweaks.
34497         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
34498         the test program.
34499         * doc/posix-functions/setenv.texi: Update platforms list.
34500
34501 2010-03-21  Bruno Haible  <bruno@clisp.org>
34502
34503         New module 'unlockpt'.
34504         * lib/unlockpt.c: New file, from glibc with modifications.
34505         * m4/unlockpt.m4: New file.
34506         * modules/unlockpt: New file.
34507         * lib/stdlib.in.h (unlockpt): New declaration.
34508         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
34509         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
34510         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
34511         HAVE_UNLOCKPT.
34512         * doc/posix-functions/unlockpt.texi: Mention the new module.
34513         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
34514         * config/srclist.txt: Add unlockpt.c (commented).
34515
34516 2010-03-21  Jim Meyering  <meyering@redhat.com>
34517
34518         maint.mk: prohibit inclusion of "intprops.h" without use
34519         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
34520
34521 2010-03-21  Bruno Haible  <bruno@clisp.org>
34522
34523         New module 'grantpt'.
34524         * lib/grantpt.c: New file, from glibc with modifications.
34525         * m4/grantpt.m4: New file.
34526         * modules/grantpt: New file.
34527         * lib/stdlib.in.h (grantpt): New declaration.
34528         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
34529         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
34530         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
34531         HAVE_GRANTPT.
34532         * doc/posix-functions/grantpt.texi: Mention the new module.
34533         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
34534         * config/srclist.txt: Add grantpt.c (commented).
34535
34536 2010-03-21  Bruno Haible  <bruno@clisp.org>
34537
34538         New module 'pt_chown'.
34539         * lib/pt_chown.c: New file, from glibc with modifications.
34540         * lib/pty-private.h: New file, from glibc with modifications.
34541         * modules/pt_chown: New file.
34542         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
34543
34544 2010-03-21  Bruno Haible  <bruno@clisp.org>
34545
34546         Tests for module 'ptsname'.
34547         * modules/ptsname-tests: New file.
34548         * tests/test-ptsname.c: New file.
34549
34550         New module 'ptsname'.
34551         * lib/ptsname.c: New file, from glibc with modifications.
34552         * m4/ptsname.m4: New file.
34553         * modules/ptsname: New file.
34554         * lib/stdlib.in.h (ptsname): New declaration.
34555         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
34556         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
34557         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
34558         HAVE_PTSNAME.
34559         * doc/posix-functions/ptsname.texi: Mention the new module.
34560         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
34561         * config/srclist.txt: Add ptsname.c (commented).
34562
34563 2010-03-21  Bruno Haible  <bruno@clisp.org>
34564
34565         Tests for module 'ttyname_r'.
34566         * modules/ttyname_r-tests: New file.
34567         * tests/test-ttyname_r.c: New file.
34568
34569         New module 'ttyname_r'.
34570         * lib/ttyname_r.c: New file.
34571         * m4/ttyname_r.m4: New file.
34572         * modules/ttyname_r: New file.
34573         * lib/unistd.in.h (ttyname_r): New declaration.
34574         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
34575         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
34576         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
34577         HAVE_TTYNAME_R.
34578         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
34579         * doc/posix-functions/ttyname_r.texi: Mention the new module.
34580
34581 2010-03-20  Bruno Haible  <bruno@clisp.org>
34582
34583         signal: Undefine macro definitions in C++ mode.
34584         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
34585         sigfillset): Undefine macro definitions from the system header in C++
34586         mode.
34587         Reported by John W. Eaton <jwe@gnu.org>.
34588
34589 2010-03-20  Bruno Haible  <bruno@clisp.org>
34590
34591         Ensure no #include statements inside extern "C" { ... }.
34592         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
34593         contain #include statements.
34594         * lib/time.in.h: Likewise.
34595
34596 2010-03-20  Bruno Haible  <bruno@clisp.org>
34597
34598         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
34599         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
34600         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
34601         Reported by John W. Eaton <jwe@gnu.org>.
34602
34603 2010-03-20  Bruno Haible  <bruno@clisp.org>
34604
34605         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
34606         Reported by Jim Meyering.
34607
34608 2010-03-20  Bruno Haible  <bruno@clisp.org>
34609
34610         pipe: Set errno upon failure.
34611         * lib/pipe.h: Specify that when -1 is returned, errno is set.
34612         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
34613         errno value in error message.
34614
34615 2010-03-20  Bruno Haible  <bruno@clisp.org>
34616             Jim Meyering  <meyering@redhat.com>
34617
34618         lchown: Avoid "unused variable" warning.
34619         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
34620
34621 2010-03-20  Bruno Haible  <bruno@clisp.org>
34622
34623         Work around unlink() bug on MacOS X 10.5.6.
34624         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
34625         attempting to unlink a parent directory.
34626         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
34627         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
34628         activate for the replacement function.
34629         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
34630
34631 2010-03-20  Bruno Haible  <bruno@clisp.org>
34632
34633         Fix link errors on Solaris 8.
34634         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
34635         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
34636
34637 2010-03-19  Jim Meyering  <meyering@redhat.com>
34638
34639         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
34640         The _LIBC implementation of build_range_exp correctly honors the
34641         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
34642         However, the non-_LIBC implementation would ignore that syntax-bit
34643         flag and return REG_ERANGE unconditionally.
34644         This change makes it honor that flag.
34645         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
34646         Make two pointer parameters "const".
34647         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
34648         (parse_bracket_exp): Update caller.
34649
34650         regex.m4: correct the reversed range endpoint ([b-a]) test
34651         * m4/regex.m4: When requiring that [b-a] evoke failure,
34652         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
34653         test pass once again for x86-based systems.
34654
34655 2010-03-19  Bruno Haible  <bruno@clisp.org>
34656
34657         scandir: Fix link error on Solaris 8.
34658         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
34659         macros.
34660
34661 2010-03-19  Bruno Haible  <bruno@clisp.org>
34662
34663         getusershell: Fix documentation.
34664         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
34665         module.
34666         * doc/glibc-functions/setusershell.texi: Likewise.
34667
34668         getusershell: Provide declaration, missing on Solaris 9.
34669         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
34670         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
34671         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
34672         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
34673         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
34674         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
34675         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
34676         HAVE_GETUSERSHELL.
34677         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
34678
34679 2010-03-19  Bruno Haible  <bruno@clisp.org>
34680
34681         wctype: Provide iswblank function.
34682         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
34683         exists and is fine.
34684         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
34685         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
34686         * tests/test-wctype.c (main): Re-enable the iswblank tests.
34687         * doc/posix-functions/iswblank.texi: Update.
34688
34689 2010-03-19  Bruno Haible  <bruno@clisp.org>
34690
34691         Tests of module 'pty' in C++ mode.
34692         * modules/pty-tests: New file.
34693         * tests/test-pty-c++.cc: New file.
34694         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
34695
34696 2010-03-19  Eric Blake  <eblake@redhat.com>
34697
34698         logb: fix documentation
34699         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
34700         1.5 declaration bug.
34701
34702         forkpty, openpty: prefer glibc's const-safe prototype
34703         * lib/forkpty.c (rpl_forkpty): New file.
34704         * lib/openpty.c (rpl_openpty): Likewise.
34705         * modules/forkpty (Files): Distribute it.
34706         * modules/openpty (Files): Likewise.
34707         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
34708         check...
34709         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
34710         replacement for for non-const BSD signature.
34711         * modules/pty (Makefile.am): Substitute witnesses.
34712         * lib/pty.in.h (forkpty, openpty): Declare replacements.
34713         * tests/test-forkpty.c: Update signature check.
34714         * tests/test-openpty.c: Likewise.
34715         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
34716         * doc/glibc-functions/openpty.texi (openpty): Likewise.
34717
34718         forkpty, openpty: split functions into new modules
34719         * modules/pty (Makefile.am): Substitute new witnesses.
34720         (Libraries): Move library detection...
34721         * modules/forkpty: ...into new module.
34722         * modules/openpty: Another new module.
34723         * modules/pty-tests: Rename and split...
34724         * modules/forkpty-tests: ...to this...
34725         * modules/openpty-tests: ...and this.
34726         * tests/test-pty.c: Rename and split...
34727         * tests/test-forkpty.c: ...to this...
34728         * tests/test-openpty.c: ...and this.
34729         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
34730         (gl_PTY): Split library searching...
34731         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
34732         (gl_FORKPTY, gl_OPENPTY): New macros.
34733         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
34734         * NEWS: Mention the split.
34735         * MODULES.html.sh (Misc): Document the modules.
34736         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
34737         * doc/glibc-functions/openpty.texi (openpty): Likewise.
34738
34739         pty: improve replacement header
34740         * lib/pty.in.h: New file.
34741         * modules/pty (Files): Ship it.
34742         (Makefile.am): Always build replacement.
34743         * m4/pty.m4: Rename...
34744         * m4/pty_h.m4: ...to this.
34745         (gl_PTY): Modernize setting of witness macros; update check of
34746         forkpty to take proper advantage of cache.
34747         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
34748
34749         getopt: avoid compiler warning
34750         * lib/getopt.c (attribute_hidden): Remove unused macro.
34751
34752 2010-03-18  Bruno Haible  <bruno@clisp.org>
34753
34754         Fix link errors on Solaris 8.
34755         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
34756         * modules/search-tests (test_search_c___LDADD): Likewise.
34757         * modules/signal-tests (test_signal_c___LDADD): Likewise.
34758         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
34759         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
34760         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
34761         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
34762         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
34763         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
34764
34765 2010-03-18  Bruno Haible  <bruno@clisp.org>
34766
34767         Fix bug introduced on 2010-03-14.
34768         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
34769         (gl_SPAWN_H): Require it.
34770         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
34771         Reported by Simon Josefsson.
34772
34773 2010-03-18  Bruno Haible  <bruno@clisp.org>
34774
34775         Fix typo introduced on 2009-12-31.
34776         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
34777         posix_spawn_file_actions_adddup2.
34778
34779 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
34780         and Eric Blake  <eblake@redhat.com>
34781
34782         test-vc-list-files-git: make more robust
34783         * tests/test-vc-list-files-git.sh: Unset problematic environment
34784         variables.  Chain commands together.
34785
34786 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
34787
34788         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
34789         `AC_CHECK_DECL' invocation.
34790
34791 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
34792
34793         * lib/inttostr.c (inttostr): Make sure the invocation of verify
34794         appears before executable statements. Suggested by Petr Sumbera
34795         <Petr.Sumbera@Sun.COM>.
34796
34797 2010-03-14  Bruno Haible  <bruno@clisp.org>
34798
34799         * tests/test-flock.c (test_exclusive): Comment out a test that causes
34800         portability problems. Instead use a simpler test.
34801         (main): Check that invalid arguments are rejected only on Linux.
34802
34803 2010-03-14  Bruno Haible  <bruno@clisp.org>
34804
34805         Fix bug introduced on 2009-12-31.
34806         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
34807         gl_PREREQ_SYS_H_WINSOCK2 always.
34808         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
34809         SYS_SOCKET_H variable.
34810         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
34811         Update comments.
34812         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
34813         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
34814         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
34815         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
34816         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
34817
34818 2010-03-14  Bruno Haible  <bruno@clisp.org>
34819
34820         Fix values returned by sinl, cosl.
34821         * lib/trigl.h: Add specification comments.
34822         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
34823         that combines the values from the precomputed table with the values of
34824         the Chebyshev polynomials.
34825
34826 2010-03-14  Bruno Haible  <bruno@clisp.org>
34827
34828         Fix compilation error when modules 'posix_spawn[p]' are not used.
34829         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
34830         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
34831
34832 2010-03-14  Bruno Haible  <bruno@clisp.org>
34833
34834         Fix compilation error on mingw when module 'time_r' is not used.
34835         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
34836         is 1.
34837         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
34838         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
34839         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
34840         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
34841
34842 2010-03-14  Bruno Haible  <bruno@clisp.org>
34843
34844         Fix compilation error with Sun C.
34845         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
34846         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
34847         instead of GCC specific ULONG_LONG_MAX.
34848         * lib/xstrtoll.c: Likewise.
34849         * lib/xstrtoull.c: Likewise.
34850
34851 2010-03-13  Bruno Haible  <bruno@clisp.org>
34852
34853         Allow the user to disable C++ code and tests.
34854         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
34855         (gl_PROG_ANSI_CXX): Require it.
34856
34857 2010-03-13  Bruno Haible  <bruno@clisp.org>
34858
34859         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
34860         cases.
34861
34862 2010-03-13  Bruno Haible  <bruno@clisp.org>
34863
34864         Test that gnulib does not break the standard C++ headers.
34865         * tests/test-locale-c++2.cc: New file.
34866         * modules/locale-tests (Files): Add it.
34867         (Makefile.am): Compile it for test-locale-c++.
34868         * tests/test-math-c++2.cc: New file.
34869         * modules/math-tests (Files): Add it.
34870         (Makefile.am): Compile it for test-math-c++.
34871         * tests/test-signal-c++2.cc: New file.
34872         * modules/signal-tests (Files): Add it.
34873         (Makefile.am): Compile it for test-signal-c++.
34874         * tests/test-stdio-c++2.cc: New file.
34875         * modules/stdio-tests (Files): Add it.
34876         (Makefile.am): Compile it for test-stdio-c++.
34877         * tests/test-stdlib-c++2.cc: New file.
34878         * modules/stdlib-tests (Files): Add it.
34879         (Makefile.am): Compile it for test-stdlib-c++.
34880         * tests/test-string-c++2.cc: New file.
34881         * modules/string-tests (Files): Add it.
34882         (Makefile.am): Compile it for test-string-c++.
34883         * tests/test-time-c++2.cc: New file.
34884         * modules/time-tests (Files): Add it.
34885         (Makefile.am): Compile it for test-time-c++.
34886         Reported by John W. Eaton <jwe@gnu.org>.
34887
34888 2010-03-13  Bruno Haible  <bruno@clisp.org>
34889
34890         * gnulib-tool (func_usage): Clarify which options are available for
34891         --create-testdir and --create-megatestdir.
34892
34893 2010-03-13  Bruno Haible  <bruno@clisp.org>
34894
34895         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
34896         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
34897         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
34898         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
34899         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
34900         when appropriate.
34901         Reported by Jim Meyering.
34902
34903 2010-03-12  Simon Josefsson  <simon@josefsson.org>
34904
34905         * gnulib-tool (func_import): Explain origin of code.
34906
34907 2010-03-12  Bruno Haible  <bruno@clisp.org>
34908
34909         Fix problem with automake's definition of CXXLINK.
34910         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
34911         Reported by Simon Josefsson and Ludovic Courtès.
34912
34913 2010-03-12  Bruno Haible  <bruno@clisp.org>
34914
34915         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
34916         stable releases.
34917
34918 2010-03-11  Bruno Haible  <bruno@clisp.org>
34919
34920         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
34921         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
34922         whether the system provides one variant or multiple variants of the
34923         function.
34924         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
34925         C++ compilers.
34926         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
34927         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
34928         Reported by Jim Meyering.
34929
34930 2010-03-09  Simon Josefsson  <simon@josefsson.org>
34931
34932         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
34933
34934 2010-03-08  Bruno Haible  <bruno@clisp.org>
34935
34936         gnulib-tool: Add support for --libtool in --create-testdir.
34937         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
34938         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
34939
34940 2010-03-08  Eric Blake  <eblake@redhat.com>
34941
34942         gnulib-tool.texi: mention possibility of git submodule
34943         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
34944         submodules.
34945         * doc/.gitignore: Ignore another generated file.
34946
34947 2010-03-08  Karl Berry  <karl@gnu.org>
34948
34949         * doc/gnulib-tool.texi (VCS Issues): Mention third option
34950         of committing gnulib files while skipping others.
34951
34952 2010-03-07  Bruno Haible  <bruno@clisp.org>
34953
34954         Tests of module 'wctype' in C++ mode.
34955         * tests/test-wctype-c++.cc: New file.
34956         * modules/wctype-tests (Files): Add it and tests/signature.h.
34957         (Depends-on): Add ansi-c++-opt.
34958         (Makefile.am): Arrange to compile and run test-wctype-c++.
34959
34960         Tests of module 'wchar' in C++ mode.
34961         * tests/test-wchar-c++.cc: New file.
34962         * modules/wchar-tests (Files): Add it and tests/signature.h.
34963         (Depends-on): Add ansi-c++-opt.
34964         (Makefile.am): Arrange to compile and run test-wchar-c++.
34965         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
34966         gl_MODULE_INDICATOR.
34967
34968         Tests of module 'unistd' in C++ mode.
34969         * tests/test-unistd-c++.cc: New file.
34970         * modules/unistd-tests (Files): Add it and tests/signature.h.
34971         (Depends-on): Add ansi-c++-opt.
34972         (Makefile.am): Arrange to compile and run test-unistd-c++.
34973         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
34974         gl_MODULE_INDICATOR.
34975
34976         Tests of module 'time' in C++ mode.
34977         * tests/test-time-c++.cc: New file.
34978         * modules/time-tests (Files): Add it and tests/signature.h.
34979         (Depends-on): Add ansi-c++-opt.
34980         (Makefile.am): Arrange to compile and run test-time-c++.
34981         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
34982
34983         Tests of module 'sys_time' in C++ mode.
34984         * tests/test-sys_time-c++.cc: New file.
34985         * modules/sys_time-tests (Files): Add it and tests/signature.h.
34986         (Depends-on): Add ansi-c++-opt.
34987         (Makefile.am): Arrange to compile and run test-sys_time-c++.
34988         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
34989         gl_MODULE_INDICATOR.
34990
34991         Tests of module 'sys_stat' in C++ mode.
34992         * tests/test-sys_stat-c++.cc: New file.
34993         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
34994         (Depends-on): Add ansi-c++-opt.
34995         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
34996         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
34997         gl_MODULE_INDICATOR.
34998
34999         Tests of module 'sys_socket' in C++ mode.
35000         * tests/test-sys_socket-c++.cc: New file.
35001         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
35002         (Depends-on): Add ansi-c++-opt.
35003         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
35004         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
35005         gl_MODULE_INDICATOR.
35006
35007         Tests of module 'sys_select' in C++ mode.
35008         * tests/test-sys_select-c++.cc: New file.
35009         * modules/sys_select-tests (Files): Add it and tests/signature.h.
35010         (Depends-on): Add ansi-c++-opt.
35011         (Makefile.am): Arrange to compile and run test-sys_select-c++.
35012         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
35013         gl_MODULE_INDICATOR.
35014
35015         Tests of module 'sys_ioctl' in C++ mode.
35016         * tests/test-sys_ioctl-c++.cc: New file.
35017         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
35018         (Depends-on): Add ansi-c++-opt.
35019         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
35020         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
35021         gl_MODULE_INDICATOR.
35022
35023         Tests of module 'string' in C++ mode.
35024         * tests/test-string-c++.cc: New file.
35025         * modules/string-tests (Files): Add it and tests/signature.h.
35026         (Depends-on): Add ansi-c++-opt.
35027         (Makefile.am): Arrange to compile and run test-string-c++.
35028         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
35029         gl_MODULE_INDICATOR.
35030
35031         Tests of module 'stdlib' in C++ mode.
35032         * tests/test-stdlib-c++.cc: New file.
35033         * modules/stdlib-tests (Files): Add it and tests/signature.h.
35034         (Depends-on): Add ansi-c++-opt.
35035         (Makefile.am): Arrange to compile and run test-stdlib-c++.
35036         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
35037         gl_MODULE_INDICATOR.
35038
35039         Tests of module 'stdio' in C++ mode.
35040         * tests/test-stdio-c++.cc: New file.
35041         * modules/stdio-tests (Files): Add it and tests/signature.h.
35042         (Depends-on): Add ansi-c++-opt.
35043         (Makefile.am): Arrange to compile and run test-stdio-c++.
35044         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
35045         gl_MODULE_INDICATOR.
35046
35047         Tests of module 'spawn' in C++ mode.
35048         * tests/test-spawn-c++.cc: New file.
35049         * modules/spawn-tests (Files): Add it and tests/signature.h.
35050         (Depends-on): Add ansi-c++-opt.
35051         (Makefile.am): Arrange to compile and run test-spawn-c++.
35052         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
35053         gl_MODULE_INDICATOR.
35054
35055         Tests of module 'signal' in C++ mode.
35056         * tests/test-signal-c++.cc: New file.
35057         * modules/signal-tests (Files): Add it and tests/signature.h.
35058         (Depends-on): Add ansi-c++-opt.
35059         (Makefile.am): Arrange to compile and run test-signal-c++.
35060         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
35061         gl_MODULE_INDICATOR.
35062
35063         Tests of module 'search' in C++ mode.
35064         * tests/test-search-c++.cc: New file.
35065         * modules/search-tests (Files): Add it and tests/signature.h.
35066         (Depends-on): Add ansi-c++-opt.
35067         (Makefile.am): Arrange to compile and run test-search-c++.
35068         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
35069         gl_MODULE_INDICATOR.
35070
35071         Tests of module 'math' in C++ mode.
35072         * tests/test-math-c++.cc: New file.
35073         * modules/math-tests (Files): Add it and tests/signature.h.
35074         (Depends-on): Add ansi-c++-opt.
35075         (Makefile.am): Arrange to compile and run test-math-c++.
35076         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
35077
35078         Tests of module 'locale' in C++ mode.
35079         * tests/test-locale-c++.cc: New file.
35080         * modules/locale-tests (Files): Add it and tests/signature.h.
35081         (Depends-on): Add ansi-c++-opt.
35082         (Makefile.am): Arrange to compile and run test-locale-c++.
35083         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
35084         gl_MODULE_INDICATOR.
35085
35086         Tests of module 'langinfo' in C++ mode.
35087         * tests/test-langinfo-c++.cc: New file.
35088         * modules/langinfo-tests (Files): Add it and tests/signature.h.
35089         (Depends-on): Add ansi-c++-opt.
35090         (Makefile.am): Arrange to compile and run test-langinfo-c++.
35091         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
35092         gl_MODULE_INDICATOR.
35093
35094         Tests of module 'iconv-h' in C++ mode.
35095         * tests/test-iconv-h-c++.cc: New file.
35096         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
35097         (Depends-on): Add ansi-c++-opt.
35098         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
35099
35100         Tests of module 'glob' in C++ mode.
35101         * tests/test-glob-c++.cc: New file.
35102         * modules/glob-tests (Files): Add it.
35103         (Depends-on): Add ansi-c++-opt.
35104         (Makefile.am): Arrange to compile and run test-glob-c++.
35105
35106         Tests of module 'fcntl-h' in C++ mode.
35107         * tests/test-fcntl-h-c++.cc: New file.
35108         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
35109         (Depends-on): Add ansi-c++-opt.
35110         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
35111         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
35112         gl_MODULE_INDICATOR.
35113
35114         Tests of module 'dirent' in C++ mode.
35115         * tests/test-dirent-c++.cc: New file.
35116         * modules/dirent-tests (Files): Add it and tests/signature.h.
35117         (Depends-on): Add ansi-c++-opt.
35118         (Makefile.am): Arrange to compile and run test-dirent-c++.
35119         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
35120         gl_MODULE_INDICATOR.
35121
35122         New module 'ansi-c++-opt'.
35123         * modules/ansi-c++-opt: New file.
35124         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
35125
35126         Document C++ namespace mode.
35127         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
35128
35129         wctype: Avoid #define replacements in C++ mode.
35130         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
35131         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
35132         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
35133         In C++, define a namespaced alias symbol.
35134         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
35135         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
35136         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
35137         rule.
35138
35139         wchar: Avoid #define replacements in C++ mode.
35140         * lib/wchar.in.h: Include c++defs.h.
35141         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
35142         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
35143         symbol.
35144         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
35145         * modules/wchar (Depends-on): Add c++defs.
35146         (Makefile.am): Update wchar.h rule.
35147
35148         unistd: Avoid #define replacements in C++ mode.
35149         * lib/unistd.in.h: Include c++defs.h.
35150         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
35151         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
35152         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
35153         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
35154         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
35155         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
35156         symbol.
35157         (environ): Update.
35158         * modules/unistd (Depends-on): Add c++defs.
35159         (Makefile.am): Update unistd.h rule.
35160
35161         time: Avoid #define replacements in C++ mode.
35162         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
35163         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
35164         define a namespaced alias symbol.
35165         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
35166         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
35167         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
35168         * modules/time (Depends-on): Add c++defs, warn-on-use.
35169         (Makefile.am): Update time.h rule.
35170         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
35171         * modules/nanosleep (configure.ac): Likewise.
35172         * modules/strptime (configure.ac): Likewise.
35173         * modules/timegm (configure.ac): Likewise.
35174
35175         sys_time: Avoid #define replacements in C++ mode.
35176         * lib/sys_time.in.h: Include c++defs.h.
35177         (gettimeofday): In C++, define a namespaced alias symbol.
35178         * modules/sys_time (Depends-on): Add c++defs.
35179         (Makefile.am): Update sys/time.h rule.
35180
35181         sys_stat: Avoid #define replacements in C++ mode.
35182         * lib/sys_stat.in.h: Include c++defs.h.
35183         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
35184         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
35185         namespaced alias symbol.
35186         In C++, define a namespaced alias symbol.
35187         * modules/sys_stat (Depends-on): Add c++defs.
35188         (Makefile.am): Update sys/stat.h rule.
35189
35190         sys_socket: Avoid #define replacements in C++ mode.
35191         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
35192         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
35193         definitions also when the system has a <sys/socket.h>.
35194         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
35195         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
35196         In C++, define a namespaced alias symbol.
35197         * modules/sys_socket (Depends-on): Add c++defs.
35198         (Makefile.am): Update sys/socket.h rule.
35199
35200         sys_select: Avoid #define replacements in C++ mode.
35201         * lib/sys_select.in.h: Include c++defs.h. Enable the function
35202         definitions also when the system has a <sys/select.h>.
35203         (select): In C++, define a namespaced alias symbol.
35204         * modules/sys_select (Depends-on): Add c++defs.
35205         (Makefile.am): Update sys/select.h rule.
35206
35207         sys_ioctl: Avoid #define replacements in C++ mode.
35208         * lib/sys_ioctl.in.h: Include c++defs.h.
35209         (ioctl): In C++, define a namespaced alias symbol.
35210         * modules/sys_ioctl (Depends-on): Add c++defs.
35211         (Makefile.am): Update sys/ioctl.h rule.
35212
35213         string: Avoid #define replacements in C++ mode.
35214         * lib/string.in.h: Include c++defs.h.
35215         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
35216         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
35217         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
35218         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
35219         strsignal, strverscmp): In C++, define a namespaced alias symbol.
35220         * modules/string (Depends-on): Add c++defs.
35221         (Makefile.am): Update string.h rule.
35222
35223         stdlib: Avoid #define replacements in C++ mode.
35224         * lib/stdlib.in.h: Include c++defs.h.
35225         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
35226         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
35227         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
35228         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
35229         symbol.
35230         * modules/stdlib (Depends-on): Add c++defs.
35231         (Makefile.am): Update stdlib.h rule.
35232
35233         stdio: Avoid #define replacements in C++ mode.
35234         * lib/stdio.in.h: Include c++defs.h.
35235         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
35236         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
35237         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
35238         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
35239         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
35240         namespaced alias symbol.
35241         * modules/stdio (Depends-on): Add c++defs.
35242         (Makefile.am): Update stdio.h rule.
35243
35244         spawn: Avoid #define replacements in C++ mode.
35245         * lib/spawn.in.h: Include c++defs.h.
35246         (posix_spawn, posix_spawnp, posix_spawnattr_init,
35247         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
35248         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
35249         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
35250         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
35251         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
35252         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
35253         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
35254         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
35255         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
35256         In C++, define a namespaced alias symbol.
35257         * modules/spawn (Depends-on): Add c++defs.
35258         (Makefile.am): Update spawn.h rule.
35259
35260         signal: Avoid #define replacements in C++ mode.
35261         * lib/signal.in.h: Include c++defs.h.
35262         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
35263         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
35264         namespaced alias symbol.
35265         * modules/signal (Depends-on): Add c++defs.
35266         (Makefile.am): Update signal.h rule.
35267
35268         search: Avoid #define replacements in C++ mode.
35269         * lib/search.in.h: Include c++defs.h.
35270         (_gl_search_compar_fn, _gl_search_action_fn): New types.
35271         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
35272         symbol.
35273         * modules/search (Depends-on): Add c++defs.
35274         (Makefile.am): Update search.h rule.
35275
35276         math: Avoid #define replacements in C++ mode.
35277         * lib/math.in.h: Include c++defs.h.
35278         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
35279         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
35280         trunc, truncl): In C++, define a namespaced alias symbol.
35281         * modules/math (Depends-on): Add c++defs.
35282         (Makefile.am): Update math.h rule.
35283
35284         locale: Avoid #define replacements in C++ mode.
35285         * lib/locale.in.h: Include c++defs.h.
35286         (duplocale): In C++, define a namespaced alias symbol.
35287         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
35288         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
35289         * modules/locale (Depends-on): Add c++defs.
35290         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
35291
35292         langinfo: Avoid #define replacements in C++ mode.
35293         * lib/langinfo.in.h: Include c++defs.h.
35294         (nl_langinfo): In C++, define a namespaced alias symbol.
35295         * modules/langinfo (Depends-on): Add c++defs.
35296         (Makefile.am): Update langinfo.h rule.
35297
35298         iconv-h: Avoid #define replacements in C++ mode.
35299         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
35300         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
35301         symbol.
35302         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
35303         whenever iconv is present.
35304         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
35305         (Makefile.am): Update iconv.h rule.
35306
35307         glob: Avoid #define replacements in C++ mode.
35308         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
35309         (_gl_glob_errfunc_fn): New type.
35310         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
35311         symbol.
35312         * modules/glob (Depends-on): Add c++defs, warn-on-use.
35313         (Makefile.am): Update glob.h rule.
35314
35315         fcntl-h: Avoid #define replacements in C++ mode.
35316         * lib/fcntl.in.h: Include c++defs.h.
35317         (fcntl, open, openat): In C++, define a namespaced alias symbol.
35318         * modules/fcntl-h (Depends-on): Add c++defs.
35319         (Makefile.am): Update fcntl.h rule.
35320
35321         dirent: Avoid #define replacements in C++ mode.
35322         * lib/dirent.in.h: Include c++defs.h.
35323         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
35324         namespaced alias symbol.
35325         (dirfd): Update declaration.
35326         * modules/dirent (Depends-on): Add c++defs.
35327         (Makefile.am): Update dirent.h rule.
35328
35329         ctype: Make it usable in C++ code.
35330         * lib/ctype.in.h: Include c++defs.h.
35331         (isblank): Declare as extern "C".
35332         * modules/ctype (Depends-on): Add c++defs.
35333         (Makefile.am): Update ctype.h rule.
35334
35335         New module 'c++defs'.
35336         * modules/c++defs: New file.
35337         * build-aux/c++defs.h: New file.
35338         Reported by John W. Eaton <jwe@gnu.org>.
35339
35340 2010-03-07  Bruno Haible  <bruno@clisp.org>
35341
35342         logb: Provide missing declaration for Cygwin.
35343         * lib/math.in.h (logb): New declaration.
35344         * m4/logb.m4: New file.
35345         * modules/logb (Files): Add m4/logb.m4.
35346         (Depends-on): Add math.
35347         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
35348         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
35349         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
35350         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
35351         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
35352
35353 2010-03-07  Bruno Haible  <bruno@clisp.org>
35354
35355         Fix test-cond link error.
35356         * tests/test-cond.c: Include <stdio.h>.
35357
35358 2010-03-07  Bruno Haible  <bruno@clisp.org>
35359
35360         Fix test-dirent-safer link error.
35361         * modules/dirent-safer-tests (Makefile.am): Define
35362         test_dirent_safer_LDADD.
35363
35364 2010-03-07  Bruno Haible  <bruno@clisp.org>
35365
35366         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
35367         among default module list.
35368
35369 2010-03-07  Bruno Haible  <bruno@clisp.org>
35370
35371         Fix link error on platforms with GNU libiconv.
35372         * modules/unistr/u8-strcoll-tests (Makefile): Define
35373         test_u8_strcoll_LDADD.
35374         * modules/unistr/u16-strcoll-tests (Makefile): Define
35375         test_u16_strcoll_LDADD.
35376         * modules/unistr/u32-strcoll-tests (Makefile): Define
35377         test_u32_strcoll_LDADD.
35378
35379 2010-03-07  Bruno Haible  <bruno@clisp.org>
35380
35381         Use POSIX declarations for socket functions.
35382         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
35383         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
35384         rpl_sendto): Change declaration to match POSIX.
35385         * lib/connect.c (rpl_connect): Likewise.
35386         * lib/accept.c (rpl_accept): Likewise.
35387         * lib/bind.c (rpl_bind): Likewise.
35388         * lib/getpeername.c (rpl_getpeername): Likewise.
35389         * lib/getsockname.c (rpl_getsockname): Likewise.
35390         * lib/recv.c (rpl_recv): Likewise.
35391         * lib/send.c (rpl_send): Likewise.
35392         * lib/recvfrom.c (rpl_recvfrom): Likewise.
35393         * lib/sendto.c (rpl_sendto): Likewise.
35394
35395 2010-03-06  Bruno Haible  <bruno@clisp.org>
35396
35397         Clarify access, euidaccess, faccessat.
35398         * doc/posix-functions/faccessat.texi: Mention security problem under
35399         "Other problems", not "Portability problems".
35400         * doc/posix-functions/access.texi: Likewise. Mention a related security
35401         problem.
35402         * doc/glibc-functions/euidaccess.texi: Mention security problems.
35403         * lib/euidaccess.c: Add comments about platforms.
35404         * lib/unistd.in.h (access, euidaccess): Add warnings.
35405
35406 2010-03-07  Bruno Haible  <bruno@clisp.org>
35407
35408         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
35409         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
35410         (POSIX_SPAWN_SETSCHEDULER): Likewise.
35411         (POSIX_SPAWN_USEVFORK): Define in a way that works when
35412         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
35413         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
35414         declare when POSIX_SPAWN_SETSCHEDULER is zero.
35415         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
35416         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
35417         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
35418         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
35419         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
35420         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
35421         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
35422         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
35423         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
35424         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
35425         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
35426         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
35427         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
35428         Likewise.
35429         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
35430         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
35431         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
35432         Likewise.
35433         * tests/test-spawn.c (main): Make it work when
35434         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
35435
35436 2010-03-07  Bruno Haible  <bruno@clisp.org>
35437
35438         Fix incorrect Makefile.am generation in German locale.
35439         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35440         Execute sed command with character range in C locale.
35441
35442 2010-03-06  Bruno Haible  <bruno@clisp.org>
35443
35444         Tests for module 'iconv-h'.
35445         * modules/iconv-h-tests: New file.
35446         * tests/test-iconv-h.c: New file.
35447
35448         New module 'iconv-h'.
35449         * modules/iconv-h: New file.
35450         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
35451         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
35452         (configure.ac): Remove gl_ICONV_H.
35453         (Makefile.am): Remove rule for iconv.h.
35454
35455 2010-03-06  Bruno Haible  <bruno@clisp.org>
35456
35457         More consistent naming of *.m4 files.
35458         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
35459         * modules/wctype (Files): Update.
35460
35461         More consistent naming of *.m4 files.
35462         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
35463         * modules/wchar (Files): Update.
35464
35465 2010-03-06  Jim Meyering  <meyering@redhat.com>
35466
35467         euidaccess: relax license to LGPLv2+
35468         * modules/euidaccess (License): Relax to LGPLv2+.
35469
35470 2010-03-06  Bruno Haible  <bruno@clisp.org>
35471
35472         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
35473         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
35474         (Makefile.am): Augment lib_SOURCES instead.
35475
35476 2010-03-04  Jim Meyering  <meyering@redhat.com>
35477
35478         utime: remove obsolete module
35479         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
35480         unnecessary for years, and has been marked as obsolete for 10 months.
35481         * modules/utime: Remove file.
35482         * lib/utime.c: Remove file.
35483         * m4/utime.m4: Remove file.
35484         * m4/utimes-null.m4: Remove file.
35485         * doc/posix-functions/utime.texi (utime): Remove reference to
35486         the module.  Move the sole "fixed by gnulib" item into the
35487         "problems not fixed by Gnulib" list.
35488         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
35489
35490 2010-03-05  Simon Josefsson  <simon@josefsson.org>
35491
35492         * modules/exit (License): Relax license to LGPLv2+.
35493         (Status): Mark as obsolete.
35494         * NEWS: Mention deprecated 'exit' module.
35495         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
35496         of now obsolete 'exit'.
35497
35498 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35499
35500         fts-lgpl: remove unused module
35501         * modules/fts-lgpl: Remove.
35502         * MODULES.html.sh (func_all_modules): Adjust.
35503         * check-module (find_included_lib_files): Adjust.
35504         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
35505
35506 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
35507
35508         copy-acl: enhance Solaris ACL error handling
35509         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
35510         * lib/set-mode-acl.c (qset_acl): Likewise.
35511
35512 2010-03-02  Bruno Haible  <bruno@clisp.org>
35513
35514         spawn: Don't override the system defined values on FreeBSD 8.
35515         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
35516         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
35517         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
35518         if HAVE_POSIX_SPAWN is 1.
35519         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
35520
35521 2010-03-01  Bruno Haible  <bruno@clisp.org>
35522
35523         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
35524         regarding Automake.
35525
35526 2010-02-25  Bruno Haible  <bruno@clisp.org>
35527
35528         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
35529         * gnulib-tool: Define 'echo' as a function only before the ksh alias
35530         setting, not afterwards.
35531         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
35532
35533 2010-02-24  Eric Blake  <eblake@redhat.com>
35534
35535         bootstrap, git-version-gen: use timestamp
35536         * build-aux/git-version-gen (scriptversion): Force UTC.
35537         * build-aux/bootstrap (scriptversion): New variable.
35538
35539         bootstrap: allow older git
35540         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
35541         older than 1.6.4.  Requested by the libvirt project.
35542
35543 2010-02-23  Eric Blake  <eblake@redhat.com>
35544
35545         warn-on-use: work with old autoconf
35546         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
35547         AS_VAR semantics of autoconf 2.60.
35548         Reported by Bruno Haible.
35549
35550         bootstrap: improve some comments
35551         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
35552         clarification comments.
35553
35554         gettimeofday: provide correct function
35555         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
35556         when replacement is declared, otherwise provide gettimeofday.
35557         Reported by Michael Goffioul.
35558
35559 2010-02-23  Jim Meyering  <meyering@redhat.com>
35560
35561         lib-ignore: relax license to "unlimited", not LGPLv2+
35562         * modules/lib-ignore (License): Relax to "unlimited".
35563
35564 2010-02-23  Jim Meyering  <meyering@redhat.com>
35565
35566         lib-ignore: relax license to LGPLv2+
35567         * modules/lib-ignore (License): Relax to LGPLv2+.
35568
35569 2010-02-22  Eric Blake  <eblake@redhat.com>
35570
35571         lseek: avoid bash 3.2 broken pipe bug
35572         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
35573         warning from bash 3.2.
35574         Reported by Ben Pfaff, with analysis from Bruno Haible.
35575
35576         bootstrap: support non-FSF copyright holder
35577         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
35578         bootstrap.conf override of COPYRIGHT_HOLDER.
35579         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
35580
35581         bootstrap: interoperate with gettext 0.14.1
35582         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
35583
35584         bootstrap: allow for alternate submodule location
35585         * build-aux/bootstrap (gnulib_path): New variable; use instead of
35586         hardcoding submodule location.
35587         (gnulib_mk): Allow direct use of Makefile.am.
35588
35589         bootstrap: use GNULIB_SRCDIR to reduce disk usage
35590         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
35591         rather than reconfiguring where the submodule points.
35592
35593         gettimeofday: restore support for platforms that lack function
35594         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
35595         replacement if function is missing.
35596         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
35597         * modules/sys_time (Makefile.am): Substitute it.
35598         * lib/sys_time.in.h (gettimeofday): Check it.
35599         Reported by Michael Goffioul.
35600
35601 2010-02-21  Bruno Haible  <bruno@clisp.org>
35602
35603         * lib/stdio.in.h (obstack_printf): Fix typo.
35604
35605 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
35606
35607         vc-list-files: use bzr ls's -R option
35608         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
35609         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
35610
35611 2010-02-21  Jim Meyering  <meyering@redhat.com>
35612
35613         init.sh: fix EXEEXT shims to work also for names like test-prog
35614         * tests/init.sh: Re-exec a better shell, when needed.
35615         If the current shell lacks support for posix $(...), an init.sh-using
35616         test will now try to find a shell that supports that.  If EXEEXT is
35617         nonempty, we also require support for hyphen-in-alias-name and shell
35618         substitutions like ${var#glob}.  Failure to find such a shell results
35619         in a skipped test.
35620
35621 2010-02-21  Bruno Haible  <bruno@clisp.org>
35622
35623         Really work around around "broken pipe" error message from bash 3.2.
35624         * gnulib-tool (func_reset_sigpipe): Remove function.
35625         (echo): In bash 3.2, define to a function that uses printf.
35626         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
35627
35628 2010-02-20  Bruno Haible  <bruno@clisp.org>
35629
35630         Restore support for automake 1.9.6 with autoconf 2.61.
35631         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
35632         Reported by James Youngman <jay@gnu.org>.
35633
35634 2010-02-20  Bruno Haible  <bruno@clisp.org>
35635
35636         Improve *printf warning condition.
35637         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
35638         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
35639         and the function is overridden due to SIGPIPE emulation.
35640
35641 2010-02-20  Bruno Haible  <bruno@clisp.org>
35642
35643         * lib/stdio.in.h: Tweak comments.
35644
35645 2010-02-19  Bruno Haible  <bruno@clisp.org>
35646
35647         Make it easier to find modules. New gnulib-tool option '--find'.
35648         * gnulib-tool: New option --find.
35649         (func_usage): Document it.
35650         (func_sanitize_modulelist): New function, extracted from
35651         func_all_modules.
35652         (func_all_modules): Invoke it.
35653         * doc/gnulib-tool.texi (Which modules?): New node.
35654
35655 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
35656
35657         * lib/sys_select.in.h: Provide select replacement even if
35658         sys/select.h exists on a system, for Interix.
35659
35660 2010-02-18  Jim Meyering  <meyering@redhat.com>
35661
35662         init.sh: don't use $(...) just yet
35663         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
35664         to accommodate e.g., Solaris' /bin/sh.
35665
35666 2010-02-17  Bruno Haible  <bruno@clisp.org>
35667
35668         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
35669         Reported by Ludovic Courtès <ludo@gnu.org>.
35670
35671 2010-02-16  Simon Josefsson  <simon@josefsson.org>
35672
35673         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
35674         linking with -lintl.
35675
35676 2010-02-17  Simon Josefsson  <simon@josefsson.org>
35677
35678         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
35679         if not provided by the system's netdb.h.  Reported by
35680         ludo@gnu.org (Ludovic Courtès).
35681
35682 2010-02-15  Jim Meyering  <meyering@redhat.com>
35683
35684         init.sh: improve portability and efficiency
35685         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
35686         "dummy" in a for loop.
35687         Use '!', not '^' to select the complement of a character set used
35688         in a "case" statement.
35689         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
35690         Suggestions from Eric Blake.
35691
35692         init.sh: automatically accommodate programs with the .exe suffix
35693         Automatically arrange for an invocation of "prog" to execute the
35694         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
35695         may use the simpler "prog", yet still work when built on a system
35696         that requires specifying the added suffix.
35697         Do this by constructing a function named "prog" that invokes
35698         "prog.exe" for each .exe file in selected directories.
35699         * tests/init.sh (find_exe_basenames_): New function.
35700         (create_exe_shim_functions_): New function.
35701         (path_prepend_): Use it.
35702
35703         maint.mk: mark syntax-check sc_*.m rules as .PHONY
35704         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
35705         "make -t syntax-check" doesn't create a ton of sc_*.m files.
35706
35707 2010-02-14  Jim Meyering  <meyering@redhat.com>
35708
35709         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
35710         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
35711         (sc_prohibit_hash_pjw_without_use): New rule.
35712
35713         maint.mk: allow the default upload destination dir to be overridden
35714         * top/maint.mk (upload_dest_dir_): Define with a default that
35715         preserves the status quo.
35716         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
35717         Reported by Peter Simons.
35718
35719         maint.mk: prohibit inclusion of "hash.h" without_use
35720         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
35721
35722 2010-02-10  Jim Meyering  <meyering@redhat.com>
35723
35724         maint.mk: prohibit inclusion of "ignore-value.h" without_use
35725         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
35726
35727 2010-02-09  Eric Blake  <ebb9@byu.net>
35728         and Bruno Haible  <bruno@clisp.org>
35729
35730         obstack-printf-posix: ensure declaration
35731         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
35732         extracted from gl_FUNC_OBSTACK_PRINTF.
35733         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
35734         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
35735         Likewise.
35736         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
35737         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
35738         0.
35739
35740 2010-02-08  Bruno Haible  <bruno@clisp.org>
35741
35742         gnulib-tool: Fix typo in 2010-02-07 commit.
35743         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
35744         Reported by Eric Blake.
35745
35746 2010-02-07  Bruno Haible  <bruno@clisp.org>
35747
35748         gnulib-tool: Fix up caching patches.
35749         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
35750         option --no-cache. Use associative arrays when supported by the shell.
35751         (sed_comments): New variable.
35752         (modcache): Renamed from do_cache.
35753         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
35754         abbreviate unnecessarily.
35755         (have_associative): New variable.
35756         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
35757         way also for ksh and zsh.
35758         (func_init_sed_convert_to_cache_statements): New function, extracted
35759         from func_cache_lookup_module. Add support for associative arrays.
35760         Don't set the c_MODULE_cached variable here. Ignore all lines before
35761         the first field header. Remove only the final newline, not all trailing
35762         newlines. Support empty fields correctly. Limit the use of 'eval' to
35763         assignments.
35764         (func_get_description, func_get_status, func_get_notice,
35765         func_get_applicability, func_get_filelist, func_get_dependencies,
35766         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
35767         func_get_automake_snippet, func_get_include_directive,
35768         func_get_link_directive, func_get_license, func_get_maintainer):
35769         Update documentation. List the unoptimized code first. Add support for
35770         associative arrays. Limit the use of 'eval' to assignments.
35771         (func_get_applicability): Undo stylistic pessimisations.
35772         (func_get_automake_snippet, func_get_include_directive): Reduce code
35773         duplication.
35774         (func_modules_transitive_closure, func_modules_add_dummy,
35775         func_modules_notice, func_modules_to_filelist, func_add_file,
35776         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
35777         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
35778         func_create_testdir, func_create_megatestdir): Update documentation.
35779
35780 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35781
35782         * gnulib-tool (func_cache_lookup_module): Store the module name
35783         belonging to the cache variable; error out if two different
35784         module names map to the same cache variable name.
35785
35786 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35787
35788         gnulib-tool: Make caching optional.
35789         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
35790         Update matching short versions of --no-changelog.
35791         (func_usage): Update.
35792         (sed_extract_cache_prog): Renamed from ...
35793         (sed_extract_prog): ... this; revert to old extraction script.
35794         (func_get_description, func_get_status)
35795         (func_get_notice, func_get_applicability, func_get_filelist)
35796         (func_get_dependencies, func_get_autoconf_early_snippet)
35797         (func_get_autoconf_snippet, func_get_automake_snippet)
35798         (func_get_include_directive, func_get_link_directive)
35799         (func_get_license, func_get_maintainer): If $do_cache is false,
35800         use old, non-caching extraction scripts.
35801         Suggestion by Bruno Haible.
35802
35803 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35804
35805         gnulib-tool: cache module metainformation.
35806         * gnulib-tool (sed_extract_prog): Match newline before each
35807         header, and rewrite header to a shell variable suffix.
35808         (func_cache_var, func_cache_lookup_module): New functions,
35809         to turn a module name into a cache variable prefix, and to
35810         look up and cache module metainformation.
35811         (func_get_description, func_get_status)
35812         (func_get_notice, func_get_applicability, func_get_filelist)
35813         (func_get_dependencies, func_get_autoconf_early_snippet)
35814         (func_get_autoconf_snippet, func_get_automake_snippet)
35815         (func_get_include_directive, func_get_link_directive)
35816         (func_get_license, func_get_maintainer): Use
35817         func_cache_lookup_module.
35818
35819 2010-02-07  Bruno Haible  <bruno@clisp.org>
35820
35821         fnctl: Fix missing dependency.
35822         * modules/fcntl (Depends-on): Add getdtablesize.
35823         Reported by John W. Eaton <jwe@gnu.org>.
35824
35825 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
35826
35827         Argp: fix recognition of short alias options.
35828
35829         * lib/argp-parse.c (convert_options): Fix improper use of
35830         `|' between character values.
35831         * tests/test-argp.c (group1_option): New alias option
35832         --read (-r).
35833         (group1_parser): Special handling for 'r'.
35834         (test15): New test case.
35835         (test_fun): Add test15.
35836         * tests/test-argp-2.sh: Update expected --help and --usage
35837         outputs.
35838
35839 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
35840
35841         * tests/test-argp.c: Fix indentation.
35842
35843 2010-02-04  Eric Blake  <ebb9@byu.net>
35844
35845         gettimeofday: expose type of second argument
35846         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
35847         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
35848         * tests/test-gettimeofday.c: Use it to silence warning.
35849         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
35850         the issue.
35851
35852 2010-02-03  Jim Meyering  <meyering@redhat.com>
35853
35854         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
35855         * lib/regcomp.c (TYPE_SIGNED): Define.
35856         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
35857
35858         regcomp.c: avoid a new -Wshadow warning
35859         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
35860
35861 2010-02-01  Jim Meyering  <meyering@redhat.com>
35862
35863         removing useless parentheses in cpp #define directives
35864         For motivation, see commit c0221df4, "define STREQ(a,b)
35865         consistently, removing useless parentheses"
35866         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
35867         * lib/mountlist.c (MNT_IGNORE): Likewise.
35868         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
35869
35870 2010-02-01  Eric Blake  <ebb9@byu.net>
35871
35872         sys_time: use link-warning
35873         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
35874         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
35875         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
35876         * modules/sys_time (Depends-on): Add warn-on-use.
35877         (Makefile.am): Always build replacement.
35878         (configure.ac): Update substitutions.
35879         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
35880         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
35881         bother with SYS_TIME_H.
35882         * modules/gettimeofday (configure.ac): Declare indicator.
35883         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
35884         in use.
35885
35886         closein-tests: silence compiler warning
35887         * tests/test-closein.c (main): Ignore fread result.
35888         * modules/closein-tests (Depends-on): Add ignore-value.
35889
35890         tests: silence warning about system return
35891         * tests/test-areadlink-with-size.c (main): Ignore system result.
35892         * tests/test-areadlink.c (main): Likewise.
35893         * tests/test-areadlinkat-with-size.c (main): Likewise.
35894         * tests/test-areadlinkat.c (main): Likewise.
35895         * tests/test-canonicalize-lgpl.c (main): Likewise.
35896         * tests/test-canonicalize.c (main): Likewise.
35897         * tests/test-chown.c (main): Likewise.
35898         * tests/test-fchownat.c (main): Likewise.
35899         * tests/test-fdutimensat.c (main): Likewise.
35900         * tests/test-fstatat.c (main): Likewise.
35901         * tests/test-futimens.c (main): Likewise.
35902         * tests/test-lchown.c (main): Likewise.
35903         * tests/test-link.c (main): Likewise.
35904         * tests/test-linkat.c (main): Likewise.
35905         * tests/test-lstat.c (main): Likewise.
35906         * tests/test-mkdir.c (main): Likewise.
35907         * tests/test-mkdirat.c (main): Likewise.
35908         * tests/test-mkfifo.c (main): Likewise.
35909         * tests/test-mkfifoat.c (main): Likewise.
35910         * tests/test-mknod.c (main): Likewise.
35911         * tests/test-readlink.c (main): Likewise.
35912         * tests/test-remove.c (main): Likewise.
35913         * tests/test-rename.c (main): Likewise.
35914         * tests/test-renameat.c (main): Likewise.
35915         * tests/test-rmdir.c (main): Likewise.
35916         * tests/test-symlink.c (main): Likewise.
35917         * tests/test-symlinkat.c (main): Likewise.
35918         * tests/test-unlink.c (main): Likewise.
35919         * tests/test-unlinkat.c (main): Likewise.
35920         * tests/test-utimens.c (main): Likewise.
35921         * tests/test-utimensat.c (main): Likewise.
35922         * modules/areadlink-tests (Depends-on): Add ignore-value.
35923         * modules/areadlink-with-size-tests (Depends-on): Likewise.
35924         * modules/areadlinkat-tests (Depends-on): Likewise.
35925         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
35926         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
35927         * modules/canonicalize-tests (Depends-on): Likewise.
35928         * modules/chown-tests (Depends-on): Likewise.
35929         * modules/fdutimensat-tests (Depends-on): Likewise.
35930         * modules/futimens-tests (Depends-on): Likewise.
35931         * modules/lchown-tests (Depends-on): Likewise.
35932         * modules/link-tests (Depends-on): Likewise.
35933         * modules/linkat-tests (Depends-on): Likewise.
35934         * modules/lstat-tests (Depends-on): Likewise.
35935         * modules/mkdir-tests (Depends-on): Likewise.
35936         * modules/mkfifo-tests (Depends-on): Likewise.
35937         * modules/mkfifoat-tests (Depends-on): Likewise.
35938         * modules/mknod-tests (Depends-on): Likewise.
35939         * modules/openat-tests (Depends-on): Likewise.
35940         * modules/readlink-tests (Depends-on): Likewise.
35941         * modules/remove-tests (Depends-on): Likewise.
35942         * modules/rename-tests (Depends-on): Likewise.
35943         * modules/renameat-tests (Depends-on): Likewise.
35944         * modules/rmdir-tests (Depends-on): Likewise.
35945         * modules/symlink-tests (Depends-on): Likewise.
35946         * modules/symlinkat-tests (Depends-on): Likewise.
35947         * modules/unlink-tests (Depends-on): Likewise.
35948         * modules/utimens-tests (Depends-on): Likewise.
35949         * modules/utimensat-tests (Depends-on): Likewise.
35950
35951 2010-01-31  Bruno Haible  <bruno@clisp.org>
35952
35953         Perform the same test for many <math.h> functions.
35954         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
35955         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
35956         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
35957         of gl_MATHFUNC.
35958         * modules/acos (configure.ac): Likewise.
35959         * modules/asin (configure.ac): Likewise.
35960         * modules/atan (configure.ac): Likewise.
35961         * modules/atan2 (configure.ac): Likewise.
35962         * modules/cbrt (configure.ac): Likewise.
35963         * modules/copysign (configure.ac): Likewise.
35964         * modules/cos (configure.ac): Likewise.
35965         * modules/cosh (configure.ac): Likewise.
35966         * modules/erf (configure.ac): Likewise.
35967         * modules/erfc (configure.ac): Likewise.
35968         * modules/exp (configure.ac): Likewise.
35969         * modules/fmod (configure.ac): Likewise.
35970         * modules/hypot (configure.ac): Likewise.
35971         * modules/j0 (configure.ac): Likewise.
35972         * modules/j1 (configure.ac): Likewise.
35973         * modules/jn (configure.ac): Likewise.
35974         * modules/lgamma (configure.ac): Likewise.
35975         * modules/log (configure.ac): Likewise.
35976         * modules/log10 (configure.ac): Likewise.
35977         * modules/log1p (configure.ac): Likewise.
35978         * modules/pow (configure.ac): Likewise.
35979         * modules/remainder (configure.ac): Likewise.
35980         * modules/sin (configure.ac): Likewise.
35981         * modules/sinh (configure.ac): Likewise.
35982         * modules/tan (configure.ac): Likewise.
35983         * modules/tanh (configure.ac): Likewise.
35984         * modules/y0 (configure.ac): Likewise.
35985         * modules/y1 (configure.ac): Likewise.
35986         * modules/yn (configure.ac): Likewise.
35987         Suggested by Paolo Bonzini.
35988
35989 2010-01-31  Bruno Haible  <bruno@clisp.org>
35990
35991         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
35992
35993 2010-01-31  Bruno Haible  <bruno@clisp.org>
35994
35995         Work around getdelim() bug on FreeBSD 8.0.
35996         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
35997         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
35998         not work.
35999         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
36000         is 1.
36001         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
36002         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
36003         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
36004         a non-zero size.
36005         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
36006
36007 2010-01-31  Bruno Haible  <bruno@clisp.org>
36008
36009         Work around getline() bug on FreeBSD 8.0.
36010         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
36011         and a non-zero size.
36012         * tests/test-getline.c (main): Likewise.
36013         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
36014         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
36015
36016 2010-01-28  Eric Blake  <ebb9@byu.net>
36017
36018         regex: fix build failure
36019         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
36020         platforms.
36021
36022 2010-01-28  Jim Meyering  <meyering@redhat.com>
36023
36024         regex: do not ignore memory allocation failure
36025         * lib/regex_internal.c (create_cd_newstate): Detect
36026         re_node_set_init_copy failure.   Extracted from glibc commit
36027         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36028
36029         regex: sync more white-space changes from libc
36030         * lib/regex_internal.c: White-space only changes.
36031         * lib/regexec.c: Likewise.
36032
36033         regex: add many uses of __attribute_warn_unused_result__
36034         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
36035         * lib/regexec.c: Likewise.
36036         Extracted from a messy glibc commit.
36037
36038         regcomp.c: spelling and merge-artifact from glibc
36039         * lib/regcomp.c: Merge remainder of glibc's
36040         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36041
36042         regcomp.c: sync white-space changes from glibc
36043         * lib/regcomp.c: Merge to accommodate white space
36044         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
36045
36046         regcomp.c: do not ignore internal return values
36047         * lib/regcomp.c: Do not ignore internal return values.
36048         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
36049         but without its white-space changes and spelling fixes.
36050
36051         regex_internal.h: define __attribute_warn_unused_result__
36052         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
36053
36054         maint: add a syntax-check rule to check for vulnerable Makefile.in
36055         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
36056
36057 2010-01-27  Jim Meyering  <meyering@redhat.com>
36058
36059         ncftpput-ftp: clean up spaces
36060         * build-aux/ncftpput-ftp: Make Copyright line consistent.
36061         Remove trailing blanks.
36062
36063 2010-01-27  Simon Josefsson  <simon@josefsson.org>
36064
36065         * build-aux/git-version-gen: Fix copyright statement.
36066         * build-aux/gnupload: Likewise.
36067         * tests/test-arcfour.c: Likewise.
36068         * tests/test-arctwo.c: Likewise.
36069         * tests/test-count-one-bits.c: Likewise.
36070         * tests/test-crc.c: Likewise.
36071         * tests/test-des.c: Likewise.
36072         * tests/test-gc-arcfour.c: Likewise.
36073         * tests/test-gc-arctwo.c: Likewise.
36074         * tests/test-gc-des.c: Likewise.
36075         * tests/test-gc-hmac-md5.c: Likewise.
36076         * tests/test-gc-hmac-sha1.c: Likewise.
36077         * tests/test-gc-md2.c: Likewise.
36078         * tests/test-gc-md4.c: Likewise.
36079         * tests/test-gc-md5.c: Likewise.
36080         * tests/test-gc-pbkdf2-sha1.c: Likewise.
36081         * tests/test-gc-rijndael.c: Likewise.
36082         * tests/test-gc-sha1.c: Likewise.
36083         * tests/test-gc.c: Likewise.
36084         * tests/test-gethostname.c: Likewise.
36085         * tests/test-gettimeofday.c: Likewise.
36086         * tests/test-hash.c: Likewise.
36087         * tests/test-hmac-md5.c: Likewise.
36088         * tests/test-hmac-sha1.c: Likewise.
36089         * tests/test-md2.c: Likewise.
36090         * tests/test-md4.c: Likewise.
36091         * tests/test-md5.c: Likewise.
36092         * tests/test-memchr.c: Likewise.
36093         * tests/test-memchr2.c: Likewise.
36094         * tests/test-memcmp.c: Likewise.
36095         * tests/test-memmem.c: Likewise.
36096         * tests/test-memrchr.c: Likewise.
36097         * tests/test-rawmemchr.c: Likewise.
36098         * tests/test-read-file.c: Likewise.
36099         * tests/test-rijndael.c: Likewise.
36100         * tests/test-sockets.c: Likewise.
36101         * tests/test-strchrnul.c: Likewise.
36102         * tests/test-strstr.c: Likewise.
36103         * tests/test-strtod.c: Likewise.
36104         * build-aux/ncftpput-ftp: Likewise.
36105
36106 2010-01-26  Eric Blake  <ebb9@byu.net>
36107
36108         ignore-value: update recommended header name
36109         * modules/ignore-value (Include): Only use <> for headers that
36110         exist in glibc.
36111
36112 2010-01-26  Jim Meyering  <meyering@redhat.com>
36113
36114         test-userspec.c: avoid compiler warnings
36115         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
36116         and "initialization discards qualifiers..." warnings.
36117         Put the first "uid" in its own scope, and make char* members "const".
36118
36119 2010-01-25  Bruno Haible  <bruno@clisp.org>
36120
36121         gnulib-tool: Make warning diagnostics consistent.
36122         * gnulib-tool (func_warning): New function.
36123         Use it everywhere where gnulib-tool produces output to stderr and it is
36124         not a fatal error.
36125
36126 2010-01-25  Bruno Haible  <bruno@clisp.org>
36127
36128         Fix test dependencies.
36129         * modules/xstrtol-tests (Depends-on): Add inttypes.
36130         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
36131
36132 2010-01-25 Pádraig Brady <P@draigBrady.com>
36133
36134         syntax-check: detect incorrect boolean macro values in config.h
36135         * modules/maintainer-makefile (configure.ac): Parameterize the location
36136         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
36137         The logic is from Eric Blake and the location indicated by Jim Meyering.
36138         Note the more natural CONFIG_HEADER name is prohibited by automake
36139         for backwards compatibility reasons.
36140         * top/maint.mk (sc_Wundef_boolean): New rule.
36141
36142 2010-01-25  Jim Meyering  <meyering@redhat.com>
36143
36144         bootstrap: detect MacOS 10.6's shasum, too
36145         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
36146         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
36147
36148 2010-01-23  Jim Meyering  <meyering@redhat.com>
36149
36150         xstrtoll: new module
36151         * modules/xstrtoll: New file.
36152         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
36153         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
36154         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
36155         ./configure fails if you use this module and lack "long long".
36156         * modules/xstrtoll-tests: New module.
36157         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
36158         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
36159         new init.sh-based test framework.
36160
36161 2010-01-24  Bruno Haible  <bruno@clisp.org>
36162
36163         Tests for module 'yn'.
36164         * modules/yn-tests: New file.
36165         * tests/test-yn.c: New file.
36166
36167         Tests for module 'y1'.
36168         * modules/y1-tests: New file.
36169         * tests/test-y1.c: New file.
36170
36171         Tests for module 'y0'.
36172         * modules/y0-tests: New file.
36173         * tests/test-y0.c: New file.
36174
36175         Tests for module 'tanh'.
36176         * modules/tanh-tests: New file.
36177         * tests/test-tanh.c: New file.
36178
36179         Tests for module 'tan'.
36180         * modules/tan-tests: New file.
36181         * tests/test-tan.c: New file.
36182
36183         Tests for module 'sqrt'.
36184         * modules/sqrt-tests: New file.
36185         * tests/test-sqrt.c: New file.
36186
36187         Tests for module 'sinh'.
36188         * modules/sinh-tests: New file.
36189         * tests/test-sinh.c: New file.
36190
36191         Tests for module 'sin'.
36192         * modules/sin-tests: New file.
36193         * tests/test-sin.c: New file.
36194
36195         Tests for module 'rint'.
36196         * modules/rint-tests: New file.
36197         * tests/test-rint.c: New file.
36198
36199         Tests for module 'remainder'.
36200         * modules/remainder-tests: New file.
36201         * tests/test-remainder.c: New file.
36202
36203         Tests for module 'pow'.
36204         * modules/pow-tests: New file.
36205         * tests/test-pow.c: New file.
36206
36207         Tests for module 'nextafter'.
36208         * modules/nextafter-tests: New file.
36209         * tests/test-nextafter.c: New file.
36210
36211         Tests for module 'modf'.
36212         * modules/modf-tests: New file.
36213         * tests/test-modf.c: New file.
36214
36215         Tests for module 'logb'.
36216         * modules/logb-tests: New file.
36217         * tests/test-logb.c: New file.
36218
36219         Tests for module 'log1p'.
36220         * modules/log1p-tests: New file.
36221         * tests/test-log1p.c: New file.
36222
36223         Tests for module 'log10'.
36224         * modules/log10-tests: New file.
36225         * tests/test-log10.c: New file.
36226
36227         Tests for module 'log'.
36228         * modules/log-tests: New file.
36229         * tests/test-log.c: New file.
36230
36231         Tests for module 'lgamma'.
36232         * modules/lgamma-tests: New file.
36233         * tests/test-lgamma.c: New file.
36234
36235         Tests for module 'ldexp'.
36236         * modules/ldexp-tests: New file.
36237         * tests/test-ldexp.c: New file.
36238
36239         Tests for module 'jn'.
36240         * modules/jn-tests: New file.
36241         * tests/test-jn.c: New file.
36242
36243         Tests for module 'j1'.
36244         * modules/j1-tests: New file.
36245         * tests/test-j1.c: New file.
36246
36247         Tests for module 'j0'.
36248         * modules/j0-tests: New file.
36249         * tests/test-j0.c: New file.
36250
36251         Tests for module 'hypot'.
36252         * modules/hypot-tests: New file.
36253         * tests/test-hypot.c: New file.
36254
36255         Tests for module 'fmod'.
36256         * modules/fmod-tests: New file.
36257         * tests/test-fmod.c: New file.
36258
36259         Tests for module 'fabs'.
36260         * modules/fabs-tests: New file.
36261         * tests/test-fabs.c: New file.
36262
36263         Tests for module 'exp'.
36264         * modules/exp-tests: New file.
36265         * tests/test-exp.c: New file.
36266
36267         Tests for module 'erfc'.
36268         * modules/erfc-tests: New file.
36269         * tests/test-erfc.c: New file.
36270
36271         Tests for module 'erf'.
36272         * modules/erf-tests: New file.
36273         * tests/test-erf.c: New file.
36274
36275         Tests for module 'cosh'.
36276         * modules/cosh-tests: New file.
36277         * tests/test-cosh.c: New file.
36278
36279         Tests for module 'cos'.
36280         * modules/cos-tests: New file.
36281         * tests/test-cos.c: New file.
36282
36283         Tests for module 'copysign'.
36284         * modules/copysign-tests: New file.
36285         * tests/test-copysign.c: New file.
36286
36287         Tests for module 'cbrt'.
36288         * modules/cbrt-tests: New file.
36289         * tests/test-cbrt.c: New file.
36290
36291         Tests for module 'atan2'.
36292         * modules/atan2-tests: New file.
36293         * tests/test-atan2.c: New file.
36294
36295         Tests for module 'atan'.
36296         * modules/atan-tests: New file.
36297         * tests/test-atan.c: New file.
36298
36299         Tests for module 'asin'.
36300         * modules/asin-tests: New file.
36301         * tests/test-asin.c: New file.
36302
36303         Tests for module 'acos'.
36304         * modules/acos-tests: New file.
36305         * tests/test-acos.c: New file.
36306
36307 2010-01-24  Bruno Haible  <bruno@clisp.org>
36308
36309         Fix tests for common <math.h> functions.
36310         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
36311         code snippet that references the function pointer, rather than merely
36312         calling the function. Substitute the FUNC_LIBM variable.
36313         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
36314         * modules/acos (configure.ac): Likewise.
36315         * modules/asin (configure.ac): Likewise.
36316         * modules/atan (configure.ac): Likewise.
36317         * modules/atan2 (configure.ac): Likewise.
36318         * modules/cbrt (configure.ac): Likewise.
36319         * modules/copysign (configure.ac): Likewise.
36320         * modules/cos (configure.ac): Likewise.
36321         * modules/cosh (configure.ac): Likewise.
36322         * modules/erf (configure.ac): Likewise.
36323         * modules/erfc (configure.ac): Likewise.
36324         * modules/exp (configure.ac): Likewise.
36325         * modules/fabs (configure.ac): Likewise.
36326         * modules/fmod (configure.ac): Likewise.
36327         * modules/hypot (configure.ac): Likewise.
36328         * modules/j0 (configure.ac): Likewise.
36329         * modules/j1 (configure.ac): Likewise.
36330         * modules/jn (configure.ac): Likewise.
36331         * modules/ldexp (configure.ac): Likewise.
36332         * modules/lgamma (configure.ac): Likewise.
36333         * modules/log (configure.ac): Likewise.
36334         * modules/log10 (configure.ac): Likewise.
36335         * modules/log1p (configure.ac): Likewise.
36336         * modules/logb (configure.ac): Likewise.
36337         * modules/modf (configure.ac): Likewise.
36338         * modules/nextafter (configure.ac): Likewise.
36339         * modules/pow (configure.ac): Likewise.
36340         * modules/remainder (configure.ac): Likewise.
36341         * modules/rint (configure.ac): Likewise.
36342         * modules/sin (configure.ac): Likewise.
36343         * modules/sinh (configure.ac): Likewise.
36344         * modules/tan (configure.ac): Likewise.
36345         * modules/tanh (configure.ac): Likewise.
36346         * modules/y0 (configure.ac): Likewise.
36347         * modules/y1 (configure.ac): Likewise.
36348         * modules/yn (configure.ac): Likewise.
36349
36350 2010-01-24  Bruno Haible  <bruno@clisp.org>
36351
36352         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
36353         * tests/test-acosl.c (x): New variable.
36354         (main): Store argument in x and fetch it from x.
36355         * tests/test-asinl.c (x): New variable.
36356         (main): Store argument in x and fetch it from x.
36357         * tests/test-atanl.c (x): New variable.
36358         (main): Store argument in x and fetch it from x.
36359         * tests/test-cosl.c (x): New variable.
36360         (main): Store argument in x and fetch it from x.
36361         * tests/test-expl.c (x): New variable.
36362         (main): Store argument in x and fetch it from x.
36363         * tests/test-logl.c (x): New variable.
36364         (main): Store argument in x and fetch it from x.
36365         * tests/test-sinl.c (x): New variable.
36366         (main): Store argument in x and fetch it from x.
36367         * tests/test-sqrtl.c (x): New variable.
36368         (main): Store argument in x and fetch it from x.
36369         * tests/test-tanl.c (x): New variable.
36370         (main): Store argument in x and fetch it from x.
36371
36372 2010-01-24  Bruno Haible  <bruno@clisp.org>
36373
36374         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
36375         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
36376         assignments to the initial TESTS_ENVIRONMENT.
36377         * doc/gnulib.texi (Unit test modules): Document it.
36378         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
36379         TESTS_ENVIRONMENT.
36380         * modules/btowc-tests (Makefile.am): Likewise.
36381         * modules/c-stack-tests (Makefile.am): Likewise.
36382         * modules/c-strcase-tests (Makefile.am): Likewise.
36383         * modules/copy-file-tests (Makefile.am): Likewise.
36384         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
36385         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
36386         * modules/mbrtowc-tests (Makefile.am): Likewise.
36387         * modules/mbscasecmp-tests (Makefile.am): Likewise.
36388         * modules/mbscasestr-tests (Makefile.am): Likewise.
36389         * modules/mbschr-tests (Makefile.am): Likewise.
36390         * modules/mbscspn-tests (Makefile.am): Likewise.
36391         * modules/mbsinit-tests (Makefile.am): Likewise.
36392         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
36393         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
36394         * modules/mbspbrk-tests (Makefile.am): Likewise.
36395         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
36396         * modules/mbsrchr-tests (Makefile.am): Likewise.
36397         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
36398         * modules/mbsspn-tests (Makefile.am): Likewise.
36399         * modules/mbsstr-tests (Makefile.am): Likewise.
36400         * modules/nl_langinfo-tests (Makefile.am): Likewise.
36401         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
36402         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
36403         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
36404         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
36405         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
36406         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
36407         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
36408         * modules/wcrtomb-tests (Makefile.am): Likewise.
36409         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
36410         * modules/wcsrtombs-tests (Makefile.am): Likewise.
36411         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
36412         assignments from TESTS_ENVIRONMENT.
36413         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
36414         augmentation.
36415         * modules/argp-version-etc-tests (Makefile.am): Likewise.
36416         * modules/atexit-tests (Makefile.am): Likewise.
36417         * modules/binary-io-tests (Makefile.am): Likewise.
36418         * modules/closein-tests (Makefile.am): Likewise.
36419         * modules/dprintf-posix-tests (Makefile.am): Likewise.
36420         * modules/exclude-tests (Makefile.am): Likewise.
36421         * modules/fflush-tests (Makefile.am): Likewise.
36422         * modules/fpending-tests (Makefile.am): Likewise.
36423         * modules/fprintf-posix-tests (Makefile.am): Likewise.
36424         * modules/freadahead-tests (Makefile.am): Likewise.
36425         * modules/freadptr-tests (Makefile.am): Likewise.
36426         * modules/freadseek-tests (Makefile.am): Likewise.
36427         * modules/fseek-tests (Makefile.am): Likewise.
36428         * modules/fseeko-tests (Makefile.am): Likewise.
36429         * modules/ftell-tests (Makefile.am): Likewise.
36430         * modules/ftello-tests (Makefile.am): Likewise.
36431         * modules/idpriv-drop-tests (Makefile.am): Likewise.
36432         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
36433         * modules/lseek-tests (Makefile.am): Likewise.
36434         * modules/parse-duration-tests (Makefile.am): Likewise.
36435         * modules/perror-tests (Makefile.am): Likewise.
36436         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
36437         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
36438         * modules/pipe-tests (Makefile.am): Likewise.
36439         * modules/pread-tests (Makefile.am): Likewise.
36440         * modules/printf-posix-tests (Makefile.am): Likewise.
36441         * modules/select-tests (Makefile.am): Likewise.
36442         * modules/sigpipe-tests (Makefile.am): Likewise.
36443         * modules/tsearch-tests (Makefile.am): Likewise.
36444         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
36445         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
36446         * modules/uniname/uniname-tests (Makefile.am): Likewise.
36447         * modules/uniwidth/width-tests (Makefile.am): Likewise.
36448         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
36449         * modules/version-etc-tests (Makefile.am): Likewise.
36450         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
36451         * modules/vprintf-posix-tests (Makefile.am): Likewise.
36452         * modules/xalloc-die-tests (Makefile.am): Likewise.
36453         * modules/xprintf-posix-tests (Makefile.am): Likewise.
36454         * modules/xstrtoimax-tests (Makefile.am): Likewise.
36455         * modules/xstrtol-tests (Makefile.am): Likewise.
36456         * modules/xstrtoumax-tests (Makefile.am): Likewise.
36457         * modules/yesno-tests (Makefile.am): Likewise.
36458         Suggested by Jim Meyering.
36459
36460 2010-01-24  Bruno Haible  <bruno@clisp.org>
36461
36462         More documentation.
36463         * doc/gnulib.texi (Writing modules): New chapter.
36464         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
36465         the new chapter.
36466
36467 2010-01-24  Jim Meyering  <meyering@redhat.com>
36468
36469         maint.mk: do not prepend "./" after filtering
36470         * top/maint.mk (_prepend_srcdir_prefix): New variable
36471         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
36472         "./" when $(srcdir) is ".".
36473
36474         define STREQ(a,b) consistently, removing useless parentheses
36475         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
36476         since the only risk is that "a" or "b" contains an unparenthesized
36477         comma, but if either did that, STREQ would have 3 or more arguments.
36478         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
36479         * lib/fts.c (STREQ): Remove unnecessary parentheses.
36480         * lib/hash-triple.c (STREQ): Likewise.
36481         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
36482         * lib/getugroups.c (STREQ): Likewise.
36483
36484 2010-01-23  Jim Meyering  <meyering@redhat.com>
36485
36486         maint.mk: fix syntax-check in a non-srcdir build directory
36487         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
36488         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
36489
36490 2010-01-22  Jim Meyering  <meyering@redhat.com>
36491
36492         userspec: add unit tests
36493         * tests/test-userspec.c: New file.
36494         * modules/userspec-tests: Likewise.
36495
36496 2010-01-21  Jim Meyering  <meyering@redhat.com>
36497
36498         maint.mk: handle source file names containing "." robustly
36499         * top/maint.mk (_dot_escaped_srcdir): Define.
36500         (VC_LIST): Use it in LHS of sed substitution.
36501
36502 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
36503
36504         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
36505         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
36506         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
36507         from a non-srcdir build.
36508
36509 2010-01-20  Eric Blake  <ebb9@byu.net>
36510
36511         warn-on-use: use instead of link-warning
36512         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
36513         * modules/unistd (Depends-on, Makefile.am): Likewise.
36514         * modules/arpa_inet (Depends-on): Replace link-warning with
36515         warn-on-use.
36516         (Makefile.am): Update rules accordingly.
36517         * modules/ctype (Depends-on, Makefile.am): Likewise.
36518         * modules/dirent (Depends-on, Makefile.am): Likewise.
36519         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
36520         * modules/inttypes (Depends-on, Makefile.am): Likewise.
36521         * modules/langinfo (Depends-on, Makefile.am): Likewise.
36522         * modules/locale (Depends-on, Makefile.am): Likewise.
36523         * modules/math (Depends-on, Makefile.am): Likewise.
36524         * modules/search (Depends-on, Makefile.am): Likewise.
36525         * modules/signal (Depends-on, Makefile.am): Likewise.
36526         * modules/spawn (Depends-on, Makefile.am): Likewise.
36527         * modules/stdlib (Depends-on, Makefile.am): Likewise.
36528         * modules/string (Depends-on, Makefile.am): Likewise.
36529         * modules/strings (Depends-on, Makefile.am): Likewise.
36530         * modules/sys_file (Depends-on, Makefile.am): Likewise.
36531         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
36532         * modules/sys_select (Depends-on, Makefile.am): Likewise.
36533         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
36534         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
36535         * modules/sys_times (Depends-on, Makefile.am): Likewise.
36536         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
36537         * modules/wchar (Depends-on, Makefile.am): Likewise.
36538         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
36539         should be poisoned.
36540         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
36541         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
36542         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
36543         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36544         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36545         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
36546         * m4/math_h.m4 (gl_MATH_H): Likewise.
36547         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
36548         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
36549         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
36550         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
36551         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
36552         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
36553         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
36554         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
36555         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
36556         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36557         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
36558         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
36559         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36560         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
36561         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
36562         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
36563         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
36564         GL_LINK_WARNING.
36565         * lib/ctype.in.h: Likewise.
36566         * lib/dirent.in.h: Likewise.
36567         * lib/fcntl.in.h: Likewise.
36568         * lib/inttypes.in.h: Likewise.
36569         * lib/langinfo.in.h: Likewise.
36570         * lib/locale.in.h: Likewise.
36571         * lib/math.in.h: Likewise.
36572         * lib/search.in.h: Likewise.
36573         * lib/signal.in.h: Likewise.
36574         * lib/spawn.in.h: Likewise.
36575         * lib/stdio.in.h: Likewise.
36576         * lib/stdlib.in.h: Likewise.
36577         * lib/string.in.h: Likewise.
36578         * lib/strings.in.h: Likewise.
36579         * lib/sys_file.in.h: Likewise.
36580         * lib/sys_ioctl.in.h: Likewise.
36581         * lib/sys_select.in.h: Likewise.
36582         * lib/sys_socket.in.h: Likewise.
36583         * lib/sys_stat.in.h: Likewise.
36584         * lib/sys_times.in.h: Likewise.
36585         * lib/sys_utsname.in.h: Likewise.
36586         * lib/unistd.in.h: Likewise.
36587         * lib/wchar.in.h: Likewise.
36588
36589 2010-01-20  Bruno Haible  <bruno@clisp.org>
36590
36591         Avoid duplicate -lm.
36592         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
36593         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
36594         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
36595         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
36596         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
36597         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
36598         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
36599         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
36600         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
36601         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
36602         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
36603         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
36604         Reported by Paolo Bonzini.
36605
36606 2010-01-19  Bruno Haible  <bruno@clisp.org>
36607
36608         langinfo, nl_langinfo: Relicense under LGPLv2+.
36609         * modules/langinfo (License): Change to LGPLv2+.
36610         * modules/nl_langinfo (License): Likewise.
36611         Patch by David Lutterkort <lutter@redhat.com>.
36612
36613 2010-01-19  Bruno Haible  <bruno@clisp.org>
36614
36615         Avoid compilation error with cc on OSF/1 5.1.
36616         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
36617         statement, not before.
36618         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36619
36620 2010-01-18  Bruno Haible  <bruno@clisp.org>
36621
36622         Avoid a link error due to the __printf__ symbol.
36623         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
36624         and 2.6.x.
36625         (__format__, __printf__): Remove definitions.
36626         * lib/argp-fmtstream.h: Likewise.
36627         * lib/argp.h: Likewise.
36628         * lib/error.h: Likewise.
36629         * lib/vasnprintf.h: Likewise.
36630         * lib/xprintf.h: Likewise.
36631         * lib/xvasprintf.h: Likewise.
36632         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36633
36634 2010-01-18  Bruno Haible  <bruno@clisp.org>
36635
36636         Tests for module 'tanl'.
36637         * modules/tanl-tests: New file.
36638         * tests/test-tanl.c: New file.
36639
36640         Tests for module 'sqrtl'.
36641         * modules/sqrtl-tests: New file.
36642         * tests/test-sqrtl.c: New file.
36643
36644         Tests for module 'sinl'.
36645         * modules/sinl-tests: New file.
36646         * tests/test-sinl.c: New file.
36647
36648         Tests for module 'logl'.
36649         * modules/logl-tests: New file.
36650         * tests/test-logl.c: New file.
36651
36652         Tests for module 'expl'.
36653         * modules/expl-tests: New file.
36654         * tests/test-expl.c: New file.
36655
36656         Tests for module 'cosl'.
36657         * modules/cosl-tests: New file.
36658         * tests/test-cosl.c: New file.
36659
36660         Tests for module 'atanl'.
36661         * modules/atanl-tests: New file.
36662         * tests/test-atanl.c: New file.
36663
36664         Tests for module 'asinl'.
36665         * modules/asinl-tests: New file.
36666         * tests/test-asinl.c: New file.
36667
36668         Tests for module 'acosl'.
36669         * modules/acosl-tests: New file.
36670         * tests/test-acosl.c: New file.
36671
36672         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
36673         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
36674         tanl): Use the standard gnulib idiom.
36675         * lib/cosl.c: Don't include trigl.c and sincosl.c.
36676         * lib/sinl.c: Likewise.
36677         * lib/tanl.c: Don't include trigl.c.
36678         (kernel_tanl): Make static.
36679         * lib/sincosl.c: Include trigl.h first.
36680         * lib/trigl.c: Likewise.
36681         * m4/acosl.m4: New file.
36682         * m4/asinl.m4: New file.
36683         * m4/atanl.m4: New file.
36684         * m4/cosl.m4: New file.
36685         * m4/expl.m4: New file.
36686         * m4/logl.m4: New file.
36687         * m4/sinl.m4: New file.
36688         * m4/sqrtl.m4: New file.
36689         * m4/tanl.m4: New file.
36690         * m4/mathl.m4: Remove file.
36691         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
36692         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
36693         Don't initialize GNULIB_MATHL.
36694         * modules/acosl: New file.
36695         * modules/asinl: New file.
36696         * modules/atanl: New file.
36697         * modules/cosl: New file.
36698         * modules/expl: New file.
36699         * modules/logl: New file.
36700         * modules/sinl: New file.
36701         * modules/sqrtl: New file.
36702         * modules/tanl: New file.
36703         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
36704         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
36705         substitute GNULIB_MATHL.
36706         * modules/mathl: Rewritten.
36707         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
36708         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
36709         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
36710         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
36711         * doc/posix-functions/expl.texi: Mention the 'expl' module.
36712         * doc/posix-functions/logl.texi: Mention the 'logl' module.
36713         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
36714         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
36715         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
36716
36717 2010-01-18  Bruno Haible  <bruno@clisp.org>
36718
36719         sqrt: Make gl_FUNC_SQRT requirable.
36720         * m4/sqrt.m4: New file.
36721         * modules/sqrt (Files): Add it.
36722         (configure.ac): Invoke gl_FUNC_SQRT.
36723
36724 2010-01-18  Bruno Haible  <bruno@clisp.org>
36725
36726         New modules for common <math.h> functions.
36727         * m4/mathfunc.m4: New file.
36728         * modules/acos: New file.
36729         * modules/asin: New file.
36730         * modules/atan: New file.
36731         * modules/atan2: New file.
36732         * modules/cbrt: New file.
36733         * modules/copysign: New file.
36734         * modules/cos: New file.
36735         * modules/cosh: New file.
36736         * modules/erf: New file.
36737         * modules/erfc: New file.
36738         * modules/exp: New file.
36739         * modules/fabs: New file.
36740         * modules/fmod: New file.
36741         * modules/hypot: New file.
36742         * modules/j0: New file.
36743         * modules/j1: New file.
36744         * modules/jn: New file.
36745         * modules/ldexp: New file.
36746         * modules/lgamma: New file.
36747         * modules/log: New file.
36748         * modules/log10: New file.
36749         * modules/log1p: New file.
36750         * modules/logb: New file.
36751         * modules/modf: New file.
36752         * modules/nextafter: New file.
36753         * modules/pow: New file.
36754         * modules/remainder: New file.
36755         * modules/rint: New file.
36756         * modules/sin: New file.
36757         * modules/sinh: New file.
36758         * modules/sqrt: New file.
36759         * modules/tan: New file.
36760         * modules/tanh: New file.
36761         * modules/y0: New file.
36762         * modules/y1: New file.
36763         * modules/yn: New file.
36764         * doc/posix-functions/acos.texi: Mention the 'acos' module.
36765         * doc/posix-functions/asin.texi: Mention the 'asin' module.
36766         * doc/posix-functions/atan.texi: Mention the 'atan' module.
36767         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
36768         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
36769         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
36770         * doc/posix-functions/cos.texi: Mention the 'cos' module.
36771         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
36772         * doc/posix-functions/erf.texi: Mention the 'erf' module.
36773         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
36774         * doc/posix-functions/exp.texi: Mention the 'exp' module.
36775         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
36776         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
36777         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
36778         * doc/posix-functions/j0.texi: Mention the 'j0' module.
36779         * doc/posix-functions/j1.texi: Mention the 'j1' module.
36780         * doc/posix-functions/jn.texi: Mention the 'jn' module.
36781         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
36782         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
36783         * doc/posix-functions/log.texi: Mention the 'log' module.
36784         * doc/posix-functions/log10.texi: Mention the 'log10' module.
36785         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
36786         * doc/posix-functions/logb.texi: Mention the 'logb' module.
36787         * doc/posix-functions/modf.texi: Mention the 'modf' module.
36788         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
36789         * doc/posix-functions/pow.texi: Mention the 'pow' module.
36790         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
36791         * doc/posix-functions/rint.texi: Mention the 'rint' module.
36792         * doc/posix-functions/sin.texi: Mention the 'sin' module.
36793         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
36794         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
36795         * doc/posix-functions/tan.texi: Mention the 'tan' module.
36796         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
36797         * doc/posix-functions/y0.texi: Mention the 'y0' module.
36798         * doc/posix-functions/y1.texi: Mention the 'y1' module.
36799         * doc/posix-functions/yn.texi: Mention the 'yn' module.
36800
36801 2010-01-18  Jim Meyering  <meyering@redhat.com>
36802
36803         ignore-value: relax license to LGPLv2+
36804         * modules/ignore-value (License): Relax to LGPLv2+.
36805
36806         getdate: don't leak when TZ contains two or more '"'s
36807         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
36808         double quote in TZ after the first one.
36809
36810         readtokens: do not leak internal token_lengths buffer
36811         * lib/readtokens.c (readtokens): Free the local, lengths,
36812         when the supplied "token_lengths" parameter is NULL.
36813
36814 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36815
36816         Fix a couple of missing LIBTHREAD link failures on AIX.
36817         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
36818         $(LIBTHREAD).
36819         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
36820
36821         Link test-poll against INET_PTON_LIB.
36822         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
36823         for inet_pton on Solaris 10.
36824
36825 2010-01-17  Bruno Haible  <bruno@clisp.org>
36826
36827         unistdio/*-sprintf: Fix typo in module description.
36828         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
36829         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
36830         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
36831         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
36832         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
36833         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
36834         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
36835         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36836
36837 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36838
36839         gnulib-tool: fix filelist for AIX, HP-UX ksh.
36840         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
36841         variables in shell case patterns, for AIX and HP-UX ksh.
36842
36843         Split large sed scripts, for HP-UX sed.
36844         * modules/stdio: Split sed scripts around 50 sed commands,
36845         to avoid HP-UX limit of 99 commands, in the near future.
36846         * modules/string: Likewise.
36847         * modules/unistd: Likewise.
36848
36849         gnulib-tool: avoid writing in the current directory.
36850         * gnulib-tool (func_emit_lib_Makefile_am)
36851         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
36852         not in the current directory, so concurrent gnulib-tool
36853         instances do not interfere.
36854
36855 2010-01-16  Jim Meyering  <meyering@redhat.com>
36856
36857         doc: update users.txt
36858         * users.txt: Add grep.
36859         (diffutils, gzip): Update URLs.
36860
36861 2010-01-12  Bruno Haible  <bruno@clisp.org>
36862
36863         posix_spawn: Avoid test failure on Cygwin.
36864         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
36865         characters.
36866         Reported by Simon Josefsson.
36867
36868 2010-01-12  Bruno Haible  <bruno@clisp.org>
36869
36870         * tests/test-cond.c (main): When skipping the test, show the reason.
36871
36872 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36873
36874         * lib/striconv.c (str_cd_iconv): Avoid if before free.
36875
36876 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36877
36878         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
36879         VC_LIST_ALWAYS_EXCLUDE_REGEX.
36880
36881 2010-01-12  Eric Blake  <ebb9@byu.net>
36882
36883         build: guarantee AS_VAR_IF
36884         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
36885         (gl_AS_VAR_IF): Move...
36886         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
36887         Reported by Simon Josefsson.
36888
36889 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36890
36891         * lib/stdio.in.h: Fix typo.
36892
36893 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36894
36895         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
36896         libgpg-error.
36897
36898 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36899
36900         * tests/test-xalloc-die.sh: Use $EXEEXT.
36901
36902 2010-01-12  Simon Josefsson  <simon@josefsson.org>
36903             Bruno Haible  <bruno@clisp.org>
36904
36905         getlogin, getlogin_r: Avoid test failure.
36906         * tests/test-getlogin.c: Include <stdio.h>.
36907         (main): Skip the test when the function fails because stdin is not a
36908         tty.
36909         * tests/test-getlogin_r.c: Include <stdio.h>.
36910         (main): Skip the test when the function fails because stdin is not a
36911         tty.
36912
36913 2010-01-11  Eric Blake  <ebb9@byu.net>
36914
36915         tests: avoid more large file warnings
36916         * tests/test-fflush.c: Avoid warning about ftell use.
36917         * tests/test-fseek.c: Avoid warning about fseek use.
36918
36919 2010-01-10  Bruno Haible  <bruno@clisp.org>
36920
36921         nproc: Work better on Linux when /proc and /sys are not mounted.
36922         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
36923         as lower bound when, on glibc/Linux systems,
36924         sysconf (_SC_NPROCESSORS_CONF) returns 1.
36925         Suggested by Pádraig Brady <P@draigbrady.com>.
36926         Reported by Dmitry V. Levin <ldv@altlinux.org>.
36927
36928         nproc: Refactor.
36929         * lib/nproc.c (num_processors_via_affinity_mask): New function,
36930         extracted from num_processors.
36931         (num_processors): Call it.
36932
36933 2010-01-11  Jim Meyering  <meyering@redhat.com>
36934
36935         utimecmp: avoid new warning from upcoming gcc-4.5.0
36936         * lib/utimecmp.c (BILLION): Define using #define rather than an
36937         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
36938
36939 2010-01-11  Eric Blake  <ebb9@byu.net>
36940
36941         math: add portability warnings for classification macros
36942         * modules/math (Depends-on): Add warn-on-use.
36943         (Makefile.am): Provide new substitutions.
36944         * m4/math_h.m4 (gl_MATH_H): Require inline.
36945         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
36946         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
36947         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
36948         implement warnings.
36949
36950         unistd: warn on use of environ without module
36951         * modules/unistd (Depends-on): Add warn-on-use.
36952         (Makefile.am): Provide new substitutions.
36953         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
36954         * lib/unistd.in.h (environ): Wrap with a warning helper function.
36955
36956         stdio: warn on suspicious uses
36957         * modules/stdio (Depends-on): Add warn-on-use.
36958         (Makefile.am): Provide new substitutions.
36959         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
36960         fseeko.
36961         * lib/stdio.in.h (gets): Always warn on use.
36962         (fseek, ftell): Adjust when warnings are issued, and honor
36963         _GL_NO_LARGE_FILES as a way to silence the warning.
36964         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
36965         any warning about large file offsets.
36966         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
36967         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
36968         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
36969         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
36970         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
36971         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
36972         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
36973         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
36974
36975         warn-on-use: new module
36976         * modules/warn-on-use: New file.
36977         * build-aux/warn-on-use.h: Likewise.
36978         * m4/warn-on-use.m4: Likewise.
36979         * MODULES.html.sh (Support for building): Mention it.
36980
36981 2010-01-10  Bruno Haible  <bruno@clisp.org>
36982
36983         Tests for module 'unistr/u32-strdup'.
36984         * modules/unistr/u32-strdup-tests: New file.
36985         * tests/unistr/test-u32-strdup.c: New file.
36986
36987         Tests for module 'unistr/u16-strdup'.
36988         * modules/unistr/u16-strdup-tests: New file.
36989         * tests/unistr/test-u16-strdup.c: New file.
36990
36991         Tests for module 'unistr/u8-strdup'.
36992         * modules/unistr/u8-strdup-tests: New file.
36993         * tests/unistr/test-u8-strdup.c: New file.
36994         * tests/unistr/test-strdup.h: New file.
36995
36996         Tests for module 'unistr/u32-strncmp'.
36997         * modules/unistr/u32-strncmp-tests: New file.
36998         * tests/unistr/test-u32-strncmp.c: New file.
36999
37000         Tests for module 'unistr/u16-strncmp'.
37001         * modules/unistr/u16-strncmp-tests: New file.
37002         * tests/unistr/test-u16-strncmp.c: New file.
37003
37004         Tests for module 'unistr/u8-strncmp'.
37005         * modules/unistr/u8-strncmp-tests: New file.
37006         * tests/unistr/test-u8-strncmp.c: New file.
37007         * tests/unistr/test-strncmp.h: New file.
37008
37009         Tests for module 'unistr/u32-strcoll'.
37010         * modules/unistr/u32-strcoll-tests: New file.
37011         * tests/unistr/test-u32-strcoll.c: New file.
37012
37013         Tests for module 'unistr/u16-strcoll'.
37014         * modules/unistr/u16-strcoll-tests: New file.
37015         * tests/unistr/test-u16-strcoll.c: New file.
37016
37017         Tests for module 'unistr/u8-strcoll'.
37018         * modules/unistr/u8-strcoll-tests: New file.
37019         * tests/unistr/test-u8-strcoll.c: New file.
37020
37021         Tests for module 'unistr/u32-strcmp'.
37022         * modules/unistr/u32-strcmp-tests: New file.
37023         * tests/unistr/test-u32-strcmp.c: New file.
37024         * tests/unistr/test-u32-strcmp.h: New file.
37025
37026         Tests for module 'unistr/u16-strcmp'.
37027         * modules/unistr/u16-strcmp-tests: New file.
37028         * tests/unistr/test-u16-strcmp.c: New file.
37029         * tests/unistr/test-u16-strcmp.h: New file.
37030
37031         Tests for module 'unistr/u8-strcmp'.
37032         * modules/unistr/u8-strcmp-tests: New file.
37033         * tests/unistr/test-u8-strcmp.c: New file.
37034         * tests/unistr/test-u8-strcmp.h: New file.
37035         * tests/unistr/test-strcmp.h: New file.
37036
37037         Tests for module 'unistr/u32-strncat'.
37038         * modules/unistr/u32-strncat-tests: New file.
37039         * tests/unistr/test-u32-strncat.c: New file.
37040
37041         Tests for module 'unistr/u16-strncat'.
37042         * modules/unistr/u16-strncat-tests: New file.
37043         * tests/unistr/test-u16-strncat.c: New file.
37044
37045         Tests for module 'unistr/u8-strncat'.
37046         * modules/unistr/u8-strncat-tests: New file.
37047         * tests/unistr/test-u8-strncat.c: New file.
37048         * tests/unistr/test-strncat.h: New file.
37049
37050         Tests for module 'unistr/u32-strcat'.
37051         * modules/unistr/u32-strcat-tests: New file.
37052         * tests/unistr/test-u32-strcat.c: New file.
37053
37054         Tests for module 'unistr/u16-strcat'.
37055         * modules/unistr/u16-strcat-tests: New file.
37056         * tests/unistr/test-u16-strcat.c: New file.
37057
37058         Tests for module 'unistr/u8-strcat'.
37059         * modules/unistr/u8-strcat-tests: New file.
37060         * tests/unistr/test-u8-strcat.c: New file.
37061         * tests/unistr/test-strcat.h: New file.
37062
37063         Tests for module 'unistr/u32-stpncpy'.
37064         * modules/unistr/u32-stpncpy-tests: New file.
37065         * tests/unistr/test-u32-stpncpy.c: New file.
37066
37067         Tests for module 'unistr/u16-stpncpy'.
37068         * modules/unistr/u16-stpncpy-tests: New file.
37069         * tests/unistr/test-u16-stpncpy.c: New file.
37070
37071         Tests for module 'unistr/u8-stpncpy'.
37072         * modules/unistr/u8-stpncpy-tests: New file.
37073         * tests/unistr/test-u8-stpncpy.c: New file.
37074         * tests/unistr/test-stpncpy.h: New file.
37075
37076         Tests for module 'unistr/u32-strncpy'.
37077         * modules/unistr/u32-strncpy-tests: New file.
37078         * tests/unistr/test-u32-strncpy.c: New file.
37079
37080         Tests for module 'unistr/u16-strncpy'.
37081         * modules/unistr/u16-strncpy-tests: New file.
37082         * tests/unistr/test-u16-strncpy.c: New file.
37083
37084         Tests for module 'unistr/u8-strncpy'.
37085         * modules/unistr/u8-strncpy-tests: New file.
37086         * tests/unistr/test-u8-strncpy.c: New file.
37087         * tests/unistr/test-strncpy.h: New file.
37088
37089         Tests for module 'unistr/u32-stpcpy'.
37090         * modules/unistr/u32-stpcpy-tests: New file.
37091         * tests/unistr/test-u32-stpcpy.c: New file.
37092
37093         Tests for module 'unistr/u16-stpcpy'.
37094         * modules/unistr/u16-stpcpy-tests: New file.
37095         * tests/unistr/test-u16-stpcpy.c: New file.
37096
37097         Tests for module 'unistr/u8-stpcpy'.
37098         * modules/unistr/u8-stpcpy-tests: New file.
37099         * tests/unistr/test-u8-stpcpy.c: New file.
37100         * tests/unistr/test-stpcpy.h: New file.
37101
37102         Tests for module 'unistr/u32-strcpy'.
37103         * modules/unistr/u32-strcpy-tests: New file.
37104         * tests/unistr/test-u32-strcpy.c: New file.
37105
37106         Tests for module 'unistr/u16-strcpy'.
37107         * modules/unistr/u16-strcpy-tests: New file.
37108         * tests/unistr/test-u16-strcpy.c: New file.
37109
37110         Tests for module 'unistr/u8-strcpy'.
37111         * modules/unistr/u8-strcpy-tests: New file.
37112         * tests/unistr/test-u8-strcpy.c: New file.
37113         * tests/unistr/test-strcpy.h: New file.
37114
37115         Tests for module 'unistr/u32-strnlen'.
37116         * modules/unistr/u32-strnlen-tests: New file.
37117         * tests/unistr/test-u32-strnlen.c: New file.
37118
37119         Tests for module 'unistr/u16-strnlen'.
37120         * modules/unistr/u16-strnlen-tests: New file.
37121         * tests/unistr/test-u16-strnlen.c: New file.
37122
37123         Tests for module 'unistr/u8-strnlen'.
37124         * modules/unistr/u8-strnlen-tests: New file.
37125         * tests/unistr/test-u8-strnlen.c: New file.
37126         * tests/unistr/test-strnlen.h: New file.
37127
37128         Tests for module 'unistr/u32-strlen'.
37129         * modules/unistr/u32-strlen-tests: New file.
37130         * tests/unistr/test-u32-strlen.c: New file.
37131
37132         Tests for module 'unistr/u16-strlen'.
37133         * modules/unistr/u16-strlen-tests: New file.
37134         * tests/unistr/test-u16-strlen.c: New file.
37135
37136         Tests for module 'unistr/u8-strlen'.
37137         * modules/unistr/u8-strlen-tests: New file.
37138         * tests/unistr/test-u8-strlen.c: New file.
37139
37140         Tests for module 'unistr/u32-prev'.
37141         * modules/unistr/u32-prev-tests: New file.
37142         * tests/unistr/test-u32-prev.c: New file.
37143
37144         Tests for module 'unistr/u16-prev'.
37145         * modules/unistr/u16-prev-tests: New file.
37146         * tests/unistr/test-u16-prev.c: New file.
37147
37148         Tests for module 'unistr/u8-prev'.
37149         * modules/unistr/u8-prev-tests: New file.
37150         * tests/unistr/test-u8-prev.c: New file.
37151
37152         Tests for module 'unistr/u32-next'.
37153         * modules/unistr/u32-next-tests: New file.
37154         * tests/unistr/test-u32-next.c: New file.
37155
37156         Tests for module 'unistr/u16-next'.
37157         * modules/unistr/u16-next-tests: New file.
37158         * tests/unistr/test-u16-next.c: New file.
37159
37160         Tests for module 'unistr/u8-next'.
37161         * modules/unistr/u8-next-tests: New file.
37162         * tests/unistr/test-u8-next.c: New file.
37163
37164         Tests for module 'unistr/u32-strmbtouc'.
37165         * modules/unistr/u32-strmbtouc-tests: New file.
37166         * tests/unistr/test-u32-strmbtouc.c: New file.
37167
37168         Tests for module 'unistr/u16-strmbtouc'.
37169         * modules/unistr/u16-strmbtouc-tests: New file.
37170         * tests/unistr/test-u16-strmbtouc.c: New file.
37171
37172         Tests for module 'unistr/u8-strmbtouc'.
37173         * modules/unistr/u8-strmbtouc-tests: New file.
37174         * tests/unistr/test-u8-strmbtouc.c: New file.
37175
37176         Tests for module 'unistr/u32-strmblen'.
37177         * modules/unistr/u32-strmblen-tests: New file.
37178         * tests/unistr/test-u32-strmblen.c: New file.
37179
37180         Tests for module 'unistr/u16-strmblen'.
37181         * modules/unistr/u16-strmblen-tests: New file.
37182         * tests/unistr/test-u16-strmblen.c: New file.
37183
37184         Tests for module 'unistr/u8-strmblen'.
37185         * modules/unistr/u8-strmblen-tests: New file.
37186         * tests/unistr/test-u8-strmblen.c: New file.
37187
37188         Tests for module 'unistr/u32-cpy-alloc'.
37189         * modules/unistr/u32-cpy-alloc-tests: New file.
37190         * tests/unistr/test-u32-cpy-alloc.c: New file.
37191
37192         Tests for module 'unistr/u16-cpy-alloc'.
37193         * modules/unistr/u16-cpy-alloc-tests: New file.
37194         * tests/unistr/test-u16-cpy-alloc.c: New file.
37195
37196         Tests for module 'unistr/u8-cpy-alloc'.
37197         * modules/unistr/u8-cpy-alloc-tests: New file.
37198         * tests/unistr/test-u8-cpy-alloc.c: New file.
37199         * tests/unistr/test-cpy-alloc.h: New file.
37200
37201         Tests for module 'unistr/u32-mbsnlen'.
37202         * modules/unistr/u32-mbsnlen-tests: New file.
37203         * tests/unistr/test-u32-mbsnlen.c: New file.
37204
37205         Tests for module 'unistr/u16-mbsnlen'.
37206         * modules/unistr/u16-mbsnlen-tests: New file.
37207         * tests/unistr/test-u16-mbsnlen.c: New file.
37208
37209         Tests for module 'unistr/u8-mbsnlen'.
37210         * modules/unistr/u8-mbsnlen-tests: New file.
37211         * tests/unistr/test-u8-mbsnlen.c: New file.
37212
37213         Tests for module 'unistr/u32-chr'.
37214         * modules/unistr/u32-chr-tests: New file.
37215         * tests/unistr/test-u32-chr.c: New file.
37216
37217         Tests for module 'unistr/u16-chr'.
37218         * modules/unistr/u16-chr-tests: New file.
37219         * tests/unistr/test-u16-chr.c: New file.
37220
37221         Tests for module 'unistr/u8-chr'.
37222         * modules/unistr/u8-chr-tests: New file.
37223         * tests/unistr/test-u8-chr.c: New file.
37224         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
37225
37226         Tests for module 'unistr/u32-cmp2'.
37227         * modules/unistr/u32-cmp2-tests: New file.
37228         * tests/unistr/test-u32-cmp2.c: New file.
37229
37230         Tests for module 'unistr/u16-cmp2'.
37231         * modules/unistr/u16-cmp2-tests: New file.
37232         * tests/unistr/test-u16-cmp2.c: New file.
37233
37234         Tests for module 'unistr/u8-cmp2'.
37235         * modules/unistr/u8-cmp2-tests: New file.
37236         * tests/unistr/test-u8-cmp2.c: New file.
37237         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
37238
37239         Tests for module 'unistr/u32-cmp'.
37240         * modules/unistr/u32-cmp-tests: New file.
37241         * tests/unistr/test-u32-cmp.c: New file.
37242
37243         Tests for module 'unistr/u16-cmp'.
37244         * modules/unistr/u16-cmp-tests: New file.
37245         * tests/unistr/test-u16-cmp.c: New file.
37246
37247         Tests for module 'unistr/u8-cmp'.
37248         * modules/unistr/u8-cmp-tests: New file.
37249         * tests/unistr/test-u8-cmp.c: New file.
37250         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
37251
37252         Tests for module 'unistr/u32-set'.
37253         * modules/unistr/u32-set-tests: New file.
37254         * tests/unistr/test-u32-set.c: New file.
37255
37256         Tests for module 'unistr/u16-set'.
37257         * modules/unistr/u16-set-tests: New file.
37258         * tests/unistr/test-u16-set.c: New file.
37259
37260         Tests for module 'unistr/u8-set'.
37261         * modules/unistr/u8-set-tests: New file.
37262         * tests/unistr/test-u8-set.c: New file.
37263         * tests/unistr/test-set.h: New file.
37264
37265         Tests for module 'unistr/u32-move'.
37266         * modules/unistr/u32-move-tests: New file.
37267         * tests/unistr/test-u32-move.c: New file.
37268
37269         Tests for module 'unistr/u16-move'.
37270         * modules/unistr/u16-move-tests: New file.
37271         * tests/unistr/test-u16-move.c: New file.
37272
37273         Tests for module 'unistr/u8-move'.
37274         * modules/unistr/u8-move-tests: New file.
37275         * tests/unistr/test-u8-move.c: New file.
37276         * tests/unistr/test-move.h: New file.
37277
37278         Tests for module 'unistr/u32-cpy'.
37279         * modules/unistr/u32-cpy-tests: New file.
37280         * tests/unistr/test-u32-cpy.c: New file.
37281
37282         Tests for module 'unistr/u16-cpy'.
37283         * modules/unistr/u16-cpy-tests: New file.
37284         * tests/unistr/test-u16-cpy.c: New file.
37285
37286         Tests for module 'unistr/u8-cpy'.
37287         * modules/unistr/u8-cpy-tests: New file.
37288         * tests/unistr/test-u8-cpy.c: New file.
37289         * tests/unistr/test-cpy.h: New file.
37290
37291 2010-01-09  Bruno Haible  <bruno@clisp.org>
37292
37293         Tests for module 'unistr/u32-uctomb'.
37294         * modules/unistr/u32-uctomb-tests: New file.
37295         * tests/unistr/test-u32-uctomb.c: New file.
37296
37297         Tests for module 'unistr/u16-uctomb'.
37298         * modules/unistr/u16-uctomb-tests: New file.
37299         * tests/unistr/test-u16-uctomb.c: New file.
37300
37301         Tests for module 'unistr/u8-uctomb'.
37302         * modules/unistr/u8-uctomb-tests: New file.
37303         * tests/unistr/test-u8-uctomb.c: New file.
37304
37305         Tests for module 'unistr/u32-mbtoucr'.
37306         * modules/unistr/u32-mbtoucr-tests: New file.
37307         * tests/unistr/test-u32-mbtoucr.c: New file.
37308
37309         Tests for module 'unistr/u16-mbtoucr'.
37310         * modules/unistr/u16-mbtoucr-tests: New file.
37311         * tests/unistr/test-u16-mbtoucr.c: New file.
37312
37313         Tests for module 'unistr/u8-mbtoucr'.
37314         * modules/unistr/u8-mbtoucr-tests: New file.
37315         * tests/unistr/test-u8-mbtoucr.c: New file.
37316
37317         Tests for module 'unistr/u32-mbtouc'.
37318         * modules/unistr/u32-mbtouc-tests: New file.
37319         * tests/unistr/test-u32-mbtouc.c: New file.
37320
37321         Tests for module 'unistr/u16-mbtouc'.
37322         * modules/unistr/u16-mbtouc-tests: New file.
37323         * tests/unistr/test-u16-mbtouc.c: New file.
37324
37325         Tests for module 'unistr/u8-mbtouc'.
37326         * modules/unistr/u8-mbtouc-tests: New file.
37327         * tests/unistr/test-u8-mbtouc.c: New file.
37328
37329         Tests for module 'unistr/u32-mbtouc-unsafe'.
37330         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
37331         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
37332         * tests/unistr/test-u32-mbtouc.h: New file.
37333
37334         Tests for module 'unistr/u16-mbtouc-unsafe'.
37335         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
37336         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
37337         * tests/unistr/test-u16-mbtouc.h: New file.
37338
37339         Tests for module 'unistr/u8-mbtouc-unsafe'.
37340         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
37341         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
37342         * tests/unistr/test-u8-mbtouc.h: New file.
37343
37344         Tests for module 'unistr/u32-mblen'.
37345         * modules/unistr/u32-mblen-tests: New file.
37346         * tests/unistr/test-u32-mblen.c: New file.
37347
37348         Tests for module 'unistr/u16-mblen'.
37349         * modules/unistr/u16-mblen-tests: New file.
37350         * tests/unistr/test-u16-mblen.c: New file.
37351
37352         Tests for module 'unistr/u8-mblen'.
37353         * modules/unistr/u8-mblen-tests: New file.
37354         * tests/unistr/test-u8-mblen.c: New file.
37355
37356         Tests for module 'unistr/u32-to-u16'.
37357         * modules/unistr/u32-to-u16-tests: New file.
37358         * tests/unistr/test-u32-to-u16.c: New file.
37359
37360         Tests for module 'unistr/u32-to-u8'.
37361         * modules/unistr/u32-to-u8-tests: New file.
37362         * tests/unistr/test-u32-to-u8.c: New file.
37363
37364         Tests for module 'unistr/u16-to-u32'.
37365         * modules/unistr/u16-to-u32-tests: New file.
37366         * tests/unistr/test-u16-to-u32.c: New file.
37367
37368         Tests for module 'unistr/u16-to-u8'.
37369         * modules/unistr/u16-to-u8-tests: New file.
37370         * tests/unistr/test-u16-to-u8.c: New file.
37371
37372         Tests for module 'unistr/u8-to-u32'.
37373         * modules/unistr/u8-to-u32-tests: New file.
37374         * tests/unistr/test-u8-to-u32.c: New file.
37375
37376         Tests for module 'unistr/u8-to-u16'.
37377         * modules/unistr/u8-to-u16-tests: New file.
37378         * tests/unistr/test-u8-to-u16.c: New file.
37379
37380         Tests for module 'unistr/u32-check'.
37381         * modules/unistr/u32-check-tests: New file.
37382         * tests/unistr/test-u32-check.c: New file.
37383
37384         Tests for module 'unistr/u16-check'.
37385         * modules/unistr/u16-check-tests: New file.
37386         * tests/unistr/test-u16-check.c: New file.
37387
37388         Tests for module 'unistr/u8-check'.
37389         * modules/unistr/u8-check-tests: New file.
37390         * tests/unistr/test-u8-check.c: New file.
37391
37392         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
37393         (category_equals): New function.
37394         (main): Add more tests.
37395         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
37396
37397         * tests/unictype/test-bidi_byname.c (main): Add more tests.
37398
37399 2010-01-10  Bruno Haible  <bruno@clisp.org>
37400
37401         unistr/u*-strcoll: Try harder to distinguish different strings.
37402         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
37403         compare s1 and s2 to see if they are different.
37404
37405 2010-01-10  Bruno Haible  <bruno@clisp.org>
37406
37407         unistr/u*-stpncpy: Fix the return value.
37408         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
37409         description of the return value consistent with stpncpy in glibc.
37410         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
37411         written non-NUL unit.
37412
37413 2010-01-10  Bruno Haible  <bruno@clisp.org>
37414
37415         unistr/u*-next: Add missing dependencies.
37416         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
37417         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
37418         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
37419
37420 2010-01-10  Bruno Haible  <bruno@clisp.org>
37421
37422         unistr/u8-mbsnlen: Fix return value for incomplete character.
37423         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
37424         u8_mblen.
37425         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
37426         Remove unistr/u8-mblen.
37427         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
37428         u16_mblen.
37429         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
37430         Remove unistr/u16-mblen.
37431
37432 2010-01-10  Bruno Haible  <bruno@clisp.org>
37433
37434         wchar: Fix compilation error when <wchar.h> is used from coreutils.
37435         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
37436         Reported by Brian Gough <bjg@gnu.org> and
37437         Chris Clayton <chris2553@googlemail.com> via
37438         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
37439
37440 2010-01-09  Bruno Haible  <bruno@clisp.org>
37441
37442         unistr/u16-to-u32: Reject invalid input.
37443         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
37444         u16_mbtouc.
37445         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
37446         Remove unistr/u16-mbtouc.
37447
37448         unistr/u16-to-u8: Reject invalid input.
37449         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
37450         u16_mbtouc.
37451         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
37452         Remove unistr/u16-mbtouc.
37453
37454         unistr/u8-to-u32: Reject invalid input.
37455         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
37456         u8_mbtouc.
37457         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
37458         Remove unistr/u8-mbtouc.
37459
37460         unistr/u8-to-u16: Reject invalid input.
37461         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
37462         u8_mbtouc.
37463         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
37464         Remove unistr/u8-mbtouc.
37465
37466 2010-01-09  Bruno Haible  <bruno@clisp.org>
37467
37468         Tests for module 'getlogin'.
37469         * modules/getlogin-tests: New file.
37470         * tests/test-getlogin.c: New file.
37471
37472         New module 'getlogin'.
37473         * lib/unistd.in.h (getlogin): New declaration.
37474         * lib/getlogin.c: New file.
37475         * m4/getlogin.m4: New file.
37476         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
37477         HAVE_GETLOGIN.
37478         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
37479         HAVE_GETLOGIN.
37480         * modules/getlogin: New file.
37481         * doc/posix-functions/getlogin.texi: Mention the new module.
37482         Reported by John W. Eaton <jwe@gnu.org>.
37483
37484 2010-01-09  Bruno Haible  <bruno@clisp.org>
37485
37486         getlogin_r: Support for native Windows.
37487         * lib/getlogin_r.c: Include <windows.h>
37488         (getlogin_r): Implement for native Windows.
37489         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
37490         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
37491         via John W. Eaton <jwe@gnu.org>.
37492
37493 2010-01-09  Bruno Haible  <bruno@clisp.org>
37494
37495         getlogin_r: Small fixes.
37496         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
37497         succeeds.
37498         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
37499         before testing whether getlogin_r is declared. No need to set
37500         HAVE_DECL_GETLOGIN_R to 1.
37501         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
37502
37503 2010-01-09  Bruno Haible  <bruno@clisp.org>
37504
37505         * lib/unistd.in.h (getlogin_r): Add comment.
37506
37507 2010-01-09  Bruno Haible  <bruno@clisp.org>
37508
37509         Tests for module 'getlogin_r'.
37510         * modules/getlogin_r-tests: New file.
37511         * tests/test-getlogin_r.c: New file.
37512
37513 2010-01-09  Jim Meyering  <meyering@redhat.com>
37514
37515         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
37516         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
37517         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
37518
37519 2010-01-08  Simon Josefsson  <simon@josefsson.org>
37520
37521         * lib/dup2.c (rpl_dup2): Improve comment.
37522
37523 2010-01-08  Eric Blake  <ebb9@byu.net>
37524
37525         maint.mk: allow packages to add makefile @@ exceptions
37526         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
37527         (sc_makefile_check): Rename...
37528         (sc_makefile_at_at_check): ...to this, and use hook.
37529
37530         dup2: work around mingw bug
37531         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
37532         Reported by Simon Josefsson.
37533
37534 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
37535
37536         glob: Fix C++ compilation.
37537         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
37538         C++.
37539
37540 2010-01-07  Bruno Haible  <bruno@clisp.org>
37541
37542         Fix indentation of wctype.in.h, broken since 2007-01-06.
37543         * lib/wctype.in.h: Fix indentation of preprocessor directives.
37544
37545 2010-01-07  Bruno Haible  <bruno@clisp.org>
37546
37547         mbslen: Avoid collision with system function.
37548         * lib/string.in.h [MirBSD]: Include <wchar.h>.
37549         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
37550         * m4/mbslen.m4: New file.
37551         * modules/mbslen (Files): Add it.
37552         (configure.ac): Invoke gl_MBSLEN.
37553         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
37554         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
37555         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
37556         via Ian Beckwith <ianb@erislabs.net>.
37557
37558 2010-01-07  Bruno Haible  <bruno@clisp.org>
37559
37560         dirent: Document the last fix.
37561         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
37562
37563 2010-01-07  Bruno Haible  <bruno@clisp.org>
37564
37565         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
37566         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
37567         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
37568         va_list are defined.
37569         * doc/posix-headers/stdio.texi: Document the bug of missing types.
37570         Reported by Eric Blake.
37571
37572 2010-01-07  Bruno Haible  <bruno@clisp.org>
37573
37574         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
37575         * modules/xlist (Depends-on): Add 'list',
37576         * modules/xoset (Depends-on): Add 'oset'.
37577         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37578
37579 2010-01-07  Bruno Haible  <bruno@clisp.org>
37580
37581         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
37582         * doc/posix-functions/strncasecmp.texi: Likewise.
37583
37584 2010-01-07  Bruno Haible  <bruno@clisp.org>
37585
37586         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
37587
37588 2010-01-07  John W. Eaton  <jwe@octave.org>
37589
37590         wctype: allow C++ use
37591         * lib/wctype.in.h: Add extern "C" block for C++.
37592
37593 2010-01-06  Eric Blake  <ebb9@byu.net>
37594
37595         maint.mk: detect incorrect GFDL usage
37596         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
37597
37598 2010-01-06  Jim Meyering  <meyering@redhat.com>
37599         and Eric Blake  <ebb9@byu.net>
37600
37601         maint.mk: ignore multi-line copyright in NEWS
37602         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
37603
37604 2010-01-06  Eric Blake  <ebb9@byu.net>
37605
37606         select: add missing dependency
37607         * modules/select-tests (Depends-on): Move sockets dependency...
37608         * modules/select (Depends-on): ...here.
37609         Reported by Ian Beckwith.
37610
37611         doc: regenerate INSTALL
37612         * doc/INSTALL: Reflect recent autoconf update.
37613         * doc/INSTALL.ISO: Likewise.
37614         * doc/INSTALL.UTF-8: Likewise.
37615
37616         pread: fix compilation on glibc
37617         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
37618         Reported by Ralf Wildenhues.
37619
37620         dirent: fix test failure
37621         * lib/dirent.in.h (includes): Guarantee ino_t.
37622         Reported by Ralf Wildenhues.
37623
37624 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
37625
37626         linkat, renameat: avoid bad free
37627         * lib/at-func2.c (at_func2): Fix typo.
37628         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
37629
37630 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37631
37632         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
37633         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
37634         to avoid failure of symlink test later.
37635
37636 2010-01-06  Eric Blake  <ebb9@byu.net>
37637
37638         stdio, unistd: guarantee ssize_t
37639         * lib/unistd.in.h (includes): Ensure that types required by POSIX
37640         2008 are exposed when needed.
37641         * lib/stdio.in.h (includes): Likewise.
37642         Reported by Ralf Wildenhues.
37643
37644 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
37645
37646         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
37647         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
37648         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
37649
37650 2010-01-06  Jim Meyering  <meyering@redhat.com>
37651
37652         readtokens: this module *does* require xalloc.h
37653         It uses only functions that were omitted by the old syntax-check rule.
37654         * lib/readtokens.c: Include "xalloc.h" once again.
37655         * modules/readtokens (Depends-on): Add xalloc.
37656         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
37657
37658 2010-01-05  Eric Blake  <ebb9@byu.net>
37659
37660         maint: support 'make announcement' from a VPATH build
37661         * top/maint.mk (announcement): Look for correct NEWS file.
37662
37663 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
37664
37665         utimens (fdutimens): ignore a negative FD, per contract
37666         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
37667         when we have a valid file descriptor.  Otherwise, using a brand
37668         new glibc (with just-patched futimens that now fails with EBADF)
37669         would cause this function to fail with ENOSYS.
37670         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
37671         See also http://bugzilla.redhat.com/552320.
37672
37673 2010-01-05  Eric Blake  <ebb9@byu.net>
37674
37675         strcase: document what it provides
37676         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
37677         gnulib module.
37678         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
37679         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
37680
37681 2010-01-05  Jim Meyering  <meyering@redhat.com>
37682
37683         maint: remove useless inclusions of "xalloc.h"
37684         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
37685         * lib/readtokens.c: Likewise.
37686         * lib/same.c: Likewise.
37687         * modules/getloadavg (Depends-on): Remove xalloc.
37688         * modules/readtokens: Likewise.
37689         * modules/same: Likewise.
37690
37691         maint.mk: include 4 more function names in alloca.h-checking regexp
37692         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
37693         regexp.  Before, we would give a false-positive (saying alloca.h
37694         is included unnecessarily) when the only uses involved omitted symbols.
37695
37696         xalloc.h: use consistent formatting
37697         * lib/xalloc.h: Move declarations to start in the first column.
37698
37699 2010-01-05  Eric Blake  <ebb9@byu.net>
37700
37701         mkdir: avoid xalloc
37702         * lib/mkdir.c (includes): Drop unused header.
37703         Reported by John W. Eaton.
37704
37705 2010-01-04  Jim Meyering  <meyering@redhat.com>
37706
37707         nl_langinfo: avoid configure-time syntax error
37708         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
37709         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
37710         the empty string.  Don't let that provoke a shell syntax error.
37711
37712         regcomp, regexec, fnmatch: avoid array bounds read error
37713         * lib/regcomp.c (build_equiv_class): From glibc:
37714         Use only the low 24 bits of a findidx return value as an index
37715         into the weights array.  Patch by Ulrich Drepper:
37716         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
37717         * lib/regexec.c (check_node_accept_bytes): Likewise.
37718         * lib/fnmatch_loop.c (FCT): Likewise.
37719
37720         regcomp: skip collseq lookup when there are no rules
37721         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
37722         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
37723
37724         regcomp: recognize ill-formed { } expressions
37725         * lib/regcomp.c (parse_dup_op): From glibc:
37726         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
37727
37728         regcomp: fix typo in comment
37729         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
37730         s/satisfy/satisfies/.
37731
37732         regcomp: sync from glibc: remove dead store
37733         * lib/regcomp.c (duplicate_node_closure): Remove useless
37734         search_duplicated_node call and dead store.
37735
37736         regcomp: sync from glibc; always use nl_langinfo
37737         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
37738         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
37739         * modules/regex (Depends-on): Add nl_langinfo.
37740
37741 2010-01-04  Eric Blake  <ebb9@byu.net>
37742
37743         fdopendir: fix configure test
37744         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
37745
37746 2010-01-01  Bruno Haible  <bruno@clisp.org>
37747
37748         wchar: Remove unused configure check.
37749         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
37750
37751 2010-01-01  Eric Blake  <ebb9@byu.net>
37752
37753         headers: make check of system header explicit
37754         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
37755         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
37756         ourselves.
37757         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
37758         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
37759         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
37760         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
37761         internals.
37762         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
37763         missing.
37764         Suggested by Bruno Haible.
37765
37766 2010-01-01  Jim Meyering  <meyering@redhat.com>
37767
37768         ChangeLog: tweak to eliminate unnecessary copyright line
37769         * ChangeLog: Remove a copyright line that was mistakenly updated
37770         by today's update-copyright run.  Reported by Eric Blake.
37771
37772         test-update-copyright: don't let envvar setting cause test failure
37773         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
37774
37775 2010-01-01  Bruno Haible  <bruno@clisp.org>
37776
37777         localename: Avoid gcc warning.
37778         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
37779         function if it is not used.
37780
37781 2010-01-01  Jim Meyering  <meyering@redhat.com>
37782
37783         update nearly all FSF copyright year lists to include 2010
37784         Use the same procedure as for 2009, outlined in
37785         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
37786
37787         version-etc: set COPYRIGHT_YEAR to 2010
37788         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
37789
37790 2009-12-31  Eric Blake  <ebb9@byu.net>
37791
37792         doc: correct availability of cygwin 1.5.x getopt
37793         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
37794         variables.
37795         * doc/posix-functions/opterr.texi (opterr): Likewise.
37796         * doc/posix-functions/optind.texi (optind): Likewise.
37797         * doc/posix-functions/optopt.texi (optopt): Likewise.
37798         * doc/posix-functions/tzname.texi (tzname): Likewise.
37799
37800         openat: update maintainer
37801         * modules/openat (Maintainer): Add myself.
37802
37803         utimens: avoid shadowing warning
37804         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
37805         buffers into one, to avoid shadowing, as well as avoiding a
37806         redundant stat.
37807         Reported by Jim Meyering.
37808
37809         test-dup2: avoid compiler warning
37810         * tests/test-dup2.c (is_inheritable): Only define if used.
37811
37812 2010-01-01  Bruno Haible  <bruno@clisp.org>
37813
37814         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
37815         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
37816         defined, use wctomb instead of wcrtomb.
37817
37818 2010-01-01  Bruno Haible  <bruno@clisp.org>
37819
37820         iconv: Reject native Solaris iconv.
37821         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
37822         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
37823
37824 2009-12-31  Bruno Haible  <bruno@clisp.org>
37825
37826         * tests/test-signal.c (main): Remove test of 'SIG'.
37827
37828 2009-12-31  Bruno Haible  <bruno@clisp.org>
37829
37830         spawn: Fix incomplete fix.
37831         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
37832         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
37833         warnings for GNULIB_POSIXCHECK again.
37834         Reported by Eric Blake.
37835
37836 2009-12-31  Bruno Haible  <bruno@clisp.org>
37837
37838         Avoid namespace pollution on glibc systems.
37839         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
37840         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
37841         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
37842         glibc systems.
37843
37844 2009-12-31  Bruno Haible  <bruno@clisp.org>
37845
37846         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
37847         (gl_REPLACE_WCHAR_H): Turn into a no-op.
37848         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
37849         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
37850         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
37851         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
37852         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
37853
37854 2009-12-31  Bruno Haible  <bruno@clisp.org>
37855
37856         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
37857         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
37858         afterwards.
37859
37860 2009-12-31  Bruno Haible  <bruno@clisp.org>
37861
37862         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
37863         SYS_UTSNAME_H.
37864
37865 2009-12-31  Bruno Haible  <bruno@clisp.org>
37866
37867         spawn: Fix misapplied patch.
37868         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
37869         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
37870         warnings for GNULIB_POSIXCHECK.
37871
37872 2009-12-31  Bruno Haible  <bruno@clisp.org>
37873
37874         times: Update after sys_times changed.
37875         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
37876         * modules/times (Files): Add it.
37877         (configure.ac): Invoke gl_FUNC_TIMES.
37878
37879 2009-12-31  Bruno Haible  <bruno@clisp.org>
37880
37881         Use AC_C_INLINE where necessary.
37882         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
37883         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
37884         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
37885         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
37886         * m4/mbfile.m4 (gl_MBFILE): Likewise.
37887         * m4/mbiter.m4 (gl_MBITER): Likewise.
37888         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
37889         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
37890         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
37891         * modules/u64 (configure.ac): Likewise.
37892
37893 2009-12-31  Bruno Haible  <bruno@clisp.org>
37894
37895         Use AC_C_INLINE instead of module 'inline' where possible.
37896         * modules/inline (Description): Clarify purpose.
37897         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
37898         * modules/count-one-bits (Depends-on): Remove inline.
37899         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
37900         * modules/openat (Depends-on): Remove inline.
37901         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
37902         instead of depending on module 'inline'.
37903         * modules/filevercmp (Depends-on, configure.ac): Likewise.
37904         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
37905         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
37906         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
37907         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
37908         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
37909         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
37910         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
37911         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
37912         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
37913         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
37914         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
37915         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
37916         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
37917         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
37918         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
37919         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
37920         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
37921         Likewise.
37922         * modules/unictype/property-ascii-hex-digit (Depends-on,
37923         configure.ac): Likewise.
37924         * modules/unictype/property-bidi-arabic-digit (Depends-on,
37925         configure.ac): Likewise.
37926         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
37927         configure.ac): Likewise.
37928         * modules/unictype/property-bidi-block-separator (Depends-on,
37929         configure.ac): Likewise.
37930         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
37931         configure.ac): Likewise.
37932         * modules/unictype/property-bidi-common-separator (Depends-on,
37933         configure.ac): Likewise.
37934         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
37935         Likewise.
37936         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
37937         configure.ac): Likewise.
37938         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
37939         configure.ac): Likewise.
37940         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
37941         configure.ac): Likewise.
37942         * modules/unictype/property-bidi-european-digit (Depends-on,
37943         configure.ac): Likewise.
37944         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
37945         configure.ac): Likewise.
37946         * modules/unictype/property-bidi-left-to-right (Depends-on,
37947         configure.ac): Likewise.
37948         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
37949         configure.ac): Likewise.
37950         * modules/unictype/property-bidi-other-neutral (Depends-on,
37951         configure.ac): Likewise.
37952         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
37953         Likewise.
37954         * modules/unictype/property-bidi-segment-separator (Depends-on,
37955         configure.ac): Likewise.
37956         * modules/unictype/property-bidi-whitespace (Depends-on,
37957         configure.ac): Likewise.
37958         * modules/unictype/property-combining (Depends-on, configure.ac):
37959         Likewise.
37960         * modules/unictype/property-composite (Depends-on, configure.ac):
37961         Likewise.
37962         * modules/unictype/property-currency-symbol (Depends-on,
37963         configure.ac): Likewise.
37964         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
37965         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
37966         Likewise.
37967         * modules/unictype/property-default-ignorable-code-point (Depends-on,
37968         configure.ac): Likewise.
37969         * modules/unictype/property-deprecated (Depends-on, configure.ac):
37970         Likewise.
37971         * modules/unictype/property-diacritic (Depends-on, configure.ac):
37972         Likewise.
37973         * modules/unictype/property-extender (Depends-on, configure.ac):
37974         Likewise.
37975         * modules/unictype/property-format-control (Depends-on, configure.ac):
37976         Likewise.
37977         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
37978         Likewise.
37979         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
37980         Likewise.
37981         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
37982         Likewise.
37983         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
37984         Likewise.
37985         * modules/unictype/property-hyphen (Depends-on, configure.ac):
37986         Likewise.
37987         * modules/unictype/property-id-continue (Depends-on, configure.ac):
37988         Likewise.
37989         * modules/unictype/property-id-start (Depends-on, configure.ac):
37990         Likewise.
37991         * modules/unictype/property-ideographic (Depends-on, configure.ac):
37992         Likewise.
37993         * modules/unictype/property-ids-binary-operator (Depends-on,
37994         configure.ac): Likewise.
37995         * modules/unictype/property-ids-trinary-operator (Depends-on,
37996         configure.ac): Likewise.
37997         * modules/unictype/property-ignorable-control (Depends-on,
37998         configure.ac): Likewise.
37999         * modules/unictype/property-iso-control (Depends-on, configure.ac):
38000         Likewise.
38001         * modules/unictype/property-join-control (Depends-on, configure.ac):
38002         Likewise.
38003         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
38004         Likewise.
38005         * modules/unictype/property-line-separator (Depends-on, configure.ac):
38006         Likewise.
38007         * modules/unictype/property-logical-order-exception (Depends-on,
38008         configure.ac): Likewise.
38009         * modules/unictype/property-lowercase (Depends-on, configure.ac):
38010         Likewise.
38011         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
38012         * modules/unictype/property-non-break (Depends-on, configure.ac):
38013         Likewise.
38014         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
38015         Likewise.
38016         * modules/unictype/property-numeric (Depends-on, configure.ac):
38017         Likewise.
38018         * modules/unictype/property-other-alphabetic (Depends-on,
38019         configure.ac): Likewise.
38020         * modules/unictype/property-other-default-ignorable-code-point
38021         (Depends-on, configure.ac): Likewise.
38022         * modules/unictype/property-other-grapheme-extend (Depends-on,
38023         configure.ac): Likewise.
38024         * modules/unictype/property-other-id-continue (Depends-on,
38025         configure.ac): Likewise.
38026         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
38027         Likewise.
38028         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
38029         Likewise.
38030         * modules/unictype/property-other-math (Depends-on, configure.ac):
38031         Likewise.
38032         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
38033         Likewise.
38034         * modules/unictype/property-paired-punctuation (Depends-on,
38035         configure.ac): Likewise.
38036         * modules/unictype/property-paragraph-separator (Depends-on,
38037         configure.ac): Likewise.
38038         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
38039         Likewise.
38040         * modules/unictype/property-pattern-white-space (Depends-on,
38041         configure.ac): Likewise.
38042         * modules/unictype/property-private-use (Depends-on, configure.ac):
38043         Likewise.
38044         * modules/unictype/property-punctuation (Depends-on, configure.ac):
38045         Likewise.
38046         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
38047         Likewise.
38048         * modules/unictype/property-radical (Depends-on, configure.ac):
38049         Likewise.
38050         * modules/unictype/property-sentence-terminal (Depends-on,
38051         configure.ac): Likewise.
38052         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
38053         Likewise.
38054         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
38055         * modules/unictype/property-terminal-punctuation (Depends-on,
38056         configure.ac): Likewise.
38057         * modules/unictype/property-titlecase (Depends-on, configure.ac):
38058         Likewise.
38059         * modules/unictype/property-unassigned-code-value (Depends-on,
38060         configure.ac): Likewise.
38061         * modules/unictype/property-unified-ideograph (Depends-on,
38062         configure.ac): Likewise.
38063         * modules/unictype/property-uppercase (Depends-on, configure.ac):
38064         Likewise.
38065         * modules/unictype/property-variation-selector (Depends-on,
38066         configure.ac): Likewise.
38067         * modules/unictype/property-white-space (Depends-on, configure.ac):
38068         Likewise.
38069         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
38070         Likewise.
38071         * modules/unictype/property-xid-start (Depends-on, configure.ac):
38072         Likewise.
38073         * modules/unictype/property-zero-width (Depends-on, configure.ac):
38074         Likewise.
38075         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
38076         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
38077         Likewise.
38078
38079 2009-12-31  Bruno Haible  <bruno@clisp.org>
38080
38081         Remove unnecessary AC_C_INLINE invocation.
38082         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
38083         since 2009-08-21.
38084
38085 2009-12-31  Jim Meyering  <meyering@redhat.com>
38086
38087         maint.mk: don't require explicit gpg_key_ID in cfg.mk
38088         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
38089         With this change, we can all remove the gpg_key_ID = ... definition
38090         from our respective cfg.mk files.
38091
38092         maint.mk: create announcement template in ~/, not in /tmp
38093         * top/maint.mk (emit_upload_commands): Adjust.
38094         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
38095         Remove temporary file, .ci-msg.
38096
38097 2009-12-31  Eric Blake  <ebb9@byu.net>
38098
38099         link-warning: always build headers with link warnings
38100         * modules/arpa_inet (Makefile.am): Always build replacement
38101         header.
38102         * modules/ctype (Makefile.am): Likewise.
38103         * modules/dirent (Makefile.am): Likewise.
38104         * modules/inttypes (Makefile.am): Likewise.
38105         * modules/langinfo (Makefile.am): Likewise.
38106         * modules/locale (Makefile.am): Likewise.
38107         * modules/spawn (Makefile.am): Likewise.
38108         * modules/sys_file (Makefile.am): Likewise.
38109         * modules/sys_ioctl (Makefile.am): Likewise.
38110         * modules/sys_select (Makefile.am): Likewise.
38111         * modules/sys_socket (Makefile.am): Likewise.
38112         * modules/sys_times (Makefile.am): Likewise.
38113         * modules/sys_utsname (Makefile.am): Likewise.
38114         * modules/sys_wait (Makefile.am): Likewise.
38115         * modules/wchar (Makefile.am): Likewise.
38116         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
38117         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
38118         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
38119         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
38120         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
38121         Likewise.
38122         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
38123         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
38124         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
38125         Likewise.
38126         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
38127         Likewise.
38128         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
38129         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
38130         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
38131         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
38132         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
38133         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
38134         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
38135         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
38136         (gl_WCHAR_H_DEFAULTS): Likewise.
38137
38138 2009-12-31  Eric Blake  <ebb9@byu.net>
38139
38140         signal, spawn: use link warnings
38141         * lib/signal.in.h (sigset_t): Make unconditional.
38142         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
38143         (sigpending, sigprocmask, sigaction): Add link warnings.
38144         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
38145         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
38146         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
38147         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
38148         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
38149         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
38150         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
38151         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
38152         (posix_spawn_file_actions_destroy)
38153         (posix_spawn_file_actions_addopen)
38154         (posix_spawn_file_actions_addclose)
38155         (posix_spawn_file_actions_adddup2): Likewise.
38156         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
38157         * tests/test-signal.c (main): Enhance test.
38158
38159         spawn: improve wrapper support
38160         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
38161         (gl_SPAWN_H_DEFAULTS): New defaults.
38162         * modules/spawn (Makefile.am): Substitute them.
38163         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
38164         Only declare if missing or broken.
38165
38166         sys_times, sys_utsname: use include_next
38167         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
38168         header.
38169         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
38170         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
38171         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
38172         * modules/sys_times (Depends-on): Add include_next.
38173         (Makefile.am): Substitute additional values.
38174         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
38175         * lib/sys_times.in.h (includes): Include native header, if
38176         available.
38177         * lib/sys_utsname.in.h (includes): Likewise.
38178         * tests/test-sys_times.c (main): Enhance test.
38179
38180         fdutimensat: revert prior patch
38181         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
38182         utimens.h.
38183         Reported by Bruno Haible.
38184
38185 2009-12-30  Eric Blake  <ebb9@byu.net>
38186
38187         sys_wait: drop link-warning dependency
38188         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
38189         link-warning efforts.
38190         * lib/sys_wait.in.h: Likewise.
38191
38192         fdutimensat: remove bogus dependency
38193         * modules/fdutimensat (Depends-on): Drop inline.
38194
38195         unistd: fix typo
38196         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
38197
38198 2009-12-30  Bruno Haible  <bruno@clisp.org>
38199
38200         Fix compilation error with Solaris cc.
38201         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
38202         * lib/unicase/u16-is-invariant.c: Likewise.
38203         * lib/unicase/u32-is-invariant.c: Likewise.
38204         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
38205
38206 2009-12-30  Bruno Haible  <bruno@clisp.org>
38207
38208         Fix test crash.
38209         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
38210         locales.
38211         Reported by Simon Josefsson <simon@josefsson.org>.
38212
38213 2009-12-30  Bruno Haible  <bruno@clisp.org>
38214
38215         Fix compilation error on most platforms.
38216         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
38217         Reported by Simon Josefsson <simon@josefsson.org>
38218         and Nelson H. F. Beebe <beebe@math.utah.edu>.
38219
38220 2009-12-30  Eric Blake  <ebb9@byu.net>
38221
38222         futimens, utimensat: work around ntfs-3g bug
38223         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
38224         a ctime bug is present, and expand workaround to cover ntfs-3g.
38225         * lib/utimens.c (fdutimens, lutimens): Likewise.
38226         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
38227         (validate_timespec): Adjust return value.
38228         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
38229         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38230         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
38231
38232 2009-12-29  Eric Blake  <ebb9@byu.net>
38233
38234         link-warning: make usage consistent
38235         * modules/ctype (Depends-on): Add link-warning.
38236         (Makefile.am): Update rules accordingly.
38237         * modules/langinfo (Depends-on, Makefile.am): Likewise.
38238         * modules/locale (Depends-on, Makefile.am): Likewise.
38239         * modules/sys_file (Makefile.am): Likewise.
38240         * modules/getopt-posix (Makefile.am): Delete unused link warning
38241         efforts.
38242         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
38243         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
38244         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
38245         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
38246
38247         stdio: remove unused variables
38248         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
38249         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
38250         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
38251
38252         tests: test more substitute headers
38253         * modules/ctype-tests: New file.
38254         * modules/dirent-tests: Likewise.
38255         * modules/spawn-tests: Likewise.
38256         * modules/sys_file-tests: Likewise.
38257         * modules/sys_ioctl-tests: Likewise.
38258         * modules/sys_wait-tests: Likewise.
38259         * tests/test-ctype.c: Likewise.
38260         * tests/test-dirent.c: Likewise.
38261         * tests/test-spawn.c: Likewise.
38262         * tests/test-sys_file.c: Likewise.
38263         * tests/test-sys_ioctl.c: Likewise.
38264         * tests/test-sys_wait.c: Likewise.
38265         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
38266         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
38267         whether or not flock is in use.
38268
38269         tests: remove License section from module
38270         * modules/arpa_inet-tests: Remove unneeded section.
38271         * modules/byteswap-tests: Likewise.
38272         * modules/ceilf-tests: Likewise.
38273         * modules/ceill-tests: Likewise.
38274         * modules/crypto/des-tests: Likewise.
38275         * modules/crypto/gc-arcfour-tests: Likewise.
38276         * modules/crypto/gc-arctwo-tests: Likewise.
38277         * modules/crypto/gc-des-tests: Likewise.
38278         * modules/crypto/gc-hmac-md5-tests: Likewise.
38279         * modules/crypto/gc-hmac-sha1-tests: Likewise.
38280         * modules/crypto/gc-md2-tests: Likewise.
38281         * modules/crypto/gc-md4-tests: Likewise.
38282         * modules/crypto/gc-md5-tests: Likewise.
38283         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
38284         * modules/crypto/gc-rijndael-tests: Likewise.
38285         * modules/crypto/gc-sha1-tests: Likewise.
38286         * modules/crypto/gc-tests: Likewise.
38287         * modules/crypto/md2-tests: Likewise.
38288         * modules/crypto/md4-tests: Likewise.
38289         * modules/fcntl-h-tests: Likewise.
38290         * modules/floorf-tests: Likewise.
38291         * modules/floorl-tests: Likewise.
38292         * modules/frexp-nolibm-tests: Likewise.
38293         * modules/frexp-tests: Likewise.
38294         * modules/frexpl-nolibm-tests: Likewise.
38295         * modules/frexpl-tests: Likewise.
38296         * modules/getaddrinfo-tests: Likewise.
38297         * modules/inttypes-tests: Likewise.
38298         * modules/isfinite-tests: Likewise.
38299         * modules/isinf-tests: Likewise.
38300         * modules/ldexpl-tests: Likewise.
38301         * modules/locale-tests: Likewise.
38302         * modules/math-tests: Likewise.
38303         * modules/netdb-tests: Likewise.
38304         * modules/netinet_in-tests: Likewise.
38305         * modules/printf-frexp-tests: Likewise.
38306         * modules/printf-frexpl-tests: Likewise.
38307         * modules/priv-set-tests: Likewise.
38308         * modules/random_r-tests: Likewise.
38309         * modules/round-tests: Likewise.
38310         * modules/roundf-tests: Likewise.
38311         * modules/roundl-tests: Likewise.
38312         * modules/search-tests: Likewise.
38313         * modules/select-tests: Likewise.
38314         * modules/signal-tests: Likewise.
38315         * modules/stdbool-tests: Likewise.
38316         * modules/stddef-tests: Likewise.
38317         * modules/stdint-tests: Likewise.
38318         * modules/stdio-tests: Likewise.
38319         * modules/stdlib-tests: Likewise.
38320         * modules/string-tests: Likewise.
38321         * modules/strings-tests: Likewise.
38322         * modules/sys_select-tests: Likewise.
38323         * modules/sys_socket-tests: Likewise.
38324         * modules/sys_stat-tests: Likewise.
38325         * modules/sys_time-tests: Likewise.
38326         * modules/sys_utsname-tests: Likewise.
38327         * modules/sysexits-tests: Likewise.
38328         * modules/time-tests: Likewise.
38329         * modules/trunc-tests: Likewise.
38330         * modules/truncf-tests: Likewise.
38331         * modules/truncl-tests: Likewise.
38332         * modules/tsearch-tests: Likewise.
38333         * modules/unistd-tests: Likewise.
38334         * modules/wchar-tests: Likewise.
38335         * modules/wctype-tests: Likewise.
38336
38337         tests: fix license on several tests
38338         * tests/test-des.c: Update to GPLv3+.
38339         * tests/test-flock.c: Likewise.
38340         * tests/test-fsync.c: Likewise.
38341         * tests/test-futimens.h: Likewise.
38342         * tests/test-gc-arcfour.c: Likewise.
38343         * tests/test-gc-arctwo.c: Likewise.
38344         * tests/test-gc-des.c: Likewise.
38345         * tests/test-gc-hmac-md5.c: Likewise.
38346         * tests/test-gc-hmac-sha1.c: Likewise.
38347         * tests/test-gc-md2.c: Likewise.
38348         * tests/test-gc-md4.c: Likewise.
38349         * tests/test-gc-md5.c: Likewise.
38350         * tests/test-gc-pbkdf2-sha1.c: Likewise.
38351         * tests/test-gc-rijndael.c: Likewise.
38352         * tests/test-gc-sha1.c: Likewise.
38353         * tests/test-gc.c: Likewise.
38354         * tests/test-getcwd.c: Likewise.
38355         * tests/test-link.c: Likewise.
38356         * tests/test-link.h: Likewise.
38357         * tests/test-lutimens.h: Likewise.
38358         * tests/test-md2.c: Likewise.
38359         * tests/test-md4.c: Likewise.
38360         * tests/test-mkdir.h: Likewise.
38361         * tests/test-rename.c: Likewise.
38362         * tests/test-rename.h: Likewise.
38363         * tests/test-safe-alloc.c: Likewise.
38364         * tests/test-utimens-common.h: Likewise.
38365         * tests/test-utimens.h: Likewise.
38366
38367         maint: sync license texts
38368         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
38369         * doc/gpl-3.0.texi: Revert copyright year update.
38370         * doc/lgpl-3.0.texi: Likewise.
38371
38372 2009-12-29  Jim Meyering  <meyering@redhat.com>
38373
38374         update nearly all FSF copyright year lists to include 2009
38375         The files named by the following are exempted:
38376             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
38377               test -f "$dst" && { echo "$dst"; continue; }
38378               test -d "$dst" || continue
38379               echo "$dst"/$(basename "$src")
38380             done > exempt
38381             git ls-files tests/unictype >> exempt
38382         In the remaining files, convert to all-interval notation if
38383         - there is already at least one year interval like 2000-2003
38384         - the file is maintained by me
38385         - the file is in lib/uni*/, where that style already prevails
38386         Otherwise, use update-copyright's default.
38387
38388 2009-12-29  Simon Josefsson  <simon@josefsson.org>
38389         and Eric Blake  <ebb9@byu.net>
38390
38391         tests: don't require debug system() to pass
38392         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
38393         * tests/test-rmdir.h (test_rmdir_func): Likewise.
38394         * tests/test-unlink.h (test_unlink_func): Likewise.
38395         * tests/test-fstatat.c (main): ...into callers.
38396         * tests/test-lstat.c (main): Likewise.
38397         * tests/test-rmdir.c (main): Likewise.
38398         * tests/test-unlink.c (main): Likewise.
38399         * tests/test-unlinkat.c (main): Likewise.
38400         * tests/test-areadlink-with-size.c (main): Don't require a
38401         debug-only system call to pass, aiding cross-testing to mingw.
38402         * tests/test-areadlink.c (main): Likewise.
38403         * tests/test-areadlinkat-with-size.c (main): Likewise.
38404         * tests/test-areadlinkat.c (main): Likewise.
38405         * tests/test-canonicalize-lgpl.c (main): Likewise.
38406         * tests/test-canonicalize.c (main): Likewise.
38407         * tests/test-chown.c (main): Likewise.
38408         * tests/test-fchownat.c (main): Likewise.
38409         * tests/test-lchown.c (main): Likewise.
38410         * tests/test-fdutimensat.c (main): Likewise.
38411         * tests/test-futimens.c (main): Likewise.
38412         * tests/test-link.c (main): Likewise.
38413         * tests/test-linkat.c (main): Likewise.
38414         * tests/test-mkdir.c (main): Likewise.
38415         * tests/test-mkdirat.c (main): Likewise.
38416         * tests/test-mkfifo.c (main): Likewise.
38417         * tests/test-mkfifoat.c (main): Likewise.
38418         * tests/test-mknod.c (main): Likewise.
38419         * tests/test-readlink.c (main): Likewise.
38420         * tests/test-remove.c (main): Likewise.
38421         * tests/test-rename.c (main): Likewise.
38422         * tests/test-renameat.c (main): Likewise.
38423         * tests/test-symlink.c (main): Likewise.
38424         * tests/test-symlinkat.c (main): Likewise.
38425         * tests/test-utimens.c (main): Likewise.
38426         * tests/test-utimensat.c (main): Likewise.
38427
38428 2009-12-29  Simon Josefsson  <simon@josefsson.org>
38429
38430         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
38431         on $(UNUSED_PARAMETER_H) to avoid build failure.
38432
38433 2009-12-28  Jim Meyering  <meyering@redhat.com>
38434
38435         update-copyright: you may specify a max. line length other than 72
38436         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
38437
38438         maint: use consistent FSF copyright line syntax
38439         * lib/posixtm.c: Add missing comma in FSF copyright line.
38440         * lib/posixtm.h: Likewise.
38441         * lib/getugroups.c: Add missing ", Inc.".
38442
38443         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
38444         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
38445         FSF copyright line.  Remove trailing blanks.
38446
38447 2009-12-28  Eric Blake  <ebb9@byu.net>
38448
38449         test-dup2: reduce dependencies
38450         * modules/cloexec (Configure.ac): Set witness.
38451         * modules/dup2-tests (Depends-on): Drop cloexec.
38452         * tests/test-dup2.c (main): Skip portion of test if cloexec module
38453         not present.
38454         Suggested by Bruno Haible.
38455
38456 2009-12-26  Bruno Haible  <bruno@clisp.org>
38457
38458         Remove an unneeded dependency.
38459         * modules/fseterr (Depends-on): Remove dup2.
38460
38461 2009-12-26  Eric Blake  <ebb9@byu.net>
38462
38463         tests: use macros.h in more places
38464         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
38465         (ASSERT_STREAM): Provide default of stderr.
38466         * tests/test-dirent-safer.c: Include macros.h, using alternate
38467         stream for assertions.
38468         * tests/test-dup-safer.c: Likewise.
38469         * tests/test-freopen-safer.c: Likewise.
38470         * tests/test-getopt.c: Likewise.
38471         * tests/test-openat-safer.c: Likewise.
38472         * tests/test-pipe.c: Likewise.
38473         * tests/test-popen-safer.c: Likewise.
38474         * modules/dirent-safer-tests (Files): Include macros.h.
38475         * modules/unistd-safer-tests (Files): Likewise.
38476         * modules/freopen-safer-tests (Files): Likewise.
38477         * modules/getopt-posix-tests (Files): Likewise.
38478         * modules/openat-safer-tests (Files): Likewise.
38479         * modules/pipe-tests (Files): Likewise.
38480
38481 2009-12-26  Bruno Haible  <bruno@clisp.org>
38482
38483         javacomp: Portability fix.
38484         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
38485         that it also works on Solaris.
38486
38487 2009-12-26  Bruno Haible  <bruno@clisp.org>
38488
38489         localename: Fix storage allocation of gl_locale_name_thread's result.
38490         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
38491         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
38492         all platforms that have 'uselocale'.
38493         (gl_locale_name_thread_unsafe): New function, extracted from
38494         gl_locale_name_thread.
38495         (gl_locale_name_thread): Call struniq on all platforms that have
38496         'uselocale'.
38497         * tests/test-localename.c (test_locale_name_thread): Check that the
38498         resulting strings are permanently allocated.
38499         * modules/localename-tests (Depends-on): Add strdup.
38500
38501 2009-12-26  Bruno Haible  <bruno@clisp.org>
38502
38503         * tests/test-localename.c (categories): Fill in the strings.
38504
38505 2009-12-26  Jim Meyering  <meyering@redhat.com>
38506
38507         isdir: complete the removal of m4/isdir.m4
38508         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
38509
38510         isdir: clean up, since at least grep still uses it
38511         * lib/isdir.c: Include "isdir.h".
38512         (S_ISDIR): Remove now-unneeded definition.
38513         * modules/isdir (Files): Add lib/isdir.h.
38514         * lib/isdir.h: New file, with declaration.
38515         * m4/isdir.m4: Remove file -- unneeded.
38516
38517 2009-12-25  Bruno Haible  <bruno@clisp.org>
38518
38519         selinux-h: Make generated .h files standalone.
38520         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
38521         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
38522         * lib/se-selinux.in.h: Likewise.
38523         * modules/selinux-h (Depends-on): Add unused-parameter.
38524         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
38525         selinux/selinux.h and selinux/context.h.
38526         Suggested by Eric Blake.
38527
38528 2009-12-25  Bruno Haible  <bruno@clisp.org>
38529
38530         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
38531         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
38532         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
38533         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
38534         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
38535
38536 2009-12-24  Bruno Haible  <bruno@clisp.org>
38537
38538         openat: Fix warning.
38539         * lib/openat-proc.c: Include <unistd.h>.
38540
38541 2009-12-24  Bruno Haible  <bruno@clisp.org>
38542
38543         New module 'unused-parameter'.
38544         * build-aux/unused-parameter.h: New file, extracted from earlier
38545         gnulib-common.m4.
38546         * modules/unused-parameter: New file.
38547         * lib/unistr.h: Include unused-parameter.h.
38548         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
38549         _GL_UNUSED.
38550         * modules/unistr/base (Depends-on): Add unused-parameter.
38551
38552 2009-12-24  Bruno Haible  <bruno@clisp.org>
38553
38554         Add missing dependencies to 'extensions' module.
38555         * m4/extensions.m4: Add comment.
38556         * modules/accept4 (Depends-on): Add extensions.
38557         * modules/dup3 (Depends-on): Likewise.
38558         * modules/fcntl (Depends-on): Likewise.
38559         * modules/futimens (Depends-on): Likewise.
38560         * modules/mknod (Depends-on): Likewise.
38561         * modules/pipe2 (Depends-on): Likewise.
38562         * modules/stat-time (Depends-on): Likewise.
38563         * modules/strcasestr-simple (Depends-on): Likewise.
38564         * modules/strsignal (Depends-on): Likewise.
38565         * modules/utimensat (Depends-on): Likewise.
38566         * modules/localcharset (Depends-on): Likewise. Needed because of
38567         gl_FCNTL_O_FLAGS.
38568         * modules/wcrtomb (Depends-on): Likewise. Needed because of
38569         AC_TYPE_MBSTATE_T.
38570         * modules/wcsnrtombs (Depends-on): Likewise.
38571         * modules/wcsrtombs (Depends-on): Likewise.
38572
38573 2009-12-24  Bruno Haible  <bruno@clisp.org>
38574
38575         binary-io: Avoid gcc warning due to SET_BINARY.
38576         * lib/binary-io.h (SET_BINARY): Cast the result to void.
38577         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
38578
38579 2009-12-24  Bruno Haible  <bruno@clisp.org>
38580
38581         Avoid future namespace pollution on glibc systems.
38582         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
38583         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
38584         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
38585         glibc systems.
38586
38587 2009-12-24  Bruno Haible  <bruno@clisp.org>
38588
38589         Refactor common macros used in tests.
38590         * tests/macros.h: New file.
38591         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
38592         and/or <stdlib.h>, if appropriate.
38593         (ASSERT, SIZEOF): Remove macros.
38594         * tests/test-areadlink-with-size.c: Likewise.
38595         * tests/test-areadlinkat.c: Likewise.
38596         * tests/test-areadlinkat-with-size.c: Likewise.
38597         * tests/test-argmatch.c: Likewise.
38598         * tests/test-argv-iter.c: Likewise.
38599         * tests/test-array-mergesort.c: Likewise.
38600         * tests/test-array_list.c: Likewise.
38601         * tests/test-array_oset.c: Likewise.
38602         * tests/test-avltree_list.c: Likewise.
38603         * tests/test-avltree_oset.c: Likewise.
38604         * tests/test-avltreehash_list.c: Likewise.
38605         * tests/test-base64.c: Likewise.
38606         * tests/test-binary-io.c: Likewise.
38607         * tests/test-bitrotate.c: Likewise.
38608         * tests/test-btowc.c: Likewise.
38609         * tests/test-byteswap.c: Likewise.
38610         * tests/test-c-ctype.c: Likewise.
38611         * tests/test-c-stack.c: Likewise.
38612         * tests/test-c-strcasecmp.c: Likewise.
38613         * tests/test-c-strcasestr.c: Likewise.
38614         * tests/test-c-strncasecmp.c: Likewise.
38615         * tests/test-c-strstr.c: Likewise.
38616         * tests/test-canonicalize-lgpl.c: Likewise.
38617         * tests/test-canonicalize.c: Likewise.
38618         * tests/test-carray_list.c: Likewise.
38619         * tests/test-ceilf1.c: Likewise.
38620         * tests/test-ceilf2.c: Likewise.
38621         * tests/test-ceill.c: Likewise.
38622         * tests/test-chown.c: Likewise.
38623         * tests/test-cloexec.c: Likewise.
38624         * tests/test-copy-acl.c: Likewise.
38625         * tests/test-copy-file.c: Likewise.
38626         * tests/test-count-one-bits.c: Likewise.
38627         * tests/test-dprintf-posix.c: Likewise.
38628         * tests/test-dup2.c: Likewise.
38629         * tests/test-dup3.c: Likewise.
38630         * tests/test-duplocale.c: Likewise.
38631         * tests/test-fbufmode.c: Likewise.
38632         * tests/test-fchdir.c: Likewise.
38633         * tests/test-fchownat.c: Likewise.
38634         * tests/test-fcntl-safer.c: Likewise.
38635         * tests/test-fcntl.c: Likewise.
38636         * tests/test-fdopendir.c: Likewise.
38637         * tests/test-fdutimensat.c: Likewise.
38638         * tests/test-fflush2.c: Likewise.
38639         * tests/test-file-has-acl.c: Likewise.
38640         * tests/test-filevercmp.c: Likewise.
38641         * tests/test-flock.c: Likewise.
38642         * tests/test-floorf1.c: Likewise.
38643         * tests/test-floorf2.c: Likewise.
38644         * tests/test-floorl.c: Likewise.
38645         * tests/test-fnmatch.c: Likewise.
38646         * tests/test-fopen.h: Likewise.
38647         * tests/test-fpending.c: Likewise.
38648         * tests/test-fprintf-posix.c: Likewise.
38649         * tests/test-fpurge.c: Likewise.
38650         * tests/test-freadable.c: Likewise.
38651         * tests/test-freadahead.c: Likewise.
38652         * tests/test-freading.c: Likewise.
38653         * tests/test-freadptr.c: Likewise.
38654         * tests/test-freadptr2.c: Likewise.
38655         * tests/test-freadseek.c: Likewise.
38656         * tests/test-freopen.c: Likewise.
38657         * tests/test-frexp.c: Likewise.
38658         * tests/test-frexpl.c: Likewise.
38659         * tests/test-fseek.c: Likewise.
38660         * tests/test-fseeko.c: Likewise.
38661         * tests/test-fstatat.c: Likewise.
38662         * tests/test-fstrcmp.c: Likewise.
38663         * tests/test-fsync.c: Likewise.
38664         * tests/test-ftell.c: Likewise.
38665         * tests/test-ftello.c: Likewise.
38666         * tests/test-func.c: Likewise.
38667         * tests/test-futimens.c: Likewise.
38668         * tests/test-fwritable.c: Likewise.
38669         * tests/test-fwriting.c: Likewise.
38670         * tests/test-getcwd.c: Likewise.
38671         * tests/test-getdate.c: Likewise.
38672         * tests/test-getdelim.c: Likewise.
38673         * tests/test-getdtablesize.c: Likewise.
38674         * tests/test-getgroups.c: Likewise.
38675         * tests/test-getline.c: Likewise.
38676         * tests/test-getndelim2.c: Likewise.
38677         * tests/test-glob.c: Likewise.
38678         * tests/test-hash.c: Likewise.
38679         * tests/test-i-ring.c: Likewise.
38680         * tests/test-iconv-utf.c: Likewise.
38681         * tests/test-iconv.c: Likewise.
38682         * tests/test-idpriv-drop.c: Likewise.
38683         * tests/test-idpriv-droptemp.c: Likewise.
38684         * tests/test-inet_ntop.c: Likewise.
38685         * tests/test-inet_pton.c: Likewise.
38686         * tests/test-isblank.c: Likewise.
38687         * tests/test-isfinite.c: Likewise.
38688         * tests/test-isinf.c: Likewise.
38689         * tests/test-isnan.c: Likewise.
38690         * tests/test-isnand.h: Likewise.
38691         * tests/test-isnanf.h: Likewise.
38692         * tests/test-isnanl.h: Likewise.
38693         * tests/test-lchown.c: Likewise.
38694         * tests/test-ldexpl.c: Likewise.
38695         * tests/test-link.c: Likewise.
38696         * tests/test-linkat.c: Likewise.
38697         * tests/test-linked_list.c: Likewise.
38698         * tests/test-linkedhash_list.c: Likewise.
38699         * tests/test-localename.c: Likewise.
38700         * tests/test-lseek.c: Likewise.
38701         * tests/test-lstat.c: Likewise.
38702         * tests/test-mbmemcasecmp.c: Likewise.
38703         * tests/test-mbmemcasecoll.c: Likewise.
38704         * tests/test-mbrtowc.c: Likewise.
38705         * tests/test-mbscasecmp.c: Likewise.
38706         * tests/test-mbscasestr1.c: Likewise.
38707         * tests/test-mbscasestr2.c: Likewise.
38708         * tests/test-mbscasestr3.c: Likewise.
38709         * tests/test-mbscasestr4.c: Likewise.
38710         * tests/test-mbschr.c: Likewise.
38711         * tests/test-mbscspn.c: Likewise.
38712         * tests/test-mbsinit.c: Likewise.
38713         * tests/test-mbsncasecmp.c: Likewise.
38714         * tests/test-mbsnrtowcs.c: Likewise.
38715         * tests/test-mbspbrk.c: Likewise.
38716         * tests/test-mbspcasecmp.c: Likewise.
38717         * tests/test-mbsrchr.c: Likewise.
38718         * tests/test-mbsrtowcs.c: Likewise.
38719         * tests/test-mbsspn.c: Likewise.
38720         * tests/test-mbsstr1.c: Likewise.
38721         * tests/test-mbsstr2.c: Likewise.
38722         * tests/test-mbsstr3.c: Likewise.
38723         * tests/test-memchr.c: Likewise.
38724         * tests/test-memchr2.c: Likewise.
38725         * tests/test-memcmp.c: Likewise.
38726         * tests/test-memmem.c: Likewise.
38727         * tests/test-memrchr.c: Likewise.
38728         * tests/test-mkdir.c: Likewise.
38729         * tests/test-mkdirat.c: Likewise.
38730         * tests/test-mkfifo.c: Likewise.
38731         * tests/test-mkfifoat.c: Likewise.
38732         * tests/test-mknod.c: Likewise.
38733         * tests/test-nanosleep.c: Likewise.
38734         * tests/test-nl_langinfo.c: Likewise.
38735         * tests/test-obstack-printf.c: Likewise.
38736         * tests/test-open.c: Likewise.
38737         * tests/test-openat.c: Likewise.
38738         * tests/test-pipe-filter-gi1.c: Likewise.
38739         * tests/test-pipe-filter-gi2-main.c: Likewise.
38740         * tests/test-pipe-filter-ii1.c: Likewise.
38741         * tests/test-pipe-filter-ii2-main.c: Likewise.
38742         * tests/test-pipe2.c: Likewise.
38743         * tests/test-popen.h: Likewise.
38744         * tests/test-posixtm.c: Likewise.
38745         * tests/test-pread.c: Likewise.
38746         * tests/test-printf-frexp.c: Likewise.
38747         * tests/test-printf-frexpl.c: Likewise.
38748         * tests/test-printf-posix.c: Likewise.
38749         * tests/test-priv-set.c: Likewise.
38750         * tests/test-quotearg.c: Likewise.
38751         * tests/test-random_r.c: Likewise.
38752         * tests/test-rawmemchr.c: Likewise.
38753         * tests/test-rbtree_list.c: Likewise.
38754         * tests/test-rbtree_oset.c: Likewise.
38755         * tests/test-rbtreehash_list.c: Likewise.
38756         * tests/test-readlink.c: Likewise.
38757         * tests/test-remove.c: Likewise.
38758         * tests/test-rename.c: Likewise.
38759         * tests/test-renameat.c: Likewise.
38760         * tests/test-rmdir.c: Likewise.
38761         * tests/test-round1.c: Likewise.
38762         * tests/test-roundf1.c: Likewise.
38763         * tests/test-roundl.c: Likewise.
38764         * tests/test-safe-alloc.c: Likewise.
38765         * tests/test-sameacls.c: Likewise.
38766         * tests/test-set-mode-acl.c: Likewise.
38767         * tests/test-setenv.c: Likewise.
38768         * tests/test-sigaction.c: Likewise.
38769         * tests/test-signbit.c: Likewise.
38770         * tests/test-sleep.c: Likewise.
38771         * tests/test-snprintf-posix.c: Likewise.
38772         * tests/test-snprintf.c: Likewise.
38773         * tests/test-sprintf-posix.c: Likewise.
38774         * tests/test-stat-time.c: Likewise.
38775         * tests/test-stat.c: Likewise.
38776         * tests/test-strcasestr.c: Likewise.
38777         * tests/test-strchrnul.c: Likewise.
38778         * tests/test-strerror.c: Likewise.
38779         * tests/test-striconv.c: Likewise.
38780         * tests/test-striconveh.c: Likewise.
38781         * tests/test-striconveha.c: Likewise.
38782         * tests/test-strsignal.c: Likewise.
38783         * tests/test-strstr.c: Likewise.
38784         * tests/test-strtod.c: Likewise.
38785         * tests/test-strverscmp.c: Likewise.
38786         * tests/test-symlink.c: Likewise.
38787         * tests/test-symlinkat.c: Likewise.
38788         * tests/test-trunc1.c: Likewise.
38789         * tests/test-trunc2.c: Likewise.
38790         * tests/test-truncf1.c: Likewise.
38791         * tests/test-truncf2.c: Likewise.
38792         * tests/test-truncl.c: Likewise.
38793         * tests/test-uname.c: Likewise.
38794         * tests/test-unlink.c: Likewise.
38795         * tests/test-unlinkat.c: Likewise.
38796         * tests/test-unsetenv.c: Likewise.
38797         * tests/test-usleep.c: Likewise.
38798         * tests/test-utimens.c: Likewise.
38799         * tests/test-utimensat.c: Likewise.
38800         * tests/test-vasnprintf-posix.c: Likewise.
38801         * tests/test-vasnprintf-posix2.c: Likewise.
38802         * tests/test-vasnprintf.c: Likewise.
38803         * tests/test-vasprintf-posix.c: Likewise.
38804         * tests/test-vasprintf.c: Likewise.
38805         * tests/test-vdprintf-posix.c: Likewise.
38806         * tests/test-vfprintf-posix.c: Likewise.
38807         * tests/test-vprintf-posix.c: Likewise.
38808         * tests/test-vsnprintf-posix.c: Likewise.
38809         * tests/test-vsnprintf.c: Likewise.
38810         * tests/test-vsprintf-posix.c: Likewise.
38811         * tests/test-wcrtomb.c: Likewise.
38812         * tests/test-wcsnrtombs.c: Likewise.
38813         * tests/test-wcsrtombs.c: Likewise.
38814         * tests/test-wctype.c: Likewise.
38815         * tests/test-wcwidth.c: Likewise.
38816         * tests/test-xfprintf-posix.c: Likewise.
38817         * tests/test-xmemdup0.c: Likewise.
38818         * tests/test-xprintf-posix.c: Likewise.
38819         * tests/test-xvasprintf.c: Likewise.
38820         * tests/unicase/test-locale-language.c: Likewise.
38821         * tests/unicase/test-mapping-part1.h: Likewise.
38822         * tests/unicase/test-predicate-part1.h: Likewise.
38823         * tests/unicase/test-u8-casecmp.c: Likewise.
38824         * tests/unicase/test-u8-casecoll.c: Likewise.
38825         * tests/unicase/test-u8-casefold.c: Likewise.
38826         * tests/unicase/test-u8-is-cased.c: Likewise.
38827         * tests/unicase/test-u8-is-casefolded.c: Likewise.
38828         * tests/unicase/test-u8-is-lowercase.c: Likewise.
38829         * tests/unicase/test-u8-is-titlecase.c: Likewise.
38830         * tests/unicase/test-u8-is-uppercase.c: Likewise.
38831         * tests/unicase/test-u8-tolower.c: Likewise.
38832         * tests/unicase/test-u8-totitle.c: Likewise.
38833         * tests/unicase/test-u8-toupper.c: Likewise.
38834         * tests/unicase/test-u16-casecmp.c: Likewise.
38835         * tests/unicase/test-u16-casecoll.c: Likewise.
38836         * tests/unicase/test-u16-casefold.c: Likewise.
38837         * tests/unicase/test-u16-is-cased.c: Likewise.
38838         * tests/unicase/test-u16-is-casefolded.c: Likewise.
38839         * tests/unicase/test-u16-is-lowercase.c: Likewise.
38840         * tests/unicase/test-u16-is-titlecase.c: Likewise.
38841         * tests/unicase/test-u16-is-uppercase.c: Likewise.
38842         * tests/unicase/test-u16-tolower.c: Likewise.
38843         * tests/unicase/test-u16-totitle.c: Likewise.
38844         * tests/unicase/test-u16-toupper.c: Likewise.
38845         * tests/unicase/test-u32-casecmp.c: Likewise.
38846         * tests/unicase/test-u32-casecoll.c: Likewise.
38847         * tests/unicase/test-u32-casefold.c: Likewise.
38848         * tests/unicase/test-u32-is-cased.c: Likewise.
38849         * tests/unicase/test-u32-is-casefolded.c: Likewise.
38850         * tests/unicase/test-u32-is-lowercase.c: Likewise.
38851         * tests/unicase/test-u32-is-titlecase.c: Likewise.
38852         * tests/unicase/test-u32-is-uppercase.c: Likewise.
38853         * tests/unicase/test-u32-tolower.c: Likewise.
38854         * tests/unicase/test-u32-totitle.c: Likewise.
38855         * tests/unicase/test-u32-toupper.c: Likewise.
38856         * tests/unicase/test-ulc-casecmp.c: Likewise.
38857         * tests/unicase/test-ulc-casecoll.c: Likewise.
38858         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
38859         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
38860         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
38861         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
38862         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
38863         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
38864         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
38865         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
38866         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
38867         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
38868         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
38869         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
38870         * tests/unictype/test-bidi_byname.c: Likewise.
38871         * tests/unictype/test-bidi_name.c: Likewise.
38872         * tests/unictype/test-bidi_of.c: Likewise.
38873         * tests/unictype/test-bidi_test.c: Likewise.
38874         * tests/unictype/test-block_list.c: Likewise.
38875         * tests/unictype/test-block_of.c: Likewise.
38876         * tests/unictype/test-block_test.c: Likewise.
38877         * tests/unictype/test-categ_and.c: Likewise.
38878         * tests/unictype/test-categ_and_not.c: Likewise.
38879         * tests/unictype/test-categ_byname.c: Likewise.
38880         * tests/unictype/test-categ_name.c: Likewise.
38881         * tests/unictype/test-categ_none.c: Likewise.
38882         * tests/unictype/test-categ_of.c: Likewise.
38883         * tests/unictype/test-categ_or.c: Likewise.
38884         * tests/unictype/test-categ_test_withtable.c: Likewise.
38885         * tests/unictype/test-combining.c: Likewise.
38886         * tests/unictype/test-decdigit.c: Likewise.
38887         * tests/unictype/test-digit.c: Likewise.
38888         * tests/unictype/test-mirror.c: Likewise.
38889         * tests/unictype/test-numeric.c: Likewise.
38890         * tests/unictype/test-pr_byname.c: Likewise.
38891         * tests/unictype/test-pr_test.c: Likewise.
38892         * tests/unictype/test-predicate-part1.h: Likewise.
38893         * tests/unictype/test-scripts.c: Likewise.
38894         * tests/unictype/test-sy_c_ident.c: Likewise.
38895         * tests/unictype/test-sy_java_ident.c: Likewise.
38896         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
38897         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
38898         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
38899         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
38900         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
38901         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
38902         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
38903         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
38904         * tests/uninorm/test-canonical-decomposition.c: Likewise.
38905         * tests/uninorm/test-compat-decomposition.c: Likewise.
38906         * tests/uninorm/test-composition.c: Likewise.
38907         * tests/uninorm/test-decomposing-form.c: Likewise.
38908         * tests/uninorm/test-decomposition.c: Likewise.
38909         * tests/uninorm/test-u8-nfc.c: Likewise.
38910         * tests/uninorm/test-u8-nfd.c: Likewise.
38911         * tests/uninorm/test-u8-nfkc.c: Likewise.
38912         * tests/uninorm/test-u8-nfkd.c: Likewise.
38913         * tests/uninorm/test-u8-normcmp.c: Likewise.
38914         * tests/uninorm/test-u8-normcoll.c: Likewise.
38915         * tests/uninorm/test-u16-nfc.c: Likewise.
38916         * tests/uninorm/test-u16-nfd.c: Likewise.
38917         * tests/uninorm/test-u16-nfkc.c: Likewise.
38918         * tests/uninorm/test-u16-nfkd.c: Likewise.
38919         * tests/uninorm/test-u16-normcmp.c: Likewise.
38920         * tests/uninorm/test-u16-normcoll.c: Likewise.
38921         * tests/uninorm/test-u32-nfc.c: Likewise.
38922         * tests/uninorm/test-u32-nfd.c: Likewise.
38923         * tests/uninorm/test-u32-nfkc.c: Likewise.
38924         * tests/uninorm/test-u32-nfkd.c: Likewise.
38925         * tests/uninorm/test-u32-normalize-big.c: Likewise.
38926         * tests/uninorm/test-u32-normcmp.c: Likewise.
38927         * tests/uninorm/test-u32-normcoll.c: Likewise.
38928         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
38929         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
38930         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
38931         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
38932         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
38933         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
38934         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
38935         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
38936         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
38937         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
38938         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
38939         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
38940         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
38941         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
38942         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
38943         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
38944         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
38945         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
38946         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
38947         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
38948         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
38949         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
38950         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
38951         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
38952         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
38953         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
38954         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
38955         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
38956         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
38957         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
38958         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
38959         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
38960         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
38961         * tests/uniwidth/test-u8-strwidth.c: Likewise.
38962         * tests/uniwidth/test-u8-width.c: Likewise.
38963         * tests/uniwidth/test-u16-strwidth.c: Likewise.
38964         * tests/uniwidth/test-u16-width.c: Likewise.
38965         * tests/uniwidth/test-u32-strwidth.c: Likewise.
38966         * tests/uniwidth/test-u32-width.c: Likewise.
38967         * tests/uniwidth/test-uc_width.c: Likewise.
38968         * tests/uniwidth/test-uc_width2.c: Likewise.
38969         * modules/acl-tests (Files): Add tests/macros.h.
38970         * modules/areadlink-tests (Files): Likewise.
38971         * modules/areadlink-with-size-tests (Files): Likewise.
38972         * modules/areadlinkat-tests (Files): Likewise.
38973         * modules/areadlinkat-with-size-tests (Files): Likewise.
38974         * modules/argmatch-tests (Files): Likewise.
38975         * modules/argv-iter-tests (Files): Likewise.
38976         * modules/array-list-tests (Files): Likewise.
38977         * modules/array-mergesort-tests (Files): Likewise.
38978         * modules/array-oset-tests (Files): Likewise.
38979         * modules/avltree-list-tests (Files): Likewise.
38980         * modules/avltree-oset-tests (Files): Likewise.
38981         * modules/avltreehash-list-tests (Files): Likewise.
38982         * modules/base64-tests (Files): Likewise.
38983         * modules/binary-io-tests (Files): Likewise.
38984         * modules/bitrotate-tests (Files): Likewise.
38985         * modules/btowc-tests (Files): Likewise.
38986         * modules/byteswap-tests (Files): Likewise.
38987         * modules/c-ctype-tests (Files): Likewise.
38988         * modules/c-stack-tests (Files): Likewise.
38989         * modules/c-strcase-tests (Files): Likewise.
38990         * modules/c-strcasestr-tests (Files): Likewise.
38991         * modules/c-strstr-tests (Files): Likewise.
38992         * modules/canonicalize-lgpl-tests (Files): Likewise.
38993         * modules/canonicalize-tests (Files): Likewise.
38994         * modules/carray-list-tests (Files): Likewise.
38995         * modules/ceilf-tests (Files): Likewise.
38996         * modules/ceill-tests (Files): Likewise.
38997         * modules/chown-tests (Files): Likewise.
38998         * modules/cloexec-tests (Files): Likewise.
38999         * modules/copy-file-tests (Files): Likewise.
39000         * modules/count-one-bits-tests (Files): Likewise.
39001         * modules/dprintf-posix-tests (Files): Likewise.
39002         * modules/dup2-tests (Files): Likewise.
39003         * modules/dup3-tests (Files): Likewise.
39004         * modules/duplocale-tests (Files): Likewise.
39005         * modules/fbufmode-tests (Files): Likewise.
39006         * modules/fchdir-tests (Files): Likewise.
39007         * modules/fcntl-safer-tests (Files): Likewise.
39008         * modules/fcntl-tests (Files): Likewise.
39009         * modules/fdopendir-tests (Files): Likewise.
39010         * modules/fdutimensat-tests (Files): Likewise.
39011         * modules/fflush-tests (Files): Likewise.
39012         * modules/filevercmp-tests (Files): Likewise.
39013         * modules/flock-tests (Files): Likewise.
39014         * modules/floorf-tests (Files): Likewise.
39015         * modules/floorl-tests (Files): Likewise.
39016         * modules/fnmatch-tests (Files): Likewise.
39017         * modules/fopen-safer-tests (Files): Likewise.
39018         * modules/fopen-tests (Files): Likewise.
39019         * modules/fpending-tests (Files): Likewise.
39020         * modules/fprintf-posix-tests (Files): Likewise.
39021         * modules/fpurge-tests (Files): Likewise.
39022         * modules/freadable-tests (Files): Likewise.
39023         * modules/freadahead-tests (Files): Likewise.
39024         * modules/freading-tests (Files): Likewise.
39025         * modules/freadptr-tests (Files): Likewise.
39026         * modules/freadseek-tests (Files): Likewise.
39027         * modules/freopen-tests (Files): Likewise.
39028         * modules/frexp-nolibm-tests (Files): Likewise.
39029         * modules/frexp-tests (Files): Likewise.
39030         * modules/frexpl-nolibm-tests (Files): Likewise.
39031         * modules/frexpl-tests (Files): Likewise.
39032         * modules/fseek-tests (Files): Likewise.
39033         * modules/fseeko-tests (Files): Likewise.
39034         * modules/fstrcmp-tests (Files): Likewise.
39035         * modules/fsync-tests (Files): Likewise.
39036         * modules/ftell-tests (Files): Likewise.
39037         * modules/ftello-tests (Files): Likewise.
39038         * modules/func-tests (Files): Likewise.
39039         * modules/futimens-tests (Files): Likewise.
39040         * modules/fwritable-tests (Files): Likewise.
39041         * modules/fwriting-tests (Files): Likewise.
39042         * modules/getcwd-tests (Files): Likewise.
39043         * modules/getdate-tests (Files): Likewise.
39044         * modules/getdelim-tests (Files): Likewise.
39045         * modules/getdtablesize-tests (Files): Likewise.
39046         * modules/getgroups-tests (Files): Likewise.
39047         * modules/getline-tests (Files): Likewise.
39048         * modules/getndelim2-tests (Files): Likewise.
39049         * modules/glob-tests (Files): Likewise.
39050         * modules/hash-tests (Files): Likewise.
39051         * modules/i-ring-tests (Files): Likewise.
39052         * modules/iconv-tests (Files): Likewise.
39053         * modules/iconv_open-utf-tests (Files): Likewise.
39054         * modules/idpriv-drop-tests (Files): Likewise.
39055         * modules/idpriv-droptemp-tests (Files): Likewise.
39056         * modules/inet_ntop-tests (Files): Likewise.
39057         * modules/inet_pton-tests (Files): Likewise.
39058         * modules/isblank-tests (Files): Likewise.
39059         * modules/isfinite-tests (Files): Likewise.
39060         * modules/isinf-tests (Files): Likewise.
39061         * modules/isnan-tests (Files): Likewise.
39062         * modules/isnand-nolibm-tests (Files): Likewise.
39063         * modules/isnand-tests (Files): Likewise.
39064         * modules/isnanf-nolibm-tests (Files): Likewise.
39065         * modules/isnanf-tests (Files): Likewise.
39066         * modules/isnanl-nolibm-tests (Files): Likewise.
39067         * modules/isnanl-tests (Files): Likewise.
39068         * modules/lchown-tests (Files): Likewise.
39069         * modules/ldexpl-tests (Files): Likewise.
39070         * modules/link-tests (Files): Likewise.
39071         * modules/linkat-tests (Files): Likewise.
39072         * modules/linked-list-tests (Files): Likewise.
39073         * modules/linkedhash-list-tests (Files): Likewise.
39074         * modules/localename-tests (Files): Likewise.
39075         * modules/lseek-tests (Files): Likewise.
39076         * modules/lstat-tests (Files): Likewise.
39077         * modules/mbmemcasecmp-tests (Files): Likewise.
39078         * modules/mbmemcasecoll-tests (Files): Likewise.
39079         * modules/mbrtowc-tests (Files): Likewise.
39080         * modules/mbscasecmp-tests (Files): Likewise.
39081         * modules/mbscasestr-tests (Files): Likewise.
39082         * modules/mbschr-tests (Files): Likewise.
39083         * modules/mbscspn-tests (Files): Likewise.
39084         * modules/mbsinit-tests (Files): Likewise.
39085         * modules/mbsncasecmp-tests (Files): Likewise.
39086         * modules/mbsnrtowcs-tests (Files): Likewise.
39087         * modules/mbspbrk-tests (Files): Likewise.
39088         * modules/mbspcasecmp-tests (Files): Likewise.
39089         * modules/mbsrchr-tests (Files): Likewise.
39090         * modules/mbsrtowcs-tests (Files): Likewise.
39091         * modules/mbsspn-tests (Files): Likewise.
39092         * modules/mbsstr-tests (Files): Likewise.
39093         * modules/memchr-tests (Files): Likewise.
39094         * modules/memchr2-tests (Files): Likewise.
39095         * modules/memcmp-tests (Files): Likewise.
39096         * modules/memmem-tests (Files): Likewise.
39097         * modules/memrchr-tests (Files): Likewise.
39098         * modules/mkdir-tests (Files): Likewise.
39099         * modules/mkfifo-tests (Files): Likewise.
39100         * modules/mkfifoat-tests (Files): Likewise.
39101         * modules/mknod-tests (Files): Likewise.
39102         * modules/nanosleep-tests (Files): Likewise.
39103         * modules/nl_langinfo-tests (Files): Likewise.
39104         * modules/obstack-printf-tests (Files): Likewise.
39105         * modules/open-tests (Files): Likewise.
39106         * modules/openat-tests (Files): Likewise.
39107         * modules/pipe-filter-gi-tests (Files): Likewise.
39108         * modules/pipe-filter-ii-tests (Files): Likewise.
39109         * modules/pipe2-tests (Files): Likewise.
39110         * modules/popen-safer-tests (Files): Likewise.
39111         * modules/popen-tests (Files): Likewise.
39112         * modules/posixtm-tests (Files): Likewise.
39113         * modules/pread-tests (Files): Likewise.
39114         * modules/printf-frexp-tests (Files): Likewise.
39115         * modules/printf-frexpl-tests (Files): Likewise.
39116         * modules/printf-posix-tests (Files): Likewise.
39117         * modules/priv-set-tests (Files): Likewise.
39118         * modules/quotearg-tests (Files): Likewise.
39119         * modules/random_r-tests (Files): Likewise.
39120         * modules/rawmemchr-tests (Files): Likewise.
39121         * modules/rbtree-list-tests (Files): Likewise.
39122         * modules/rbtree-oset-tests (Files): Likewise.
39123         * modules/rbtreehash-list-tests (Files): Likewise.
39124         * modules/readlink-tests (Files): Likewise.
39125         * modules/remove-tests (Files): Likewise.
39126         * modules/rename-tests (Files): Likewise.
39127         * modules/renameat-tests (Files): Likewise.
39128         * modules/rmdir-tests (Files): Likewise.
39129         * modules/round-tests (Files): Likewise.
39130         * modules/roundf-tests (Files): Likewise.
39131         * modules/roundl-tests (Files): Likewise.
39132         * modules/safe-alloc-tests (Files): Likewise.
39133         * modules/setenv-tests (Files): Likewise.
39134         * modules/sigaction-tests (Files): Likewise.
39135         * modules/signbit-tests (Files): Likewise.
39136         * modules/sleep-tests (Files): Likewise.
39137         * modules/snprintf-posix-tests (Files): Likewise.
39138         * modules/snprintf-tests (Files): Likewise.
39139         * modules/sprintf-posix-tests (Files): Likewise.
39140         * modules/stat-tests (Files): Likewise.
39141         * modules/stat-time-tests (Files): Likewise.
39142         * modules/strcasestr-tests (Files): Likewise.
39143         * modules/strchrnul-tests (Files): Likewise.
39144         * modules/strerror-tests (Files): Likewise.
39145         * modules/striconv-tests (Files): Likewise.
39146         * modules/striconveh-tests (Files): Likewise.
39147         * modules/striconveha-tests (Files): Likewise.
39148         * modules/strsignal-tests (Files): Likewise.
39149         * modules/strstr-tests (Files): Likewise.
39150         * modules/strtod-tests (Files): Likewise.
39151         * modules/strverscmp-tests (Files): Likewise.
39152         * modules/symlink-tests (Files): Likewise.
39153         * modules/symlinkat-tests (Files): Likewise.
39154         * modules/trunc-tests (Files): Likewise.
39155         * modules/truncf-tests (Files): Likewise.
39156         * modules/truncl-tests (Files): Likewise.
39157         * modules/uname-tests (Files): Likewise.
39158         * modules/unicase/cased-tests (Files): Likewise.
39159         * modules/unicase/ignorable-tests (Files): Likewise.
39160         * modules/unicase/locale-language-tests (Files): Likewise.
39161         * modules/unicase/tolower-tests (Files): Likewise.
39162         * modules/unicase/totitle-tests (Files): Likewise.
39163         * modules/unicase/toupper-tests (Files): Likewise.
39164         * modules/unicase/u8-casecmp-tests (Files): Likewise.
39165         * modules/unicase/u8-casecoll-tests (Files): Likewise.
39166         * modules/unicase/u8-casefold-tests (Files): Likewise.
39167         * modules/unicase/u8-is-cased-tests (Files): Likewise.
39168         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
39169         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
39170         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
39171         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
39172         * modules/unicase/u8-tolower-tests (Files): Likewise.
39173         * modules/unicase/u8-totitle-tests (Files): Likewise.
39174         * modules/unicase/u8-toupper-tests (Files): Likewise.
39175         * modules/unicase/u16-casecmp-tests (Files): Likewise.
39176         * modules/unicase/u16-casecoll-tests (Files): Likewise.
39177         * modules/unicase/u16-casefold-tests (Files): Likewise.
39178         * modules/unicase/u16-is-cased-tests (Files): Likewise.
39179         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
39180         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
39181         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
39182         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
39183         * modules/unicase/u16-tolower-tests (Files): Likewise.
39184         * modules/unicase/u16-totitle-tests (Files): Likewise.
39185         * modules/unicase/u16-toupper-tests (Files): Likewise.
39186         * modules/unicase/u32-casecmp-tests (Files): Likewise.
39187         * modules/unicase/u32-casecoll-tests (Files): Likewise.
39188         * modules/unicase/u32-casefold-tests (Files): Likewise.
39189         * modules/unicase/u32-is-cased-tests (Files): Likewise.
39190         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
39191         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
39192         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
39193         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
39194         * modules/unicase/u32-tolower-tests (Files): Likewise.
39195         * modules/unicase/u32-totitle-tests (Files): Likewise.
39196         * modules/unicase/u32-toupper-tests (Files): Likewise.
39197         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
39198         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
39199         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
39200         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
39201         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
39202         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
39203         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
39204         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
39205         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
39206         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
39207         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
39208         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
39209         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
39210         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
39211         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
39212         * modules/unictype/bidicategory-name-tests (Files): Likewise.
39213         * modules/unictype/bidicategory-of-tests (Files): Likewise.
39214         * modules/unictype/bidicategory-test-tests (Files): Likewise.
39215         * modules/unictype/block-list-tests (Files): Likewise.
39216         * modules/unictype/block-of-tests (Files): Likewise.
39217         * modules/unictype/block-test-tests (Files): Likewise.
39218         * modules/unictype/category-C-tests (Files): Likewise.
39219         * modules/unictype/category-Cc-tests (Files): Likewise.
39220         * modules/unictype/category-Cf-tests (Files): Likewise.
39221         * modules/unictype/category-Cn-tests (Files): Likewise.
39222         * modules/unictype/category-Co-tests (Files): Likewise.
39223         * modules/unictype/category-Cs-tests (Files): Likewise.
39224         * modules/unictype/category-L-tests (Files): Likewise.
39225         * modules/unictype/category-Ll-tests (Files): Likewise.
39226         * modules/unictype/category-Lm-tests (Files): Likewise.
39227         * modules/unictype/category-Lo-tests (Files): Likewise.
39228         * modules/unictype/category-Lt-tests (Files): Likewise.
39229         * modules/unictype/category-Lu-tests (Files): Likewise.
39230         * modules/unictype/category-M-tests (Files): Likewise.
39231         * modules/unictype/category-Mc-tests (Files): Likewise.
39232         * modules/unictype/category-Me-tests (Files): Likewise.
39233         * modules/unictype/category-Mn-tests (Files): Likewise.
39234         * modules/unictype/category-N-tests (Files): Likewise.
39235         * modules/unictype/category-Nd-tests (Files): Likewise.
39236         * modules/unictype/category-Nl-tests (Files): Likewise.
39237         * modules/unictype/category-No-tests (Files): Likewise.
39238         * modules/unictype/category-P-tests (Files): Likewise.
39239         * modules/unictype/category-Pc-tests (Files): Likewise.
39240         * modules/unictype/category-Pd-tests (Files): Likewise.
39241         * modules/unictype/category-Pe-tests (Files): Likewise.
39242         * modules/unictype/category-Pf-tests (Files): Likewise.
39243         * modules/unictype/category-Pi-tests (Files): Likewise.
39244         * modules/unictype/category-Po-tests (Files): Likewise.
39245         * modules/unictype/category-Ps-tests (Files): Likewise.
39246         * modules/unictype/category-S-tests (Files): Likewise.
39247         * modules/unictype/category-Sc-tests (Files): Likewise.
39248         * modules/unictype/category-Sk-tests (Files): Likewise.
39249         * modules/unictype/category-Sm-tests (Files): Likewise.
39250         * modules/unictype/category-So-tests (Files): Likewise.
39251         * modules/unictype/category-Z-tests (Files): Likewise.
39252         * modules/unictype/category-Zl-tests (Files): Likewise.
39253         * modules/unictype/category-Zp-tests (Files): Likewise.
39254         * modules/unictype/category-Zs-tests (Files): Likewise.
39255         * modules/unictype/category-and-not-tests (Files): Likewise.
39256         * modules/unictype/category-and-tests (Files): Likewise.
39257         * modules/unictype/category-byname-tests (Files): Likewise.
39258         * modules/unictype/category-name-tests (Files): Likewise.
39259         * modules/unictype/category-none-tests (Files): Likewise.
39260         * modules/unictype/category-of-tests (Files): Likewise.
39261         * modules/unictype/category-or-tests (Files): Likewise.
39262         * modules/unictype/category-test-withtable-tests (Files): Likewise.
39263         * modules/unictype/combining-class-tests (Files): Likewise.
39264         * modules/unictype/ctype-alnum-tests (Files): Likewise.
39265         * modules/unictype/ctype-alpha-tests (Files): Likewise.
39266         * modules/unictype/ctype-blank-tests (Files): Likewise.
39267         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
39268         * modules/unictype/ctype-digit-tests (Files): Likewise.
39269         * modules/unictype/ctype-graph-tests (Files): Likewise.
39270         * modules/unictype/ctype-lower-tests (Files): Likewise.
39271         * modules/unictype/ctype-print-tests (Files): Likewise.
39272         * modules/unictype/ctype-punct-tests (Files): Likewise.
39273         * modules/unictype/ctype-space-tests (Files): Likewise.
39274         * modules/unictype/ctype-upper-tests (Files): Likewise.
39275         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
39276         * modules/unictype/decimal-digit-tests (Files): Likewise.
39277         * modules/unictype/digit-tests (Files): Likewise.
39278         * modules/unictype/mirror-tests (Files): Likewise.
39279         * modules/unictype/numeric-tests (Files): Likewise.
39280         * modules/unictype/property-alphabetic-tests (Files): Likewise.
39281         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
39282         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
39283         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
39284         Likewise.
39285         * modules/unictype/property-bidi-block-separator-tests (Files):
39286         Likewise.
39287         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
39288         Likewise.
39289         * modules/unictype/property-bidi-common-separator-tests (Files):
39290         Likewise.
39291         * modules/unictype/property-bidi-control-tests (Files): Likewise.
39292         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
39293         Likewise.
39294         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
39295         Likewise.
39296         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
39297         Likewise.
39298         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
39299         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
39300         Likewise.
39301         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
39302         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
39303         Likewise.
39304         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
39305         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
39306         * modules/unictype/property-bidi-segment-separator-tests (Files):
39307         Likewise.
39308         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
39309         * modules/unictype/property-byname-tests (Files): Likewise.
39310         * modules/unictype/property-combining-tests (Files): Likewise.
39311         * modules/unictype/property-composite-tests (Files): Likewise.
39312         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
39313         * modules/unictype/property-dash-tests (Files): Likewise.
39314         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
39315         * modules/unictype/property-default-ignorable-code-point-tests (Files):
39316         Likewise.
39317         * modules/unictype/property-deprecated-tests (Files): Likewise.
39318         * modules/unictype/property-diacritic-tests (Files): Likewise.
39319         * modules/unictype/property-extender-tests (Files): Likewise.
39320         * modules/unictype/property-format-control-tests (Files): Likewise.
39321         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
39322         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
39323         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
39324         * modules/unictype/property-hex-digit-tests (Files): Likewise.
39325         * modules/unictype/property-hyphen-tests (Files): Likewise.
39326         * modules/unictype/property-id-continue-tests (Files): Likewise.
39327         * modules/unictype/property-id-start-tests (Files): Likewise.
39328         * modules/unictype/property-ideographic-tests (Files): Likewise.
39329         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
39330         * modules/unictype/property-ids-trinary-operator-tests (Files):
39331         Likewise.
39332         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
39333         * modules/unictype/property-iso-control-tests (Files): Likewise.
39334         * modules/unictype/property-join-control-tests (Files): Likewise.
39335         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
39336         * modules/unictype/property-line-separator-tests (Files): Likewise.
39337         * modules/unictype/property-logical-order-exception-tests (Files):
39338         Likewise.
39339         * modules/unictype/property-lowercase-tests (Files): Likewise.
39340         * modules/unictype/property-math-tests (Files): Likewise.
39341         * modules/unictype/property-non-break-tests (Files): Likewise.
39342         * modules/unictype/property-not-a-character-tests (Files): Likewise.
39343         * modules/unictype/property-numeric-tests (Files): Likewise.
39344         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
39345         * modules/unictype/property-other-default-ignorable-code-point-tests
39346         (Files): Likewise.
39347         * modules/unictype/property-other-grapheme-extend-tests (Files):
39348         Likewise.
39349         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
39350         * modules/unictype/property-other-id-start-tests (Files): Likewise.
39351         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
39352         * modules/unictype/property-other-math-tests (Files): Likewise.
39353         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
39354         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
39355         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
39356         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
39357         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
39358         * modules/unictype/property-private-use-tests (Files): Likewise.
39359         * modules/unictype/property-punctuation-tests (Files): Likewise.
39360         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
39361         * modules/unictype/property-radical-tests (Files): Likewise.
39362         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
39363         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
39364         * modules/unictype/property-space-tests (Files): Likewise.
39365         * modules/unictype/property-terminal-punctuation-tests (Files):
39366         Likewise.
39367         * modules/unictype/property-test-tests (Files): Likewise.
39368         * modules/unictype/property-titlecase-tests (Files): Likewise.
39369         * modules/unictype/property-unassigned-code-value-tests (Files):
39370         Likewise.
39371         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
39372         * modules/unictype/property-uppercase-tests (Files): Likewise.
39373         * modules/unictype/property-variation-selector-tests (Files): Likewise.
39374         * modules/unictype/property-white-space-tests (Files): Likewise.
39375         * modules/unictype/property-xid-continue-tests (Files): Likewise.
39376         * modules/unictype/property-xid-start-tests (Files): Likewise.
39377         * modules/unictype/property-zero-width-tests (Files): Likewise.
39378         * modules/unictype/scripts-tests (Files): Likewise.
39379         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
39380         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
39381         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
39382         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
39383         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
39384         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
39385         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
39386         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
39387         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
39388         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
39389         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
39390         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
39391         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
39392         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
39393         * modules/uninorm/composition-tests (Files): Likewise.
39394         * modules/uninorm/decomposing-form-tests (Files): Likewise.
39395         * modules/uninorm/decomposition-tests (Files): Likewise.
39396         * modules/uninorm/filter-tests (Files): Likewise.
39397         * modules/uninorm/nfc-tests (Files): Likewise.
39398         * modules/uninorm/nfd-tests (Files): Likewise.
39399         * modules/uninorm/nfkc-tests (Files): Likewise.
39400         * modules/uninorm/nfkd-tests (Files): Likewise.
39401         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
39402         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
39403         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
39404         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
39405         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
39406         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
39407         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
39408         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
39409         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
39410         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
39411         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
39412         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
39413         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
39414         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
39415         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
39416         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
39417         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
39418         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
39419         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
39420         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
39421         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
39422         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
39423         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
39424         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
39425         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
39426         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
39427         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
39428         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
39429         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
39430         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
39431         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
39432         * modules/uniwidth/u8-width-tests (Files): Likewise.
39433         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
39434         * modules/uniwidth/u16-width-tests (Files): Likewise.
39435         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
39436         * modules/uniwidth/u32-width-tests (Files): Likewise.
39437         * modules/uniwidth/width-tests (Files): Likewise.
39438         * modules/unlink-tests (Files): Likewise.
39439         * modules/unsetenv-tests (Files): Likewise.
39440         * modules/usleep-tests (Files): Likewise.
39441         * modules/utimens-tests (Files): Likewise.
39442         * modules/utimensat-tests (Files): Likewise.
39443         * modules/vasnprintf-posix-tests (Files): Likewise.
39444         * modules/vasnprintf-tests (Files): Likewise.
39445         * modules/vasprintf-posix-tests (Files): Likewise.
39446         * modules/vasprintf-tests (Files): Likewise.
39447         * modules/vdprintf-posix-tests (Files): Likewise.
39448         * modules/vfprintf-posix-tests (Files): Likewise.
39449         * modules/vprintf-posix-tests (Files): Likewise.
39450         * modules/vsnprintf-posix-tests (Files): Likewise.
39451         * modules/vsnprintf-tests (Files): Likewise.
39452         * modules/vsprintf-posix-tests (Files): Likewise.
39453         * modules/wcrtomb-tests (Files): Likewise.
39454         * modules/wcsnrtombs-tests (Files): Likewise.
39455         * modules/wcsrtombs-tests (Files): Likewise.
39456         * modules/wctype-tests (Files): Likewise.
39457         * modules/wcwidth-tests (Files): Likewise.
39458         * modules/xmemdup0-tests (Files): Likewise.
39459         * modules/xprintf-posix-tests (Files): Likewise.
39460         * modules/xvasprintf-tests (Files): Likewise.
39461
39462 2009-12-24  Eric Blake  <ebb9@byu.net>
39463
39464         test-nanosleep: fix typo
39465         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
39466         patch.
39467         Reported by Bruno Haible.
39468
39469 2009-12-24  Bruno Haible  <bruno@clisp.org>
39470
39471         Reduce namespace pollution on glibc systems.
39472         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
39473         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
39474         systems.
39475         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
39476         <getopt.h> on glibc systems.
39477         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
39478         systems.
39479         * lib/fcntl.c: Include <unistd.h> here instead.
39480
39481 2009-12-24  Bruno Haible  <bruno@clisp.org>
39482
39483         * lib/stdlib.in.h (includes): Fix typo in today's commit.
39484
39485 2009-12-24  Eric Blake  <ebb9@byu.net>
39486
39487         tests: add signature checks
39488         * tests/signature.h (SIGNATURE_CHECK): New file.
39489         * modules/atexit-tests (Files): Use it.
39490         * modules/btowc-tests (Files): Likewise.
39491         * modules/canonicalize-lgpl-tests (Files): Likewise.
39492         * modules/ceilf-tests (Files): Likewise.
39493         * modules/ceill-tests (Files): Likewise.
39494         * modules/chown-tests (Files): Likewise.
39495         * modules/dprintf-posix-tests (Files): Likewise.
39496         * modules/dup2-tests (Files): Likewise.
39497         * modules/dup3-tests (Files): Likewise.
39498         * modules/duplocale-tests (Files): Likewise.
39499         * modules/fchdir-tests (Files): Likewise.
39500         * modules/fcntl-tests (Files): Likewise.
39501         * modules/fdopendir-tests (Files): Likewise.
39502         * modules/fflush-tests (Files): Likewise.
39503         * modules/flock-tests (Files): Likewise.
39504         * modules/floorf-tests (Files): Likewise.
39505         * modules/floorl-tests (Files): Likewise.
39506         * modules/fnmatch-tests (Files): Likewise.
39507         * modules/fopen-tests (Files): Likewise.
39508         * modules/fprintf-posix-tests (Files): Likewise.
39509         * modules/freopen-tests (Files): Likewise.
39510         * modules/frexp-nolibm-tests (Files): Likewise.
39511         * modules/frexp-tests (Files): Likewise.
39512         * modules/frexpl-nolibm-tests (Files): Likewise.
39513         * modules/frexpl-tests (Files): Likewise.
39514         * modules/fseek-tests (Files): Likewise.
39515         * modules/fseeko-tests (Files): Likewise.
39516         * modules/fsync-tests (Files): Likewise.
39517         * modules/ftell-tests (Files): Likewise.
39518         * modules/ftello-tests (Files): Likewise.
39519         * modules/futimens-tests (Files): Likewise.
39520         * modules/getaddrinfo-tests (Files): Likewise.
39521         * modules/getcwd-tests (Files): Likewise.
39522         * modules/getdelim-tests (Files): Likewise.
39523         * modules/getdtablesize-tests (Files): Likewise.
39524         * modules/getgroups-tests (Files): Likewise.
39525         * modules/gethostname-tests (Files): Likewise.
39526         * modules/getline-tests (Files): Likewise.
39527         * modules/getopt-posix-tests (Files): Likewise.
39528         * modules/gettimeofday-tests (Files): Likewise.
39529         * modules/glob-tests (Files): Likewise.
39530         * modules/iconv-tests (Files): Likewise.
39531         * modules/inet_ntop-tests (Files): Likewise.
39532         * modules/inet_pton-tests (Files): Likewise.
39533         * modules/isblank-tests (Files): Likewise.
39534         * modules/lchown-tests (Files): Likewise.
39535         * modules/ldexpl-tests (Files): Likewise.
39536         * modules/link-tests (Files): Likewise.
39537         * modules/linkat-tests (Files): Likewise.
39538         * modules/lseek-tests (Files): Likewise.
39539         * modules/lstat-tests (Files): Likewise.
39540         * modules/mbrtowc-tests (Files): Likewise.
39541         * modules/mbsinit-tests (Files): Likewise.
39542         * modules/mbsnrtowcs-tests (Files): Likewise.
39543         * modules/mbsrtowcs-tests (Files): Likewise.
39544         * modules/memchr-tests (Files): Likewise.
39545         * modules/memcmp-tests (Files): Likewise.
39546         * modules/memmem-tests (Files): Likewise.
39547         * modules/memrchr-tests (Files): Likewise.
39548         * modules/mkdir-tests (Files): Likewise.
39549         * modules/mkfifo-tests (Files): Likewise.
39550         * modules/mkfifoat-tests (Files): Likewise.
39551         * modules/mknod-tests (Files): Likewise.
39552         * modules/nanosleep-tests (Files): Likewise.
39553         * modules/nl_langinfo-tests (Files): Likewise.
39554         * modules/obstack-printf-tests (Files): Likewise.
39555         * modules/open-tests (Files): Likewise.
39556         * modules/openat-tests (Files): Likewise.
39557         * modules/perror-tests (Files): Likewise.
39558         * modules/pipe2-tests (Files): Likewise.
39559         * modules/poll-tests (Files): Likewise.
39560         * modules/popen-tests (Files): Likewise.
39561         * modules/posix_spawn-tests (Files): Likewise.
39562         * modules/posix_spawnp-tests (Files): Likewise.
39563         * modules/pread-tests (Files): Likewise.
39564         * modules/printf-posix-tests (Files): Likewise.
39565         * modules/pty-tests (Files): Likewise.
39566         * modules/random_r-tests (Files): Likewise.
39567         * modules/rawmemchr-tests (Files): Likewise.
39568         * modules/readlink-tests (Files): Likewise.
39569         * modules/remove-tests (Files): Likewise.
39570         * modules/rename-tests (Files): Likewise.
39571         * modules/renameat-tests (Files): Likewise.
39572         * modules/rmdir-tests (Files): Likewise.
39573         * modules/round-tests (Files): Likewise.
39574         * modules/roundf-tests (Files): Likewise.
39575         * modules/roundl-tests (Files): Likewise.
39576         * modules/select-tests (Files): Likewise.
39577         * modules/setenv-tests (Files): Likewise.
39578         * modules/sigaction-tests (Files): Likewise.
39579         * modules/sleep-tests (Files): Likewise.
39580         * modules/snprintf-posix-tests (Files): Likewise.
39581         * modules/snprintf-tests (Files): Likewise.
39582         * modules/sprintf-posix-tests (Files): Likewise.
39583         * modules/stat-tests (Files): Likewise.
39584         * modules/strcasestr-tests (Files): Likewise.
39585         * modules/strchrnul-tests (Files): Likewise.
39586         * modules/strerror-tests (Files): Likewise.
39587         * modules/strsignal-tests (Files): Likewise.
39588         * modules/strstr-tests (Files): Likewise.
39589         * modules/strtod-tests (Files): Likewise.
39590         * modules/strverscmp-tests (Files): Likewise.
39591         * modules/symlink-tests (Files): Likewise.
39592         * modules/symlinkat-tests (Files): Likewise.
39593         * modules/times-tests (Files): Likewise.
39594         * modules/trunc-tests (Files): Likewise.
39595         * modules/truncf-tests (Files): Likewise.
39596         * modules/truncl-tests (Files): Likewise.
39597         * modules/tsearch-tests (Files): Likewise.
39598         * modules/uname-tests (Files): Likewise.
39599         * modules/unlink-tests (Files): Likewise.
39600         * modules/unsetenv-tests (Files): Likewise.
39601         * modules/usleep-tests (Files): Likewise.
39602         * modules/utimensat-tests (Files): Likewise.
39603         * modules/vasprintf-tests (Files): Likewise.
39604         * modules/vdprintf-posix-tests (Files): Likewise.
39605         * modules/vfprintf-posix-tests (Files): Likewise.
39606         * modules/vprintf-posix-tests (Files): Likewise.
39607         * modules/vsnprintf-posix-tests (Files): Likewise.
39608         * modules/vsnprintf-tests (Files): Likewise.
39609         * modules/vsprintf-posix-tests (Files): Likewise.
39610         * modules/wcrtomb-tests (Files): Likewise.
39611         * modules/wcsnrtombs-tests (Files): Likewise.
39612         * modules/wcsrtombs-tests (Files): Likewise.
39613         * modules/wcwidth-tests (Files): Likewise.
39614         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
39615         * tests/test-isinf.c (isinf): Likewise.
39616         * tests/test-isnan.c (isnan): Likewise.
39617         * tests/test-signbit.c (signbit): Likewise.
39618         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
39619         declaration, either as macro or with correct signature.
39620         (select): Ensure function under test is declared with correct
39621         signature in correct header.
39622         * tests/test-atexit.c (atexit): Likewise.
39623         * tests/test-btowc.c (btowc): Likewise.
39624         * tests/test-canonicalize-lgpl.c (realpath)
39625         (canonicalize_file_name): Likewise.
39626         * tests/test-ceilf1.c (ceilf): Likewise.
39627         * tests/test-ceill.c (ceill): Likewise.
39628         * tests/test-chown.c (chown): Likewise.
39629         * tests/test-dprintf-posix.c (dprintf): Likewise.
39630         * tests/test-dup2.c (dup2): Likewise.
39631         * tests/test-dup3.c (dup3): Likewise.
39632         * tests/test-duplocale.c (duplocale): Likewise.
39633         * tests/test-fchdir.c (fchdir): Likewise.
39634         * tests/test-fchownat.c (fchownat): Likewise.
39635         * tests/test-fcntl.c (fcntl): Likewise.
39636         * tests/test-fdopendir.c (fdopendir): Likewise.
39637         * tests/test-fflush.c (fflush): Likewise.
39638         * tests/test-flock.c (flock): Likewise.
39639         * tests/test-floorf1.c (floorf): Likewise.
39640         * tests/test-floorl.c (floorl): Likewise.
39641         * tests/test-fnmatch.c (fnmatch): Likewise.
39642         * tests/test-fopen.c (fopen): Likewise.
39643         * tests/test-fprintf-posix.c (fprintf): Likewise.
39644         * tests/test-freopen.c (freopen): Likewise.
39645         * tests/test-frexp.c (frexp): Likewise.
39646         * tests/test-frexpl.c (frexpl): Likewise.
39647         * tests/test-fseek.c (fseek): Likewise.
39648         * tests/test-fseeko.c (fseeko): Likewise.
39649         * tests/test-fstatat.c (fstatat): Likewise.
39650         * tests/test-fsync.c (fsync): Likewise.
39651         * tests/test-ftell.c (ftell): Likewise.
39652         * tests/test-ftello.c (ftello): Likewise.
39653         * tests/test-futimens.c (futimens): Likewise.
39654         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
39655         (gai_strerror): Likewise.
39656         * tests/test-getcwd.c (getcwd): Likewise.
39657         * tests/test-getdelim.c (getdelim): Likewise.
39658         * tests/test-getdtablesize.c (getdtablesize): Likewise.
39659         * tests/test-getgroups.c (getgroups): Likewise.
39660         * tests/test-gethostname.c (gethostname): Likewise.
39661         * tests/test-getline.c (getline): Likewise.
39662         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
39663         Likewise.
39664         * tests/test-gettimeofday.c (gettimeofday): Likewise.
39665         * tests/test-glob.c (glob, globfree): Likewise.
39666         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
39667         * tests/test-inet_ntop.c (inet_ntop): Likewise.
39668         * tests/test-inet_pton.c (inet_pton): Likewise.
39669         * tests/test-isblank.c (isblank): Likewise.
39670         * tests/test-lchown.c (lchown): Likewise.
39671         * tests/test-ldexpl.c (ldexpl): Likewise.
39672         * tests/test-link.c (link): Likewise.
39673         * tests/test-linkat.c (linkat): Likewise.
39674         * tests/test-lseek.c (lseek): Likewise.
39675         * tests/test-lstat.c (lstat): Likewise.
39676         * tests/test-mbrtowc.c (mbrtowc): Likewise.
39677         * tests/test-mbsinit.c (mbsinit): Likewise.
39678         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
39679         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
39680         * tests/test-memchr.c (memchr): Likewise.
39681         * tests/test-memcmp.c (memcmp): Likewise.
39682         * tests/test-memmem.c (memmem): Likewise.
39683         * tests/test-memrchr.c (memrchr): Likewise.
39684         * tests/test-mkdir.c (mkdir): Likewise.
39685         * tests/test-mkdirat.c (mkdirat): Likewise.
39686         * tests/test-mkfifo.c (mkfifo): Likewise.
39687         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
39688         * tests/test-mknod.c (mknod): Likewise.
39689         * tests/test-nanosleep.c (nanosleep): Likewise.
39690         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
39691         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
39692         Likewise.
39693         * tests/test-open.c (open): Likewise.
39694         * tests/test-openat.c (openat): Likewise.
39695         * tests/test-perror.c (perror): Likewise.
39696         * tests/test-pipe2.c (pipe2): Likewise.
39697         * tests/test-poll.c (poll): Likewise.
39698         * tests/test-popen.c (popen, pclose): Likewise.
39699         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
39700         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
39701         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
39702         (posix_spawn_file_actions_destroy)
39703         (posix_spawn_file_actions_addclose)
39704         (posix_spawn_file_actions_addopen)
39705         (posix_spawn_file_actions_adddup2): Likewise.
39706         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
39707         * tests/test-pread.c (pread): Likewise.
39708         * tests/test-printf-posix.c (printf): Likewise.
39709         * tests/test-pty.c (openpty, forkpty): Likewise.
39710         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
39711         (random_r): Likewise.
39712         * tests/test-rawmemchr.c (rawmemchr): Likewise.
39713         * tests/test-readlink.c (readlink): Likewise.
39714         * tests/test-remove.c (remove): Likewise.
39715         * tests/test-rename.c (rename): Likewise.
39716         * tests/test-renameat.c (renameat): Likewise.
39717         * tests/test-rmdir.c (rmdir): Likewise.
39718         * tests/test-round1.c (round): Likewise.
39719         * tests/test-roundf1.c (roundf): Likewise.
39720         * tests/test-roundl.c (roundl): Likewise.
39721         * tests/test-setenv.c (setenv): Likewise.
39722         * tests/test-sigaction.c (sigaction): Likewise.
39723         * tests/test-sleep.c (sleep): Likewise.
39724         * tests/test-snprintf.c (snprintf): Likewise.
39725         * tests/test-sprintf-posix.c (sprintf): Likewise.
39726         * tests/test-stat.c (stat): Likewise.
39727         * tests/test-stpncpy.c (stpncpy): Likewise.
39728         * tests/test-strcasestr.c (strcasestr): Likewise.
39729         * tests/test-strchrnul.c (strchrnul): Likewise.
39730         * tests/test-strerror.c (strerror): Likewise.
39731         * tests/test-strsignal.c (strsignal): Likewise.
39732         * tests/test-strstr.c (strstr): Likewise.
39733         * tests/test-strtod.c (strtod): Likewise.
39734         * tests/test-strverscmp.c (strverscmp): Likewise.
39735         * tests/test-symlink.c (symlink): Likewise.
39736         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
39737         * tests/test-times.c (times): Likewise.
39738         * tests/test-trunc1.c (trunc): Likewise.
39739         * tests/test-truncf1.c (truncf): Likewise.
39740         * tests/test-truncl.c (truncl): Likewise.
39741         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
39742         Likewise.
39743         * tests/test-uname.c (uname): Likewise.
39744         * tests/test-unlink.c (unlink): Likewise.
39745         * tests/test-unlinkat.c (unlinkat): Likewise.
39746         * tests/test-unsetenv.c (unsetenv): Likewise.
39747         * tests/test-usleep.c (usleep): Likewise.
39748         * tests/test-utimensat.c (utimensat): Likewise.
39749         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
39750         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
39751         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
39752         * tests/test-vprintf-posix.c (vprintf): Likewise.
39753         * tests/test-vsnprintf.c (vsnprintf): Likewise.
39754         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
39755         * tests/test-wcrtomb.c (wcrtomb): Likewise.
39756         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
39757         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
39758         * tests/test-wcwidth.c (wcwidth): Likewise.
39759
39760         build: pull in conditional headers during GNULIB_POSIXCHECK
39761         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
39762         definitions from any conditionally-included headers.
39763         * lib/stdlib.in.h (includes): Likewise.
39764         * lib/unistd.in.h (includes): Likewise.
39765
39766 2009-12-24  Bruno Haible  <bruno@clisp.org>
39767
39768         * tests/test-argv-iter.c: Include header file being tested immediately
39769         after config.h.
39770         * tests/test-base64.c: Likewise.
39771         * tests/test-flock.c: Likewise.
39772         * tests/test-fsync.c: Likewise.
39773         * tests/test-getdate.c: Likewise.
39774         * tests/test-getndelim2.c: Likewise.
39775         * tests/test-isfinite.c: Likewise.
39776         * tests/test-isinf.c: Likewise.
39777         * tests/test-strerror.c: Likewise.
39778         * tests/test-strsignal.c: Likewise.
39779
39780 2009-12-23  Eric Blake  <ebb9@byu.net>
39781
39782         unistd: work around cygwin bug
39783         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
39784         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
39785         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
39786
39787 2009-12-23  Bruno Haible  <bruno@clisp.org>
39788
39789         localename: More tests.
39790         * tests/test-localename.c (SIZEOF): New macro.
39791         (categories): New variable.
39792         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
39793         test_locale_name_default): Add test w.r.t. thread locale.
39794         (test_locale_name_thread): New function.
39795         (main): Invoke it.
39796
39797         localename: Make aware of thread locale.
39798         * lib/localename.h (gl_locale_name_thread): New declaration.
39799         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
39800         behaviour with respect to thread locale.
39801         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
39802         <langinfo.h>, glthread/lock.h.
39803         (SIZE_BITS): New macro.
39804         (string_hash): New function.
39805         (struct hash_node): New type.
39806         (HASH_TABLE_SIZE): New macro.
39807         (struniq_hash_table, struniq_lock): New variables.
39808         (struniq): New function.
39809         (gl_locale_name_thread): New function.
39810         (gl_locale_name): Invoke it.
39811         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
39812         * modules/localename (Depends-on): Add lock.
39813         Reported by Mike Gran <spk121@yahoo.com>.
39814
39815 2009-12-23  Eric Blake  <ebb9@byu.net>
39816
39817         va-args: new module
39818         * modules/va-args: New file.
39819         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
39820         * MODULES.html.sh (Core language properties): Mention it.
39821
39822         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
39823         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
39824         named alias for __attribute__((__unused__)).
39825         * lib/chown.c: Update client.
39826         * lib/fchmodat.c: Likewise.
39827         * lib/fts.c: Likewise.
39828         * lib/getdate.y: Likewise.
39829         * lib/getgroups.c: Likewise.
39830         * lib/getopt.c: Likewise.
39831         * lib/getugroups.c: Likewise.
39832         * lib/mkdir.c: Likewise.
39833         * lib/mkfifo.c: Likewise.
39834         * lib/mkfifoat.c: Likewise.
39835         * lib/mknod.c: Likewise.
39836         * lib/mknodat.c: Likewise.
39837         * lib/readlink.c: Likewise.
39838         * lib/se-context.in.h: Likewise.
39839         * lib/se-selinux.in.h: Likewise.
39840         * lib/sockets.c: Likewise.
39841         * lib/symlink.c: Likewise.
39842         * lib/symlinkat.c: Likewise.
39843         * lib/unicodeio.c: Likewise.
39844         * lib/unistr.h: Likewise.
39845         * tests/test-areadlink.c: Likewise.
39846         * tests/test-areadlinkat.c: Likewise.
39847         * tests/test-filenamecat.c: Likewise.
39848         * tests/test-fseeko.c: Likewise.
39849         * tests/test-ftello.c: Likewise.
39850         * tests/test-getdate.c: Likewise.
39851         * tests/test-getgroups.c: Likewise.
39852         * tests/test-gethostname.c: Likewise.
39853         * tests/test-quotearg.c: Likewise.
39854         * tests/test-version-etc.c: Likewise.
39855         * tests/test-xalloc-die.c: Likewise.
39856         * tests/test-xfprintf-posix.c: Likewise.
39857         * tests/test-xprintf-posix.c: Likewise.
39858         * tests/test-xvasprintf.c: Likewise.
39859
39860         tests: avoid compiler warnings
39861         * tests/test-fcntl.c (main): Delete unused parameters.
39862         * tests/test-freopen-safer.c (main): Likewise.
39863         * tests/test-xalloc-die.c (main): Mark unused parameters.
39864         * tests/test-fseeko.c (main): Likewise.
39865         * tests/test-ftello.c (main): Likewise.
39866         * tests/test-nanosleep.c (main): Avoid declaration warning.
39867         * tests/test-sleep.c (main): Likewise.
39868         * tests/test-unsetenv.c (main): Silence warning about string
39869         literal.
39870         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
39871
39872 2009-12-23  Bruno Haible  <bruno@clisp.org>
39873
39874         * tests/test-localename.c (test_locale_name): New function, extracted
39875         from main. Also test mixed situations.
39876         (test_locale_name_posix, test_locale_name_environ,
39877         test_locale_name_default): New functions.
39878         (main): Invoke them all.
39879         * modules/localename-tests (configure.ac): Test for newlocale.
39880
39881 2009-12-23  Bruno Haible  <bruno@clisp.org>
39882
39883         unistd: Ensure getcwd gets declared before being overridden.
39884         * lib/unistd.in.h: Conditionally include <io.h>.
39885
39886 2009-12-22  Bruno Haible  <bruno@clisp.org>
39887
39888         wchar: Diagnose broken combination of glibc and gcc versions and flags.
39889         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
39890         (gl_WCHAR_H): Invoke it.
39891         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
39892         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
39893         Reported by Karl Berry <karl@freefriends.org>.
39894
39895 2009-12-22  Eric Blake  <ebb9@byu.net>
39896
39897         math, unistd: avoid redundant includes
39898         * lib/math.in.h (isnan): No need to re-include <math.h>.
39899         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
39900
39901         getsubopt: work around cygwin bug
39902         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
39903         avoid conflicting with system getsubopt.
39904         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
39905         bug.
39906
39907         getopt: synchronize from glibc
39908         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
39909         parameter order.  Adjust all callers.
39910         (_getopt_internal_r, main): Adjust quoting in error messages.
39911         Drop considerations for outdated POSIX 1003.2 error message.
39912         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
39913         callers.
39914         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
39915
39916         test-getopt: test stderr behavior
39917         * modules/getopt-posix-tests (Depends-on): Add dup2.
39918         * tests/test-getopt.c (ASSERT): Avoid stderr.
39919         (main): Move stderr to a temporary file.
39920         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
39921         Instead, add parameter to inform caller if output occurred.
39922         (test_getopt): Adjust all existing tests to expect silence, and
39923         add new tests of leading ":".
39924         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
39925         glibc shortcomings with leading "-:" or "+:" in optstring.
39926         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
39927         Likewise.
39928         * doc/posix-functions/getopt.texi (getopt): Likewise.
39929
39930         test-getopt: enhance test
39931         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
39932         supports optind=0.
39933         * tests/test-getopt.c (OPTIND_MIN): Move...
39934         * tests/test-getopt.h (OPTIND_MIN): ...here.
39935         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
39936         Require that optind=0 works, since modern BSD supports it in
39937         addition to optreset, and since coreutils expects it.
39938         (test_getopt_long_only): New test.
39939         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
39940         glibc shortcomings with 'W;', and enforcement of optind=0.
39941         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
39942         Likewise.
39943
39944 2009-12-21  Bruno Haible  <bruno@clisp.org>
39945
39946         localename: Improvements for MacOS X and Cygwin.
39947         * lib/localename.h (gl_locale_name_environ): New declaration.
39948         * lib/localename.c (gl_locale_name_environ): New function, extracted from
39949         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
39950         (gl_locale_name_posix): Invoke it.
39951         (gl_locale_name_default): Add comments. Use Windows native API also on
39952         Cygwin.
39953
39954 2009-12-21  Bruno Haible  <bruno@clisp.org>
39955
39956         Update list of Win32 locale ids.
39957         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
39958         (LANG_SAMI): Renamed from LANG_SAAMI.
39959         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
39960         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
39961         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
39962         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
39963         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
39964         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
39965         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
39966         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
39967         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
39968         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
39969         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
39970         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
39971         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
39972         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
39973         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
39974         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
39975         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
39976         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
39977         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
39978         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
39979         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
39980         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
39981         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
39982         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
39983         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
39984         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
39985         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
39986         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
39987         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
39988         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
39989         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
39990         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
39991         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
39992         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
39993         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
39994         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
39995         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
39996         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
39997         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
39998         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
39999         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
40000         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
40001         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
40002         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
40003         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
40004         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
40005         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
40006         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
40007         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
40008         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
40009         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
40010         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
40011         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
40012         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
40013         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
40014         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
40015         Add more languages and countries for Sami, Sorbian. Add more countries
40016         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
40017         for Pashto. Change country for Syriac, Tswana.
40018
40019 2009-12-21  Eric Blake  <ebb9@byu.net>
40020
40021         test-utimens: avoid spurious failure
40022         * tests/test-chown.h (nap): Factor...
40023         * tests/nap.h: ...into new file.
40024         * tests/test-lchown.h (nap): Avoid duplication.
40025         * tests/test-utimens-common.h (nap): Use shared implementation,
40026         necessary on file systems with 1-second resolution.
40027         * modules/chown-tests (Files): Include new file.
40028         * modules/fdutimensat-tests (Files): Likewise.
40029         * modules/futimens-tests (Files): Likewise.
40030         * modules/lchown-tests (Files): Likewise.
40031         * modules/openat-tests (Files): Likewise.
40032         * modules/utimens-tests (Files): Likewise.
40033         * modules/utimensat-tests (Files): Likewise.
40034
40035 2009-12-19  Eric Blake  <ebb9@byu.net>
40036
40037         futimens, utimensat: work around Linux bug
40038         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
40039         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
40040         * lib/utimensat.c (rpl_utimensat): Work around it.
40041         * lib/futimens.c (rpl_futimens): Adjust comment.
40042
40043         utimens: work around Linux ctime bug
40044         * lib/utimens.c (detect_ctime_bug): New helper function.
40045         (update_timespec): Differentiate between workaround needed for
40046         this bug vs. what is needed for systems that lack utimensat.
40047         (fdutimens, lutimens): Work around bug.
40048
40049         utimens: check for ctime update
40050         * tests/test-utimens-common.h (check_ctime): Define.
40051         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
40052         * tests/test-futimens.h (test_futimens): Likewise.
40053         * tests/test-lutimens.h (test_lutimens): Likewise.
40054         * doc/posix-functions/futimens.texi (futimens): Document the bug.
40055         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
40056
40057 2009-12-19  Bruno Haible  <bruno@clisp.org>
40058
40059         dprintf-posix: Check against memory leak fixed on 2009-12-15.
40060         * tests/test-dprintf-posix2.sh: New file.
40061         * tests/test-dprintf-posix2.c: New file.
40062         * modules/dprintf-posix-tests (Files): Add them.
40063         (configure.ac): Check for getrlimit and setrlimit.
40064         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
40065
40066 2009-12-19  Bruno Haible  <bruno@clisp.org>
40067
40068         fprintf-posix: Check against memory leak fixed on 2009-12-15.
40069         * tests/test-fprintf-posix3.sh: New file.
40070         * tests/test-fprintf-posix3.c: New file.
40071         * modules/fprintf-posix-tests (Files): Add them.
40072         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
40073
40074 2009-12-19  Eric Blake  <ebb9@byu.net>
40075
40076         dirfd: fix prototype
40077         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
40078         * lib/dirfd.c (dirfd): Likewise.
40079
40080         canonicalize: reduce memory usage
40081         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
40082         allocation to size.
40083         Reported by Solar Designer <solar@openwall.com>.
40084
40085 2009-12-19  Bruno Haible  <bruno@clisp.org>
40086
40087         New module attribute 'Applicability'.
40088         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
40089         * gnulib-tool: New option --extract-applicability.
40090         (func_usage): Document it.
40091         (sed_extract_prog): Recognize it.
40092         (func_get_applicability): New function.
40093         (func_import): Generalize handling of 'link-warning' module.
40094         * modules/link-warning (Applicability): New section.
40095         * modules/arg-nonnull (Applicability): New section.
40096         Repoted by Simon Josefsson <simon@josefsson.org>.
40097
40098 2009-12-19  Bruno Haible  <bruno@clisp.org>
40099
40100         fflush: tweak
40101         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
40102         * lib/fseeko.c (rpl_fseeko): Likewise.
40103
40104 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
40105
40106         * lib/gl_list.h: Fix typo in comment.
40107
40108 2009-12-16  Eric Blake  <ebb9@byu.net>
40109
40110         fcntl: use to simplify other modules
40111         * modules/cloexec (Depends-on): Add fcntl.
40112         * modules/fchdir (Depends-on): Likewise.
40113         * modules/fd-safer-flag (Depends-on): Likewise.
40114         * modules/unistd-safer (Depends-on): Likewise.
40115         * modules/dup3 (configure.ac): Set module indicator.
40116         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
40117         missing.
40118         * lib/fchdir.c (_gl_register_dup): Fix comment.
40119         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
40120         * lib/dup-safer.c (dup_safer): Likewise.
40121         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
40122         * lib/dup3.c (dup3): Likewise.
40123         * tests/test-fchdir.c (main): Enhance test.
40124         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
40125
40126         fcntl: port portions of fcntl to mingw
40127         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
40128         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
40129         replacement for mingw.
40130         * modules/fcntl (Description): Update.
40131         (Depends-on): Add dup2.
40132         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
40133         * modules/fcntl-h (Makefile.am): Substitute it.
40134         * lib/fcntl.in.h (fcntl): Update declaration.
40135         (F_DUPFD, F_GETFD): New macros, when needed.
40136         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
40137         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
40138         * tests/test-fcntl.c (check_flags, main): Enhance test for items
40139         we now guarantee.
40140
40141         fcntl: work around cygwin bug in F_DUPFD
40142         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
40143         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
40144         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
40145         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
40146         * doc/posix-functions/fcntl.texi (fcntl): Document it.
40147
40148         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
40149         * modules/fcntl (Files): List new files.
40150         (configure.ac): Run a test.
40151         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
40152         * lib/fcntl.c (rpl_fcntl): Likewise.
40153         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
40154         (gl_FCNTL_H): Always replace fcntl.h.
40155         * modules/fcntl-h (Makefile.am): Substitute witnesses.
40156         * lib/fcntl.in.h (fcntl): Declare replacement.
40157         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
40158         needed, plus a witness.
40159         * doc/posix-functions/fcntl.texi (fcntl): Document this.
40160         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
40161         * tests/test-fcntl.c: New file.
40162         * modules/fcntl-tests: Likewise.
40163
40164         binary-io: avoid potential compilation warning
40165         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
40166         directives.
40167
40168         fflush: avoid compilation error on NetBSD
40169         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
40170         between off_t and fpos_t, since the latter is sometimes a struct.
40171         * lib/fseeko.c (rpl_fseeko): Likewise.
40172         Reported by Alexander Nasonov <alnsn@yandex.ru>.
40173
40174 2009-12-15  Eric Blake  <ebb9@byu.net>
40175
40176         fcntl-h, stdio, sys_ioctl: fix declarations
40177         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
40178         function must not take arguments.
40179         * lib/sys_ioctl.in.h (ioctl): Likewise.
40180         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
40181         (open): Add a link warning.
40182
40183 2009-12-15  Jim Meyering  <meyering@redhat.com>
40184
40185         areadlink, areadlink-with-size: relax license to LGPLv2+
40186         * modules/areadlink (License): Relax to LGPLv2+.
40187         * modules/areadlink-with-size (License): Likewise.
40188
40189 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
40190             Bruno Haible  <bruno@clisp.org>
40191
40192         *printf: Fix memory leak.
40193         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
40194         * lib/vfprintf.c (vfprintf): Likewise.
40195         * lib/dprintf.c (dprintf): Likewise.
40196         * lib/vdprintf.c (vdprintf): Likewise.
40197
40198 2009-12-14  Eric Blake  <ebb9@byu.net>
40199
40200         accept4: adjust module dependencies
40201         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
40202
40203         utimens: one more try at avoiding compiler warning
40204         * lib/utimens.c (lutimens): Lower scope of result.
40205
40206 2009-12-13  Bruno Haible  <bruno@clisp.org>
40207
40208         Move the malloc checking from module 'list' to new module 'xlist'.
40209         * modules/xlist: New file.
40210         * lib/gl_xlist.h: New file.
40211         * lib/gl_xlist.c: New file.
40212         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
40213         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
40214         gl_list_add_last, gl_list_add_before, gl_list_add_after,
40215         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
40216         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
40217         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
40218         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
40219         gl_sortedlist_nx_add): New declarations.
40220         (struct gl_list_implementation): Rename and change methods accordingly.
40221         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
40222         (gl_list_nx_create): Renamed from gl_list_create.
40223         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
40224         (gl_list_nx_set_at): Renamed from gl_list_set_at.
40225         (gl_list_nx_add_first): Renamed from gl_list_add_first.
40226         (gl_list_nx_add_last): Renamed from gl_list_add_last.
40227         (gl_list_nx_add_before): Renamed from gl_list_add_before.
40228         (gl_list_nx_add_after): Renamed from gl_list_add_after.
40229         (gl_list_nx_add_at): Renamed from gl_list_add_at.
40230         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
40231         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
40232         gl_list_create_empty.
40233         (gl_list_nx_create): Renamed from gl_list_create.
40234         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
40235         (gl_list_nx_set_at): Renamed from gl_list_set_at.
40236         (gl_list_nx_add_first): Renamed from gl_list_add_first.
40237         (gl_list_nx_add_last): Renamed from gl_list_add_last.
40238         (gl_list_nx_add_before): Renamed from gl_list_add_before.
40239         (gl_list_nx_add_after): Renamed from gl_list_add_after.
40240         (gl_list_nx_add_at): Renamed from gl_list_add_at.
40241         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
40242         * lib/gl_array_list.c: Don't include xalloc.h.
40243         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
40244         NULL upon out-of-memory.
40245         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
40246         out-of-memory.
40247         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
40248         Change return type to 'int'.
40249         (gl_array_nx_set_at): Renamed from gl_array_set_at.
40250         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
40251         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
40252         upon out-of-memory.
40253         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
40254         upon out-of-memory.
40255         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
40256         upon out-of-memory.
40257         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
40258         upon out-of-memory.
40259         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
40260         out-of-memory.
40261         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
40262         Update.
40263         (gl_array_list_implementation): Update.
40264         * lib/gl_carray_list.c: Don't include xalloc.h.
40265         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
40266         Return NULL upon out-of-memory.
40267         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
40268         out-of-memory.
40269         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
40270         Change return type to 'int'.
40271         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
40272         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
40273         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
40274         upon out-of-memory.
40275         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
40276         upon out-of-memory.
40277         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
40278         out-of-memory.
40279         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
40280         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
40281         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
40282         Update.
40283         (gl_carray_list_implementation): Update.
40284         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
40285         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
40286         gl_linked_create_empty. Return NULL upon out-of-memory.
40287         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
40288         out-of-memory.
40289         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
40290         Change return type to 'int'. Return -1 upon out-of-memory.
40291         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
40292         out-of-memory.
40293         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
40294         upon out-of-memory.
40295         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
40296         upon out-of-memory.
40297         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
40298         NULL upon out-of-memory.
40299         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
40300         upon out-of-memory.
40301         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
40302         out-of-memory.
40303         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
40304         Update.
40305         * lib/gl_linked_list.c: Don't include xalloc.h.
40306         (gl_linked_list_implementation): Update.
40307         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
40308         (add_to_bucket): Change return type to 'int'.
40309         (gl_linkedhash_list_implementation): Update.
40310         * lib/gl_anytree_list1.h (free_subtree): New function.
40311         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
40312         gl_tree_create_empty. Return NULL upon out-of-memory.
40313         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
40314         Change return type to 'int'. Return -1 upon out-of-memory.
40315         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
40316         out-of-memory.
40317         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
40318         (gl_tree_remove_node): New function, moved here from
40319         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
40320         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
40321         Update.
40322         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
40323         malloc, not xmalloc. Return NULL upon out-of-memory.
40324         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
40325         out-of-memory.
40326         (gl_tree_remove_node_from_tree): New function, extracted from
40327         gl_tree_remove_node.
40328         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
40329         upon out-of-memory.
40330         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
40331         out-of-memory.
40332         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
40333         upon out-of-memory.
40334         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
40335         upon out-of-memory.
40336         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
40337         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
40338         not xmalloc. Return NULL upon out-of-memory.
40339         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
40340         out-of-memory.
40341         (gl_tree_remove_node_from_tree): New function, extracted from
40342         gl_tree_remove_node.
40343         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
40344         upon out-of-memory.
40345         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
40346         out-of-memory.
40347         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
40348         upon out-of-memory.
40349         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
40350         upon out-of-memory.
40351         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
40352         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
40353         gl_anytree_list1.h before gl_anyavltree_list2.h.
40354         (gl_avltree_list_implementation): Update.
40355         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
40356         gl_anytree_list1.h before gl_anyavltree_list2.h.
40357         (gl_rbtree_list_implementation): Update.
40358         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
40359         Change return type to 'int'. Return -1 upon out-of-memory. Use
40360         __builtin_expect.
40361         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
40362         (gl_avltreehash_list_implementation): Update.
40363         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
40364         (gl_rbtreehash_list_implementation): Update.
40365         * modules/array-list (Depends-on): Remove xalloc.
40366         * modules/carray-list (Depends-on): Likewise.
40367         * modules/linked-list (Depends-on): Likewise.
40368         * modules/linkedhash-list (Depends-on): Likewise.
40369         * modules/avltree-list (Depends-on): Likewise.
40370         * modules/rbtree-list (Depends-on): Likewise.
40371         * modules/avltreehash-list (Depends-on): Likewise.
40372         * modules/rbtreehash-list (Depends-on): Likewise.
40373
40374         * modules/xsublist: New file.
40375         * lib/gl_xsublist.h: New file.
40376         * lib/gl_xsublist.c: New file.
40377         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
40378         (gl_sublist_nx_create): New declaration.
40379         * lib/gl_sublist.c: Don't include xalloc.h.
40380         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
40381         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
40382         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
40383         Change return type to 'int'. Return -1 upon out-of-memory.
40384         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
40385         upon out-of-memory.
40386         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
40387         NULL upon out-of-memory.
40388         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
40389         upon out-of-memory.
40390         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
40391         NULL upon out-of-memory.
40392         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
40393         NULL upon out-of-memory.
40394         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
40395         upon out-of-memory.
40396         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
40397         (gl_sublist_list_implementation): Update.
40398         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
40399         upon out-of-memory.
40400         * modules/sublist (Depends-on): Remove xalloc.
40401
40402         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
40403         * tests/test-carray_list.c: Likewise.
40404         * tests/test-linked_list.c: Likewise.
40405         * tests/test-linkedhash_list.c: Likewise.
40406         * tests/test-avltree_list.c: Likewise.
40407         * tests/test-rbtree_list.c: Likewise.
40408         * tests/test-avltreehash_list.c: Likewise.
40409         * tests/test-rbtreehash_list.c: Likewise.
40410         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
40411         * modules/carray-list-tests (Makefile.am): Likewise.
40412         * modules/linked-list-tests (Makefile.am): Likewise.
40413         * modules/linkedhash-list-tests (Makefile.am): Likewise.
40414         * modules/avltree-list-tests (Makefile.am): Likewise.
40415         * modules/rbtree-list-tests (Makefile.am): Likewise.
40416         * modules/avltreehash-list-tests (Makefile.am): Likewise.
40417         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
40418
40419         * NEWS: Mention the changes.
40420
40421         * lib/clean-temp.c: Include gl_xlist.h.
40422         * modules/clean-temp (Depends-on): Add xlist.
40423
40424         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
40425         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
40426
40427         * tests/test-array_oset.c: Include gl_xlist.h.
40428         * modules/array-oset-tests (Depends-on): Add xlist.
40429
40430         Reported by José E. Marchesi <jemarch@gnu.org>.
40431
40432 2009-12-13  Bruno Haible  <bruno@clisp.org>
40433
40434         Move the malloc checking from module 'oset' to new module 'xoset'.
40435         * modules/xoset: New file.
40436         * lib/gl_xoset.h: New file.
40437         * lib/gl_xoset.c: New file.
40438         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
40439         declarations.
40440         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
40441         (struct gl_oset_implementation): Rename and change methods accordingly.
40442         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
40443         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
40444         'int'. Mark as __warn_unused_result__.
40445         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
40446         gl_oset_create_empty.
40447         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
40448         'int'.
40449         * lib/gl_array_oset.c: Don't include xalloc.h.
40450         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
40451         malloc, not xmalloc.
40452         (grow): Change return type to 'int'. Don't call xalloc_die.
40453         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
40454         to 'int'.
40455         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
40456         'int'.
40457         (gl_array_oset_implementation): Update.
40458         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
40459         gl_tree_create_empty.
40460         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
40461         'int'.
40462         * lib/gl_avltree_oset.c: Don't include xalloc.h.
40463         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
40464         xmalloc.
40465         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
40466         not xmalloc.
40467         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
40468         xmalloc.
40469         (gl_avltree_oset_implementation): Update.
40470         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
40471         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
40472         xmalloc.
40473         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
40474         not xmalloc.
40475         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
40476         xmalloc.
40477         (gl_rbtree_oset_implementation): Update.
40478         * modules/array-oset (Depends-on): Remove xalloc.
40479         * modules/avltree-oset (Depends-on): Likewise.
40480         * modules/rbtree-oset (Depends-on): Likewise.
40481         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
40482         * tests/test-avltree_oset.c: Likewise.
40483         * tests/test-rbtree_oset.c: Likewise.
40484         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
40485         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
40486         * modules/rbtree-oset-tests (Makefile.am): Likewise.
40487         * NEWS: Mention the change.
40488
40489 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
40490
40491         maint.mk: allow a project to override release-prep commands
40492         * top/maint.mk (alpha, beta, stable): Move release-preparatory
40493         commands into a new rule.
40494         (release-prep): New rule.
40495         (release-prep-hook): New overridable variable.
40496
40497 2009-12-13  Bruno Haible  <bruno@clisp.org>
40498
40499         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
40500
40501 2009-12-13  Jim Meyering  <meyering@redhat.com>
40502
40503         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
40504         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
40505
40506 2009-12-12  Bruno Haible  <bruno@clisp.org>
40507
40508         duplocale: Tweak.
40509         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
40510
40511 2009-12-12  Karl Berry  <karl@gnu.org>
40512
40513         * config/srclist.txt (strtoll.c): tab changes, no more sync.
40514
40515 2009-12-12  Bruno Haible  <bruno@clisp.org>
40516
40517         * m4/po.m4: Undo incorrect untabification.
40518
40519 2009-12-12  Bruno Haible  <bruno@clisp.org>
40520
40521         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
40522         * modules/c-strtod (Depends-on): Add locale.
40523         * modules/c-strtold (Depends-on): Likewise.
40524
40525 2009-12-12  Bruno Haible  <bruno@clisp.org>
40526
40527         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
40528
40529 2009-12-11  Eric Blake  <ebb9@byu.net>
40530
40531         setenv: relax requirement in light of POSIX ruling
40532         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
40533         not NULL.
40534         * tests/test-setenv.c (main): Relax test.
40535         * tests/test-unsetenv.c (main): Likewise.
40536         * doc/posix-functions/setenv.texi (setenv): Document this.
40537         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
40538
40539 2009-12-11  Bruno Haible  <bruno@clisp.org>
40540
40541         New module 'fd-safer-flag'.
40542         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
40543         * lib/dup-safer.c (dup_safer_flag): Remove function.
40544         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
40545         * lib/fd-safer.c (fd_safer_flag): Remove function.
40546         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
40547         * modules/cloexec (configure.ac): Drop indicator macro.
40548         * modules/fd-safer-flag: New file.
40549         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
40550         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
40551         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
40552
40553 2009-12-11  Bruno Haible  <bruno@clisp.org>
40554
40555         Tests for module 'nl_langinfo'.
40556         * modules/nl_langinfo-tests: New file.
40557         * tests/test-nl_langinfo.sh: New file.
40558         * tests/test-nl_langinfo.c: New file.
40559
40560         New module 'nl_langinfo'.
40561         * lib/nl_langinfo.c: New file.
40562         * m4/nl_langinfo.m4: New file.
40563         * modules/nl_langinfo: New file.
40564         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
40565
40566 2009-12-11  Bruno Haible  <bruno@clisp.org>
40567
40568         Tests for module 'langinfo'.
40569         * modules/langinfo-tests: New file.
40570         * tests/test-langinfo.c: New file.
40571
40572         New module 'langinfo'.
40573         * lib/langinfo.in.h: New file.
40574         * m4/langinfo_h.m4: New file.
40575         * modules/langinfo: New file.
40576         * doc/posix-headers/langinfo.texi: Mention the new module.
40577
40578 2009-12-11  Bruno Haible  <bruno@clisp.org>
40579
40580         * lib/config.charset: Untabify.
40581
40582 2009-12-11  Bruno Haible  <bruno@clisp.org>
40583
40584         * modules/unistd-safer (configure.ac): Drop indicator macro.
40585
40586 2009-12-11  Bruno Haible  <bruno@clisp.org>
40587
40588         Move pipe2-safer code to its own file.
40589         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
40590         * lib/pipe-safer.c (pipe2_safer): Remove function.
40591         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
40592         (Makefile.am): Add it to lib_SOURCES.
40593
40594 2009-12-10  Bruno Haible  <bruno@clisp.org>
40595
40596         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
40597
40598 2009-12-10  Bruno Haible  <bruno@clisp.org>
40599
40600         Declare which arguments expect non-NULL values, for GCC and clang.
40601         * build-aux/arg-nonnull.h: New file.
40602         * modules/arg-nonnull: New file.
40603         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
40604         (inet_ntop, inet_pton): Use it.
40605         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
40606         (closedir, dirfd, opendir, scandir, alphasort): Use it.
40607         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
40608         (open, openat): Use it.
40609         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
40610         (fnmatch): Use it.
40611         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
40612         (getopt, getopt_long, getopt_long_only): Use it.
40613         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
40614         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
40615         Use it.
40616         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
40617         (iconv_open): Use it.
40618         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
40619         (strtoimax, strtoumax): Use it.
40620         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
40621         (duplocale): Use it.
40622         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
40623         (frexp, frexpl): Use it.
40624         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
40625         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
40626         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
40627         (tsearch, tfind, tdelete, twalk): Use it.
40628         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
40629         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
40630         sigpending): Use it.
40631         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
40632         (posix_spawn, posix_spawnp, posix_spawnattr_init,
40633         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
40634         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
40635         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
40636         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
40637         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
40638         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
40639         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
40640         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
40641         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
40642         Use it.
40643         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
40644         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
40645         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
40646         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
40647         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
40648         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
40649         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
40650         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
40651         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
40652         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
40653         strtoull, unsetenv): Use it.
40654         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
40655         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
40656         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
40657         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
40658         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
40659         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
40660         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
40661         (strcasecmp, strncasecmp): Use it.
40662         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
40663         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
40664         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
40665         rpl_setsockopt): Use it.
40666         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
40667         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
40668         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
40669         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
40670         (gettimeofday): Use it.
40671         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
40672         (times): Use it.
40673         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
40674         (uname): Use it.
40675         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
40676         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
40677         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
40678         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
40679         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
40680         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
40681         unlinkat, write): Use it.
40682         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
40683         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
40684         * lib/argv-iter.h: Include arg-nonnull.h.
40685         (_ATTRIBUTE_NONNULL_): Remove macro.
40686         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
40687         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
40688         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
40689         optimization.
40690         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
40691         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
40692         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
40693         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
40694         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
40695         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
40696         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
40697         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
40698         * modules/arpa_inet (Depends-on): Add arg-nonnull.
40699         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
40700         * modules/dirent (Depends-on): Add arg-nonnull.
40701         (Makefile.am): Insert arg-nonnull.h into dirent.h.
40702         * modules/fcntl-h (Depends-on): Add arg-nonnull.
40703         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
40704         * modules/fnmatch (Depends-on): Add arg-nonnull.
40705         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
40706         * modules/getopt-posix (Depends-on): Add arg-nonnull.
40707         (Makefile.am): Insert arg-nonnull.h into getopt.h.
40708         * modules/glob (Depends-on): Add arg-nonnull.
40709         (Makefile.am): Insert arg-nonnull.h into glob.h.
40710         * modules/iconv_open (Depends-on): Add arg-nonnull.
40711         (Makefile.am): Insert arg-nonnull.h into iconv.h.
40712         * modules/inttypes (Depends-on): Add arg-nonnull.
40713         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
40714         * modules/locale (Depends-on): Add arg-nonnull.
40715         (Makefile.am): Insert arg-nonnull.h into locale.h.
40716         * modules/math (Depends-on): Add arg-nonnull.
40717         (Makefile.am): Insert arg-nonnull.h into math.h.
40718         * modules/netdb (Depends-on): Add arg-nonnull.
40719         (Makefile.am): Insert arg-nonnull.h into netdb.h.
40720         * modules/search (Depends-on): Add arg-nonnull.
40721         (Makefile.am): Insert arg-nonnull.h into search.h.
40722         * modules/signal (Depends-on): Add arg-nonnull.
40723         (Makefile.am): Insert arg-nonnull.h into signal.h.
40724         * modules/spawn (Depends-on): Add arg-nonnull.
40725         (Makefile.am): Insert arg-nonnull.h into spawn.h.
40726         * modules/stdio (Depends-on): Add arg-nonnull.
40727         (Makefile.am): Insert arg-nonnull.h into stdio.h.
40728         * modules/stdlib (Depends-on): Add arg-nonnull.
40729         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
40730         * modules/string (Depends-on): Add arg-nonnull.
40731         (Makefile.am): Insert arg-nonnull.h into string.h.
40732         * modules/strings (Depends-on): Add arg-nonnull.
40733         (Makefile.am): Insert arg-nonnull.h into strings.h.
40734         * modules/sys_socket (Depends-on): Add arg-nonnull.
40735         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
40736         * modules/sys_stat (Depends-on): Add arg-nonnull.
40737         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
40738         * modules/sys_time (Depends-on): Add arg-nonnull.
40739         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
40740         * modules/sys_times (Depends-on): Add arg-nonnull.
40741         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
40742         * modules/sys_utsname (Depends-on): Add arg-nonnull.
40743         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
40744         * modules/time (Depends-on): Add arg-nonnull.
40745         (Makefile.am): Insert arg-nonnull.h into time.h.
40746         * modules/unistd (Depends-on): Add arg-nonnull.
40747         (Makefile.am): Insert arg-nonnull.h into unistd.h.
40748         * modules/wchar (Depends-on): Add arg-nonnull.
40749         (Makefile.am): Insert arg-nonnull.h into wchar.h.
40750         * modules/argv-iter (Depends-on): Add arg-nonnull.
40751         * tests/test-canonicalize.c (null_ptr): New function.
40752         (main): Use it.
40753         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
40754         (main): Use it.
40755         * tests/test-memmem.c (null_ptr): New function.
40756         (main): Use it.
40757         Reported by Jim Meyering.
40758
40759 2009-12-10  Bruno Haible  <bruno@clisp.org>
40760
40761         Use spaces for indentation, not tabs.
40762         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
40763         * m4/*.m4: Untabify.
40764         * build-aux/*.h: Untabify.
40765         * tests/**/*.[hc]: Untabify.
40766         * README: New section "Indent with spaces, not TABs", based on
40767         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
40768         * NEWS: Mention the change.
40769
40770 2009-12-10  Bruno Haible  <bruno@clisp.org>
40771
40772         pty test: Fix link error.
40773         * modules/pty-tests (Makefile.am): Add the default LDADD value to
40774         test_pty_LDADD.
40775
40776 2009-12-07  Simon Josefsson  <simon@josefsson.org>
40777
40778         * modules/pty: New file.
40779         * modules/pty-tests: New file.
40780         * m4/pty.m4: New file.
40781         * tests/test-pty.c: New file.
40782         * doc/glibc-headers/pty.texi: Modified.
40783         * doc/glibc-functions/forkpty.texi: Modified.
40784         * doc/glibc-functions/openpty.texi: Modified.
40785
40786 2009-12-10  Bruno Haible  <bruno@clisp.org>
40787
40788         Avoid syntax error in C++ mode.
40789         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
40790
40791 2009-12-10  Bruno Haible  <bruno@clisp.org>
40792
40793         Use sed with option -e.
40794         * gnulib-tool (func_version, func_emit_copyright_notice,
40795         func_emit_initmacro_end, func_import, func_create_testdir): Pass
40796         option -e to sed.
40797         * modules/link-warning (Makefile.am): Likewise.
40798
40799 2009-12-10  Jim Meyering  <meyering@redhat.com>
40800
40801         mgetgroups: do not write bytes beyond end of malloc'd buffer
40802         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
40803         username, we call getgroups with a one-element-shorter buffer,
40804         but still told it the length was original, max_n_groups.
40805
40806 2009-12-09  Eric Blake  <ebb9@byu.net>
40807
40808         cloexec: relax license
40809         * modules/cloexec (Maintainer): Add myself.
40810         (License): Use LGPL, not GPL.
40811
40812         link-warning: optimize generation
40813         * modules/link-warning (Makefile.am): Reduce process usage.
40814
40815 2009-12-09  Bruno Haible  <bruno@clisp.org>
40816
40817         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
40818         workaround was added on 2009-11-17.
40819
40820 2009-12-09  Jim Meyering  <meyering@redhat.com>
40821             Bruno Haible  <bruno@clisp.org>
40822
40823         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
40824         * modules/link-warning (Makefile.am): Make the comment-removing sed
40825         command more robust in the face of bootstrap-prepended comment lines.
40826
40827 2009-12-09  Bruno Haible  <bruno@clisp.org>
40828
40829         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
40830         most one group.
40831
40832 2009-12-09  Simon Josefsson <simon@josefsson.org>
40833             Bruno Haible  <bruno@clisp.org>
40834
40835         * build-aux/link-warning.h: Add copyright notice.
40836         * modules/link-warning (Makefile.am): Generate link-warning.h from
40837         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
40838         * NEWS: Mention change in link-warning module.
40839         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
40840         * modules/dirent (Makefile.am): Add dependency to dirent.h.
40841         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
40842         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
40843         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
40844         * modules/math (Makefile.am): Add dependency to math.h.
40845         * modules/search (Makefile.am): Add dependency to search.h.
40846         * modules/signal (Makefile.am): Add dependency to signal.h.
40847         * modules/spawn (Makefile.am): Add dependency to spawn.h.
40848         * modules/stdio (Makefile.am): Add dependency to stdio.h.
40849         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
40850         * modules/string (Makefile.am): Add dependency to string.h.
40851         * modules/strings (Makefile.am): Add dependency to strings.h.
40852         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
40853         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
40854         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
40855         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
40856         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
40857         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
40858         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
40859         * modules/unistd (Makefile.am): Add dependency to unistd.h.
40860         * modules/wchar (Makefile.am): Add dependency to wchar.h.
40861
40862 2009-12-09  Bruno Haible  <bruno@clisp.org>
40863
40864         fchdir: Optimize away rpl_fstat when possible.
40865         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
40866         REPLACE_OPEN_DIRECTORY.
40867         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
40868
40869 2009-12-09  Bruno Haible  <bruno@clisp.org>
40870
40871         * lib/fchdir.c: Update comment.
40872
40873 2009-12-09  Bruno Haible  <bruno@clisp.org>
40874
40875         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
40876
40877 2009-12-08  Eric Blake  <ebb9@byu.net>
40878
40879         fchdir: avoid memory leak on re-registration.
40880         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
40881
40882 2009-12-08  Jim Meyering  <meyering@redhat.com>
40883
40884         init.sh: avoid Solaris 10 /bin/sh portability problem
40885         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
40886         sourced script:
40887           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
40888           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
40889           bar
40890         tests/init.sh relied on that, accepting a --set-path=DIR argument,
40891         and two tests used that idiom.
40892         * tests/init.sh: Update suggested usage comments.
40893         (path_prepend_): New function, to be used in place
40894         of the --src-path=DIR option.
40895         (setup_): Move PATH-prepending code into path_prepend_.
40896         * tests/test-pread.sh: Adapt to new usage.
40897         * tests/test-xalloc-die.sh: Likewise.
40898
40899 2009-12-08  Simon Josefsson  <simon@josefsson.org>
40900
40901         * doc/gnulib.texi (Glibc pty.h): Add.
40902         * doc/glibc-functions/forkpty.texi: Add.
40903         * doc/glibc-functions/openpty.texi: Add.
40904         Suggested by Bruno Haible.
40905
40906 2009-12-08  Eric Blake  <ebb9@byu.net>
40907
40908         fchdir: fix logic bugs
40909         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
40910         * tests/test-fchdir.c (main): Enhance test.
40911         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
40912         is in use.
40913
40914         dup2: fix logic bugs
40915         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
40916         REPLACE_DUP2 to decide when rpl_dup2 is needed.
40917         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
40918         exists.
40919         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
40920
40921 2009-12-07  Eric Blake  <ebb9@byu.net>
40922
40923         unlink: fix m4 detection
40924         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
40925
40926         unistd-safer: add unit test
40927         * modules/unistd-safer-tests: New file.
40928         * tests/test-dup-safer.c: Likewise.
40929         * tests/test-cloexec.c (setmode): Avoid compiler warning.
40930         * tests/test-dup2.c (setmode): Likewise.
40931         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
40932
40933         cloexec: preserve text vs. binary across dup_cloexec
40934         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
40935         mode.
40936         * modules/dup2-tests (Depends-on): Add binary-io.
40937         * modules/cloexec-tests (Depends-on): Likewise.
40938         * tests/test-dup2.c (setmode, is_mode): New helpers.
40939         (main): Add tests that translation mode is preserved.
40940         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
40941         Reported by Bruno Haible.
40942
40943         mgetgroups: reduce duplicate listings
40944         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
40945         resulting array.
40946         * tests/test-chown.h (test_chown): Simplify client.
40947         * tests/test-lchown.h (test_lchown): Likewise.
40948
40949 2009-12-06  Bruno Haible  <bruno@clisp.org>
40950
40951         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
40952         value.
40953
40954 2009-12-06  Bruno Haible  <bruno@clisp.org>
40955
40956         * lib/progname.c: Include stdio.h, stdlib.h.
40957         (set_program_name): Reject a NULL argument.
40958
40959 2009-12-05  Eric Blake  <ebb9@byu.net>
40960
40961         pipe2-safer: new module
40962         * modules/pipe2-safer: New file.
40963         * lib/unistd-safer.h (pipe2_safer): New prototype.
40964         * lib/unistd--.h (pipe2): New wrapper.
40965         * lib/pipe-safer.c (pipe2_safer): New function.
40966         * modules/pipe (Depends-on): Add pipe2-safer.
40967         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
40968
40969         stdlib-safer: preserve cloexec flag for mkostemp[s]
40970         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
40971         fd_safer_flag.
40972
40973         unistd-safer: allow preservation of cloexec status via flag
40974         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
40975         prototypes.
40976         * lib/dup-safer.c (dup_safer_flag): New function.
40977         * lib/fd-safer.c (fd_safer_flag): Likewise.
40978         * modules/cloexec (configure.ac): Set witness.
40979
40980         test-dup2: enhance test
40981         * modules/dup2-tests (Depends-on): Add cloexec.
40982         * tests/test-dup2.c (main): Enhance test.
40983
40984         cloexec: add dup_cloexec
40985         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
40986         header and comments.
40987         * lib/cloexec.c (set_cloexec_flag): Add comments.
40988         (dup_cloexec): New function, with mingw implementation borrowed
40989         from...
40990         * lib/w32spawn.h (dup_noinherit): ...here.
40991         * modules/execute (Depends-on): Add cloexec.
40992         * modules/pipe (Depends-on): Likewise.
40993         * modules/cloexec (Depends-on): Add dup2.
40994         * modules/cloexec-tests (Files): New file.
40995         * tests/test-cloexec.c: Likewise.
40996
40997         test-xalloc-die: fix test for mingw
40998         * modules/xalloc-die-tests (Files): Add tests/init.sh.
40999         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
41000         directory and .exe suffix off argv[0] output.
41001
41002         test-fseeko: fix test for mingw
41003         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
41004         than undefining fseek, so test will pass on mingw.
41005
41006 2009-12-05  Bruno Haible  <bruno@clisp.org>
41007
41008         * lib/progname.h (set_program_name): Clarify specification.
41009         * lib/progname.c (set_program_name): Likewise.
41010         Reported by Jim Meyering.
41011
41012 2009-12-05  Jim Meyering  <meyering@redhat.com>
41013
41014         maint.mk: backslash-escape parens in default regexp
41015         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
41016         backslash-escape the literal parentheses.
41017
41018         maint.mk: news-date-check: use grep -E
41019         * top/maint.mk (today): Define a Make variable, not a...
41020         (news-date-check): ...shell variable.
41021         (news-date-regexp): Use the Make variable.
41022         Use grep's -E option.  Change the failing diagnostic to mention
41023         the variable, $(news-date-regexp).
41024
41025 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
41026
41027         maintainer-makefile: allow customization of NEWS entry format
41028         * top/maint.mk (news-date-regexp): New overridable variable.
41029         (news-date-check): Use it.
41030
41031 2009-12-04  Eric Blake  <ebb9@byu.net>
41032
41033         mgetgroups: add xgetgroups, and avoid ENOSYS failures
41034         * lib/mgetgroups.h (xgetgroups): New prototype.
41035         * lib/mgetgroups.c (xgetgroups): New wrapper.
41036         (mgetgroups): Handle ENOSYS.
41037         * modules/mgetgroups (Depends-on): Add realloc.
41038         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
41039
41040         mgetgroups: avoid argument promotion issues with -1
41041         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
41042         for invalid gid_t.
41043         * tests/test-chown.h (getegid, test_chown): Likewise.
41044         * tests/test-lchown.h (getegid, test_lchown): Likewise.
41045
41046 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
41047
41048         exclude: Fix header file problems.
41049         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
41050
41051 2009-12-01  Jim Meyering  <meyering@redhat.com>
41052
41053         fts: fts_open: do not let an empty string cause immediate failure
41054         This is required in support of GNU rm, for which the command
41055         "rm A '' B" must process and remove both A and B, in spite of
41056         the empty string argument.
41057         * lib/fts.c (fts_open): Do not let the presence of an empty string
41058         cause fts_open to fail immediately.  Most fts-using tools must be
41059         able to process all arguments, in order, and can be expected to
41060         diagnose such arguments themselves.
41061
41062 2009-11-30  Eric Blake  <ebb9@byu.net>
41063
41064         utimens: fix compilation error
41065         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
41066         Declare variable at right scope.
41067
41068 2009-11-29  Jim Meyering  <meyering@redhat.com>
41069
41070         bootstrap: handle perl-5.11's changed --version output
41071         * build-aux/bootstrap (get_version): Handle perl separately,
41072         since perl-5.11's --version output is different.
41073
41074 2009-11-28  Jim Meyering  <meyering@redhat.com>
41075
41076         userspec: depend on the inttostr module, too
41077         * modules/userspec (Depends-on): Add inttostr.
41078
41079         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
41080         * lib/userspec.c (parse_with_separator): Do not accept a user ID
41081         number of MAXUID when it evaluates to (uid_t) -1.
41082         Likewise for group ID.  Reported by Matt McCutchen in
41083         <http://savannah.gnu.org/bugs/?28113>
41084
41085         userspec: reformat to use spaces, not TABs
41086         * lib/userspec.c: Expand TABs to spaces.
41087         Add Emacs' "indent-tabs-mode: nil" hint.
41088
41089 2009-11-27  Eric Blake  <ebb9@byu.net>
41090
41091         getopt-gnu: flush out another BSD bug
41092         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
41093         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
41094         flush out BSD bug.
41095         * tests/test-getopt.h (test_getopt): End lists with NULL.
41096         * tests/test-getopt_long.h (test_getopt_long): Likewise.
41097         (test_getopt_long_posix): Enhance test.
41098         * modules/getopt-posix-tests (Depends-on): Add stdbool.
41099         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
41100         getopt-gnu.
41101         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
41102         Likewise.
41103
41104 2009-11-27  Simon Josefsson  <simon@josefsson.org>
41105
41106         * modules/idpriv-droptemp-tests (Notice): Fix text.
41107
41108 2009-11-27  Jim Meyering  <meyering@redhat.com>
41109
41110         test-xalloc-die: avoid spurious failure due to libtool argv difference
41111         In a libtool-enabled project, this test would fail due to a difference
41112         in the emitted program name, e.g.,
41113         -test-xalloc-die: memory exhausted
41114         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
41115         Use program to avoid that.
41116         * modules/xalloc-die-tests (Depends-on): Add progname.
41117         * tests/test-xalloc-die.c: Include progname.h".
41118         (program_name): Remove decl.
41119         (main): Call set_program_name.
41120         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
41121
41122 2009-11-26  Richard Jones  <rjones@redhat.com>
41123
41124         w32sock: leave win32 error in place.
41125         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
41126
41127 2009-11-26  Eric Blake  <ebb9@byu.net>
41128
41129         init.sh: suggest to use skip_ and fail_ functions in comments
41130         * tests/init.sh: Add a sentence.
41131
41132 2009-11-25  Bruno Haible  <bruno@clisp.org>
41133
41134         init.sh: add documentation in comments
41135         * tests/init.sh: Add some developer and user documentation.
41136
41137 2009-11-26  Jim Meyering  <meyering@redhat.com>
41138
41139         init.sh: accommodate even those who specify bogus srcdir manually
41140         * tests/init.sh: Normally, srcdir is guaranteed by automake and
41141         configure-time tests to be sanitized, so that there is no need to
41142         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
41143         (with no double quotes) suffices.  However, since tests may be
41144         invoked manually, and since you may explicitly set srcdir to the
41145         name of a directory containing spaces, do quote its uses here.
41146         * tests/test-pread.sh: Likewise.
41147         Suggested by Bruno Haible.
41148
41149         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
41150         * tests/test-pread.sh: Write no data into the pipe, because
41151         test-pread actually reads none.  This avoids a diagnostic,
41152         "bash: echo: write error: Broken pipe", that arises in the unusual
41153         event something is ignoring SIGPIPE, and might be interpreted
41154         as some sort of failure.  Reported by Bruno Haible.
41155
41156 2009-11-25  Jim Meyering  <meyering@redhat.com>
41157
41158         test-pread: cover failure with ESPIPE and EINVAL
41159         * tests/test-pread.c (main): Test for failure, too.
41160         * tests/test-pread.sh: Invoke with stdin on a pipe.
41161         Suggested by Eric Blake.
41162
41163         pread: improvement and fix
41164         * modules/pread (Depends-on): Depend on lseek, for portability to
41165         e.g., mingw.  Suggested by Eric Blake.
41166         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
41167
41168         unistd.in.h: correct declaration of pread
41169         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
41170         Reported by Richard W.M. Jones.
41171
41172         test-pread.sh: distribute the test script
41173         * modules/pread-tests (Files): Include test-pread.sh.
41174
41175         test-pread.sh: clean up
41176         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
41177         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
41178         That is unnecessary, since it's always ".".
41179         Suggestion from Eric Blake.
41180
41181         test-pread.sh: make executable
41182         * tests/test-pread.sh: Set executable bit.
41183         Reported by Eric Blake.
41184
41185         correct typo in test-pread.sh
41186         * tests/test-pread.sh: Add #! line.
41187
41188         test pread
41189         * tests/test-pread.c: New file.
41190         * tests/test-pread.sh: Likewise.
41191         * modules/pread-tests: Likewise.
41192
41193         pread: new module
41194         * modules/pread: New file.
41195         * lib/unistd.in.h (pread): Define/declare.
41196         * lib/pread.c (pread): New file.
41197         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
41198         * modules/unistd (Makefile.am): Substitute witnesses.
41199         * doc/posix-functions/pread.texi (pread): Update.
41200         * MODULES.html.sh: Add pread.
41201
41202 2009-11-25  Jim Meyering  <meyering@redhat.com>
41203
41204         tests/init.sh: new file to be used via most *.sh tests
41205         * tests/init.sh: New file.
41206
41207 2009-11-25  Eric Blake  <ebb9@byu.net>
41208
41209         utimens: work around older Linux failure with symlinks
41210         * lib/utimens.c (lutimensat_works_really): New variable.
41211         (fdutimens, lutimens): Use it to manage kernels that support
41212         nanosecond times on files, but not on symlinks.
41213         Reported by OndÅ™ej Vašík.
41214
41215         utimes: fix configure grammar
41216         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
41217
41218 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
41219
41220         regex: Fix fastmap for multibyte character ranges.
41221         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
41222         characters when a multibyte character range is included.
41223
41224 2009-11-22  Andy Wingo  <wingo@pobox.com>
41225
41226         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
41227         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
41228
41229 2009-11-24  Bruno Haible  <bruno@clisp.org>
41230
41231         doc: Most *_l functions exist in MacOS X 10.5.
41232         * doc/posix-functions/duplocale.texi: Update platforms list.
41233         * doc/posix-functions/freelocale.texi: Likewise.
41234         * doc/posix-functions/newlocale.texi: Likewise.
41235         * doc/posix-functions/uselocale.texi: Likewise.
41236         * doc/posix-functions/isalnum_l.texi: Likewise.
41237         * doc/posix-functions/isalpha_l.texi: Likewise.
41238         * doc/posix-functions/isblank_l.texi: Likewise.
41239         * doc/posix-functions/iscntrl_l.texi: Likewise.
41240         * doc/posix-functions/isdigit_l.texi: Likewise.
41241         * doc/posix-functions/isgraph_l.texi: Likewise.
41242         * doc/posix-functions/islower_l.texi: Likewise.
41243         * doc/posix-functions/isprint_l.texi: Likewise.
41244         * doc/posix-functions/ispunct_l.texi: Likewise.
41245         * doc/posix-functions/isspace_l.texi: Likewise.
41246         * doc/posix-functions/isupper_l.texi: Likewise.
41247         * doc/posix-functions/iswalnum_l.texi: Likewise.
41248         * doc/posix-functions/iswalpha_l.texi: Likewise.
41249         * doc/posix-functions/iswblank_l.texi: Likewise.
41250         * doc/posix-functions/iswcntrl_l.texi: Likewise.
41251         * doc/posix-functions/iswctype_l.texi: Likewise.
41252         * doc/posix-functions/iswdigit_l.texi: Likewise.
41253         * doc/posix-functions/iswgraph_l.texi: Likewise.
41254         * doc/posix-functions/iswlower_l.texi: Likewise.
41255         * doc/posix-functions/iswprint_l.texi: Likewise.
41256         * doc/posix-functions/iswpunct_l.texi: Likewise.
41257         * doc/posix-functions/iswspace_l.texi: Likewise.
41258         * doc/posix-functions/iswupper_l.texi: Likewise.
41259         * doc/posix-functions/iswxdigit_l.texi: Likewise.
41260         * doc/posix-functions/isxdigit_l.texi: Likewise.
41261         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
41262         * doc/posix-functions/strcasecmp_l.texi: Likewise.
41263         * doc/posix-functions/strcoll_l.texi: Likewise.
41264         * doc/posix-functions/strfmon_l.texi: Likewise.
41265         * doc/posix-functions/strftime_l.texi: Likewise.
41266         * doc/posix-functions/strncasecmp_l.texi: Likewise.
41267         * doc/posix-functions/strxfrm_l.texi: Likewise.
41268         * doc/posix-functions/tolower_l.texi: Likewise.
41269         * doc/posix-functions/toupper_l.texi: Likewise.
41270         * doc/posix-functions/towctrans_l.texi: Likewise.
41271         * doc/posix-functions/towlower_l.texi: Likewise.
41272         * doc/posix-functions/towupper_l.texi: Likewise.
41273         * doc/posix-functions/wcscoll_l.texi: Likewise.
41274         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
41275         * doc/posix-functions/wctrans_l.texi: Likewise.
41276         * doc/posix-functions/wctype_l.texi: Likewise.
41277         * doc/glibc-functions/strptime_l.texi: Likewise.
41278         * doc/glibc-functions/strtod_l.texi: Likewise.
41279         * doc/glibc-functions/strtof_l.texi: Likewise.
41280         * doc/glibc-functions/strtol_l.texi: Likewise.
41281         * doc/glibc-functions/strtold_l.texi: Likewise.
41282         * doc/glibc-functions/strtoll_l.texi: Likewise.
41283         * doc/glibc-functions/strtoul_l.texi: Likewise.
41284         * doc/glibc-functions/strtoull_l.texi: Likewise.
41285         * doc/glibc-functions/wcsftime_l.texi: Likewise.
41286         * doc/glibc-functions/wcstod_l.texi: Likewise.
41287         * doc/glibc-functions/wcstof_l.texi: Likewise.
41288         * doc/glibc-functions/wcstol_l.texi: Likewise.
41289         * doc/glibc-functions/wcstold_l.texi: Likewise.
41290         * doc/glibc-functions/wcstoll_l.texi: Likewise.
41291         * doc/glibc-functions/wcstoul_l.texi: Likewise.
41292         * doc/glibc-functions/wcstoull_l.texi: Likewise.
41293
41294 2009-11-24  Bruno Haible  <bruno@clisp.org>
41295
41296         duplocale: Fix logic bug.
41297         * lib/duplocale.c: Don't include <langinfo.h>.
41298         (_NL_LOCALE_NAME): Remove macro.
41299         (rpl_duplocale): Use setlocale instead of nl_langinfo.
41300         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
41301
41302 2009-11-23  Jim Meyering  <meyering@redhat.com>
41303
41304         test-update-copyright: don't hard-code /usr/bin/perl
41305         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
41306         perl to print the current year.  Gilles Espinasse reported that
41307         the replaced use of perl was hard-coded as /usr/bin/perl.
41308
41309 2009-11-23  Bruno Haible  <bruno@clisp.org>
41310
41311         duplocale: Add support for glibc 2.3.x.
41312         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
41313
41314 2009-11-22  Bruno Haible  <bruno@clisp.org>
41315
41316         vasnprintf: Tiny optimization.
41317         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
41318         MacOS X.
41319
41320 2009-11-22  Bruno Haible  <bruno@clisp.org>
41321
41322         Tests for module 'duplocale'.
41323         * modules/duplocale-tests: New file.
41324         * tests/test-duplocale.c: New file.
41325
41326         New module 'duplocale'.
41327         * m4/duplocale.m4: New file.
41328         * lib/locale.in.h (duplocale): New declaration.
41329         * lib/duplocale.c: New file.
41330         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
41331         gl_LOCALE_H_DEFAULTS): New macros.
41332         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
41333         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
41334         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
41335         REPLACE_DUPLOCALE.
41336         * modules/duplocale: New file.
41337         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
41338
41339 2009-11-22  Bruno Haible  <bruno@clisp.org>
41340
41341         * modules/locale-tests (configure.ac): Test for newlocale function.
41342         * tests/test-locale.c: When the system has extended locale functions,
41343         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
41344
41345         locale: Make locale_t available when possible.
41346         * lib/locale.in.h: Include <xlocale.h> when it exists.
41347         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
41348         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
41349         * modules/locale (Depends-on): Add extensions.
41350         (Makefile.am): Also substitute HAVE_XLOCALE_H.
41351         * doc/posix-headers/locale.texi: Document the problem with locale_t.
41352
41353 2009-11-22  Bruno Haible  <bruno@clisp.org>
41354
41355         Add comments.
41356         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
41357         invocation.
41358         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
41359         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
41360         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
41361
41362 2009-11-22  Bruno Haible  <bruno@clisp.org>
41363
41364         error: account for the possibility of freopen (stdout).
41365         * lib/error.c: Include <unistd.h>.
41366         (flush_stdout): New function, extracted from error and error_at_line.
41367         Determine stdout's fd dynamically.
41368         (error, error_at_line): Invoke flush_stdout.
41369         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
41370         * modules/error (Depends-on): Add unistd.
41371
41372 2009-11-22  Bruno Haible  <bruno@clisp.org>
41373
41374         diffseq: Add comment.
41375         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
41376
41377 2009-11-22  Jim Meyering  <meyering@redhat.com>
41378
41379         c-stack: avoid defining an unused static function
41380         * lib/c-stack.c (find_stack_direction): Do not define this function
41381         when it will not be used.
41382
41383         diffseq: avoid spurious gcc warnings
41384         * lib/diffseq.h (IF_LINT2): Define.
41385         (compareseq): Use it to initialize two members of "part".
41386         This avoids two used-uninitialized warnings.
41387
41388 2009-11-21  Jim Meyering  <meyering@redhat.com>
41389
41390         c-stack: avoid "ignoring return value of `write'" warning
41391         * lib/c-stack.c: Include "ignore-value.h".
41392         (die): Explicitly ignore each write return value.
41393         * modules/c-stack (Depends-on): Add ignore-value.
41394
41395 2009-11-21  Bruno Haible  <bruno@clisp.org>
41396
41397         diffseq: reduce scope of variable 'best'.
41398         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
41399         variable, earlier used for two different purposes.
41400
41401 2009-11-21  Jim Meyering  <meyering@redhat.com>
41402
41403         diffseq: remove useless assignment to "best"
41404         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
41405         assignment.  At that point "best" is already guaranteed to be zero.
41406
41407 2009-11-20  Eric Blake  <ebb9@byu.net>
41408
41409         build: mention ftp redirector in release announcements
41410         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
41411         values that used to come from cfg.mk; mention FTP redirect URL.
41412         * build-aux/announce-gen: Mention the mirror list.
41413         Suggested by Karl Berry.
41414
41415         nanosleep: improve port to mingw
41416         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
41417         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
41418         LIB_NANOSLEEP, but only when needed.
41419         * modules/select (Link): Document LIBSOCKET.
41420         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
41421         enough.
41422
41423         nanosleep: work around cygwin bug
41424         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
41425         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
41426         bug.
41427         (getnow): Delete, not needed.
41428         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
41429         LIB_CLOCK_GETTIME.
41430         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
41431         clock-time, gettime.
41432         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
41433         bug.
41434         * modules/nanosleep-tests: New test.
41435         * tests/test-nanosleep.c: New file.
41436
41437         sleep: work around cygwin bug
41438         * lib/sleep.c (rpl_sleep): Work around the bug.
41439         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
41440         (gl_PREREQ_SLEEP): Delete unused macro.
41441         * modules/sleep (Depends-on): Add verify.
41442         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
41443         * modules/unistd (Makefile.am): Substitute witness.
41444         * lib/unistd.in.h (sleep): Update prototype.
41445         * doc/posix-functions/sleep.texi (sleep): Document the bug.
41446         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
41447         * modules/sleep-tests (Depends-on): Check for alarm.
41448
41449 2009-11-20  Jim Meyering  <meyering@redhat.com>
41450
41451         maint.mk: improve sc_prohibit_magic_number_exit
41452         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
41453         so it does not match uses like System.exit(1).
41454         Add comments showing how to correct all offenders.
41455
41456 2009-11-19  Eric Blake  <ebb9@byu.net>
41457
41458         xalloc-die-tests: add missing library
41459         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
41460
41461         test-xvasprintf: silence compiler warnings
41462         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
41463         empty string from gcc.
41464
41465 2009-11-19  Jim Meyering  <meyering@redhat.com>
41466
41467         xfreopen: new module, from coreutils
41468         * modules/xfreopen: New module.
41469         * lib/xfreopen.c: New file.
41470         * lib/xfreopen.h: New file.
41471         * MODULES.html.sh (File stream based Input/Output"): Add it.
41472
41473 2009-11-19  Eric Blake  <ebb9@byu.net>
41474
41475         manywarnings: depend on warnings
41476         * modules/manywarnings (Depends-on): Add warnings.
41477
41478         build: avoid compiler warnings
41479         * lib/select.c (rpl_select): Delete unused variable.
41480         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
41481
41482 2009-11-18  Eric Blake  <ebb9@byu.net>
41483
41484         tests: avoid false negative with --with-packager
41485         * tests/test-version-etc.sh: Discard packager information.
41486         * tests/test-argp-version-etc-1.sh: Likewise.
41487         Reported by Mike Frysinger.
41488
41489         utimens: fix regression on Solaris
41490         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
41491         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
41492         can only change fd timestamps via futimesat.  Instead, use an
41493         additional witness macro to avoid BSD bug.
41494         Reported by Jim Meyering.
41495
41496 2009-11-17  Eric Blake  <ebb9@byu.net>
41497
41498         usleep: use it to simplify tests
41499         * modules/stat-time-tests (Depends-on): Add usleep.
41500         (configure.ac): Drop usleep check.
41501         * modules/chown-tests (Depends-on, configure.ac): Likewise.
41502         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
41503         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
41504         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
41505         * modules/openat-tests (Depends-on, configure.ac): Likewise.
41506         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
41507         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
41508         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
41509         Likewise.
41510         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
41511         * tests/test-lchown.h (nap): Likewise.
41512         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
41513         * tests/test-stat-time.c (nap): Likewise.
41514         * tests/test-utimens-common.h (nap): Update comments.
41515
41516         usleep: new module
41517         * modules/usleep: New file.
41518         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
41519         * lib/usleep.c (usleep): Likewise.
41520         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
41521         * modules/unistd (Makefile.am): Substitute witnesses.
41522         * lib/unistd.in.h (usleep): Add declaration.
41523         * doc/pastposix-functions/usleep.texi (usleep): Document this.
41524         * MODULES.html.sh (Date and time): Likewise.
41525         * modules/usleep-tests (Depends-on): New test.
41526         * tests/test-usleep.c: New file.
41527
41528         chown: work around OpenBSD bug
41529         * lib/chown.c (rpl_chown): Work around the bug.
41530         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
41531         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
41532         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
41533         * modules/chown (Depends-on): Add stdbool.
41534         * modules/lchown (Depends-on): Likewise.
41535         * doc/posix-functions/chown.texi (chown): Document the bug.
41536         * doc/posix-functions/lchown.texi (lchown): Likewise.
41537         * tests/test-lchown.h (test_chown): Relax test.
41538
41539         mkstemp: avoid conflict with C++ keyword template
41540         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
41541         * lib/mkostemp.c (mkostemp): Likewise.
41542         * lib/mkostemps.c (mkostemps): Likewise.
41543         * lib/mkstemp.c (mkstemp): Likewise.
41544         * lib/mkstemps.c (mkstemps): Likewise.
41545
41546         xalloc-die-tests: optimize
41547         * tests/test-xalloc-die.sh: Reduce number of processes.
41548
41549 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41550
41551         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
41552         patch from ludo@gnu.org (Ludovic Courtès).
41553
41554 2009-11-17  Jim Meyering  <meyering@redhat.com>
41555
41556         version-etc: use proper license string
41557         * modules/version-etc (License): Use LGPL, not LGPLv3+.
41558         * modules/version-etc-fsf: Likewise.
41559
41560 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41561
41562         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
41563         printed to stdout.  Deal with EOL differences.
41564
41565 2009-11-17  Eric Blake  <ebb9@byu.net>
41566
41567         unsetenv: work around Solaris bug
41568         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
41569         * lib/unsetenv.c (rpl_unsetenv): Work around it.
41570         Reported by Jim Meyering.
41571
41572         vasnprintf: avoid compiler warnings
41573         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
41574         variables.
41575         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
41576
41577 2009-11-17  Simon Josefsson  <simon@josefsson.org>
41578
41579         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
41580         settings since xalloc-die is no longer the self test,
41581         xalloc-die.sh is.
41582
41583 2009-11-17  Jim Meyering  <meyering@redhat.com>
41584
41585         test-xalloc-die.sh: make the code agree with the commit log
41586         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
41587         at the end, just in case you happen to have a test-xalloc-die
41588         program in some other PATH directory.
41589
41590         test-xalloc-die.sh: fix a portability bug
41591         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
41592         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
41593         Otherwise, argv[0] (as often seen in diagnostics) would be too
41594         system-dependent, sometimes with, and sometimes without the leading "./".
41595
41596         version-etc-fsf: relax license to LGPLv3+
41597         * modules/version-etc-fsf (License): Relax license.
41598
41599 2009-11-16  Eric Blake  <ebb9@byu.net>
41600
41601         xalloc-die-tests: avoid printing null pointer
41602         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
41603         shell script.
41604         * tests/test-xalloc-die.c (program_name): Declare.
41605         * tests/test-xalloc-die.sh (tmpfiles): New file.
41606
41607         setenv, unsetenv: work around various bugs
41608         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
41609         (setenv) [HAVE_SETENV]: Work around bugs.
41610         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
41611         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
41612         for bugs.
41613         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
41614         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
41615         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
41616         * modules/stdlib (Makefile.am): Update substitutions.
41617         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
41618         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
41619         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
41620         * modules/setenv-tests: New test.
41621         * modules/unsetenv-tests: Likewise.
41622         * tests/test-setenv.c: New file.
41623         * tests/test-unsetenv.c: Likewise.
41624
41625 2009-11-16  Jim Meyering  <meyering@redhat.com>
41626
41627         version-etc: relax license to LGPLv3+
41628         * modules/version-etc (License): Relax license.
41629
41630         better AC_REQUIRE expanded-before-required-warning avoidance
41631         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
41632         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
41633         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
41634         which is no longer needed.
41635
41636 2009-11-16  Eric Blake  <ebb9@byu.net>
41637
41638         test-freading: clean up temporary file
41639         * tests/test-freading.c (main): Remove file on success, and use
41640         ASSERT more liberally.
41641         Reported by Jim Meyering.
41642
41643 2009-11-16  Jim Meyering  <meyering@redhat.com>
41644
41645         avoid new AC_REQUIRE expanded-before-required warnings
41646         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
41647         merely using it.
41648         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
41649         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
41650
41651 2009-11-15  Simon Josefsson  <simon@josefsson.org>
41652
41653         * tests/test-xalloc-die.c: New file.
41654         * modules/xalloc-die-tests: New file.
41655         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
41656         XFAIL_TESTS so it can be appended by modules.
41657
41658 2009-11-15  Simon Josefsson  <simon@josefsson.org>
41659
41660         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
41661         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
41662
41663 2009-11-14  Eric Blake  <ebb9@byu.net>
41664
41665         fnmatch: avoid compiler warning
41666         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
41667         to silence compiler warning about mismatch signedness in ?:.
41668         Reported by Robert Millan.
41669
41670         intprops: add double-inclusion guard
41671         * lib/intprops.h: Allow idempotent includes.
41672         Suggested by Bruce Korb.
41673
41674         openat: detect Solaris fchownat bug
41675         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
41676         penalizing glibc chownat when only lchownat is broken.
41677         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
41678         trailing slash bugs.
41679         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
41680         * modules/openat-tests (Files): Include more files.
41681         (Depends-on): Add mgetgroups, sleep, stat-time.
41682         (configure.ac): Add additional checks.
41683         (Makefile.am): Build new test.
41684         * tests/test-fchownat.c: New file.
41685
41686         lchown: detect Solaris and FreeBSD bug
41687         * lib/lchown.c (rpl_lchown): Work around bug.
41688         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
41689         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41690         * modules/unistd (Makefile.am): Populate it.
41691         * lib/unistd.in.h (lchown): Update declaration.
41692         * doc/posix-functions/lchown.texi (lchown): Document the bug.
41693         * modules/lchown-tests: New file.
41694         * tests/test-lchown.h (test_lchown): Likewise.
41695         * tests/test-lchown.c (main): Likewise.
41696
41697         chown: detect Solaris and FreeBSD bug
41698         * lib/chown.c (rpl_chown): Work around bug.
41699         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
41700         (gl_PREREQ_CHOWN): Delete.
41701         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
41702         * modules/unistd (Makefile.am): Populate it.
41703         * lib/unistd.in.h (chown): Update declaration.
41704         * lib/lchown.c (chown): Update client.
41705         * modules/lchown (Depends-on): Add lstat.
41706         * doc/posix-functions/chown.texi (chown): Document the bug.
41707         * doc/posix-functions/getgroups.texi (getgroups): Document
41708         getgroups pitfall.
41709         * modules/chown-tests: New file.
41710         * tests/test-chown.h (test_chown): Likewise.
41711         * tests/test-chown.c (main): Likewise.
41712
41713 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
41714
41715         gnulib-tool: correctly detect absence of m4 directories
41716         * gnulib-tool: Avoid extra newline on data passed to wc -l.
41717
41718 2009-11-14  Jim Meyering  <meyering@redhat.com>
41719
41720         maint.mk: Prohibit inclusion of "xalloc.h" without use.
41721         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
41722
41723 2009-11-14  John W. Eaton  <jwe@gnu.org>
41724
41725         strftime.h: wrap function declaration in extern "C" block
41726         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
41727
41728 2009-11-13  Eric Blake  <ebb9@byu.net>
41729
41730         getgroups: avoid compiler warning
41731         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
41732
41733         getgroups: work around FreeBSD bug
41734         * lib/getgroups.c (rpl_getgroups): Work around the bug.
41735         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
41736         * doc/posix-functions/getgroups.texi (getgroups): Document it.
41737         * tests/test-getgroups.c (main): Fix buffer overrun.
41738
41739         getgroups: avoid compilation failure
41740         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
41741         * modules/getgroups (Depends-on): Add stdint.
41742
41743 2009-11-13  Jim Meyering  <meyering@redhat.com>
41744
41745         test-getgroups: avoid compilation failure
41746         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
41747
41748 2009-11-13  Eric Blake  <ebb9@byu.net>
41749
41750         mgetgroups: new module, taken from coreutils
41751         * modules/mgetgroups: New file.
41752         * lib/mgetgroups.h: Likewise.
41753         * lib/mgetgroups.c (mgetgroups): Likewise.
41754         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
41755         * MODULES.html.sh (Users and groups): Mention it.
41756
41757         getgroups: don't expose GETGROUPS_T to user
41758         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
41759         an element at a time if GETGROUPS_T is wrong size.
41760         * lib/getugroups.h (getugroups): Change signature.
41761         * lib/unistd.in.h (getgroups): Likewise.
41762         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
41763         signature needs fixing.
41764         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
41765         AC_TYPE_GETGROUPS.
41766         * modules/group-member (Depends-on): Add getgroups.
41767         * lib/group-member.c (group_info, get_group_info): Use gid_t.
41768         (group_member): Rely on getgroups replacement.
41769         * lib/getugroups.c (getugroups): Use gid_t.
41770         * tests/test-getgroups.c (main): Likewise.
41771         * NEWS: Mention the signature change.
41772         * doc/posix-functions/getgroups.texi (getgroups): Mention the
41773         problem with signature.
41774         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
41775         GETGROUPS_T is still useful for setgroups.
41776
41777         getgroups, getugroups: provide stubs for mingw
41778         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
41779         * lib/getugroups.c (getugroups): Likewise.
41780         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
41781         function.  Modernize replacement scheme.
41782         (gl_PREREQ_GETGROUPS): Delete.
41783         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
41784         * modules/getgroups (configure.ac): Declare witness.
41785         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
41786         * modules/unistd (Depends-on): Substitute witness.
41787         * lib/unistd.in.h (getgroups): Declare replacement.
41788
41789         getgroups: avoid calling exit
41790         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
41791         drop xalloc.
41792         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
41793         dependencies.
41794         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
41795         exiting, in the rare case of malloc failure.
41796
41797         getgroups: fix logic error
41798         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
41799         has more than 20 groups.
41800         * modules/getgroups-tests: New test.
41801         * tests/test-getgroups.c: New file.
41802
41803 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41804
41805         * tests/test-base64.c: Improve.
41806
41807 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41808
41809         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
41810         Blake <ebb9@byu.net>.
41811
41812 2009-11-13  Simon Josefsson  <simon@josefsson.org>
41813
41814         * tests/test-xvasprintf.c: Add %s%s related checks.
41815
41816 2009-11-12  Eric Blake  <ebb9@byu.net>
41817
41818         version-etc: match standards.texi style
41819         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
41820         and use <> only for URLs.
41821
41822 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
41823
41824         fts: do not fail on a submount during traversal
41825         * lib/fts.c (fts_build): Read the stat info again after opening
41826         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
41827         Original report at http://bugzilla.redhat.com/501848.
41828
41829 2009-11-12  Jim Meyering  <meyering@redhat.com>
41830
41831         bootstrap: sync from coreutils
41832         * build-aux/bootstrap (bootstrap_epilogue): New function.
41833         Use git_modules_config in one more place.  This make bootstrap's
41834         --gnulib-srcdir option more useful for testing.
41835
41836         bootstrap: generalize autoheader check
41837         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
41838         AC_CONFIG_HEADERS.
41839
41840 2009-11-11  Eric Blake  <ebb9@byu.net>
41841
41842         mkfifoat: use new modules for Solaris and BSD bugs
41843         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
41844         * lib/mkfifoat.c (mknodat): Split...
41845         * lib/mknodat.c (mknodat): ...into new file.
41846         * modules/mkfifoat (Files): Ship new file.
41847         (Depends-on): Add mkfifo, mknod.
41848         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
41849         (Depends-on): Add symlink.
41850         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
41851         redundant with test_mkfifo.h.
41852         (do_mkfifoat, do_mknodat): New helpers.
41853
41854         mknod: new module
41855         * modules/mknod: New file.
41856         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
41857         * lib/mknod.c (mknod): Likewise.
41858         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
41859         defaults.
41860         * modules/sys_stat (Makefile.am): Substitute them.
41861         * lib/sys_stat.in.h (mknod): Declare replacement.
41862         * MODULES.html.sh (Support for systems lacking POSIX:2008):
41863         Document it.
41864         * doc/posix-functions/mknod.texi (mknod): Likewise.
41865         * modules/mknod-tests: New test.
41866         * tests/test-mknod.c: Likewise.
41867
41868         mkfifo: new module
41869         * modules/mkfifo: New file.
41870         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
41871         * lib/mkfifo.c (mkfifo): Likewise.
41872         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
41873         defaults.
41874         * modules/sys_stat (Makefile.am): Substitute them.
41875         * lib/sys_stat.in.h (mkfifo): Declare replacement.
41876         * MODULES.html.sh (Support for systems lacking POSIX:2008):
41877         Document it.
41878         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
41879         * modules/mkfifo-tests: New test.
41880         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
41881         from test-mkfifoat.c.
41882         * tests/test-mkfifo.c: New file.
41883
41884         readlink: detect FreeBSD bug
41885         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
41886         slash on symlink.
41887         * doc/posix-functions/readlink.texi (readlink): Document the bug.
41888         * tests/test-readlink.h (test_readlink): Enhance test.
41889
41890         symlink: detect FreeBSD bug
41891         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
41892         slash on symlink.
41893         * doc/posix-functions/symlink.texi (symlink): Document the bug.
41894         * tests/test-symlink.h (test_symlink): Enhance test.
41895
41896 2009-11-10  Eric Blake  <ebb9@byu.net>
41897
41898         link: detect FreeBSD bug
41899         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
41900         symlink.
41901         * doc/posix-functions/link.texi (link): Document the bug.
41902         * tests/test-link.h (test_link): Enhance test.
41903         * tests/test-linkat.c (main): Update caller.
41904
41905         unlink, remove: detect FreeBSD bug
41906         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
41907         slash on symlink.
41908         * doc/posix-functions/unlink.texi (unlink): Document the bug.
41909         * doc/posix-functions/remove.texi (remove): Likewise.
41910         * tests/test-unlink.h (test_unlink): Enhance test.
41911         * tests/test-remove.c (main): Likewise.
41912
41913 2009-11-09  Eric Blake  <ebb9@byu.net>
41914
41915         rename: detect FreeBSD bug
41916         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
41917         slash on symlink.
41918         * modules/renameat-tests (Depends-on): Add filenamecat.
41919         * tests/test-rename.h (test_rename): Allow one more errno.
41920         * tests/test-renameat.c (main): Likewise.
41921         * doc/posix-functions/rename.texi (rename): Document the bug.
41922
41923         open: detect FreeBSD bug
41924         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
41925         symlink.
41926         * doc/posix-functions/open.texi (open): Document the bug.
41927         * doc/posix-functions/utimes.texi (utimes): Likewise.
41928         * tests/test-open.h (test_open): Add parameters, and test symlink
41929         handling.
41930         * tests/test-open.c (main): Adjust caller.
41931         * tests/test-fcntl-safer.c (main): Likewise.
41932         * modules/open-tests (Depends-on): Add stdbool, symlink.
41933         * modules/fcntl-safer-tests (Depends-on): Likewise.
41934         * tests/test-openat.c (main): Add test-open tests.
41935
41936         stat: detect FreeBSD bug
41937         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
41938         symlink.
41939         * doc/posix-functions/stat.texi (stat): Document the bug.
41940         * tests/test-stat.h (test_stat_func): Add argument.
41941         * tests/test-stat.c (main): Adjust caller.
41942         * tests/test-fstatat.c (main): Likewise.
41943         * modules/stat-tests (Depends-on): Add stdbool, symlink.
41944         Reported by Jim Meyering.
41945
41946 2009-11-09  James Youngman  <jay@gnu.org>
41947
41948         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
41949         * lib/strftime.c: Correct placement of #include "ignore-value.h".
41950
41951 2009-11-08  Jim Meyering  <meyering@redhat.com>
41952
41953         utimens: remove invalid futimesat call
41954         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
41955         It used the file descriptor of the target file as the DIR_FD
41956         parameter and NULL as the file name.  That caused failure with
41957         errno == EFAULT on FreeBSD-8.0-rc2
41958
41959 2009-11-07  Eric Blake  <ebb9@byu.net>
41960
41961         fflush, freadseek: use fseeko, not fseek
41962         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
41963         (clear_ungetc_buffer): Avoid potential problems on large files.
41964         * lib/freadseek.c (freadseek): Likewise.
41965         * modules/freadseek (Depends-on): Add fseeko.
41966         * modules/fseek (configure.ac): Set a witness.
41967         * tests/test-fflush.c (main): Use fseeko.
41968         * tests/test-fpurge.c (fseek): Disable link warning.
41969         * tests/test-freadable.c (fseek): Likewise.
41970         * tests/test-freading.c (fseek): Likewise.
41971         * tests/test-fseeko.c (fseek): Likewise.
41972         * tests/test-ftell.c (fseek): Likewise.
41973         * tests/test-ftello.c (fseek): Likewise.
41974         * tests/test-fwritable.c (fseek): Likewise.
41975         * tests/test-fwriting.c (fseek): Likewise.
41976
41977 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41978
41979         * modules/memchr (Depends-on): Drop getpagesize dependency.
41980
41981 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41982
41983         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
41984         Reported by Ludovic Courtès.
41985         * build-aux/pmccabe2html: Improve example usage.
41986         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
41987
41988 2009-11-06  Jim Meyering  <meyering@redhat.com>
41989
41990         do-release-commit-and-tag: New module.
41991         Automate the release-commit and tag process.
41992         * build-aux/do-release-commit-and-tag: New script, from coreutils.
41993         * modules/do-release-commit-and-tag: New file.
41994         * MODULES.html.sh (Support for maintaining and releasing): Add it.
41995
41996 2009-11-06  Simon Josefsson  <simon@josefsson.org>
41997
41998         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
41999         because test-select.c uses inet_pton.
42000
42001 2009-11-06  Simon Josefsson  <simon@josefsson.org>
42002
42003         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
42004         GETADDRINFO_LIB.  Bump serial number.
42005         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
42006         Suggested by Eric Blake <ebb9@byu.net>.
42007
42008 2009-11-05  Eric Blake  <ebb9@byu.net>
42009
42010         strtod: detect darwin bug
42011         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
42012         Reported by Leo Davis.
42013
42014         freopen-safer: new module
42015         * modules/freopen-safer: New module.
42016         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
42017         * lib/freopen-safer.c (freopen_safer): New file.
42018         * lib/stdio-safer.h (freopen_safer): New declaration.
42019         * lib/stdio--.h (freopen): New override.
42020         * MODULES.html.sh (File stream based Input/Output): Mention it.
42021         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
42022         freopen-safer module.
42023         * doc/posix-functions/stderr.texi (stderr): Likewise.
42024         * doc/posix-functions/stdin.texi (stdin): Likewise.
42025         * doc/posix-functions/stdout.texi (stdout): Likewise.
42026         * modules/freopen-safer-tests: New test.
42027         * tests/test-reopen-safer.c: New file.
42028
42029 2009-11-05  Jim Meyering  <meyering@redhat.com>
42030
42031         maint.mk: Prohibit inclusion of "close-stream.h" without use.
42032         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
42033
42034 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42035
42036         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
42037
42038 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42039
42040         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
42041
42042 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42043
42044         Fix link error.
42045         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
42046         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42047
42048 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42049
42050         * tests/test-func.c: Also test value of __func__.
42051
42052 2009-11-05  Simon Josefsson  <simon@josefsson.org>
42053
42054         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
42055         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
42056
42057 2009-11-05  Bruno Haible  <bruno@clisp.org>
42058
42059         Fix link error.
42060         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
42061         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
42062         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
42063
42064 2009-11-05  Bruno Haible  <bruno@clisp.org>
42065
42066         Tests for module 'inet_pton'.
42067         * modules/inet_pton-tests: New file.
42068         * tests/test-inet_pton.c: New file.
42069
42070 2009-11-05  Bruno Haible  <bruno@clisp.org>
42071
42072         Tests for module 'inet_ntop'.
42073         * modules/inet_ntop-tests: New file.
42074         * tests/test-inet_ntop.c: New file.
42075
42076 2009-11-04  Eric Blake  <ebb9@byu.net>
42077
42078         stdlib-safer: wrap all mkstemp variants
42079         * modules/mkostemp (configure.ac): Set witness.
42080         * modules/mkostemps (configure.ac): Likewise.
42081         * modules/mkstemps (configure.ac): Likewise.
42082         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
42083         (mkstemps_safer): Wrap more functions.
42084         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
42085         wrapping.
42086         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
42087         (mkstemps_safer): Implement the wrappers.
42088
42089         mkstemps, mkostemps: new modules
42090         * modules/mkostemps: New module.
42091         * modules/mkstemps: Likewise.
42092         * lib/mkostemps.c (mkostemps): New file.
42093         * lib/mkstemps.c (mkstemps): Likewise.
42094         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
42095         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
42096         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
42097         * modules/stdlib (Makefile.am): Substitute them.
42098         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
42099         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
42100         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
42101         * doc/gnulib.texi (Glibc stdlib.h): Include them.
42102         * MODULES.html.sh (File system functions): Mention them.
42103
42104         tempname: resync from glibc
42105         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
42106         same values for __GT_FILE as glibc.  Abort even when assertions
42107         are disabled.
42108         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
42109         match its value otherwise.  Allow idempotent inclusion.
42110         * lib/mkdtemp.c (mkdtemp): Adjust caller.
42111         * lib/mkostemp.c (mkostemp): Likewise.
42112         * lib/mkstemp.c (mkstemp): Likewise.
42113         * lib/tmpfile.c (tmpfile): Likewise.
42114         * NEWS: Document this.
42115
42116         utimens: fix use of futimens on older Linux
42117         * lib/utimens.c (fdutimens): Use updated, rather than original,
42118         timespec to avoid bug in older Linux kernel.
42119         Reported by Simon Josefsson.
42120
42121 2009-11-04  Bruno Haible  <bruno@clisp.org>
42122
42123         Make num_processors more flexible and consistent.
42124         * lib/nproc.h (enum nproc_query): New type.
42125         (num_processors): Add a 'query' argument.
42126         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
42127         (num_processors): Add a 'query' argument. Test the value of the
42128         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
42129         mingw, count the number of CPUs available for the current process.
42130         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
42131         Check for sched_getaffinity and sched_getaffinity_np.
42132         * modules/nproc (Depends-on): Add c-ctype, extensions.
42133         * NEWS: Mention the change.
42134
42135 2009-11-03  Bruno Haible  <bruno@clisp.org>
42136
42137         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
42138
42139 2009-11-03  Jim Meyering  <meyering@redhat.com>
42140
42141         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
42142         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
42143         if it is defined.
42144
42145 2009-11-02  Eric Blake  <ebb9@byu.net>
42146
42147         mktime, timegm: share common declaration
42148         * lib/mktime-internal.h: New file.
42149         * lib/mktime.c: Use it rather than open-coding a declaration.
42150         * lib/timegm.c: Likewise.
42151         * modules/mktime (Files): Ship it.
42152         * modules/timegm (Files): Likewise.
42153         Suggested by Bruno Haible.
42154
42155         test-update-copyright: update test to match script changes
42156         * tests/test-update-copyright.sh: Avoid hard-coding perl
42157         location.  Don't update *.bak created by earlier runs.
42158
42159 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
42160             Simon Josefsson  <simon@josefsson.org>
42161             Bruno Haible  <bruno@clisp.org>
42162
42163         Fix link error on Solaris 8.
42164         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
42165         also in libnsl. Define also INET_PTON_LIB.
42166         * modules/inet_pton (Link): New section.
42167
42168 2009-11-02  Simon Josefsson  <simon@josefsson.org>
42169             Bruno Haible  <bruno@clisp.org>
42170
42171         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
42172         * modules/inet_ntop (Link): New section.
42173         Reported by Boyan Kasarov <bkasarov@gmail.com>.
42174
42175 2009-11-02  Eric Blake  <ebb9@byu.net>
42176
42177         maint: avoid compiler warnings in m4 macros
42178         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
42179         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
42180
42181 2009-11-02  Simon Josefsson  <simon@josefsson.org>
42182
42183         * m4/pmccabe2html.m4: Remove file.
42184         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
42185         function.  Change maintainer.
42186         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
42187         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
42188         Courtès).
42189
42190 2009-10-31  Eric Blake  <ebb9@byu.net>
42191
42192         fseeko: fix m4 regression
42193         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
42194         regression from 2009-10-27.
42195         Reported by Ralf Wildenhues.
42196
42197 2009-10-31  Jim Meyering  <meyering@redhat.com>
42198
42199         inttostr: aesthetics and improved (compile-time) safety
42200         Define inttype_is_signed rather than inttype_is_unsigned,
42201         since the sole use is via "#if inttype_is_signed".
42202         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
42203         inttype_is_unsigned.
42204         * lib/offtostr.c (inttype_is_signed): Likewise.
42205         * lib/uinttostr.c (inttype_is_signed): Likewise.
42206         * lib/umaxtostr.c (inttype_is_signed): Likewise.
42207         * lib/inttostr.c (inttostr): Use verify to cross-check the
42208         inttype_is_signed value and the signedness of the actual type.
42209         * modules/inttostr (Depends-on): Add verify.
42210
42211 2009-10-30  Eric Blake  <ebb9@byu.net>
42212
42213         build: avoid compiler warnings
42214         * lib/fchmodat.c (lchmod): Mark unused variables.
42215         * lib/getopt.c (_getopt_initialize): Likewise.
42216         * lib/mktime.c (__mktime_internal): Provide prototype.
42217         * lib/inttostr.c (inttostr): Avoid compiler warning even with
42218         older gcc that do not understand #pragma GCC diagnostic.
42219         * lib/uinttostr.c (inttype_is_unsigned): Define.
42220         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
42221
42222 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
42223
42224         stat: fix compilation on AIX
42225         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
42226         only see struct stat64.
42227
42228 2009-10-30  Eric Blake  <ebb9@byu.net>
42229
42230         exclude: make more robust
42231         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
42232         rather than masking a coding bug.
42233         Suggested by Bruno Haible.
42234
42235 2009-10-30  Jim Meyering  <meyering@redhat.com>
42236
42237         perl scripts: remove #!/usr/bin/perl in favor of more portable...
42238         Rather than putting #!/usr/bin/perl on the first line,
42239         start with a variant of what's recommended by "man perlrun" that
42240         invokes the first "perl" program from your shell's search path.
42241         * build-aux/gitlog-to-changelog: Replace #!... as above.
42242         Add a "Local Variables" perl mode setting.
42243         Prompted by a patch from Ludovic Courtès.
42244         Improved by Eric Blake.
42245         * build-aux/useless-if-before-free: Likewise.
42246         * build-aux/announce-gen: Likewise.
42247         * build-aux/update-copyright: Likewise.
42248
42249 2009-10-29  Eric Blake  <ebb9@byu.net>
42250
42251         filenamecat-lgpl: adjust clients
42252         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
42253         filenamecat.
42254         * modules/renameat (Depends-on): Likewise.
42255
42256         filenamecat: split into filenamecat-lgpl
42257         * modules/filenamecat-lgpl: New module.
42258         * modules/filenamecat (Files): Move library-safe files into
42259         filenamecat-lgpl.
42260         (Depends-on): Add filenamecat-lgpl.
42261         (configure.ac): Declare witness.
42262         * lib/filenamecat.h (file_name_concat): Only declare when using
42263         GPL module.
42264         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
42265         Move...
42266         * lib/filenamecat-lgpl.c: ...into new file.
42267         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
42268         (gl_FILE_NAME_CONCAT): Use it.
42269         * MODULES.html.sh (File system functions): Mention new module.
42270
42271         argp: avoid memory leak
42272         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
42273         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
42274         base_name, since the latter malloc()s and can call exit().
42275         Leak introduced 2006-07-03.
42276
42277         dirname-lgpl: adjust clients that don't need full dirname
42278         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
42279         * modules/filenamecat (Depends-on): Likewise.
42280         * modules/linkat (Depends-on): Likewise.
42281         * modules/mkancesdirs (Depends-on): Likewise.
42282         * modules/mkdir (Depends-on): Likewise.
42283         * modules/openat (Depends-on): Likewise.
42284         * modules/savewd (Depends-on): Likewise.
42285         * modules/rename (Depends-on): Likewise.
42286         (License): Relax license.
42287         * modules/mkdir-tests (Depends-on): Drop progname.
42288         (Makefile.am): Delete unneeded LDADD.
42289         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
42290
42291         dirname: split into dirname-lgpl
42292         * modules/dirname-lgpl: New module.
42293         * modules/dirname (Files): Move library-safe files into
42294         dirname-lgpl.
42295         (Depends-on): Add dirname-lgpl.
42296         (configure.ac): Declare witness.
42297         * modules/double-slash-root (License): Relax license.
42298         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
42299         module.
42300         * lib/dirname.c (dir_len, mdir_name): Move...
42301         * lib/dirname-lgpl.c: ...into new file.
42302         * lib/basename.c (last_component, base_len): Move...
42303         * lib/basename-lgpl.c: ...into new file.
42304         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
42305         (gl_DIRNAME): Use it.
42306         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
42307         Mention new module.
42308         * modules/dirname-tests (Depends-on): Add progname.
42309         * tests/test-dirname.c (program_name): Delete.
42310
42311         mkdir: make safe for libraries
42312         * modules/mkdir (Depends-on): Drop xalloc.
42313         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
42314         exit.
42315
42316         tests: avoid some compiler warnings
42317         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
42318         literals.
42319         * tests/test-memchr.c (main): Avoid type mismatch.
42320         * tests/test-arpa_inet.c (main): Avoid unused parameters.
42321         * tests/test-base64.c (main): Likewise.
42322         * tests/test-getdelim.c (main): Likewise.
42323         * tests/test-gethostname.c (main): Likewise.
42324         * tests/test-getline.c (main): Likewise.
42325         * tests/test-netinet_in.c (main): Likewise.
42326         * tests/test-select.c (open_server_socket, main): Likewise.
42327         * tests/test-select-stdin.c (main): Likewise.
42328         * tests/test-sockets.c (main): Likewise.
42329         * tests/test-strsignal.c (main): Likewise.
42330         * tests/test-sys_select.c (main): Likewise.
42331         * tests/test-sys_socket.c (main): Likewise.
42332         * tests/test-u64.c (main): Likewise.
42333         * tests/test-xfprintf-posix.c (main): Likewise.
42334         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
42335
42336         sockets: avoid compiler warning
42337         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
42338
42339         maint: detect usage(1) and other suspicious exits
42340         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
42341
42342 2009-10-29  Jim Meyering  <meyering@redhat.com>
42343
42344         timespec: long-to-int truncation could make timespec_cmp malfunction
42345         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
42346         a multiple of 2^32 nanoseconds as no difference.
42347
42348 2009-10-28  Jim Meyering  <meyering@redhat.com>
42349
42350         fprintftime: wrap macro code argument in "do {...} while(0)"
42351         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
42352         cpy macro must be a statement that can be followed by a semicolon.
42353         Now that the else clause contains a comment and is hence longer
42354         than one line, I require curly braces.  That in turn requires
42355         that we wrap this code block in the standard do...while(0).
42356
42357         fprintftime: remove stray semicolon from previous change
42358         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
42359
42360         fprintftime: avoid a warning about ignored fwrite return value
42361         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
42362         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
42363         that is unsafe.
42364         * modules/fprintftime (Depends-on): Add ignore-value.
42365
42366         exclude: avoid an unwarranted warning
42367         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
42368
42369 2009-10-27  Eric Blake  <ebb9@byu.net>
42370
42371         fseek: avoid compilation failure when fflush is replaced
42372         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
42373         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
42374         module is in use.
42375         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
42376         module is not in use; since REPLACE_FSEEK worked otherwise.
42377         (GNULIB_FTELLO): Likewise for ftell.
42378         Reported by Ian Beckwith and others.
42379
42380 2009-10-27  Bruno Haible  <bruno@clisp.org>
42381
42382         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
42383         Reported by Jim Meyering.
42384
42385 2009-10-27  Jim Meyering  <jim@meyering.net>
42386             Bruno Haible  <bruno@clisp.org>
42387
42388         Avoid warning despite dropping the return value of fwrite.
42389         * lib/unicodeio.c: Include ignore-value.h.
42390         (fwrite_success_callback): Explicitly ignore fwrite's return value.
42391         * modules/unicodeio (Depends-on): Add ignore-value.
42392
42393 2009-10-26  Eric Blake  <ebb9@byu.net>
42394
42395         areadlinkat: fix fallback path
42396         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
42397         pointer and zero.
42398
42399 2009-10-22  Pádraig Brady  <P@draigBrady.com>
42400
42401         Use a better IO block size for modern systems
42402         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
42403         * lib/md2.c: Likewise.
42404         * lib/md4.c: Likewise.
42405         * lib/md5.c: Likewise.
42406         * lib/sha1.c: Likewise.
42407         * lib/sha256.c: Likewise.
42408         * lib/sha512.c: Likewise.
42409
42410 2009-10-22  Eric Blake  <ebb9@byu.net>
42411
42412         tests: avoid several compiler warnings
42413         * tests/test-getcwd.c (main): Avoid buffer underflow.
42414         * tests/test-getdate.c (main): String literals are not safe with
42415         putenv, so use setenv.  Declare unused argument.
42416         * modules/getdate-tests (Depends-on): Add setenv.
42417         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
42418         problems with string literals in char *.
42419         * tests/test-hash.c (main): Avoid shadowing declaration.
42420         (insert_new): Treat string literals as char const *.
42421         * tests/test-getopt.h (test_getopt): Likewise.
42422         (getopt_loop): Alter types to minimize casting elsewhere.
42423         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
42424         (test_getopt_long_posix): Likewise.
42425         (do_getopt_long): Add wrapper to minimize casting.
42426         * tests/test-atexit.c (clear_temp_file): Use void.
42427         * tests/test-areadlink-with-size.c (main): Declare unused
42428         arguments.
42429         * tests/test-areadlink.c (main): Likewise.
42430         * tests/test-areadlinkat-with-size.c (main): Likewise.
42431         * tests/test-areadlinkat.c (main): Likewise.
42432         * tests/test-canonicalize-lgpl.c (main): Likewise.
42433         * tests/test-canonicalize.c (main): Likewise.
42434         * tests/test-dirent-safer.c (main): Likewise.
42435         * tests/test-dirname.c (main): Likewise.
42436         * tests/test-dup2.c (main): Likewise.
42437         * tests/test-fchdir.c (main): Likewise.
42438         * tests/test-fcntl-h.c (main): Likewise.
42439         * tests/test-fcntl-safer.c (main): Likewise.
42440         * tests/test-fdopendir.c (main): Likewise.
42441         * tests/test-fdutimensat.c (main): Likewise.
42442         * tests/test-fflush.c (main): Likewise.
42443         * tests/test-filenamecat.c (main): Likewise.
42444         * tests/test-filevercmp.c (main): Likewise.
42445         * tests/test-fopen-safer.c (main): Likewise.
42446         * tests/test-fopen.c (main): Likewise.
42447         * tests/test-fpending.c (main): Likewise.
42448         * tests/test-fpurge.c (main): Likewise.
42449         * tests/test-freading.c (main): Likewise.
42450         * tests/test-fstatat.c (main): Likewise.
42451         * tests/test-fsync.c (main): Likewise.
42452         * tests/test-futimens.c (main): Likewise.
42453         * tests/test-getndelim2.c (main): Likewise.
42454         * tests/test-gettimeofday.c (main): Likewise.
42455         * tests/test-getopt.c (main): Likewise.
42456         * tests/test-i-ring.c (main): Likewise.
42457         * tests/test-inttypes.c (main): Likewise.
42458         * tests/test-link.c (main): Likewise.
42459         * tests/test-lstat.c (main): Likewise.
42460         * tests/test-math.c (main): Likewise.
42461         * tests/test-md5.c (main): Likewise.
42462         * tests/test-memchr2.c (main): Likewise.
42463         * tests/test-memrchr.c (main): Likewise.
42464         * tests/test-mkdir.c (main): Likewise.
42465         * tests/test-mkdirat.c (main): Likewise.
42466         * tests/test-mkfifoat.c (main): Likewise.
42467         * tests/test-open.c (main): Likewise.
42468         * tests/test-openat-safer.c (main): Likewise.
42469         * tests/test-openat.c (main): Likewise.
42470         * tests/test-quotearg.c (main): Likewise.
42471         * tests/test-rawmemchr.c (main): Likewise.
42472         * tests/test-readlink.c (main): Likewise.
42473         * tests/test-remove.c (main): Likewise.
42474         * tests/test-rename.c (main): Likewise.
42475         * tests/test-renameat.c (main): Likewise.
42476         * tests/test-rmdir.c (main): Likewise.
42477         * tests/test-sha1.c (main): Likewise.
42478         * tests/test-signal.c (main): Likewise.
42479         * tests/test-sigaction.c (main): Likewise.
42480         * tests/test-stat.c (main): Likewise.
42481         * tests/test-stat-time.c (main): Likewise.
42482         * tests/test-stddef.c (main): Likewise.
42483         * tests/test-stdint.c (main): Likewise.
42484         * tests/test-stdio.c (main): Likewise.
42485         * tests/test-stdlib.c (main): Likewise.
42486         * tests/test-strchrnul.c (main): Likewise.
42487         * tests/test-strerror.c (main): Likewise.
42488         * tests/test-string.c (main): Likewise.
42489         * tests/test-strtod.c (main): Likewise.
42490         * tests/test-strverscmp.c (main): Likewise.
42491         * tests/test-symlink.c (main): Likewise.
42492         * tests/test-symlinkat.c (main): Likewise.
42493         * tests/test-sys_stat.c (main): Likewise.
42494         * tests/test-sys_time.c (main): Likewise.
42495         * tests/test-time.c (main): Likewise.
42496         * tests/test-unistd.c (main): Likewise.
42497         * tests/test-unlink.c (main): Likewise.
42498         * tests/test-unlinkat.c (main): Likewise.
42499         * tests/test-utimens.c (main): Likewise.
42500         * tests/test-utimensat.c (main): Likewise.
42501         * tests/test-version-etc.c (main): Likewise.
42502         * tests/test-wchar.c (main): Likewise.
42503         * tests/test-wctype.c (main): Likewise.
42504         * tests/test-xprintf-posix.c (main): Likewise.
42505         * tests/test-posixtm.c (main): Likewise.
42506         (STREQ): Delete unused macro.
42507         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
42508         shadowed variables.
42509         * tests/test-memchr.c (main): Likewise.
42510
42511 2009-10-21  Eric Blake  <ebb9@byu.net>
42512
42513         areadlinkat: avoid failure on older glibc
42514         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
42515         rather than mis-comparing 0 against FUNC_RESULT of char*.
42516
42517 2009-10-21  Bruno Haible  <bruno@clisp.org>
42518
42519         * modules/stpncpy (License): Relicense under LGPLv2+.
42520         Reported by David Lutterkort <lutter@redhat.com>.
42521
42522 2009-10-20  Eric Blake  <ebb9@byu.net>
42523
42524         utimensat: work around Solaris 9 bug
42525         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
42526         has trailing slash bugs.
42527         * tests/test-lutimens.h (test_lutimens): Enhance test.
42528         * tests/test-utimens.h (test_utimens): Likewise.
42529         * doc/posix-functions/utime.texi (utime): Enhance documentation.
42530         * doc/posix-functions/utimes.texi (utimes): Likewise.
42531         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42532         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
42533         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
42534         * doc/posix-functions/futimens.texi (futimens): Likewise.
42535
42536         fdutimensat: new module
42537         * modules/fdutimensat: New file.
42538         * lib/fdutimensat.c (fdutimensat): Likewise.
42539         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
42540         * MODULES.html.sh (File system functions): Mention module.
42541         * modules/fdutimensat-tests: New test.
42542         * tests/test-fdutimensat.c: Likewise.
42543
42544         doc: regenerate INSTALL
42545         * doc/INSTALL: Reflect recent autoconf update.
42546         * doc/INSTALL.ISO: Likewise.
42547         * doc/INSTALL.UTF-8: Likewise.
42548
42549 2009-10-20  Pádraig Brady  <P@draigBrady.com>
42550
42551         acl: warn if ACL support is not detected
42552         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
42553
42554 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
42555
42556         * lib/nproc.h: Add extern "C" block for C++.
42557
42558 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
42559             Bruno Haible  <bruno@clisp.org>
42560
42561         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
42562         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
42563         * doc/posix-functions/isalpha.texi: Likewise.
42564         * doc/posix-functions/isblank.texi: Likewise.
42565         * doc/posix-functions/iscntrl.texi: Likewise.
42566         * doc/posix-functions/isdigit.texi: Likewise.
42567         * doc/posix-functions/isgraph.texi: Likewise.
42568         * doc/posix-functions/islower.texi: Likewise.
42569         * doc/posix-functions/isprint.texi: Likewise.
42570         * doc/posix-functions/ispunct.texi: Likewise.
42571         * doc/posix-functions/isspace.texi: Likewise.
42572         * doc/posix-functions/isupper.texi: Likewise.
42573         * doc/posix-functions/isxdigit.texi: Likewise.
42574
42575 2009-10-18  Bruno Haible  <bruno@clisp.org>
42576
42577         Tests for module 'isblank'.
42578         * modules/isblank-tests: New file.
42579         * tests/test-isblank.c: New file.
42580
42581         New module 'isblank'.
42582         * lib/isblank.c: New file.
42583         * m4/isblank.m4: New file.
42584         * modules/isblank: New file.
42585         * doc/posix-functions/isblank.texi: Mention the new module.
42586
42587 2009-10-18  Bruno Haible  <bruno@clisp.org>
42588
42589         New module 'ctype'.
42590         * lib/ctype.in.h: New file.
42591         * m4/ctype.m4: New file.
42592         * modules/ctype: New file.
42593         * doc/posix-headers/ctype.texi: Mention the new module.
42594
42595 2009-10-18  Jim Meyering  <meyering@redhat.com>
42596
42597         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
42598         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
42599         right after its initialization, rather than farther down.
42600         Keeping these in close proximity makes it easier to ensure
42601         that each such variable is initialized.  E.g.,
42602
42603             LIB_CLOCK_GETTIME=
42604             AC_SUBST([LIB_CLOCK_GETTIME])
42605
42606         This change also increments these serial numbers.
42607         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
42608         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
42609         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
42610
42611 2009-10-18  Bruno Haible  <bruno@clisp.org>
42612
42613         Don't let environment variables perturb build.
42614         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
42615         (gl_PREREQ_GETHRXTIME): ... not here.
42616
42617 2009-10-18  Bruno Haible  <bruno@clisp.org>
42618
42619         Avoid symlink attack in localcharset module.
42620         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
42621         (O_NOFOLLOW): Define fallback.
42622         (get_charset_aliases): Don't open the file if it is a symbolic link.
42623         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
42624         gl_FCNTL_H.
42625         (gl_FCNTL_H): Require it.
42626         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
42627         * modules/localcharset (Files): Add m4/fcntl_h.m4.
42628         Reported by Fergal Glynn <fglynn@veracode.com>.
42629
42630 2009-10-18  Bruno Haible  <bruno@clisp.org>
42631
42632         Implement nproc for mingw.
42633         * lib/nproc.c: Include <windows.h>
42634         (num_processors): On native Windows platforms, try GetSystemInfo.
42635
42636 2009-10-18  Bruno Haible  <bruno@clisp.org>
42637
42638         Implement nproc for IRIX.
42639         * lib/nproc.c: Include <sys/sysmp.h>.
42640         (num_processors): On IRIX systems, try sysmp.
42641         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
42642
42643 2009-10-18  Bruno Haible  <bruno@clisp.org>
42644
42645         Implement nproc for HP-UX.
42646         * lib/nproc.c: Include <sys/pstat.h>
42647         (num_processors): On HP-UX systems, try pstat_getdynamic.
42648         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
42649         pstat_getdynamic.
42650
42651 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
42652             Bruno Haible  <bruno@clisp.org>
42653
42654         Implement nproc for NetBSD, OpenBSD.
42655         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
42656         (ARRAY_SIZE): New macro.
42657         (num_processors): On BSD systems, try sysctl of HW_NCPU.
42658         * m4/nproc.m4: New file.
42659         * modules/nproc (Files): Add m4/nproc.m4.
42660         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
42661         (Makefile.am): Instead, augment lib_SOURCES.
42662
42663 2009-10-18  Bruno Haible  <bruno@clisp.org>
42664
42665         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
42666         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
42667         sys/param.h.
42668
42669 2009-10-16  Eric Blake  <ebb9@byu.net>
42670
42671         utimensat: new module
42672         * modules/utimensat: New file.
42673         * lib/utimensat.c (utimensat): Likewise.
42674         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
42675         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
42676         so we can work around Linux bugs.
42677         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42678         * modules/sys_stat (Makefile.am): Substitute them.
42679         * lib/sys_stat.in.h (utimensat): Declare it.
42680         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42681         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42682         * modules/utimensat-tests: New test.
42683         * tests/test-utimensat.c: Likewise.
42684
42685         utimens: let lutimens work on non-symlinks
42686         * lib/utimens.c (lutimens): Fall back to utimens rather than
42687         failing with ENOSYS, when file is not a symlink.
42688         (utimens): Reduce redirection.
42689         * tests/test-lutimens.h (test_lutimens): Update test to cover
42690         non-symlinks.
42691         * tests/test-utimens.h (test_utimens): Update test to cover
42692         symlinks.
42693         * tests/test-utimens.c (main): Update caller.
42694
42695         utimens: cache whether utimensat syscall works
42696         * lib/utimens.c (utimensat_works_really): New cache variable.
42697         (fdutimens, lutimens): Use it to avoid failing syscall.
42698
42699         test-stat-time, test-utimens: improve portability
42700         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
42701         ext4 on alpha, and for cygwin.
42702         * tests/test-utimens-common.h: New file.
42703         (nap): Factor delays into single function.
42704         * tests/test-lutimens.h (test_lutimens): Use new header.
42705         * tests/test-futimens.h (test_futimens): Likewise.
42706         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
42707         timestamps to occur from same machine, as was done previously for
42708         test_utimens.
42709         * modules/utimens-tests (Files): Ship new file.
42710         * modules/futimens-tests (Files): Likewise.
42711         Reported in part by Jim Meyering.
42712
42713         sys_stat: sort replacement declarations
42714         * lib/sys_stat.in.h: Sort declarations.
42715         * lib/futimens.c (futimens): Fix typo.
42716
42717 2009-10-15  Jim Meyering  <meyering@redhat.com>
42718
42719         don't let environment settings perturb build
42720         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
42721         could cause a configure-time and/or build-time malfunction.
42722         Typically, a configure-time function-in-library test is performed
42723         via code like this:
42724
42725           LIB_VAR=
42726           AC_SUBST([LIB_VAR])
42727           prefix_saved_LIBS=$LIBS
42728             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
42729                        [test "$ac_cv_search_FUNC" = "none required" ||
42730                         LIB_VAR=$ac_cv_search_FUNC])
42731           LIBS=$prefix_saved_LIBS
42732
42733         However, in each of the files affected by this change, the LIB_VAR=
42734         initialization was omitted.  Thus, when set in the environment, its
42735         value would propagate into generated Makefiles when FUNC is not found
42736         in LIB_NAME.
42737         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
42738         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
42739         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
42740
42741 2009-10-14  Eric Blake  <ebb9@byu.net>
42742
42743         fchdir: avoid infinite recursion in mingw
42744         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
42745         recursing.
42746
42747         test-stat-time: port to mingw
42748         * tests/test-stat-time.c (force_unlink): Return a value.
42749         (test_ctime) [W32]: Fix compilation error.
42750         (nap): Don't call usleep with too large an argument.  Use
42751         force_unlink.
42752         * doc/pastposix-functions/usleep.texi (usleep): Document the
42753         portability issue.
42754
42755 2009-10-13  Jim Meyering  <meyering@redhat.com>
42756
42757         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
42758         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
42759         * modules/pipe-filter-ii: Likewise.
42760         * modules/sys_socket-tests: Likewise.
42761         * modules/tsearch-tests: Likewise.
42762         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
42763         (check): Depend on it.
42764
42765 2009-10-12  Eric Blake  <ebb9@byu.net>
42766
42767         utimens-tests: port to NFS file systems
42768         * tests/test-utimens.h (test_utimens): Refactor utimecmp
42769         comparisons to avoid spurious failures from timestamp drift
42770         between NFS machines.
42771
42772 2009-10-12  Eric Blake  <ebb9@byu.net>
42773
42774         stat-time-tests: minor cleanups
42775         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
42776         * tests/test-stat-time.c (nap): Separate assignment from call.
42777         Suggested by Paolo Bonzini and Bruno Haible.
42778
42779         sys_stat: guarantee struct timespec
42780         * lib/sys_stat.in.h (includes): Always include <time.h>
42781         * modules/sys_stat (Depends-on): Add time.
42782         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
42783         mode_t permission values.
42784         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
42785         get at subsecond timestamps.
42786
42787 2009-10-10  Eric Blake  <ebb9@byu.net>
42788
42789         futimens: new module
42790         * modules/futimens: New file.
42791         * lib/futimens.c (futimens): Likewise.
42792         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
42793         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
42794         we can work around Linux bugs.
42795         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42796         * modules/sys_stat (Makefile.am): Substitute them.
42797         * lib/sys_stat.in.h (futimens): Declare it.
42798         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42799         * doc/posix-functions/futimens.texi (futimens): Likewise.
42800         * modules/futimens-tests: New test.
42801         * tests/test-futimens.c: Likewise.
42802
42803         utimens: introduce fdutimens
42804         * lib/utimens.h (fdutimens): New prototype.
42805         * lib/utimens.c (gl_futimens): Move guts...
42806         (fdutimens): ...to new interface.
42807         * tests/test-utimens.c (do_fdutimens): Use it.
42808
42809         utimens: add UTIME_NOW and UTIME_OMIT support
42810         * lib/utimens.c (validate_timespec, update_timespec): New helper
42811         functions.
42812         (gl_futimens, lutimens): Use them.
42813         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
42814         stdbool, sys_stat.
42815         (Link): Mention resulting library dependency.
42816         * modules/utimecmp (Link): Likewise.
42817         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
42818         (Makefile.am): Pick up library dependency.
42819         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
42820         definition.
42821         * tests/test-sys_stat.c: Test the definitions.
42822         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
42823         * NEWS: Document library dependency.
42824
42825         utimecmp: support symlink timestamps
42826         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
42827         hashing when possible.  Use pathconf when available.
42828         (SYSCALL_RESOLUTION): Recognize tighter resolution.
42829         * modules/utimecmp (Depends-on): Add lstat.
42830
42831         utimens: add lutimens interface
42832         * lib/utimens.c (lutimens): New function.
42833         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
42834         * lib/utimens.h (lutimens): Declare new interface.
42835         * tests/test-utimens.c (main): Enhance test.
42836         * tests/test-lutimens.h (test_lutimens): New file.
42837         * modules/utimens-tests (Files): Distribute it.
42838         (Depends-on): Add symlink.
42839         (configure.ac): Check for usleep.
42840
42841         utimens: validate futimens usage
42842         * lib/utimens.c (gl_futimens): Require valid fd up front, using
42843         fewer syscalls on failure later on.  Avoid compiler warning on
42844         mingw.
42845         * modules/utimens (Depends-on): Add dup2.
42846
42847         utimens: add test
42848         * modules/utimens-tests: New test.
42849         * tests/test-utimens.h: New file.
42850         * tests/test-futimens.h: Likewise.
42851         * tests/test-utimens.c: Likewise.
42852
42853         doc: mention timestamp portability issues
42854         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
42855         instead.
42856         * doc/posix-functions/utime.texi (utime): Likewise.
42857         * doc/posix-functions/utimes.texi (utimes): Likewise.
42858         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
42859         instead.
42860         * doc/posix-functions/futimens.texi (futimens): Mention utimens
42861         module.
42862         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
42863         Mention weakness with symlink timestamps.
42864         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
42865         to utimensat/futimens instead.
42866         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
42867
42868         test-dup2: enhance test
42869         * tests/test-dup2.c (main): Also check AT_FDCWD.
42870
42871         test-stat-time: avoid more spurious failures
42872         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
42873         xfs; and avoid race if the two timestamps cross quantization edge.
42874
42875         relocatable: prefer 'file system' over 'filesystem'
42876         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
42877         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
42878         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
42879         * doc/relocatable.texi (Enabling Relocatability): Likewise.
42880         * lib/relocatable.c (compute_curr_prefix): Likewise.
42881
42882 2009-10-10  Jim Meyering  <meyering@redhat.com>
42883
42884         stat-time-tests: check for the usleep function
42885         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
42886
42887 2009-10-10  Bruno Haible  <bruno@clisp.org>
42888
42889         * modules/xnanosleep: Put the Link section after the Include section.
42890
42891 2009-10-09  Eric Blake  <ebb9@byu.net>
42892
42893         dup2: work around FreeBSD 6.1 bug
42894         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
42895         * doc/posix-functions/dup2.texi (dup2): Document it.
42896         Reported by Nelson H. F. Beebe and Jim Meyering.
42897
42898         test-stat-time: port to buggy NFS clients
42899         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
42900         (test_ctime): Also skip test if mtime and ctime are skewed.
42901
42902         maint: prefer 'file system' over 'filesystem'
42903         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
42904         * doc/posix-functions/lstat.texi (lstat): Likewise.
42905         * lib/file-has-acl.c (file_has_acl): Likewise.
42906         * lib/fwriteerror.c [TEST]: Likewise.
42907         * tests/test-areadlink.h (test_areadlink): Likewise.
42908         * tests/test-areadlinkat-with-size.c (main): Likewise.
42909         * tests/test-areadlinkat.c (main): Likewise.
42910         * tests/test-canonicalize-lgpl.c (main): Likewise.
42911         * tests/test-canonicalize.c (main): Likewise.
42912         * tests/test-fstatat.c (main): Likewise.
42913         * tests/test-linkat.c (main): Likewise.
42914         * tests/test-lstat.h (test_lstat_func): Likewise.
42915         * tests/test-mkdir.h (test_mkdir): Likewise.
42916         * tests/test-readlink.h (test_readlink): Likewise.
42917         * tests/test-remove.c (main): Likewise.
42918         * tests/test-rename.h (test_rename): Likewise.
42919         * tests/test-renameat.c (main): Likewise.
42920         * tests/test-rmdir.h (test_rmdir_func): Likewise.
42921         * tests/test-symlink.h (test_symlink): Likewise.
42922         * tests/test-symlinkat.c (main): Likewise.
42923         * tests/test-unlink.h (test_unlink_func): Likewise.
42924         * tests/test-unlinkat.c (main): Likewise.
42925
42926         maint: make realtime library usage explicit
42927         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
42928         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
42929         * modules/settime (Link): Likewise.
42930         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
42931
42932         test-stat-time: speed up execution
42933         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
42934         warning on mingw.
42935         (nap): New helper function.
42936         (prepare_test): Use it to reduce sleep time.
42937         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
42938         execution.
42939         * modules/stat-time-tests (configure.ac): Check for usleep.
42940
42941 2009-10-09  Jim Meyering  <meyering@redhat.com>
42942
42943         selinux-h: always use getfilecon wrappers
42944         * lib/getfilecon.c: New file.
42945         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
42946         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
42947         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
42948         (fgetfilecon): Provide a stub.
42949         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
42950         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
42951         file unconditionally.
42952         When <selinux/selinux.h> is found, arrange to use wrappers.
42953         * modules/selinux-h (Files): Add getfilecon.c.
42954         (Makefile.am): Substitute include-next-related bits
42955         into the now-always-generated selinux/selinux.h file.
42956         * doc/glibc-functions/lgetfilecon.texi: New file.
42957         * doc/glibc-functions/fgetfilecon.texi: New file.
42958         * doc/glibc-functions/getfilecon.texi: New file.
42959         * doc/glibc-functions/getfilecon-desc.texi: New file.
42960         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
42961         which to pull in the new files.
42962         * MODULES.html.sh (Misc): Add selinux-h.
42963
42964 2009-10-08  Jim Meyering  <meyering@redhat.com>
42965
42966         unistd: fix comment typo
42967         * lib/unistd.in.h (euidaccess): Fix a comment typo.
42968
42969 2009-10-08  Eric Blake  <ebb9@byu.net>
42970
42971         areadlink: use SIZE_MAX consistently
42972         * modules/areadlink (Depends-on): Add stdint.
42973         * modules/areadlink-with-size (Depends-on): Likewise.
42974         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
42975         gives NULL; drop sys/types, since unistd gives size_t; and add
42976         stdint for SIZE_MAX.
42977         (SIZE_MAX): Rely on headers.
42978         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
42979         and add stdint.
42980         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
42981         (SIZE_MAX): Likewise.
42982         (INITIAL_BUF_SIZE): Turn into enum.
42983         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
42984
42985 2009-10-08  Jim Meyering  <meyering@redhat.com>
42986
42987         areadlinkat: avoid compilation failure
42988         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
42989         Fix typo in comment.
42990
42991 2009-10-07  Eric Blake  <ebb9@byu.net>
42992
42993         areadlinkat-with-size: new module
42994         * modules/areadlinkat-with-size: New module.
42995         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
42996         * lib/areadlink.h (areadlinkat): Declare it.
42997         * MODULES.html.sh (File system functions): Mention it.
42998         * modules/areadlinkat-with-size-tests: New test.
42999         * tests/test-areadlinkat-with-size.c: New file.
43000
43001         xreadlinkat: new module
43002         * modules/xreadlinkat: New module.
43003         * lib/xreadlinkat.c (xreadlinkat): New file.
43004         * lib/xreadlink.h (xreadlinkat): Declare it.
43005         * MODULES.html.sh (File system functions): Mention it.
43006
43007         areadlinkat: new module
43008         * lib/at-func.c (FUNC_FAIL): New define.
43009         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
43010         * modules/areadlinkat: New module.
43011         * lib/linkat.c (areadlinkat): Move...
43012         * lib/areadlinkat.c (areadlinkat): ...to new file.
43013         * lib/areadlink.h (areadlinkat): Declare it.
43014         * modules/linkat (Depends-on): Add areadlinkat.
43015         * MODULES.html.sh (File system functions): Mention it.
43016         * modules/areadlinkat-tests: New test.
43017         * tests/test-areadlinkat.c: New file.
43018
43019         areadlink, areadlink-with-size: add tests
43020         * modules/areadlink-tests: New test.
43021         * modules/areadlink-with-size-tests: Likewise.
43022         * tests/test-areadlink.h: New file.
43023         * tests/test-areadlink.c: Likewise.
43024         * tests/test-areadlink-with-size.c: Likewise.
43025
43026         maint: minor cleanups
43027         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
43028         _UNUSED_PARAMETER_ instead.
43029         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
43030         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
43031         * modules/linkat-tests (Files): Distribute test-link.h.
43032
43033         openat, utimens: whitespace cleanup
43034         * lib/openat.c: Prefer space throughout, rather than mix of 8
43035         spaces vs. tabs.
43036         * lib/at-func.c: Likewise.
43037         * lib/utimens.c: Likewise.
43038
43039         openat: avoid using wrong fd
43040         * lib/openat.c (openat_permissive): Reject user's fd if saving the
43041         working directory chooses same fd.
43042         * lib/at-func.c (AT_FUNC_NAME): Likewise.
43043
43044         mkdir, mkdirat: fix cygwin 1.5.x bug
43045         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
43046         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
43047         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
43048         bug.
43049         (gl_PREREQ_MKDIR): Delete unused macro.
43050         * modules/mkdir (Files): Track file rename.
43051         (configure.ac): Update macro name.
43052         * modules/openat (Depends-on): Add mkdir.
43053         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
43054
43055         mkdir, mkdirat: add tests
43056         * modules/mkdir-tests: New test.
43057         * tests/test-mkdir.h: New file.
43058         * tests/test-mkdir.c: Likewise.
43059         * tests/test-mkdirat.c: Likewise.
43060         * modules/openat-tests (Files): Add new files.
43061         (Makefile.am): Run new test.
43062
43063 2009-10-06  Eric Blake  <ebb9@byu.net>
43064
43065         doc: tweak *at function documentation
43066         * doc/posix-functions/faccessat.texi (faccessat): Mention
43067         known issue with replacement.
43068         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
43069         * doc/posix-functions/linkat.texi (linkat): Likewise.
43070         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
43071         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
43072         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43073         * doc/posix-functions/renameat.texi (renameat): Likewise.
43074         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
43075
43076         openat: fix GNU/Hurd bug in unlinkat
43077         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
43078         broken.
43079         * doc/posix-functions/unlink.texi (unlink): Document this.
43080         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
43081
43082         fdopendir: fix GNU/Hurd bug
43083         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
43084         allowing non-directory fds.
43085         * lib/fdopendir.c (rpl_fdopendir): Work around it.
43086         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
43087         * modules/dirent (Makefile.am): Substitute it.
43088         * lib/dirent.in.h (fdopendir): Declare replacement.
43089         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
43090         * tests/test-fdopendir.c (main): Test something other than
43091         /dev/null, since on Hurd that behaves like a directory.
43092
43093         test-symlink: port to GNU/Hurd
43094         * tests/test-symlink.h (test_symlink): Relax expected errno.
43095
43096         doc: tweak more cygwin information
43097         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
43098         now compatible with glibc.
43099         * doc/posix-functions/getopt.texi (getopt): Likewise.
43100
43101         getopt-gnu: add another test
43102         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
43103         guarantee behavior relied on by m4.
43104         * tests/test-getopt.c (main): Use it.
43105         * modules/getopt-posix-tests (Depends-on): Add setenv.
43106         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
43107
43108         getopt: fix compilation on darwin
43109         * lib/getopt.in.h (includes): Leave breadcrumbs during system
43110         include.
43111         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
43112         Reported by Ludovic Courtès.
43113
43114 2009-10-06  Bruno Haible  <bruno@clisp.org>
43115
43116         * modules/size_max (Description): Discourage its use.
43117         Reported by Simon Josefsson.
43118
43119 2009-10-06  Jim Meyering  <meyering@redhat.com>
43120
43121         linkat: avoid compilation failure
43122         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
43123
43124 2009-10-05  Eric Blake  <ebb9@byu.net>
43125
43126         linkat: support Linux 2.6.17
43127         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
43128         linkat on Linux, but allow cache variable override.
43129         * lib/linkat.c (rpl_linkat): Define override.
43130         * modules/linkat (Depends-on): Add symlinkat.
43131         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
43132         * modules/unistd (Makefile.am): Substitute it.
43133         * lib/unistd.in.h (linkat): Declare replacement.
43134         Reported by Pádraig Brady.
43135
43136         quotearg: port test to systems with C.UTF-8 locale
43137         * tests/test-quotearg.c (struct result_strings): Add another
43138         member, differentiating between C.ASCII and C.UTF-8 handling.
43139         (compare_strings): Add parameter.
43140         (main): Adjust all callers.
43141
43142         getopt: avoid clash with FreeBSD _getopt_internal
43143         * lib/getopt.in.h (_getopt_internal): Override the name.
43144         * lib/getopt_int.h (includes): Pick up any overrides.
43145         Reported by Reuben Thomas.
43146
43147         hash: allow C89 compilation
43148         * lib/hash.c (check_tuning): Move declaration before statement.
43149         Reported by Reuben Thomas.
43150
43151 2009-10-05  Karl Berry  <karl@gnu.org>
43152
43153         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
43154
43155 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
43156             Bruno Haible  <bruno@clisp.org>
43157
43158         * lib/uname.c (uname): Use a table-driven algorithm to compute
43159         Windows NT versions.
43160
43161 2009-10-04  Bruno Haible  <bruno@clisp.org>
43162
43163         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
43164         program_invocation_short_name.
43165         * modules/progname (configure.ac): Test for presence of
43166         program_invocation_short_name.
43167         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
43168
43169 2009-10-04  Bruno Haible  <bruno@clisp.org>
43170
43171         * lib/progname.c (set_program_name): Fix comment.
43172         Reported by Jim Meyering.
43173
43174 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
43175             Bruno Haible  <bruno@clisp.org>
43176
43177         * lib/uname.c: Include <string.h>.
43178         (uname): Do only one call to GetVersionEx in the common case.
43179
43180 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
43181             Bruno Haible  <bruno@clisp.org>
43182
43183         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
43184         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
43185         (uname): Add support for Windows CE and various non-x86 CPU types.
43186
43187 2009-10-03  Bruno Haible  <bruno@clisp.org>
43188
43189         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
43190         invocation to tests/configure.ac.
43191         Reported by Ian Beckwith <ianb@erislabs.net>.
43192
43193 2009-10-02  Eric Blake  <ebb9@byu.net>
43194
43195         fchdir: avoid compiler warning
43196         * lib/fchdir.c (canonicalize_file_name)
43197         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
43198
43199         test-open: support mingw errno values
43200         * tests/test-open.h (test_open): Relax test.
43201         * tests/test-fopen.h (test_fopen): Likewise.
43202         * tests/test-openat-safer.c (main): Likewise.
43203
43204         open: fix opening directory on mingw
43205         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
43206
43207         test-open: on GNU/Hurd, /dev/null is a directory
43208         * tests/test-fopen.h (main): Rename...
43209         (test_fopen): ...to this.  Use a guaranteed non-directory when
43210         confirming open behavior on trailing slash.
43211         * tests/test-openat-safer.c (main): Likewise.
43212         * tests/test-open.h (main): Likewise....
43213         (test_open): ...to this.
43214         * tests/test-fopen.c (main): Adjust caller.
43215         * tests/test-fopen-safer.c (main): Likewise.
43216         * tests/test-open.c (main): Likewise.
43217         * tests/test-fcntl-safer.c (main): Likewise.
43218         Reported by Samuel Thibault.
43219
43220         rename, fchdir: don't ignore chdir failure
43221         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
43222         * lib/rename.c (rpl_rename) [W32]: Likewise.
43223         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
43224         an empty destination directory if source cannot be renamed,
43225         although there is still possibility for failure.
43226         * doc/posix-functions/rename.texi (rename): Document the race.
43227         Reported by Jim Meyering.
43228
43229         maint: cleanup whitespace in recent commits
43230         * lib/rename.c (rpl_rename): Remove tabs.
43231         * tests/test-link.h (test_link): Likewise.
43232         * lib/fchdir.c (get_name): Likewise.
43233         Reported by Jim Meyering.
43234
43235 2009-10-02  Ben Pfaff  <blp@gnu.org>
43236
43237         relocatable-prog-wrapper: Add missing dependency on
43238         double-slash-root.
43239         * modules/relocatable-prog-wrapper: Add dependency.
43240         Reported by Ian Beckwith <ianb@erislabs.net>.
43241
43242 2009-10-02  Eric Blake  <ebb9@byu.net>
43243
43244         renameat: fix Solaris bugs
43245         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
43246         needed fixing.
43247         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
43248         * modules/stdio (Makefile.am): Substitute it.
43249         * lib/stdio.in.h (renameat): Declare replacement.
43250         * lib/renameat.c (rpl_renameat): Implement fix.
43251
43252         renameat: new module
43253         * modules/renameat: New file.
43254         * lib/renameat.c (renameat): Likewise.
43255         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
43256         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
43257         * modules/stdio (Makefile.am): Substitute them.
43258         * lib/stdio.in.h (renameat): Declare it.
43259         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43260         * doc/posix-functions/renameat.texi (renameat): Likewise.
43261         * modules/renameat-tests: New test.
43262         * tests/test-renameat.c: Likewise.
43263
43264         rename: fix mingw bugs
43265         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
43266         directory overwrite bugs.
43267
43268         rename: fix another cygwin 1.5 bug
43269         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
43270         checks.
43271         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
43272         unnecessary cygwin workarounds.  Also work around bug with moving
43273         full directory onto an empty one.
43274         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
43275
43276         rename-dest-slash: merge into rename module
43277         * modules/rename-dest-slash (Status): Mark obsolete.
43278         (Depends-on): Add rename.
43279         (Files): Let rename do it all.
43280         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
43281         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
43282         * m4/rename-dest-slash.m4: ...so this file can be deleted.
43283         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
43284         * lib/rename.c (rpl_rename): Update comments.
43285
43286         rename: fix cygwin 1.5.x bugs
43287         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
43288         * lib/rename.c (rpl_rename): Work around them.
43289         * modules/rename (Depends-on): Add same-inode.
43290
43291         rename: fix Solaris 10 bug
43292         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
43293         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
43294         was the only bug.
43295
43296         rename: fix Solaris 9 bug
43297         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
43298         on non-directory.  Avoid calling exit.
43299         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
43300         strdup.
43301         * modules/rename-tests (Depends-on): Drop lstat.
43302         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
43303         (gl_PREREQ_RENAME): Delete unused macro.
43304
43305         rename-dest-slash: fix NetBSD bug
43306         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
43307         links.
43308         * modules/rename-dest-slash (Depends-on): Add same-inode.
43309
43310         rename-tests: new test, exposes several platform bugs
43311         * modules/rename-tests: New file.
43312         * tests/test-rename.h: Likewise.
43313         * tests/test-rename.c: Likewise.
43314         * doc/posix-functions/rename.texi (rename): Improve documentation,
43315         including bugs that will eventually be fixed in gnulib.
43316
43317 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
43318
43319         * lib/uname.c: Include <stdlib.h>
43320         (uname): Assume version info is available.
43321
43322 2009-10-02  Jim Meyering  <meyering@redhat.com>
43323
43324         gnu-web-doc-update: correct --help output
43325         * build-aux/gnu-web-doc-update: Make --help output relevant.
43326
43327         gnu-web-doc-update: add standard options
43328         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
43329
43330         gnu-web-doc-update: New module.
43331         Use this script to automatically update the on-line web documentation
43332         for your GNU project at http://www.gnu.org/software/$pkg/manual/
43333         * modules/gnu-web-doc-update: New file, from coreutils.
43334         * build-aux/gnu-web-doc-update: New script.
43335
43336 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
43337
43338         link: LoadLibrary is not needed.
43339         * lib/link.c: Use GetModuleHandle.
43340
43341 2009-10-01  Eric Blake  <ebb9@byu.net>
43342
43343         getopt: bump serial number
43344         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
43345         change.
43346
43347         tests: tighten link, rmdir, and remove tests
43348         * tests/test-link.h (includes): No need to use <config.h> here.
43349         Clean up if directory hard link was created, otherwise test for
43350         trailing '.'.
43351         * tests/test-linkat.c (main): Simplify.
43352         * tests/test-remove.c (main): Enhance test for trailing '.'.
43353         * tests/test-rmdir.h (test_rmdir_func): Likewise.
43354
43355 2009-10-01  Jim Meyering  <meyering@redhat.com>
43356
43357         maint.mk: requiring "make major" was annoying, for a "minor" release.
43358         What is intended is "stable", to contrast with alpha and beta,
43359         so require "make stable", not "make major".
43360         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
43361         (get_tool_versions): Likewise.
43362         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
43363
43364 2009-09-30  Ben Pfaff  <blp@gnu.org>
43365
43366         Fix broken build of replacement for Windows tmpfile().
43367         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
43368         flags argument added along with the 'mkostemp' module.
43369
43370 2009-09-28  Bruno Haible  <bruno@clisp.org>
43371
43372         Avoid identifier clash with POSIX function 'remove' defined as a macro.
43373         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
43374         to 'remove_elt'.
43375         (gl_list_remove): Update.
43376         * lib/gl_list.c (gl_list_remove): Update.
43377         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
43378         to 'remove_elt'.
43379         (gl_oset_remove): Update.
43380         * lib/gl_list.c (gl_oset_remove): Update.
43381         Reported by Eric Blake.
43382
43383 2009-09-28  Eric Blake  <ebb9@byu.net>
43384
43385         doc: mention yet more cygwin 1.7 status
43386         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
43387         cygwin.
43388         * doc/glibc-functions/execvpe.texi (execvpe): New file.
43389         * doc/gnulib.texi (Glibc unistd.h): Mention it.
43390
43391         argp: fix test failure
43392         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
43393         that are not upper-case.  Pass correct range to tolower.
43394
43395 2009-09-27  Jim Meyering  <meyering@redhat.com>
43396
43397         test-yesno: work around sparc-dash here-document infelicity
43398         Without this change, the literal \177 byte in a here document
43399         would make dash 0.5.5.1-3 access uninitialized memory.
43400         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
43401         Instead, use a marker, "@", and filter through tr to create the desired
43402         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
43403
43404 2009-09-27  Bruno Haible  <bruno@clisp.org>
43405
43406         Disable untested support for new flavours of ACLs on AIX.
43407         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
43408         progress.
43409         * lib/set-mode-acl.c (qset_acl): Likewise.
43410
43411 2008-12-07  Bruno Haible  <bruno@clisp.org>
43412
43413         Add support for new flavours of ACLs on AIX. (Untested.)
43414         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
43415         (file_has_acl): Add support for newer AIX.
43416         * lib/set-mode-acl.c (qset_acl): Likewise.
43417         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
43418         Rainer Tammer <tammer@tammer.net>.
43419
43420 2009-09-26  Eric Blake  <ebb9@byu.net>
43421
43422         argp: fix compilation of getopt
43423         * lib/getopt.in.h (includes): Use different guard than glibc.
43424         Reported by Sergey Poznyakoff.
43425
43426         doc: mention more cygwin 1.7 status
43427         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
43428         bug.
43429         * doc/posix-functions/execl.texi (execl): Likewise.
43430         * doc/posix-functions/execle.texi (execle): Likewise.
43431         * doc/posix-functions/execlp.texi (execlp): Likewise.
43432         * doc/posix-functions/execv.texi (execv): Likewise.
43433         * doc/posix-functions/execve.texi (execve): Likewise.
43434         * doc/posix-functions/execvp.texi (execvp): Likewise.
43435         * doc/glibc-functions/canonicalize_file_name.texi
43436         (canonicalize_file_name): Cygwin 1.7 now provides this.
43437         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
43438         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
43439         on AT_SYMLINK_NOFOLLOW.
43440
43441 2009-09-24  Eric Blake  <ebb9@byu.net>
43442
43443         test-linkat: make test more robust
43444         * tests/test-linkat.c (main): Avoid collision with EEXIST.
43445
43446         getopt: fix inclusion guards for cygwin
43447         * modules/getopt-posix (Depends-on): Add include-next.
43448         (Makefile.am): Substitute more items in replacement header.
43449         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
43450         <getopt.h>.
43451         * lib/getopt.in.h (includes): Use split inclusion guard, and
43452         prefer <getopt.h> over include <unistd.h> when one is present.
43453         (option): Also override name of 'struct option'.
43454
43455         same-inode: revert prior change; it is not yet ready
43456         * NEWS: Undo mention of this change.
43457         * lib/same-inode.h (same-inode.h): Undo tri-state change.
43458         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
43459         * lib/cycle-check.c (cycle_check): Likewise.
43460         * lib/same.c (same_name): Likewise.
43461         * lib/at-func2.c (at_func2): Likewise.
43462
43463 2009-09-23  Eric Blake  <ebb9@byu.net>
43464
43465         linkat: new module
43466         * modules/linkat: New file.
43467         * lib/at-func2.c (at_func2): Likewise.
43468         * lib/linkat.c (linkat): Likewise.
43469         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
43470         * lib/openat-priv.h (at_func2): Add declaration.
43471         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
43472         * modules/unistd (Makefile.am): Substitute them.
43473         * lib/unistd.in.h (linkat): Declare it.
43474         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43475         * doc/posix-functions/linkat.texi (linkat): Likewise.
43476         * doc/posix-functions/link.texi (link): Tweak wording.
43477         * tests/test-link.c (main): Move guts...
43478         * tests/test-link.h (test_link): ...into new file.
43479         * modules/linkat-tests: New test.
43480         * tests/test-linkat.c: Likewise.
43481         * modules/link-tests (Files): Ship new file.
43482         (Depends-on): Add stdbool.
43483
43484         dirname: add library-safe mdir_name
43485         * lib/dirname.h (mdir_name): New prototype.
43486         * lib/dirname.c (dir_name): Move guts...
43487         (mdir_name): ...to new function that avoids xalloc_die.
43488
43489         fchdir: another mingw fix
43490         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
43491         * lib/fchdir.c (get_name): New helper method; skips canonicalize
43492         on mingw (where it has not yet been ported), and make it optional
43493         elsewhere.
43494         (_gl_register_fd): Use it.
43495
43496         same-inode: make SAME_INODE tri-state, to port to mingw
43497         * NEWS: Mention this change.
43498         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
43499         st_ino always being 0.
43500         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
43501         * lib/cycle-check.c (cycle_check): Likewise.
43502         * lib/same.c (same_name): Likewise.
43503
43504         lstat: avoid mingw compilation error
43505         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
43506         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
43507         lstat ourselves.
43508         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
43509         was adequate.
43510         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
43511         the checks for lstat.
43512         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
43513
43514         link: fix test failure on Solaris 9
43515         * lib/link.c (rpl_link): Don't assume link will catch bogus
43516         trailing slash on source.
43517
43518         test-symlinkat: enhance test
43519         * tests/test-readlink.c (main): Move guts...
43520         * tests/test-readlink.h (test_readlink): ...into new file.
43521         * tests/test-symlink.c (main): Move guts...
43522         * tests/test-symlink.h (test_symlink): ...into new file.
43523         * tests/test-symlinkat.c (main): Use new files for further
43524         coverage.
43525         (do_symlink, do_readlink): New helper functions.
43526         * modules/symlink-tests (Files): Ship new file.
43527         (Depends-on): Add stdbool.
43528         * modules/readlink-tests (Files): Ship new file.
43529         (Depends-on): Add stdbool.
43530         * modules/symlinkat-tests (Files): Use new files.
43531
43532 2009-09-23  Eric Blake  <ebb9@byu.net>
43533
43534         readlink: document portability issue with symlink length
43535         * doc/posix-functions/lstat.texi (lstat): Mention that some file
43536         systems have bogus st_size on symlinks, and mention the
43537         areadlink-with-size module.
43538         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
43539         * doc/posix-functions/readlink.texi (readlink): Mention the
43540         areadlink module, and ERANGE failure.
43541         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43542         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
43543
43544         readlink: fix Solaris 9 bug with trailing slash
43545         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
43546         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
43547         * doc/posix-functions/readlink.texi (readlink): Document this.
43548         * modules/readlink-tests: New test.
43549         * tests/test-readlink.c: Likewise.
43550
43551         readlink: fix cygwin 1.5.x bug with return type
43552         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
43553         * lib/unistd.in.h (readlink): Use ssize_t.
43554         * lib/readlink.c (readlink): Likewise.
43555         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43556         * modules/unistd (Makefile.am): Substitute it.
43557         * lib/unistd.in.h (readlink): Declare replacement.
43558         * doc/posix-functions/readlink.texi (readlink): Document this.
43559
43560         symlink: use throughout gnulib
43561         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
43562         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
43563         symlink is not used.
43564         * modules/symlinkat (Depends-on): Add symlink.
43565         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
43566         * modules/canonicalize-tests (Depends-on): Likewise.
43567         * modules/lstat-tests (Depends-on): Likewise.
43568         * modules/openat-tests (Depends-on): Likewise.
43569         * modules/remove-tests (Depends-on): Likewise.
43570         * modules/rmdir-tests (Depends-on): Likewise.
43571         * modules/unlink-tests (Depends-on): Likewise.
43572         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
43573         * tests/test-canonicalize.c (symlink): Likewise.
43574         * tests/test-fstatat.c (symlink): Likewise.
43575         * tests/test-lstat.c (symlink): Likewise.
43576         * tests/test-remove.c (symlink): Likewise.
43577         * tests/test-rmdir.c (symlink): Likewise.
43578         * tests/test-unlink.c (symlink): Likewise.
43579         * tests/test-unlinkat.c (symlink): Likewise.
43580
43581         symlink: new module, for Solaris 9 bug
43582         * modules/symlink: New file.
43583         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
43584         * lib/symlink.c: Likewise.
43585         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
43586         * modules/unistd (Makefile.am): Substitute them.
43587         * lib/unistd.in.h (symlink): Declare replacement.
43588         * MODULES.html.sh (File system functions): Mention it.
43589         * doc/posix-functions/symlink.texi (symlink): Likewise.
43590         * modules/symlink-tests: New test.
43591         * tests/test-symlink.c: Likewise.
43592
43593 2009-09-23  Bruno Haible  <bruno@clisp.org>
43594
43595         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
43596         when needed.
43597         Test case: gnulib-tool --import --with-tests atexit inttypes.
43598         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
43599
43600 2009-09-23  Bruno Haible  <bruno@clisp.org>
43601
43602         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
43603         subcommand, not in a subshell.
43604
43605 2009-09-22  Eric Blake  <ebb9@byu.net>
43606
43607         unistd: sort replacement declarations
43608         * lib/unistd.in.h: Sort declarations.
43609
43610         open, openat: minor optimization
43611         * lib/open.c (open): If open succeeded, len is non-zero.
43612         * lib/openat.c (rpl_openat): Likewise.
43613
43614         link-follow: ensure correct result
43615         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
43616         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
43617         distinguish between possible failures.
43618
43619 2009-09-21  Eric Blake  <ebb9@byu.net>
43620
43621         fts: avoid compiler warning
43622         * lib/fts.c (dirent_inode_sort_may_be_useful)
43623         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
43624
43625 2009-09-19  Bruno Haible  <bruno@clisp.org>
43626
43627         * lib/progreloc.c (canonicalize_file_name): New declaration.
43628
43629 2009-09-19  Eric Blake  <ebb9@byu.net>
43630
43631         link: fix quoting
43632         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
43633
43634         openat: fix openat bugs on Solaris 9
43635         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
43636         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
43637         * modules/openat (Depends-on): Add open.
43638         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
43639         * modules/fcntl-h (Makefile.am): Substitute it.
43640         * lib/fcntl.in.h (openat): Declare replacement.
43641         * doc/posix-functions/openat.texi (openat): Document this.
43642
43643         openat: move fstatat and unlinkat into correct files
43644         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
43645         compiled.
43646         * lib/openat.c (fstatat, unlinkat): Move...
43647         * lib/fstatat.c (fstatat): ...into correct files.
43648         * lib/unlinkat.c (unlinkat): Likewise.
43649
43650         openat: fix unlinkat bugs on Solaris 9
43651         * lib/unlinkat.c (unlinkat): New file.
43652         * modules/openat (Depends-on): Add unlink.
43653         (Files): Distribute it.
43654         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
43655         trailing slash behavior is broken.
43656         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43657         * modules/unistd (Makefile.am): Substitute it.
43658         * lib/unistd.in.h (unlinkat): Declare replacement.
43659         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
43660
43661         openat: fix fstatat bugs on Solaris 9
43662         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
43663         stat.
43664         * doc/posix-functions/fstatat.texi (fstatat): Document this.
43665
43666         test-unlinkat: enhance test, to expose Solaris 9 bug
43667         * tests/test-unlink.c (main): Factor guts...
43668         * tests/test-unlink.h (test_rmdir_func): ...into new file.
43669         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
43670         * tests/test-rmdir.c (main): Adjust caller.
43671         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
43672         (unlinker): New helper function.
43673         (rmdirat): Enhance check.
43674         * modules/rmdir-tests (Depends-on): Add stdbool.
43675         * modules/unlink-tests (Depends-on): Likewise.
43676         (Files): Add test-unlink.h.
43677         * modules/openat-tests (Files): Likewise.
43678         (Depends-on): Add unlinkdir.
43679
43680         test-fstatat: new test, to expose Solaris 9 bugs
43681         * tests/test-stat.c (main): Factor guts...
43682         * tests/test-stat.h (test_stat_func): ...into new file.
43683         * tests/test-lstat.c (main): Factor guts...
43684         * tests/test-lstat.h (test_lstat_func): ...into new file.
43685         * tests/test-fstatat.c: New file.
43686         * modules/stat-tests (Files): Add test-stat.h.
43687         * modules/lstat-tests (Files): Add test-lstat.h.
43688         (Depends-on): Add stdbool.
43689         * modules/openat-tests (Depends-on): Add pathmax.
43690         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
43691         (Makefile.am): Run new test.
43692
43693         remove: new module, for mingw and Solaris 9 bugs
43694         * modules/remove: New file.
43695         * lib/remove.c: Likewise.
43696         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
43697         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
43698         * modules/stdio (Makefile.am): Use them.
43699         * lib/stdio.in.h (remove): Declare replacement.
43700         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43701         * doc/posix-functions/remove.texi (remove): Likewise.
43702         * modules/remove-tests: New test.
43703         * tests/test-remove.c: Likewise.
43704
43705         unlink: new module, for Solaris 9 bug
43706         * modules/unlink: New file.
43707         * lib/unlink.c: Likewise.
43708         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
43709         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
43710         * modules/unistd (Makefile.am): Use them.
43711         * lib/unistd.in.h (stat): Declare replacement.
43712         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43713         * doc/posix-functions/unlink.texi (unlink): Likewise.
43714         * modules/unlink-tests: New test.
43715         * tests/test-unlink.c: Likewise.
43716
43717         lstat: fix Solaris 9 bug
43718         * lib/lstat.c (lstat): Also check for trailing slash on
43719         non-symlink, non-directories.  Use stat module to simplify logic.
43720         * doc/posix-functions/lstat.texi (lstat): Document it.
43721         * modules/lstat-tests (Depends-on): Add errno, same-inode.
43722         (configure.ac): Check for symlink.
43723         * tests/test-lstat.c (main): Add more tests.
43724
43725         stat: add as dependency to other modules
43726         * modules/chown (Depends-on): Add stat.
43727         * modules/euidaccess (Depends-on): Likewise.
43728         * modules/fchdir (Depends-on): Likewise.
43729         * modules/isdir (Depends-on): Likewise.
43730         * modules/link (Depends-on): Likewise.
43731         * modules/lstat (Depends-on): Likewise.
43732         * modules/mkdir-p (Depends-on): Likewise.
43733         * modules/modechange (Depends-on): Likewise.
43734         * modules/open (Depends-on): Likewise.
43735         * modules/readlink (Depends-on): Likewise.
43736         * modules/same (Depends-on): Likewise.
43737
43738         stat: fix Solaris 9 bug
43739         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
43740         slash.
43741         * lib/stat.c (rpl_stat): Work around it.
43742         * doc/posix-functions/stat.texi (stat): Update documentation.
43743
43744         stat: new module, for mingw bug
43745         * modules/stat: New file.
43746         * lib/stat.c: Likewise.
43747         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
43748         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
43749         * modules/sys_stat (Makefile.am): Use them.
43750         * lib/sys_stat.in.h (stat): Declare replacement.
43751         * lib/openat.c (fstatat): Deal with lstat and stat being function
43752         macros.
43753         * modules/openat (Depends-on): Add inline.
43754         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
43755         * doc/posix-functions/stat.texi (stat): Likewise.
43756         * modules/stat-tests: New test.
43757         * tests/test-stat.c: Likewise.
43758
43759 2009-09-19  Jim Meyering  <meyering@redhat.com>
43760
43761         syntax-check: detect unnecessary inclusion of canonicalize.h
43762         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
43763
43764 2009-09-19  Eric Blake  <ebb9@byu.net>
43765
43766         canonicalize-lgpl: adjust clients to use correct header
43767         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
43768         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
43769         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
43770         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
43771         * lib/progreloc.c (includes): Likewise.
43772
43773 2009-09-19  Jim Meyering  <meyering@redhat.com>
43774
43775         test-posixtm.c: correct a comment
43776         * tests/test-posixtm.c: Correct first-line comment.
43777         Spotted by Eric Blake.
43778
43779 2009-09-16  Jim Meyering  <meyering@redhat.com>
43780
43781         posixtm-tests: make T const-correct; add a test case
43782         * tests/test-posixtm.c (T): Declare const.
43783         Add a test for -(2^31+1).
43784         Remove useless can-succeed-only-in-2002 test.
43785
43786         posixtm-tests: adjust the sole failing test
43787         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
43788         expected output matches what mktime now produces.  Cross-checked via
43789         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
43790
43791         posixtm: move #ifdef'd tests into a new module
43792         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
43793         * tests/test-posixtm.c: ... this new file.
43794         * modules/posixtm-tests: New module.
43795
43796 2009-09-19  Eric Blake  <ebb9@byu.net>
43797
43798         openat: simplify use of at-func.c
43799         * lib/at-func.c (includes): Include prerequisites here, to
43800         simplify requirements on client files.
43801         * lib/openat-priv.h: Add double-inclusion guard.
43802         * lib/faccessat.c (includes): Simplify.
43803         * lib/fchmodat.c (includes): Likewise.
43804         * lib/fchownat.c (includes): Likewise.
43805         * lib/mkdirat.c (includes): Likewise.
43806         * lib/mkfifoat.c (includes): Likewise.
43807         * lib/symlinkat.c (includes): Likewise.
43808
43809         openat: allow return of fd 0
43810         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
43811         * modules/save-cwd (Depends-on): Replace fcntl-safer with
43812         unistd-safer.
43813         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
43814         <fcntl.h>; this module does not leak fds.
43815         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
43816         must be allowed to return 0, leaving openat_safer to add the
43817         safety.
43818         (openat_permissive): Avoid writing to just-opened fd 2 if
43819         restoring the current directory fails.
43820         * lib/openat-die.c (openat_restore_fail): Add comment.
43821         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
43822         (save_cwd): Guarantee safe fd, but without use of open_safer.
43823         * tests/test-openat.c: New test.
43824         * modules/openat-tests (Files, Makefile.am): Distribute and build
43825         new file.
43826
43827         relocatable-prog-wrapper: fix build
43828         * modules/relocatable-prog-wrapper (Files): Update name of
43829         canonicalize m4 file, broken on 2009-09-17.
43830         Reported by emad hajjar <aleppos@hotmail.com>.
43831
43832 2009-09-19  Bruno Haible  <bruno@clisp.org>
43833
43834         * lib/safe-alloc.h: Use the standard header with GPL copyright.
43835         * lib/safe-alloc.c: Likewise.
43836         Reported by Ian Beckwith <ianb@erislabs.net>.
43837
43838 2009-09-18  Bruno Haible  <bruno@clisp.org>
43839
43840         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
43841         Reported by <erobles@sensacd.com.mx>.
43842
43843 2009-09-17  Eric Blake  <ebb9@byu.net>
43844
43845         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
43846         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
43847         slashes when checking if last component is missing.
43848         * tests/test-canonicalize.c (main): Test this.
43849
43850         canonicalize, canonicalize-lgpl: honor // if distinct from /
43851         * modules/canonicalize (Files): Add double-slash-root.m4.
43852         * modules/canonicalize-lgpl (Files): Likewise.
43853         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
43854         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
43855         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
43856         fallback definition.
43857         (canonicalize_filename_mode): Use it to protect //.
43858         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
43859         (__realpath): Likewise.
43860         * tests/test-canonicalize.c (main): Test this.
43861         * tests/test-canonicalize-lgpl.c (main): Likewise.
43862         * modules/canonicalize-tests (Depends-on): Add same-inode.
43863         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
43864
43865         canonicalize-lgpl: fix glibc bug with trailing slash
43866         * m4/canonicalize-lgpl.m4: Move contents...
43867         * m4/canonicalize.m4: ...here.
43868         (gl_CANONICALIZE_LGPL): Factor realpath check...
43869         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
43870         glibc 2.3.5 bug, fixed 2005-04-27.
43871         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
43872         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
43873         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
43874         * modules/canonicalize-lgpl (Files): Manage file rename.
43875         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
43876         * modules/stdlib (Makefile.am): Substitute witness.
43877         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
43878         is needed.
43879         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
43880         replacement is required.
43881         * lib/canonicalize.c (canonicalize_file_name): Likewise.
43882         * doc/glibc-functions/canonicalize_file_name.texi
43883         (canonicalize_file_name): Document this.
43884         * doc/posix-functions/realpath.texi (realpath): Likewise.
43885
43886         canonicalize-lgpl: reject non-directory with trailing slash
43887         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
43888         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
43889         catches failures in glibc 2.3.5.
43890         * tests/test-canonicalize.c (main): Likewise.
43891
43892         canonicalize-lgpl: use native realpath if it works
43893         * lib/canonicalize-lgpl.c (realpath): Guard with
43894         FUNC_REALPATH_WORKS.
43895         * lib/stdlib.in.h (realpath): Make declaration optional based on
43896         HAVE_REALPATH.
43897         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
43898         native realpath works.
43899         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
43900         * modules/stdlib (Makefile.am): Substitute witness.
43901
43902         canonicalize, canonicalize-lgpl: use <stdlib.h>
43903         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
43904         (Include): Mention <stdlib.h>.
43905         (configure.ac): Mention functions we provide.
43906         * modules/canonicalize (configure.ac): Likewise.
43907         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
43908         realpath if canonicalize_file_name is missing.
43909         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
43910         * modules/stdlib (Makefile.am): Substitute witnesses.
43911         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
43912         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
43913         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
43914         * NEWS: Document this.
43915         * doc/glibc-functions/canonicalize_file_name.texi
43916         (canonicalize_file_name): Likewise.
43917         * doc/posix-functions/realpath.texi (realpath): Likewise.
43918         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
43919
43920         test-canonicalize: consolidate into single C program
43921         * tests/test-canonicalize.sh: Delete; move setup into...
43922         * tests/test-canonicalize.c (main): ...the program, making it
43923         easier to run in debugger.  Add some tests.
43924         * modules/canonicalize-tests (Files): Remove unused file.
43925         (Depends-on): Add progname.
43926         (configure.ac, Makefile.am): Simplify.
43927
43928         test-canonicalize-lgpl: consolidate into single C program
43929         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
43930         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
43931         easier to run in debugger.  Add some tests.
43932         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
43933         (configure.ac, Makefile.am): Simplify.
43934
43935         canonicalize: avoid resolvepath
43936         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
43937         unnecessary checks.
43938         * lib/canonicalize.c (includes): Simplify.
43939         (canonicalize_file_name): Drop resolvepath implementation.
43940         * modules/canonicalize (Depends-on): Drop filenamecat.
43941
43942         canonicalize: don't lose errno
43943         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
43944         over calls to free.
43945
43946         canonicalize: simplify errno handling
43947         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
43948         assignment.
43949
43950         canonicalize, canonicalize-lgpl: update module dependencies
43951         * modules/canonicalize (Depends-on): Add extensions, lstat,
43952         pathmax, stdlib.
43953         (Files): Drop pathmax.h.
43954         (configure.ac): Adjust macro name.
43955         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
43956         lstat, stdlib, sys_stat.
43957         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
43958         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
43959         extensions.
43960         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
43961         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
43962         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
43963         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
43964         declaration, if available.
43965         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
43966         we can rely on the readlink module.
43967         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
43968         (includes): Use <unistd.h> unconditionally.
43969
43970 2009-09-17  Eric Blake  <ebb9@byu.net>
43971
43972         maint: make Include sections of modules consistent
43973         * modules/alloca: Use only header name; no need to list #include.
43974         * modules/alloca-opt: Likewise.
43975         * modules/arpa_inet: Likewise.
43976         * modules/canon-host: Likewise.
43977         * modules/configmake: Likewise.
43978         * modules/dirent: Likewise.
43979         * modules/eealloc: Likewise.
43980         * modules/environ: Likewise.
43981         * modules/fchdir: Likewise.
43982         * modules/fcntl: Likewise.
43983         * modules/fcntl-h: Likewise.
43984         * modules/gethrxtime: Likewise.
43985         * modules/gettime: Likewise.
43986         * modules/ignore-value: Likewise.
43987         * modules/inet_ntop: Likewise.
43988         * modules/inet_pton: Likewise.
43989         * modules/inttypes: Likewise.
43990         * modules/isnand-nolibm: Likewise.
43991         * modules/isnanf-nolibm: Likewise.
43992         * modules/mbchar: Likewise.
43993         * modules/mbfile: Likewise.
43994         * modules/mbiter: Likewise.
43995         * modules/mbuiter: Likewise.
43996         * modules/netdb: Likewise.
43997         * modules/netinet_in: Likewise.
43998         * modules/nproc: Likewise.
43999         * modules/pagealign_alloc: Likewise.
44000         * modules/poll: Likewise.
44001         * modules/printf-frexp: Likewise.
44002         * modules/pthread: Likewise.
44003         * modules/putenv: Likewise.
44004         * modules/random_r: Likewise.
44005         * modules/relocatable-prog: Likewise.
44006         * modules/search: Likewise.
44007         * modules/select: Likewise.
44008         * modules/selinux-h: Likewise.
44009         * modules/settime: Likewise.
44010         * modules/signal: Likewise.
44011         * modules/size_max: Likewise.
44012         * modules/socklen: Likewise.
44013         * modules/ssize_t: Likewise.
44014         * modules/stdarg: Likewise.
44015         * modules/stdbool: Likewise.
44016         * modules/stddef: Likewise.
44017         * modules/stdint: Likewise.
44018         * modules/stdio: Likewise.
44019         * modules/stdlib: Likewise.
44020         * modules/string: Likewise.
44021         * modules/strings: Likewise.
44022         * modules/sys_file: Likewise.
44023         * modules/sys_ioctl: Likewise.
44024         * modules/sys_select: Likewise.
44025         * modules/sys_socket: Likewise.
44026         * modules/sys_stat: Likewise.
44027         * modules/sys_time: Likewise.
44028         * modules/sys_times: Likewise.
44029         * modules/sys_utsname: Likewise.
44030         * modules/sys_wait: Likewise.
44031         * modules/sysexits: Likewise.
44032         * modules/time: Likewise.
44033         * modules/times: Likewise.
44034         * modules/tmpfile: Likewise.
44035         * modules/trim: Likewise.
44036         * modules/unistd: Likewise.
44037         * modules/wchar: Likewise.
44038         * modules/wctype: Likewise.
44039
44040 2009-09-17  Bruno Haible  <bruno@clisp.org>
44041
44042         Make getdate.y compile on QNX and NetBSD 5 / i386.
44043         * m4/getdate.m4 (gl_GETDATE): Conditionally define
44044         TIME_T_FITS_IN_LONG_INT.
44045         * lib/getdate.y (long_time_t): New type.
44046         (relative_time): Change type of 'seconds' field to long_time_t.
44047         (get_date): Update types of local variables. Check against overflow
44048         during conversion from long_time_t to time_t.
44049         Reported by Matt Kraai <kraai@ftbfs.org>
44050         and Hasso Tepper <hasso@netbsd.org>.
44051
44052 2009-09-17  Bruno Haible  <bruno@clisp.org>
44053
44054         * modules/COPYING: Update copyright years.
44055         * modules/README: Likeiwse.
44056         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
44057         Reported by Ian Beckwith <ianb@erislabs.net>.
44058
44059 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
44060
44061         * users.txt: Update references for gnuit package.
44062
44063 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
44064
44065         * m4/getdelim.m4: Fix typo in copyright line.
44066
44067 2009-09-17  Bruno Haible  <bruno@clisp.org>
44068
44069         * lib/atoll.c: Use the standard header with GPL copyright.
44070         * lib/argz.in.h: Likewise.
44071         * lib/glob.c: Likewise.
44072         * lib/glob-libc.h: Likewise.
44073         * lib/random_r.c: Likewise.
44074         * lib/siglist.h: Likewise.
44075         * lib/strsignal.c: Likewise.
44076         Reported by Ian Beckwith <ianb@erislabs.net>.
44077
44078 2009-09-17  Eric Blake  <ebb9@byu.net>
44079
44080         rmdir: ensure correct dependency order
44081         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
44082
44083 2009-09-17  Bruno Haible  <bruno@clisp.org>
44084
44085         Disable assertion that fails on NetBSD 5 / i386.
44086         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
44087         Reported by Sam Steingold <sds@gnu.org>
44088         and Hasso Tepper <hasso@netbsd.org>.
44089
44090 2009-09-16  Eric Blake  <ebb9@byu.net>
44091
44092         unlinkdir: port to mingw
44093         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
44094         on which no one can unlink a directory.
44095
44096         stdlib: sort witness names
44097         * modules/stdlib (Makefile.am): Sort replacements.
44098         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
44099         * lib/stdlib.in.h: Likewise.
44100
44101         parse-duration-tests: avoid link failure
44102         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
44103         LIBINTL.
44104         Reported by Tom G. Christensen.
44105
44106         openat-tests: ensure unlinkat behaves like rmdir
44107         * tests/test-rmdir.c (main): Factor guts...
44108         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
44109         * modules/rmdir-tests (Files): Ship new file.
44110         * modules/openat-tests: New test.
44111         * tests/test-unlinkat.c: Likewise.
44112
44113         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
44114         * modules/rmdir-errno (Status, Notice): Now obsolete.
44115
44116         rmdir: work around cygwin 1.5.x and mingw bugs
44117         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
44118         * lib/rmdir.c (rmdir): Work around it.
44119         * modules/rmdir (Status, Notice): No longer obsolete.
44120         (Files): Add dos.m4.
44121         (Depends-on): Add unistd.
44122         (configure.ac): Set witnesses.
44123         (License): Relax to LGPLv2+.
44124         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
44125         * modules/unistd (Makefile.am): Substitute witnesses.
44126         * lib/unistd.in.h (rmdir): Declare replacement.
44127         * doc/posix-functions/rmdir.texi (rmdir): Document this.
44128         * modules/rmdir-tests: New tests.
44129         * tests/test-rmdir.c: Likewise.
44130
44131 2009-09-15  Eric Blake  <ebb9@byu.net>
44132
44133         fchdir: improve use of replacement functions
44134         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
44135         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
44136         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
44137         REPLACE_CLOSEDIR.
44138         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
44139         * modules/sys_stat (Makefile.am): Substitute correct witness.
44140         * modules/dirent (Makefile.am): Likewise.
44141         * modules/unistd (Makefile.am): Likewise.
44142         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
44143         * lib/unistd.in.h (dup): Likewise.
44144         * lib/sys_stat.in.h (fstat): Likewise.
44145
44146         maint: ignore gnulib-tool temp files
44147         * .gitignore: Ignore files created during gnulib-tool --test.
44148
44149 2009-09-13  Jim Meyering  <meyering@redhat.com>
44150
44151         posixtm: don't reject a time that specify "60" as the number of seconds
44152         * lib/posixtm.c (posixtime): The code to reject invalid dates
44153         would also reject a time specified with the .60 suffix.
44154         But POSIX allows that, in order to accommodate leap seconds.
44155         So don't reject it.
44156         (main): Adjust tests accordingly.
44157         * modules/posixtm (Depends-on): Add stpcpy.
44158
44159 2009-09-11  Jim Meyering  <meyering@redhat.com>
44160
44161         announce-gen: include [$release_type] in emitted Subject:
44162         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
44163         e.g., [stable] in the emitted Subject: line.
44164
44165 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44166
44167         Remove obsolete macros from several modules.
44168         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
44169         obsolete Autoconf macros with their modern counterparts.
44170         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
44171         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
44172         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
44173         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
44174         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
44175         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
44176         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
44177         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
44178         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
44179         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
44180         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
44181         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
44182         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
44183         * m4/sockets.m4 (gl_SOCKETS): Likewise.
44184         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
44185         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
44186         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
44187         * m4/time_r.m4 (gl_TIME_R): Likewise.
44188         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
44189         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
44190         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
44191
44192         Fix copyright header in build-aux scripts.
44193         * build-aux/git-version-gen: Fix copyright header to match GPLv3
44194         recommendation.
44195         * build-aux/ncftpput-ftp: Likewise.
44196         * build-aux/update-copyright: Likewise.
44197
44198 2009-09-09  Eric Blake  <ebb9@byu.net>
44199
44200         test-link: allow Linux choice of errno
44201         * tests/test-link.c (main): Relax test for alternate error.
44202
44203         strndup: fix improper m4 caching
44204         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
44205         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
44206         (gl_PREREQ_STRNDUP): Delete.
44207         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
44208         * modules/string (Makefile.am): Substitute it.
44209         * lib/string.in.h (strndup): Modernize prototype.
44210
44211         getcwd: port to mingw
44212         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
44213         different from the POSIX assumptions made throughout the getcwd
44214         module; fortunately, the mingw getcwd does not need replacement.
44215         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
44216         * modules/getcwd-tests: New test.
44217         * tests/test-getcwd.c: Likewise.
44218
44219         link: fix platform bugs
44220         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
44221         * lib/link.c (link): Work around them.  Fix related mingw bug.
44222         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
44223         * modules/unistd (Makefile.am): Substitute it.
44224         * lib/unistd.in.h (link): Declare replacement.
44225         * doc/posix-functions/link.texi (link): Document this.
44226         * modules/link (Depends-on): Add strdup-posix, sys_stat.
44227
44228         test-link: consolidate into single C program, test more cases
44229         * tests/test-link.sh: Delete.
44230         * tests/test-link.c: Test more error conditions.  Exposes bugs on
44231         at least Cygwin and Solaris.
44232         * modules/link-tests (Files): Remove unused file.
44233         (Depends-on): Add errno, sys_stat.
44234         (Makefile.am): Simplify.
44235
44236 2009-09-08  Bruno Haible  <bruno@clisp.org>
44237
44238         Work around towlower, towupper bug on mingw.
44239         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
44240         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
44241         * doc/posix-functions/towlower.texi: Mention the mingw bug.
44242         * doc/posix-functions/towupper.texi: Likewise.
44243         Reported by Eric Blake.
44244
44245 2009-09-08  Jim Meyering  <meyering@redhat.com>
44246
44247         build: don't try to run autoheader if we don't use it
44248         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
44249         is not used in configure.ac.
44250
44251 2009-09-08  Eric Blake  <ebb9@byu.net>
44252
44253         euidaccess: fix compilation error
44254         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
44255
44256         rawmemchr: relax license
44257         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
44258         okay.
44259         Reported by Jim Meyering.
44260
44261         mkfifoat: new module
44262         * modules/mkfifoat: New file.
44263         * lib/mkfifoat.c: Likewise.
44264         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
44265         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
44266         * modules/sys_stat (Makefile.am): Use them.
44267         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
44268         * MODULES.html.sh (File system functions): Mention module.
44269         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
44270         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
44271         * modules/mkfifoat-tests: New test.
44272         * tests/test-mkfifoat.c: Likewise.
44273
44274         strchrnul: relax license
44275         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
44276         okay.
44277         Reported by Jim Meyering.
44278
44279 2009-09-08  Eric Blake  <ebb9@byu.net>
44280
44281         fstatat: fix compilation on Solaris
44282         * lib/fstatat.c (includes): Add fcntl.h.
44283         Reported by Pádraig Brady.
44284
44285 2009-09-07  Eric Blake  <ebb9@byu.net>
44286
44287         rename: modernize replacement
44288         * modules/rename (Depends-on): Add stdio.
44289         (configure.ac): Declare witness.
44290         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
44291         stdio take care of replacement.
44292         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
44293         * modules/stdio (Makefile.am): Substitute them.
44294         * lib/stdio.in.h (rename): Declare replacement.
44295         * lib/rename.c (includes): Allow cross-compilation to non-windows
44296         machines.
44297         * doc/posix-functions/rename.texi (rename): Improve
44298         documentation.
44299
44300         stdio: sort witness names
44301         * modules/stdio (Makefile.am): Sort replacements.
44302         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
44303         * lib/stdio.in.h: Likewise.
44304
44305         getcwd: minor cleanups
44306         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
44307         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
44308
44309         openat: provide more convenience names
44310         * modules/faccessat (configure.ac): Add C witness.
44311         * lib/unistd.in.h (readlinkat): Fix typo.
44312         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
44313         convenience wrappers.
44314         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
44315         wrappers in syntax checks.
44316
44317 2009-09-06  Eric Blake  <ebb9@byu.net>
44318
44319         doc: fix comments in recent patches
44320         * lib/faccessat.c: Mention correct function.
44321         * lib/fchmodat.c: Likewise.
44322         * lib/fchownat.c: Likewise.
44323         * lib/symlinkat.c: Likewise.
44324         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
44325         constants.
44326
44327         faccessat, symlinkat: continue cleanup of previous patch
44328         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
44329         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
44330         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
44331         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
44332         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
44333         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
44334         set.
44335
44336 2009-09-06  Bruno Haible  <bruno@clisp.org>
44337
44338         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
44339         (fstatat): Declare if GNULIB_FSTATAT is set.
44340         (mkdirat): Declare if GNULIB_MKDIRAT is set.
44341         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
44342         (unlinkat): Declare if GNULIB_UNLINKAT is set.
44343         * modules/fcntl-h (Files): Remove m4/openat.m4.
44344         * modules/sys_stat (Files): Remove m4/openat.m4.
44345         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
44346         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
44347         * modules/unistd (Files): Remove m4/openat.m4.
44348         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
44349         GNULIB_OPENAT.
44350         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
44351         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
44352         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
44353         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
44354         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
44355         gl_OPENAT_DEFAULTS.
44356         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
44357         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
44358         Don't require gl_OPENAT_DEFAULTS.
44359         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
44360         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
44361         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
44362         (gl_OPENAT_DEFAULTS): Remove macro.
44363
44364 2009-09-06  Bruno Haible  <bruno@clisp.org>
44365
44366         * modules/openat (configure.ac): Remove unneeded witness.
44367
44368 2009-09-06  Bruno Haible  <bruno@clisp.org>
44369
44370         Set errno to ENOSYS when a function is entirely unsupported.
44371         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
44372         EOPNOTSUPP.
44373         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
44374         * modules/chown (Depends-on): Remove errno.
44375
44376 2009-09-06  Bruno Haible  <bruno@clisp.org>
44377
44378         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
44379
44380 2009-09-06  Bruno Haible  <bruno@clisp.org>
44381
44382         * lib/sys_stat.in.h: Fix preprocessor command indentation.
44383
44384 2009-09-06  Ben Pfaff  <blp@gnu.org>
44385             Bruno Haible  <bruno@clisp.org>
44386
44387         Work around a glibc bug in strtok_r.
44388         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
44389         Undefine if UNDEFINE_STRTOK_R is set.
44390         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
44391         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
44392         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
44393         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
44394         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
44395         UNDEFINE_STRTOK_R.
44396         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
44397
44398 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
44399
44400         exclude: minor fix
44401         * lib/exclude.c: Include wctype.h
44402
44403 2009-09-06  Akim Demaille  <demaille@gostai.com>
44404
44405         bootstrap: improve error message
44406         * build-aux/bootstrap (find_tool): Upon failure, report the list
44407         of candidates.
44408         Honor the initial value of the envvar.
44409
44410 2009-09-05  Eric Blake  <ebb9@byu.net>
44411
44412         symlinkat: new module
44413         * modules/symlinkat: New file.
44414         * lib/symlinkat.c: Likewise.
44415         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
44416         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
44417         * modules/unistd (Makefile.am): Use them.
44418         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
44419         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
44420         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
44421         * MODULES.html.sh (File system functions): Mention module.
44422         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
44423         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
44424         * modules/symlinkat-tests: New test.
44425         * tests/test-symlinkat.c: Likewise.
44426
44427         test-openat-safer: add more checks
44428         * tests/test-openat-safer.c (main): Check more code paths.
44429
44430 2009-09-05  Jim Meyering  <meyering@redhat.com>
44431
44432         syntax-check: detect unnecessary inclusion of openat.h
44433         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
44434
44435 2009-09-05  Bruno Haible  <bruno@clisp.org>
44436
44437         Support towlower, towupper.
44438         * doc/posix-functions/towlower.texi: Mention module wctype.
44439         * doc/posix-functions/towupper.texi: Likewise.
44440         * lib/wctype.in.h (towlower, towupper): New functions.
44441         * tests/test-wctype.c: Include stdio.h, stdlib.h.
44442         (ASSERT): New macro.
44443         (e): New variable.
44444         (main): Test also towlower, towupper. Test WEOF argument.
44445         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
44446
44447 2009-09-05  Bruno Haible  <bruno@clisp.org>
44448
44449         Fix conversion behaviour when the input is invalid.
44450         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
44451         mark occurring in first pass of indirect conversion.
44452         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
44453         input.
44454         Found by clang's static analyzer.
44455
44456 2009-09-05  Bruno Haible  <bruno@clisp.org>
44457
44458         * tests/test-striconveh.c (main): Test indirect conversion on platforms
44459         where direct conversion is possible.
44460
44461 2009-09-04  Eric Blake  <ebb9@byu.net>
44462
44463         openat: fail with ENOENT on empty name
44464         * lib/openat-proc.c (openat_proc_name): Special-case the empty
44465         buffer.
44466
44467         link-follow: fix logic bug in prior patch
44468         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
44469         reversed sense of yes and no in prior patch.  Avoid confusing
44470         compilation failure with desired semantics.
44471
44472         link-follow: accommodate mingw and cross-compilation
44473         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
44474         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
44475         cross-compilation results to -1, to make linkat easier to
44476         implement when cross-compiling.  Trivially support mingw.
44477         * modules/link-follow (configure.ac): Call new name.
44478         * NEWS: Mention this.
44479
44480 2009-09-03  Eric Blake  <ebb9@byu.net>
44481
44482         faccessat: compile replacement
44483         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
44484         needed.
44485
44486         fts: fix compilation error
44487         * lib/fts.c (includes): Re-add "openat.h", for
44488         openat_needs_fchdir.
44489
44490         faccessat: new module
44491         * modules/faccessat: New file.
44492         * lib/faccessat.c: Likewise.
44493         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
44494         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44495         * modules/unistd (Makefile.am): Use it.
44496         * lib/unistd.in.h (faccessat): Declare it.
44497         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
44498         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
44499         * MODULES.html.sh (File system functions): Mention it.
44500         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
44501         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
44502
44503         euidaccess: prefer POSIX over non-standard implementation
44504         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
44505         * lib/euidaccess.c (euidaccess): Use it if available.
44506
44507         openat: make template easier to use
44508         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
44509         AT_FUNC_F2 to be undefined.
44510         (VALIDATE_FLAG): New macro; use it to reject bad flags.
44511         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
44512         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
44513         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
44514         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
44515         Likewise.
44516         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
44517         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
44518         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
44519         Likewise.
44520
44521         openat: declare in POSIX headers
44522         * NEWS: Mention this.
44523         * modules/openat (configure.ac): Declare witnesses.
44524         (Depends-on): Add fcntl-h, sys_stat, unistd.
44525         (Include): Mention correct headers.
44526         * modules/fcntl-h (Depends-on): Add link-warning.
44527         (Files): Add openat.m4.
44528         (Makefile.am): Substitute witnesses.
44529         * modules/sys_stat (Files, Makefile.am): Likewise.
44530         * modules/unistd (Files, Makefile.am): Likewise.
44531         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
44532         (gl_OPENAT_DEFAULTS): New macro.
44533         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
44534         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
44535         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
44536         (SYS_STAT_H): Remove unused variable.
44537         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
44538         * lib/fcntl--.h (includes): Remove unneeded header.
44539         * lib/openat-safer.c (includes): Likewise.
44540         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
44541         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
44542         appropriate headers.
44543         (__OPENAT_PREFIX): Delete.
44544         * lib/fcntl.in.h (openat): Provide declaration.
44545         (AT_FDCWD): Fix Solaris bug.
44546         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
44547         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
44548         * lib/fchmodat.c (includes):  Adjust to find declaration.
44549         * lib/fchownat.c (includes): Likewise.
44550         * lib/mkdirat.c (includes): Likewise.
44551         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
44552         still visible.
44553
44554 2009-09-02  Eric Blake  <ebb9@byu.net>
44555
44556         errno: use consistently
44557         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
44558         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
44559         * lib/canonicalize.c (ELOOP): Likewise.
44560         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
44561         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
44562         * lib/lchown.c (EOPNOTSUPP): Likewise.
44563         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
44564         * lib/savewd.c (ESTALE): Likewise.
44565         * lib/settime.c (ENOSYS): Likewise.
44566         * lib/utimens.c (ENOSYS): Likewise.
44567         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
44568         * lib/chdir-safer.c (ELOOP): Likewise.
44569         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
44570         * modules/c-stack (Depends-on): Add errno.
44571         * modules/canonicalize (Depends-on): Likewise.
44572         * modules/chdir-safer (Depends-on): Likewise.
44573         * modules/fdopendir (Depends-on): Likewise.
44574         * modules/inet_ntop (Depends-on): Likewise.
44575         * modules/inet_pton (Depends-on): Likewise.
44576         * modules/lchown (Depends-on): Likewise.
44577         * modules/openat (Depends-on): Likewise.
44578         * modules/savewd (Depends-on): Likewise.
44579         * modules/settime (Depends-on): Likewise.
44580         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
44581
44582         fts: avoid leaking fds
44583         * modules/fts (Depends-on): Add cloexec.
44584         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
44585         flag.
44586
44587         fts: make directory fds more robust
44588         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
44589         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
44590
44591         backupfile, chdir-long, fts, savedir: make safer
44592         * lib/backupfile.c (includes): Use "dirent--.h", since
44593         numbered_backup can write to stderr during readdir.
44594         * lib/savedir.c (includes): Likewise.
44595         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
44596         emulation can write to stderr on failure.
44597         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
44598         * lib/getcwd.c: Document why opendir_safer is unused.
44599         * lib/glob.c: Likewise.
44600         * lib/scandir.c: Likewise.
44601         * lib/openat-proc.c: Likewise, for open_safer.
44602         * modules/backupfile (Depends-on): Add dirent-safer.
44603         * modules/savedir (Depends-on): Likewise.
44604         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
44605         * modules/chdir-long (Depends-on): Add openat-safer.
44606
44607         openat-safer: new module
44608         * modules/openat-safer: New file.
44609         * lib/openat-safer.c: Likewise.
44610         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
44611         * lib/fcntl-safer.h (openat_safer): Declare.
44612         * lib/fcntl--.h (openat): Override.
44613         * MODULES.html.sh (File descriptor based I/O): Mention it.
44614         * lib/openat.h: Add double-inclusion guards.
44615         * lib/openat.c (includes): Only include "fcntl-safer.h", not
44616         "fcntl--.h", so we can implement openat.
44617         * modules/openat-safer-tests: New test.
44618         * tests/test-openat-safer.c: New file.
44619
44620         dirent-safer: new module
44621         * modules/dirent-safer: New file.
44622         * lib/dirent--.h: Likewise.
44623         * lib/dirent-safer.h: Likewise.
44624         * lib/opendir-safer.c: Likewise.
44625         * m4/dirent-safer.m4: Likewise.
44626         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
44627         * modules/dirent-safer-tests: New test.
44628         * tests/test-dirent-safer.c: New file.
44629         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
44630
44631         fdopendir: optimize on mingw
44632         * lib/unistd.in.h (_gl_directory_name): New prototype.
44633         * lib/fchdir.c (_gl_directory_name): Implement it.
44634         (fchdir): Use it to simplify implementation.
44635         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
44636         fchdir, when available, to avoid calling [f]chdir().
44637
44638         fdopendir: split into its own module
44639         * lib/openat.c (fdopendir): Move...
44640         * lib/fdopendir.c: ...into new file.
44641         * modules/fdopendir: New module.
44642         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
44643         * modules/openat (Depends-on): Add fdopendir.
44644         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
44645         fdopendir here.
44646         * modules/savedir (Depends-on): Only need fdopendir, not full
44647         openat.
44648         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
44649         * lib/openat.h (fdopendir): Drop prototype.
44650         * lib/dirent.in.h (fdopendir): Provide prototype.
44651         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
44652         * modules/dirent (Makefile.am): Substitute them.
44653         * MODULES.html.sh (File system functions): Mention it.
44654         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
44655         * modules/fdopendir-tests: New file.
44656         * tests/test-fdopendir.c: Likewise.
44657
44658         fchdir: use more consistent macro convention
44659         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
44660         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
44661         REPLACE_FCHDIR, rather than relying on config.h macros.
44662         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
44663         inside a single make-time REPLACE_FCHDIR block, rather than using
44664         the config.h FCHDIR_REPLACEMENT.
44665         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
44666         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
44667         Manage fstat replacement.
44668         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
44669         REPLACE_FCHDIR.
44670         * modules/sys_stat (Files): Add m4/unistd_h.m4.
44671         (Makefile.am): Substitute REPLACE_FCHDIR.
44672         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
44673         FCHDIR_REPLACEMENT.
44674         * lib/dup-safer.c (dup_safer): Likewise.
44675         * lib/dup2.c (rpl_dup2): Likewise.
44676         * lib/dup3.c (rpl_dup3): Likewise.
44677         * lib/open.c (rpl_open): Likewise.
44678
44679         fchdir: simplify error handling, and support dup3
44680         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
44681         stdbool, malloc-posix, realloc-posix.
44682         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
44683         (ensure_dirs_slot): Return false on allocation failure.
44684         (rpl_dup2): Delete.
44685         (_gl_register_dup): New function.
44686         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
44687         (_gl_register_fd): Close fd on allocation failure.
44688         * lib/fcntl.in.h (_gl_register_fd): Update signature.
44689         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
44690         prototype.
44691         (rpl_dup2_fchdir): Delete prototype.
44692         * lib/open.c (open): Update caller.
44693         * lib/dup2.c (dup2): Track fchdir metadata.
44694         * lib/dup3.c (dup3): Likewise.
44695         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
44696         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
44697
44698 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44699
44700         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
44701         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
44702         don't pass arguments to AC_OUTPUT.
44703
44704 2009-09-02  Bruno Haible  <bruno@clisp.org>
44705
44706         * modules/mkdtemp (License): Relicense under LGPLv2+.
44707         Reported by Paolo Bonzini.
44708
44709 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44710
44711         Replace uses of obsolete autoconf macros in Jim's modules.
44712         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
44713         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
44714         can evoke a warning from autoconf when run with -Wobsolete
44715         enabled.  They were declared obsolete for good reasons (see
44716         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
44717         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
44718         should not continue using the deprecated macros.
44719         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
44720         obsolete Autoconf macros with modern counterparts.
44721         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
44722         * m4/dos.m4 (gl_AC_DOS): Likewise.
44723         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
44724         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
44725         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
44726         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
44727         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
44728         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
44729         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
44730         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
44731         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
44732         Likewise.
44733         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
44734         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
44735         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
44736         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
44737         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
44738         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
44739
44740 2009-09-01  Eric Blake  <ebb9@byu.net>
44741
44742         fchdir: fix off-by-one bug in previous patch
44743         * lib/fchdir.c (rpl_fstat): Use correct bounds.
44744         (_gl_unregister_fd): Delete useless if.
44745
44746 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
44747
44748         maint.mk: sort the list of syntax-check rules
44749         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
44750         easier to get a sense of progress when the rules are run sequentially
44751         and take a long time.
44752
44753 2009-09-01  Simon Josefsson  <simon@josefsson.org>
44754
44755         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
44756         * modules/netinet_in: Likewise.
44757         * modules/sys_file: Likewise.
44758         * modules/sys_ioctl: Likewise.
44759         * modules/sys_select: Likewise.
44760         * modules/sys_socket: Likewise.
44761         * modules/sys_stat: Likewise.
44762         * modules/sys_time: Likewise.
44763         * modules/sys_times: Likewise.
44764         * modules/sys_utsname: Likewise.
44765         * modules/sys_wait: Likewise.
44766
44767 2009-09-01  Jim Meyering  <meyering@redhat.com>
44768
44769         fts: help ensure that return values are not ignored
44770         * lib/fts_.h (__GNUC_PREREQ): Define.
44771         (__attribute_warn_unused_result__): Define.
44772         (fts_children, fts_close, fts_open, fts_read): Declare with
44773         __attribute_warn_unused_result__.
44774
44775         fts: fts_close now fails also when closing a dir file descriptor fails
44776         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
44777         and propagate to caller, along with errno.
44778
44779         announce-gen: correct formatting in --help output
44780         * build-aux/announce-gen (usage): Move the one-line description in
44781         --help output "up", to where it belongs, just after Usage:.
44782
44783 2009-08-31  Eric Blake  <ebb9@byu.net>
44784
44785         fchdir: port to mingw
44786         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
44787         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
44788         opened, then use a substitute.
44789         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
44790         replacement.
44791         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
44792         (_gl_register_fd): No need to check stat if open already filters
44793         all directories.
44794         (fchdir): Fix error condition to match POSIX.
44795         * modules/fchdir (Depends-on): Add sys_stat.
44796         * doc/posix-functions/open.texi (open): Document the limitation.
44797         * modules/fchdir-tests: New file.
44798         * tests/test-fchdir.c: Likewise.
44799
44800         canonicalize: allow cross-testing from cygwin to mingw
44801         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
44802         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
44803         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
44804         Likewise.
44805         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
44806         target does not support symlinks.
44807         * tests/test-canonicalize-lgpl.sh: Likewise.
44808
44809         chown: avoid compilation warning on mingw
44810         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
44811         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
44812         mingw.
44813         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
44814         * modules/chown (Depends-on): Add errno.
44815
44816 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
44817
44818         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
44819         command.
44820
44821 2009-08-31  Jim Meyering  <meyering@redhat.com>
44822
44823         canonicalize: remove useless initialization
44824         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
44825         initialization of local, "end".
44826
44827 2009-08-30  Bruno Haible  <bruno@clisp.org>
44828
44829         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
44830         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
44831         ENOSYS.
44832
44833 2009-08-30  Bruno Haible  <bruno@clisp.org>
44834
44835         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
44836         /usr/xpg4/bin/tr when it exists.
44837         * tests/test-pipe-filter-gi1.sh: Likewise.
44838
44839 2009-08-30  Bruno Haible  <bruno@clisp.org>
44840
44841         Work around deficient /usr/bin/id program on Solaris.
44842         * tests/test-file-has-acl.sh (ID): New variable.
44843         * tests/test-set-mode-acl.sh (ID): Likewise.
44844         * tests/test-copy-acl.sh (ID): Likewise.
44845         * tests/test-copy-file.sh (ID): Likewise.
44846
44847 2009-08-30  Bruno Haible  <bruno@clisp.org>
44848
44849         New module 'xstriconveh'.
44850         * lib/xstriconveh.h: New file.
44851         * lib/xstriconveh.c: New file.
44852         * modules/xstriconveh: New file.
44853
44854 2009-08-30  Bruno Haible  <bruno@clisp.org>
44855
44856         Make it easier to use mem_cd_iconveh.
44857         * lib/striconveh.h (iconveh_t): New type.
44858         (iconveh_open, iconveh_close): New declarations.
44859         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
44860         with a single 'const iconveh_t *' argument.
44861         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
44862         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
44863         with a single 'const iconveh_t *' argument.
44864         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
44865         * tests/test-striconveh.c (main): Update.
44866         * NEWS: Mention the change.
44867
44868 2009-08-30  Bruno Haible  <bruno@clisp.org>
44869
44870         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
44871         problem.
44872
44873 2009-08-30  Bruno Haible  <bruno@clisp.org>
44874
44875         Work around iconv_open problem on Solaris.
44876         * lib/iconv_open-solaris.gperf: New file.
44877         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
44878         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
44879         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
44880         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
44881         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
44882         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
44883
44884 2009-08-29  Jim Meyering  <meyering@redhat.com>
44885
44886         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
44887         * top/maint.mk (cvs-check): Remove target; it was just an alias
44888         to the better-named vc-diff-check.
44889         (maintainer-distcheck): Remove rule.  It was used only from
44890         the (alpha/beta/major) target, and all of its commands but one
44891         were coreutils-specific.
44892         (vc-dist): Remove rule.
44893         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
44894         Run vc-diff-check, not vc-dist.
44895         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
44896
44897 2009-08-27  Bruno Haible  <bruno@clisp.org>
44898
44899         * tests/test-bitrotate.c (main): Remove test that uses a shift count
44900         of 0.
44901
44902 2009-08-27  Bruno Haible  <bruno@clisp.org>
44903
44904         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
44905         compilers.
44906         * doc/func.texi: Document the SunPRO C bug.
44907
44908 2009-08-27  Bruno Haible  <bruno@clisp.org>
44909
44910         Fix link error on Solaris.
44911         * tests/test-parse-duration.c (xstrdup): Remove function.
44912
44913 2009-08-26  Pádraig Brady  <P@draigbrady.com>
44914
44915         ignore-value: handle pointer types, too
44916         * lib/ignore-value.h (__attribute__): Remove definition.
44917         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
44918         of a more concise and more-often effective "(void) i" statement.
44919         (ignore_ptr): New function to suppress warnings from functions that
44920         return pointers, and to make it explicit that one function doesn't
44921         handle all cases.
44922
44923 2009-08-25  Bruno Haible  <bruno@clisp.org>
44924
44925         dup2: work around a Linux bug.
44926         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
44927         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
44928         * doc/posix-functions/dup2.texi: Mention the Linux bug.
44929         Reported by Simon Josefsson.
44930
44931 2009-08-25  Jim Meyering  <meyering@redhat.com>
44932
44933         libguestfs uses gnulib
44934         * users.txt: Add libguestfs.
44935
44936 2009-08-24  Eric Blake  <ebb9@byu.net>
44937
44938         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
44939         * lib/pipe2.c (includes): Add binary-io.h.
44940         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
44941
44942 2009-08-24  Bruno Haible  <bruno@clisp.org>
44943
44944         Tolerate declared but missing accept4 syscall.
44945         * lib/accept4.c (accept4): Invoke original accept4 function first, if
44946         available.
44947         * lib/sys_socket.in.h (accept4): If the function is already present,
44948         override it.
44949         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
44950         * modules/accept4 (Makefile.am): Compile accept4.c always.
44951         Reported by Paolo Bonzini and Eric Blake.
44952
44953 2009-08-23  Bruno Haible  <bruno@clisp.org>
44954
44955         New module 'accept4'.
44956         * lib/sys_socket.in.h (accept4): New declaration.
44957         * lib/accept4.c: New file.
44958         * m4/accept4.m4: New file.
44959         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
44960         GNULIB_ACCEPT4, HAVE_ACCEPT4.
44961         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
44962         HAVE_ACCEPT4.
44963         * modules/accept4: New file.
44964         * doc/glibc-functions/accept4.texi: Mention the new module.
44965
44966 2009-08-24  Jim Meyering  <meyering@redhat.com>
44967
44968         progname: also set global program_invocation_name, when possible
44969         Before this change, a libtool-enabled program that calls glibc's
44970         error function would report the program name as
44971         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
44972         * modules/progname (configure.ac): Check for a declaration of
44973         program_invocation_name.
44974         * lib/progname.c:  Include <errno.h>.
44975         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
44976         Set program_invocation_name.
44977
44978 2009-08-23  Bruno Haible  <bruno@clisp.org>
44979
44980         * lib/dup3.c: Include <string.h>.
44981
44982 2009-08-23  Bruno Haible  <bruno@clisp.org>
44983
44984         * lib/dup3.c (dup3): Test only once whether the system actually exists.
44985         * lib/pipe2.c (pipe2): Likewise.
44986         Suggested by Eric Blake.
44987
44988 2009-08-23  Bruno Haible  <bruno@clisp.org>
44989
44990         Tolerate declared but missing dup3 syscall.
44991         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
44992         * lib/unistd.in.h (dup3): If the function is already present,
44993         override it.
44994         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
44995         * modules/dup3 (Makefile.am): Compile dup3.c always.
44996         Reported by Paolo Bonzini.
44997
44998 2009-08-23  Bruno Haible  <bruno@clisp.org>
44999
45000         Tolerate declared but missing pipe2 syscall.
45001         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
45002         available.
45003         * lib/unistd.in.h (pipe2): If the function is already present,
45004         override it.
45005         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
45006         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
45007         Reported by Paolo Bonzini.
45008
45009 2009-08-23  Bruno Haible  <bruno@clisp.org>
45010
45011         * lib/pipe2.c (pipe2): Move #ifs inside function.
45012
45013 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45014
45015         quotearg: document limitations of quote_these_too
45016         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
45017         those limitations are created.
45018         * lib/quotearg.h (set_char_quoting): Document that digits and
45019         letters that are special after backslash are not permitted.
45020         (quotearg_char): Cross-reference set_char_quoting documentation.
45021
45022 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
45023
45024         quotearg: implement custom_quoting_style
45025         * lib/quotearg.c: (struct quoting_options): Add left_quote and
45026         right_quote fields.
45027         (set_custom_quoting): New public function.
45028         (quotearg_buffer_restyled): Add left_quote and right_quote
45029         arguments, handle them very much like locale quoting, and update
45030         all uses.
45031         (quotearg_n_custom): New public function.
45032         (quotearg_n_custom_mem): New public function.
45033         (quotearg_custom): New public function.
45034         (quotearg_custom_mem): New public function.
45035         * lib/quotearg.h: Prototype and document new public functions.
45036         (enum quoting_style): For escape_quoting_style and
45037         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
45038         ignored even though they're otherwise like c_quoting_style.
45039         Add custom_quoting_style member and document with comparison to
45040         clocale_quoting_style.
45041         * tests/test-quotearg.c (custom_quotes): New array.
45042         (custom_results): New array.
45043         (main): Extend to test custom quoting.
45044
45045 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45046
45047         quotearg: fix right quote escaping when it's in quote_these_too
45048         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
45049         quote, be sure to prepend only one backslash.
45050         * tests/test-quotearg.c (use_quote_double_quotes): New function.
45051         (main): Test it.
45052
45053 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
45054
45055         quotearg-tests: test escaping of embedded locale quotes
45056         * tests/test-quotearg.c (struct result_strings): Add member for
45057         new input.
45058         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
45059         (inputs): Add new input.
45060         (results_g): Add expected results.
45061         (flag_results): Likewise.
45062         (locale_results): Likewise.
45063         (compare_strings): Check those.
45064
45065 2009-08-23  Bruno Haible  <bruno@clisp.org>
45066
45067         Tests for module 'dup3'.
45068         * modules/dup3-tests: New file.
45069         * tests/test-dup3.c: New file.
45070
45071         New module 'dup3'.
45072         * lib/unistd.in.h (dup3): New declaration.
45073         * lib/dup3.c: New file.
45074         * m4/dup3.m4: New file.
45075         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
45076         HAVE_DUP3.
45077         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
45078         * modules/dup3: New file.
45079         * doc/glibc-functions/dup3.texi: Mention the new module.
45080
45081 2009-08-23  Bruno Haible  <bruno@clisp.org>
45082
45083         Tweak the dup2 test.
45084         * tests/test-dup2.c (main): Create the test file empty. Verify that an
45085         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
45086         the test file is still empty. Fix argument order of lseek.
45087
45088 2009-08-23  Bruno Haible  <bruno@clisp.org>
45089
45090         Avoid test link errors when the modules getopt-gnu, gettext are used.
45091         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
45092         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45093
45094 2009-08-23  Bruno Haible  <bruno@clisp.org>
45095
45096         Fix getdtablesize() on mingw.
45097         * lib/getdtablesize.c (getdtablesize): Implement differently.
45098         * lib/unistd.in.h (getdtablesize): Improve comment.
45099
45100 2009-08-23  Bruno Haible  <bruno@clisp.org>
45101
45102         New module 'mkostemp'.
45103         Based on Ulrich Drepper's 2007-08-10 change in glibc.
45104         * lib/stdlib.in.h (mksotemp): New declaration.
45105         * lib/mkostemp.c: New file, from glibc with modifications.
45106         * lib/tempname.h (GT_FILE): Remove outdated comment.
45107         (gen_tempname): Add flags argument.
45108         * lib/tempname.c (__GT_BIGFILE): Remove macro.
45109         (__GT_FILE): Map to 1.
45110         (small_open, large_open): Remove macros.
45111         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
45112         * lib/mkstemp.c (mkstemp): Update.
45113         * lib/mkdtemp.c (mkdtemp): Likewise.
45114         * m4/mkostemp.m4: New file.
45115         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
45116         HAVE_MKOSTEMP.
45117         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
45118         HAVE_MKOSTEMP.
45119         * modules/mkostemp: New file, based on modules/mkstemp.
45120         * doc/glibc-functions/mkostemp.texi: Mention the new module.
45121         * NEWS: Mention the change.
45122
45123 2009-08-23  Bruno Haible  <bruno@clisp.org>
45124
45125         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
45126         Reported by Eric Blake.
45127
45128 2009-08-23  Bruno Haible  <bruno@clisp.org>
45129
45130         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
45131         Reported by Eric Blake.
45132
45133 2009-08-23  Bruno Haible  <bruno@clisp.org>
45134
45135         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
45136         * modules/pipe2 (Depends-on): Likewise.
45137
45138 2009-08-23  Eric Blake  <ebb9@byu.net>
45139
45140         fcntl-h: add O_TTY_INIT support
45141         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
45142         * tests/test-fcntl-h.c (o): Test it.
45143         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
45144
45145         fcntl-h: rename from fcntl, in preparation for fcntl(2)
45146         * modules/fcntl: Move <fcntl.h> header replacement...
45147         * modules/fcntl-h: ...to new name, so as not to collide with
45148         like-named function.
45149         * tests/test-fcntl.c: Rename...
45150         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
45151         * modules/fcntl-tests: Rename...
45152         * modules/fcntl-h-tests: ...to this.  Update test file name.
45153         * modules/chdir-long (Depends-on): Update clients.
45154         * modules/chdir-safer (Depends-on): Likewise.
45155         * modules/fcntl-safer (Depends-on): Likewise.
45156         * modules/fts (Depends-on): Likewise.
45157         * modules/mkancesdirs (Depends-on): Likewise.
45158         * modules/mkdir-p (Depends-on): Likewise.
45159         * modules/open (Depends-on): Likewise.
45160         * modules/savewd (Depends-on): Likewise.
45161         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
45162         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
45163
45164 2009-08-22  Bruno Haible  <bruno@clisp.org>
45165
45166         * modules/binary-io (License): Relicense under LGPL.
45167         * modules/pipe2 (License): Likewise.
45168
45169 2009-08-22  Bruno Haible  <bruno@clisp.org>
45170
45171         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
45172         return value.
45173         * lib/pipe-filter-gi.c (filter_init): Likewise.
45174         Reported by Eric Blake.
45175
45176 2009-08-22  Bruno Haible  <bruno@clisp.org>
45177
45178         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
45179         * modules/pipe (Depends-on): Add pipe2.
45180
45181 2009-08-22  Bruno Haible  <bruno@clisp.org>
45182
45183         Tests for module 'pipe2'.
45184         * modules/pipe2-tests: New file.
45185         * tests/test-pipe2.c: New file.
45186
45187         New module 'pipe2'.
45188         * lib/unistd.in.h (pipe2): New declaration.
45189         * lib/pipe2.c: New file.
45190         * m4/pipe2.m4: New file.
45191         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
45192         HAVE_PIPE2.
45193         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
45194         * modules/pipe2: New file.
45195         * doc/glibc-functions/pipe2.texi: Mention the new module.
45196
45197 2009-08-22  Bruno Haible  <bruno@clisp.org>
45198
45199         Reference some new glibc functions.
45200         * doc/glibc-functions/accept4.texi: New file.
45201         * doc/glibc-functions/dup3.texi: New file.
45202         * doc/glibc-functions/mkostemp.texi: New file.
45203         * doc/glibc-functions/pipe2.texi: New file.
45204         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
45205         (Glibc sys/socket.h): Refer to accept4.
45206         (Glibc unistd.h): Refer to dup3, pipe2.
45207         Reported by Eric Blake.
45208
45209 2009-08-22  Jim Meyering  <meyering@redhat.com>
45210             Bruno Haible  <bruno@clisp.org>
45211
45212         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
45213         This makes it so packages using automake-1.11's silent-rules option
45214         can print e.g., a single "GEN    configmake.h" line, rather than
45215         the 30+ statements that perform the job.  If you want to see the
45216         actual commands, you can still run "make V=1".
45217         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
45218         so that make output is abbreviated when those variables are defined
45219         appropriately.
45220         * modules/argz: Likewise.
45221         * modules/arpa_inet: Likewise.
45222         * modules/byteswap: Likewise.
45223         * modules/configmake: Likewise.
45224         * modules/dirent: Likewise.
45225         * modules/errno: Likewise.
45226         * modules/fcntl: Likewise.
45227         * modules/float: Likewise.
45228         * modules/fnmatch: Likewise.
45229         * modules/getopt-posix: Likewise.
45230         * modules/glob: Likewise.
45231         * modules/iconv_open: Likewise.
45232         * modules/inttypes: Likewise.
45233         * modules/localcharset: Likewise.
45234         * modules/locale: Likewise.
45235         * modules/math: Likewise.
45236         * modules/netdb: Likewise.
45237         * modules/netinet_in: Likewise.
45238         * modules/poll: Likewise.
45239         * modules/posix_spawnp-tests: Likewise.
45240         * modules/sched: Likewise.
45241         * modules/search: Likewise.
45242         * modules/selinux-h: Likewise.
45243         * modules/signal: Likewise.
45244         * modules/spawn: Likewise.
45245         * modules/stdarg: Likewise.
45246         * modules/stdbool: Likewise.
45247         * modules/stddef: Likewise.
45248         * modules/stdint: Likewise.
45249         * modules/stdio: Likewise.
45250         * modules/stdlib: Likewise.
45251         * modules/string: Likewise.
45252         * modules/strings: Likewise.
45253         * modules/sys_file: Likewise.
45254         * modules/sys_ioctl: Likewise.
45255         * modules/sys_select: Likewise.
45256         * modules/sys_socket: Likewise.
45257         * modules/sys_stat: Likewise.
45258         * modules/sys_time: Likewise.
45259         * modules/sys_times: Likewise.
45260         * modules/sys_utsname: Likewise.
45261         * modules/sys_wait: Likewise.
45262         * modules/sysexits: Likewise.
45263         * modules/time: Likewise.
45264         * modules/unistd: Likewise.
45265         * modules/wchar: Likewise.
45266         * modules/wctype: Likewise.
45267
45268 2009-08-22  Jim Meyering  <meyering@redhat.com>
45269
45270         announce-gen: detect write failure
45271         * build-aux/announce-gen: Add Coda at end.
45272         Remove equivalent-but-more-verbose block at top.
45273
45274 2009-08-19  Akim Demaille  <demaille@gostai.com>
45275
45276         bootstrap: --help to stdout.
45277         * bootstrap (usage): Don't send --help to stderr.
45278         Use a here doc instead of a long string.
45279
45280 2009-08-21  Eric Blake  <ebb9@byu.net>
45281
45282         test-popen-safer: split from test-popen
45283         * tests/test-popen.c (main): Move...
45284         * tests/test-popen.h: ...into new file.
45285         * tests/test-popen-safer2.c: New file.
45286         * modules/popen-tests (Files): Add test-popen.h.
45287         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
45288         Suggested by Bruno Haible.
45289
45290         test-fcntl-safer: split from test-open
45291         * tests/test-open.c (main): Move...
45292         * tests/test-open.h: ...into new file.
45293         * tests/test-fcntl-safer.c: New file.
45294         * modules/open-tests (Files): Add test-open.h.
45295         * modules/fcntl-safer-tests: New file.
45296         Suggested by Bruno Haible.
45297
45298         test-fopen-safer: split from test-fopen
45299         * tests/test-fopen.c (main): Move...
45300         * tests/test-fopen.h: ...into new file.
45301         * tests/test-fopen-safer.c: New file.
45302         * modules/fopen-tests (Files): Add test-fopen.h.
45303         * modules/fopen-safer-tests: New file.
45304         Suggested by Bruno Haible.
45305
45306 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
45307
45308         popen-safer: test O_CLOEXEC at run-time.
45309         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
45310
45311 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
45312
45313         fcntl: move more flags to the header
45314         * lib/cloexec.c: Do not define FD_CLOEXEC here.
45315         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
45316         * lib/fcntl.in.h: Do both things here.
45317
45318 2009-08-21  Jim Meyering  <meyering@redhat.com>
45319
45320         consistently remove $@-t before redirecting to it
45321         * modules/argz: Remove $@-t and $@ before redirecting to the former.
45322         * modules/alloca-opt: Likewise.
45323         * modules/byteswap: Likewise.
45324         * modules/fnmatch: Likewise.
45325         * modules/getopt-posix: Likewise.
45326         * modules/glob: Likewise.
45327         * modules/poll: Likewise.
45328         * modules/posix_spawnp-tests: Likewise.
45329         * modules/sys_socket: Likewise.
45330         * modules/sysexits: Likewise.
45331
45332 2009-08-21  Eric Blake  <ebb9@byu.net>
45333
45334         popen: simplify access to original popen
45335         * lib/popen.c (rpl_popen): No need to worry about popen being a
45336         macro.
45337         Reported by Bruno Haible.
45338
45339 2009-08-20  Eric Blake  <ebb9@byu.net>
45340
45341         build: avoid some compiler warnings
45342         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
45343         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
45344         type.
45345         (new_exclude_segment, excluded_file_pattern_p)
45346         (excluded_file_name_p): Reduce scope.
45347         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
45348         old-style declaration.
45349
45350 2009-08-20  Simon Josefsson  <simon@josefsson.org>
45351
45352         * tests/test-exclude1.sh: Handle Windows EOL.
45353         * tests/test-exclude2.sh: Likewise.
45354         * tests/test-exclude3.sh: Likewise.
45355         * tests/test-exclude4.sh: Likewise.
45356         * tests/test-exclude5.sh: Likewise.
45357         * tests/test-exclude6.sh: Likewise.
45358         * tests/test-exclude7.sh: Likewise.
45359
45360 2009-08-19  Akim Demaille  <demaille@gostai.com>
45361
45362         bootstrap: find sha1sum when named gsha1sum.
45363         * bootstrap (find_tool): New.
45364         ($SHA1SUM): New.
45365         Use it.
45366
45367 2009-08-20  Jim Meyering  <meyering@redhat.com>
45368
45369         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
45370         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
45371         expression that converts "." in a file name to "\." in the resulting
45372         regexp.  Start with a dummy statement, so that prior shell variable
45373         definitions are expanded portably.  Reported by Simon Josefsson.
45374
45375 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
45376
45377         Fix polling for writeability of a screen buffer.
45378         * lib/poll.c: Distinguish input and screen buffers for the
45379         Win32 implementation.
45380         * lib/select.c: Likewise.
45381
45382 2009-08-19  Eric Blake  <ebb9@byu.net>
45383
45384         popen-safer: prevent popen from clobbering std descriptors
45385         * modules/popen-safer: New file.
45386         * lib/popen-safer.c: Likewise.
45387         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
45388         * lib/stdio--.h (popen): Provide override.
45389         * lib/stdio-safer.h (popen_safer): Provide declaration.
45390         * tests/test-popen.c (includes): Partially test this.
45391         * modules/popen-safer-tests: New file, for more tests.
45392         * tests/test-popen-safer.c: Likewise.
45393         * MODULES.html.sh (file stream based Input/Output): Mention it.
45394
45395         tests: test some of the *-safer modules
45396         * modules/fopen-safer (Depends-on): Add fopen.
45397         * modules/fcntl-safer (Depends-on): Add fcntl.
45398         * modules/stdlib-safer (Depends-on): Add stdlib.
45399         (configure.ac): Set indicator.
45400         * modules/unistd-safer (configure.ac): Likewise.
45401         * modules/tmpfile-safer (configure.ac): Likewise.
45402         (Depends-on): Add tmpfile.
45403         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
45404         active.
45405         * tests/test-fopen.c (includes): Test safer versions when they are
45406         in use.
45407         * tests/test-open.c (includes): Likewise.
45408
45409         popen: fix cygwin 1.5 bug when stdin closed
45410         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
45411         * modules/popen: New file.
45412         * modules/popen-tests: Likewise.
45413         * tests/test-popen.c: Likewise.
45414         * m4/popen.m4: Likewise.
45415         * lib/popen.c: Likewise.
45416         * lib/stdio.in.h (popen): New declaration.
45417         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
45418         * modules/stdio (Makefile.am): Likewise.
45419         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
45420
45421 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
45422
45423         maint.mk: give full control over update-copyright exclusions
45424         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
45425         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
45426         (update-copyright): Don't force inclusion of top-level
45427         ChangeLog.  Don't force exclusion of all COPYING files, but make
45428         them the default exclusion instead.
45429
45430 2009-08-16  Bruno Haible  <bruno@clisp.org>
45431
45432         Fix test failures on Solaris 10.
45433         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
45434         tests when Solaris iconv() is used.
45435         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
45436         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
45437         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
45438         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
45439         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
45440
45441 2009-08-16  Bruno Haible  <bruno@clisp.org>
45442
45443         Fix test failures on Solaris 10.
45444         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
45445         'tr' program and pass it as first argument.
45446         * tests/test-pipe-filter-gi1.sh: Likewise.
45447         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
45448         program as first argument.
45449         * tests/test-pipe-filter-gi1.c (main): Likewise.
45450
45451 2009-08-16  Eric Blake  <ebb9@byu.net>
45452
45453         fpurge: fix previous commits
45454         * modules/fpurge (Makefile.am): Make replacement conditional,
45455         partially reverting 2007-04-29 change; missed in previous
45456         attempt.
45457         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
45458         is missing.
45459
45460 2009-08-16  Bruno Haible  <bruno@clisp.org>
45461
45462         Clarify fpurge's effect on the file position.
45463         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
45464         * tests/test-fpurge.c (main): Make a second pass for checking the file
45465         position.
45466
45467 2009-08-16  Bruno Haible  <bruno@clisp.org>
45468
45469         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
45470         declaration of fpurge is missing.
45471         * tests/test-fpurge.c (main): Check that the file has not more contents
45472         than expected. Close the file before removing it.
45473
45474 2009-08-15  Eric Blake  <ebb9@byu.net>
45475
45476         fpurge: don't wrap working cygwin implementation
45477         * lib/fpurge.c (fpurge): Fix comment typo.
45478         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
45479         1.7 to avoid replacement.
45480         * tests/test-fpurge.c (main): Enhance test.
45481
45482 2009-08-15  Eric Blake  <ebb9@byu.net>
45483         and Jim Meyering  <meyering@redhat.com>
45484
45485         test-update-copyright: skip if perl is insufficient
45486         * tests/test-update-copyright.sh: Failure to run maintainer tool
45487         should not cause testsuite failure on cygwin 1.5.
45488
45489 2009-08-14  Eric Blake  <ebb9@byu.net>
45490
45491         doc: mention more functions added in cygwin 1.7.0
45492         * doc/posix-headers/limits.texi (limits.h): Update for recent
45493         cygwin additions.
45494         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
45495         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
45496         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
45497         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
45498         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
45499
45500 2009-08-14  Eric Blake  <ebb9@byu.net>
45501
45502         maint.mk: simplify update-copyright rule
45503         * top/maint.mk (update-copyright-local): Delete, and document how
45504         to do it in cfg.mk instead.
45505         (update-copyright-exclude-regexp): Delete, and document how to do
45506         it in .x-update-copyright instead.
45507         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
45508         exclude ChangeLog.
45509
45510 2009-08-14  Bruno Haible  <bruno@clisp.org>
45511
45512         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
45513
45514 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45515
45516         maint.mk: support update-copyright-env
45517         * top/maint.mk (update-copyright-env): Define place-holder.
45518         (update-copyright): Expand $(update-copyright-env) before
45519         invoking update-copyright.
45520
45521 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45522
45523         update-copyright: implement forced reformatting
45524         * build-aux/update-copyright: Implement and document
45525         UPDATE_COPYRIGHT_FORCE.
45526         * tests/test-update-copyright.sh: Test it.
45527
45528 2009-08-14  Eric Blake  <ebb9@byu.net>
45529         and Bruno Haible  <bruno@clisp.org>
45530
45531         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
45532         * tests/test-locale.c: Revert previous patch related to NULL.
45533         * tests/test-stdio.c: Likewise.
45534         * tests/test-stdlib.c: Likewise.
45535         * tests/test-string.c: Likewise.
45536         * tests/test-unistd.c: Likewise.
45537         * modules/time-tests (Depends-on): Add verify.
45538         * modules/wchar-tests (Depends-on): Likewise.
45539         * tests/test-time.c: Test for NULL compliance.
45540         * tests/test-wchar.c: Likewise.
45541         * modules/locale (Depends-on): Add stddef.
45542         * modules/stdio (Depends-on): Likewise.
45543         * modules/stdlib (Depends-on): Likewise.
45544         * modules/string (Depends-on): Likewise.
45545         * modules/time (Depends-on): Likewise.
45546         * modules/unistd (Depends-on): Likewise.
45547         * modules/wchar (Depends-on): Likewise.
45548         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
45549         * lib/stdlib.in.h (includes): Likewise.
45550         * lib/string.in.h (includes): Likewise.
45551         * lib/time.in.h (includes): Likewise.
45552         * lib/unistd.in.h (includes): Likewise.
45553         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
45554         replaced.
45555         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
45556         * m4/stddef_h.m4: New file.
45557         * modules/stddef: Likewise.
45558         * lib/stddef.in.h: Likewise.
45559         * modules/stddef-tests: Likewise.
45560         * tests/test-stddef.c: Likewise.
45561         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
45562         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
45563         * doc/posix-headers/locale.texi (locale.h): Likewise.
45564         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
45565         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
45566         * doc/posix-headers/string.texi (string.h): Likewise.
45567         * doc/posix-headers/time.texi (time.h): Likewise.
45568         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
45569         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
45570
45571 2009-08-14  Eric Blake  <ebb9@byu.net>
45572
45573         doc: improve git diff of texinfo files
45574         * .gitattributes: Add rule for *.texi files, with hint on how to
45575         use it.
45576         Copied from m4, and based on a report by Bruno Haible.
45577
45578 2009-08-14  Bruno Haible  <bruno@clisp.org>
45579
45580         Disable multithread support by default on Cygwin 1.5.x for real.
45581         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
45582
45583 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
45584
45585         update-copyright: much ado about intervals
45586         * build-aux/update-copyright: Implement and document
45587         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
45588         of copyright year intervals.
45589         Also, document UPDATE_COPYRIGHT_YEAR.
45590         * tests/test-update-copyright.sh: Test it.
45591
45592         update-copyright: convert 2-digit to 4-digit years
45593         * build-aux/update-copyright: Implement and document.
45594         * tests/test-update-copyright.sh: Update.
45595
45596 2009-08-14  Jim Meyering  <meyering@redhat.com>
45597
45598         test-exclude: avoid coreutils "make check" failure
45599         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
45600         just as in test-argmatch.c.
45601
45602 2009-08-13  Eric Blake  <ebb9@byu.net>
45603
45604         test-dup2: fix bad assumption
45605         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
45606         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
45607
45608         test-version-etc: fix CRLF portability issue
45609         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
45610         recognize \r.
45611         * tests/test-argp-version-etc-1.sh: Likewise.
45612
45613         getopt: update client modules
45614         * modules/argp (Depends-on): Use getopt-gnu.
45615         * modules/git-merge-changelog (Depends-on): Likewise.
45616         * modules/long-options (Depends-on): Likewise.
45617         * modules/xstrtol (Depends-on): Likewise.
45618
45619 2009-08-13  Simon Josefsson  <simon@josefsson.org>
45620
45621         * tests/test-version-etc.sh: Don't fail on different
45622         project/version.  Don't fail on CRLF differences.  Rewrite to use
45623         multiple -e instead of multiple sed forks, suggested by Eric Blake
45624         <ebb9@byu.net>.
45625         * tests/test-argp-version-etc-1.sh: Likewise.
45626
45627 2009-08-13  Simon Josefsson  <simon@josefsson.org>
45628
45629         * tests/test-version-etc.sh: Don't fail on different
45630         project/version.
45631
45632 2009-08-12  Bruno Haible  <bruno@clisp.org>
45633
45634         Tests for modules 'getopt-posix', 'getopt-gnu'.
45635         * modules/getopt-posix-tests: New file.
45636         * tests/test-getopt.c: New file.
45637         * tests/test-getopt.h: New file.
45638         * tests/test-getopt_long.h: New file.
45639
45640         New modules 'getopt-posix', 'getopt-gnu'.
45641         * modules/getopt-gnu: New file, renamed from modules/getopt.
45642         * modules/getopt-posix: New file.
45643         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
45644         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
45645         (gl_GETOPT): Remove macro.
45646         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
45647         Disable the test against BSD systems that declare optreset. Test
45648         against mingw bug. Test against lack of support of optional arguments
45649         on many platforms.
45650         * doc/glibc-headers/getopt.texi: Update module name and list of
45651         relevant platforms.
45652         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
45653         'getopt-gnu' and more portability problems.
45654         * NEWS: Mention the changes.
45655
45656 2009-08-12  Bruno Haible  <bruno@clisp.org>
45657
45658         Ensure that optarg etc. get declared by <unistd.h>.
45659         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
45660         AC_USE_SYSTEM_EXTENSIONS.
45661         * modules/getopt (Depends-on): Add 'extensions'.
45662
45663 2009-08-12  Bruno Haible  <bruno@clisp.org>
45664
45665         Avoid test link errors.
45666         * modules/pipe-filter-ii-tests (Makefile.am): Define
45667         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
45668         * modules/pipe-filter-gi-tests (Makefile.am): Define
45669         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
45670         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45671
45672 2009-08-12  Bruno Haible  <bruno@clisp.org>
45673
45674         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
45675         gl_GETOPT_SUBSTITUTE before.
45676         (gl_GETOPT): Use it.
45677         * m4/argp.m4 (gl_ARGP): Update.
45678         Reported by Sergey Poznyakoff.
45679
45680         * m4/getopt.m4: Reorder macros.
45681         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
45682         (gl_GETOPT_SUBSTITUTE): Remove macro.
45683
45684 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45685
45686         Minor improvement in gitlog-to-changelog
45687
45688         * build-aux/gitlog-to-changelog: New option `--format' makes
45689         output format string configurable.
45690
45691 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
45692
45693         Optimize exclude: use hash tables for non-wildcard patterns.
45694
45695         * lib/exclude.c: Include hash.h and mbuiter.h
45696         (struct exclude_pattern, exclude_segment): New data types.
45697         (struct exclude): Rewrite.
45698         (fnmatch_pattern_has_wildcards): New function.
45699         (new_exclude_segment, free_exclude_segment): New functions.
45700         (excluded_file_pattern_p, excluded_file_name_p): New functions.
45701         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
45702         * lib/exclude.h (is_fnmatch_pattern): New prototype.
45703         * modules/exclude: Depend on hash and mbuiter.
45704
45705         * modules/exclude-tests: New file.
45706         * tests/test-exclude.c: New file.
45707         * tests/test-exclude1.sh: New file.
45708         * tests/test-exclude2.sh: New file.
45709         * tests/test-exclude3.sh: New file.
45710         * tests/test-exclude4.sh: New file.
45711         * tests/test-exclude5.sh: New file.
45712         * tests/test-exclude6.sh: New file.
45713         * tests/test-exclude7.sh: New file.
45714
45715 2009-08-12  Bruno Haible  <bruno@clisp.org>
45716
45717         Ensure that getopt() gets declared by <unistd.h>.
45718         * lib/unistd.in.h: Conditionally include getopt.h.
45719         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
45720         Set GNULIB_UNISTD_H_GETOPT.
45721         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45722         GNULIB_UNISTD_H_GETOPT.
45723         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
45724
45725 2009-08-12  Bruno Haible  <bruno@clisp.org>
45726
45727         Clarify logic.
45728         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
45729         gl_replace_getopt instead of GETOPT_H.
45730
45731 2009-08-12  Bruno Haible  <bruno@clisp.org>
45732
45733         * m4/getopt.m4: Add comments.
45734
45735 2009-08-12  Bruno Haible  <bruno@clisp.org>
45736
45737         Disable multithread support by default on Cygwin 1.5.x.
45738         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
45739         set gl_use_threads=no if not specified otherwise.
45740
45741 2009-08-11  Bruno Haible  <bruno@clisp.org>
45742
45743         Avoid compilation error on NetBSD 5.0.
45744         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
45745         * tests/test-stdio.c: Likewise.
45746         * tests/test-stdlib.c: Likewise.
45747         * tests/test-string.c: Likewise.
45748         * tests/test-unistd.c: Likewise.
45749         Reported by Greg Troxel <gdt@ir.bbn.com>
45750         at <https://savannah.gnu.org/support/?106973>.
45751
45752 2009-08-11  Bruno Haible  <bruno@clisp.org>
45753
45754         * modules/dup2-tests (Depends-on): Remove close.
45755
45756         Undo 2009-07-19 commit.
45757         * modules/acl-tests (Depends-on): Remove close.
45758         * modules/binary-io-tests (Depends-on): Likewise.
45759         * modules/closein-tests (Depends-on): Likewise.
45760         * modules/flock-tests (Depends-on): Likewise.
45761         * modules/fsync-tests (Depends-on): Likewise.
45762         * modules/lseek-tests (Depends-on): Likewise.
45763         * modules/pipe-tests (Depends-on): Likewise.
45764         * modules/posix_spawn-tests (Depends-on): Likewise.
45765         * modules/posix_spawnp-tests (Depends-on): Likewise.
45766         * modules/stat-time-tests (Depends-on): Likewise.
45767         * modules/yesno-tests (Depends-on): Likewise.
45768
45769 2009-08-10  Bruno Haible  <bruno@clisp.org>
45770
45771         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
45772
45773 2009-08-10  Bruno Haible  <bruno@clisp.org>
45774
45775         Fix a gcc warning.
45776         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
45777
45778 2009-08-10  Bruno Haible  <bruno@clisp.org>
45779
45780         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
45781         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
45782         not only the first time.
45783         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
45784         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
45785         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
45786         is 1, not only the the first time.
45787
45788 2009-08-10  Bruno Haible  <bruno@clisp.org>
45789
45790         Make it possible to use module 'gethostname' without module 'close'.
45791         * lib/unistd.in.h (close): Evoke a link error only if
45792         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
45793         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
45794         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45795         * modules/unistd (Makefile.am): Substitute
45796         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45797         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
45798         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
45799         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
45800         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45801         * modules/sys_ioctl (Makefile.am): Substitute
45802         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45803         * modules/socket (configure.ac): On native Windows, set
45804         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
45805         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
45806         Reported by Sam Steingold <sds@gnu.org>.
45807
45808 2009-08-10  Bruno Haible  <bruno@clisp.org>
45809
45810         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
45811         * modules/ioctl (configure.ac): Likewise.
45812
45813 2009-08-10  Bruno Haible  <bruno@clisp.org>
45814
45815         Avoid collision between gnulib wrapper and libintl wrapper.
45816         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
45817         already defined in intl/printf.c.
45818         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
45819         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
45820
45821 2009-08-09  Bruno Haible  <bruno@clisp.org>
45822
45823         Make <sys/select.h> really self-contained, also on Solaris 10.
45824         * lib/sys_select.in.h: Include <string.h>.
45825         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
45826         Solaris 10 problem.
45827         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
45828         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
45829         Reported by Jim Meyering.
45830
45831 2009-08-09  Bruno Haible  <bruno@clisp.org>
45832
45833         Avoid warnings from 'aclocal' that are due to a use of macro name
45834         AM_XGETTEXT_OPTION that is not defined in automake.
45835         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
45836         automake.
45837         * modules/error (configure.ac): Likewise.
45838         * modules/propername (configure.ac): Likewise.
45839         * modules/vasprintf (configure.ac): Likewise.
45840         * modules/verror (configure.ac): Likewise.
45841         * modules/xprintf (configure.ac): Likewise.
45842         * modules/xvasprintf (configure.ac): Likewise.
45843
45844 2009-08-08  Bruno Haible  <bruno@clisp.org>
45845
45846         Avoid compilation error in C++ mode.
45847         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
45848         Reported by Sam Steingold <sds@gnu.org>.
45849
45850 2009-08-08  Bruno Haible  <bruno@clisp.org>
45851
45852         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
45853         for the various Unix platforms.
45854         * doc/posix-headers/limits.texi: Update platforms list regarding
45855         HOST_NAME_MAX.
45856         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45857
45858 2009-08-07  Jim Meyering  <meyering@redhat.com>
45859
45860         selinux-at: fix typo in a comment
45861         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
45862         Spotted by Paolo Bonzini.
45863
45864         selinux-at: remove redundant m4 code, add documentation
45865         * modules/selinux-at (configure.ac): Remove redundant code.
45866         LIB_SELINUX is already set via the dependent module, selinux-h.
45867         (Include): Add quotes around selinux-at.h.
45868         * lib/selinux-at.h: Add documentation.
45869         Reported by Bruno Haible in
45870         http://marc.info/?l=gnulib-bug&m=124958988300749
45871
45872 2009-08-07  Bruno Haible  <bruno@clisp.org>
45873
45874         Avoid link error on MacOS X 10.3 and 10.4.
45875         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
45876         on non-ELF systems.
45877         * lib/argp-pv.c (argp_program_version): Likewise.
45878         Reported by Simon Josefsson.
45879
45880 2009-08-07  Simon Josefsson  <simon@josefsson.org>
45881
45882         * tests/test-version-etc.sh: Use $EXEEXT.
45883
45884 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
45885
45886         update-copyright: update documentation to point to maint.mk
45887         * build-aux/update-copyright: Here.
45888
45889 2009-08-06  Jim Meyering  <meyering@redhat.com>
45890
45891         maint.mk: support update-copyright-local
45892         * top/maint.mk (update-copyright-local): Define place-holder.
45893         (update-copyright): Depend on $(update-copyright-local).
45894
45895 2009-08-06  Jim Meyering  <meyering@redhat.com>
45896
45897         selinux-at: new module
45898         Initially written for coreutils, this module will soon be
45899         used by findutils, too.
45900         * MODULES.html.sh [Misc]: Add selinux-at.
45901         * lib/selinux-at.h: New file, from coreutils.
45902         * lib/selinux-at.c: Likewise.
45903         * modules/selinux-at: Likewise.
45904         (License): Change from LGPL to GPL, since it depends
45905         on the GPL'd openat module.
45906
45907         doc: update README
45908         * README: Remove references to cogito.
45909         Remove cvs-repo-updating instructions from 2007.
45910         Don't imply that CVS is better if you have limited disk space.
45911
45912 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45913
45914         update-copyright: support C-style comments
45915         * build-aux/update-copyright: Implement and document.
45916         * tests/test-update-copyright.sh: Test.
45917
45918 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45919
45920         update-copyright: support omitted "(C)"
45921         * build-aux/update-copyright: Implement and document.  Also,
45922         allow variable whitespace before "(C)".
45923         * tests/test-update-copyright.sh: Test.
45924
45925 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45926
45927         update-copyright: don't trip on non-FSF copyright statements
45928         * build-aux/update-copyright: Fix so that the first correctly
45929         formatted FSF copyright statement is recognized no matter what
45930         appears before it.  Update documentation.
45931         * tests/test-update-copyright.sh: Test that.
45932
45933 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45934
45935         update-copyright: clean up code a little
45936         * build-aux/update-copyright: Append "_re" to the name of any
45937         variable holding a regular expression.
45938         Replace "old" and "new" with "stmt" in variable names.
45939         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
45940         handled correctly.
45941         Format code more consistently.
45942
45943 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
45944
45945         update-copyright-tests: improve portability
45946         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
45947         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
45948
45949 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
45950
45951         update-copyright: support @copyright{} and &copy;
45952         * build-aux/update-copyright: Implement and document.
45953         * tests/test-update-copyright.sh: Test.
45954
45955 2009-08-04  Jim Meyering  <meyering@redhat.com>
45956
45957         update-copyright-tests: correctly test EOL=\r\n handling
45958         * tests/test-update-copyright.sh: Put \r at the end of some lines
45959         for the dos-eol tests.  Based on a patch by Joel E. Denny.
45960
45961         maint.mk: make update-copyright exclusion list more configurable
45962         * top/maint.mk (update-copyright): Default to excluding COPYING,
45963         but allow an override, in case someone does want to update that file.
45964
45965         maint.mk: don't update copyright date in COPYING
45966         * top/maint.mk (update-copyright): Exclude COPYING.
45967
45968         maint.mk: add a copyright-updating rule
45969         * top/maint.mk (update-copyright): New rule.
45970         Derived from coreutils/Makefile.am.
45971
45972         update-copyright: rename some variables
45973         * build-aux/update-copyright: Rename a few variables for clarity.
45974         Tweak syntax.  List Joel E. Denny as coauthor.
45975
45976 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
45977
45978         update-copyright: fix bug for 2-digit last year and add tests
45979         * build-aux/update-copyright: Fix bug.
45980         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
45981         specified.
45982         * modules/update-copyright-tests: New
45983         * tests/test-update-copyright.sh: New.
45984
45985 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
45986
45987         update-copyright: handle leading tabs in line prefix
45988         * build-aux/update-copyright: Count leading tabs as 8 spaces
45989         when computing margin.  This helps with the formatting of
45990         ChangeLogs, for example.
45991         Fix documentation a little.
45992
45993 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
45994
45995         update-copyright: support EOL=\r\n
45996         * build-aux/update-copyright: Implement that.
45997
45998 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
45999
46000         update-copyright: automatically format copyright statements
46001         * build-aux/update-copyright: Implement that.
46002         Also, be a little more predictable and safer by always failing
46003         when the full copyright format is not perfectly recognized as an
46004         unbroken whole.  Discussed at
46005         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
46006         Rewrite documentation.
46007
46008 2009-08-03  Bruno Haible  <bruno@clisp.org>
46009
46010         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
46011
46012 2009-08-02  Bruno Haible  <bruno@clisp.org>
46013
46014         Tests for module 'uname'.
46015         * modules/uname-tests: New file.
46016         * tests/test-uname.c: New file.
46017
46018         New module 'uname'.
46019         * lib/uname.c: New file.
46020         * m4/uname.m4: New file.
46021         * modules/uname: New file.
46022         * doc/posix-functions/uname.texi: Mention the new module.
46023
46024 2009-08-02  Bruno Haible  <bruno@clisp.org>
46025
46026         Tests for module 'sys_utsname'.
46027         * modules/sys_utsname-tests: New file.
46028         * tests/test-sys_utsname.c: New file.
46029
46030         New module 'sys_utsname'.
46031         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
46032         * m4/sys_utsname_h.m4: New file.
46033         * modules/sys_utsname: New file.
46034         * doc/posix-headers/sys_utsname.texi: Mention the new module.
46035
46036 2009-08-02  Bruno Haible  <bruno@clisp.org>
46037
46038         Implicitly initialize the sockets library.
46039         * lib/gethostname.c: Include sockets.h.
46040         (rpl_gethostname): Invoke gl_sockets_startup.
46041         * lib/socket.c: Include sockets.h.
46042         (rpl_socket): Invoke gl_sockets_startup.
46043         * modules/gethostname (Depends-on): Add sockets.
46044         * modules/socket (Depends-on): Likewise.
46045         * tests/test-poll.c: Don't include sockets.h.
46046         (main): Don't invoke gl_sockets_startup.
46047         * tests/test-select.c: Don't include sockets.h.
46048         (main): Don't invoke gl_sockets_startup.
46049
46050 2009-08-02  Bruno Haible  <bruno@clisp.org>
46051
46052         Allow multiple calls to gl_sockets_startup.
46053         * lib/sockets.c (initialized_sockets_version): New variable.
46054         (gl_sockets_startup): Do nothing if already called for this or a higher
46055         version.
46056         (gl_sockets_cleanup): Reset initialized_sockets_version.
46057
46058 2009-08-03  Simon Josefsson  <simon@josefsson.org>
46059
46060         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
46061         different project/version.
46062
46063 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
46064             Bruno Haible  <bruno@clisp.org>
46065
46066         Tests for module 'pipe-filter-gi'.
46067         * modules/pipe-filter-gi-tests: New file.
46068         * tests/test-pipe-filter-gi1.sh: New file.
46069         * tests/test-pipe-filter-gi1.c: New file.
46070         * tests/test-pipe-filter-gi2.sh: New file.
46071         * tests/test-pipe-filter-gi2-main.c: New file.
46072         * tests/test-pipe-filter-gi2-child.c: New file.
46073
46074         New module 'pipe-filter-gi'.
46075         * lib/pipe-filter-gi.c: New file.
46076         * modules/pipe-filter-gi: New file.
46077
46078 2009-08-02  Bruno Haible  <bruno@clisp.org>
46079             Paolo Bonzini  <bonzini@gnu.org>
46080
46081         Tests for module 'pipe-filter-ii'.
46082         * modules/pipe-filter-ii-tests: New file.
46083         * tests/test-pipe-filter-ii1.sh: New file.
46084         * tests/test-pipe-filter-ii1.c: New file.
46085         * tests/test-pipe-filter-ii2.sh: New file.
46086         * tests/test-pipe-filter-ii2-main.c: New file.
46087         * tests/test-pipe-filter-ii2-child.c: New file.
46088
46089         New module 'pipe-filter-ii'.
46090         * lib/pipe-filter.h: New file.
46091         * lib/pipe-filter-ii.c: New file.
46092         * lib/pipe-filter-aux.h: New file.
46093         * modules/pipe-filter-ii: New file.
46094
46095 2009-08-02  Simon Josefsson  <simon@josefsson.org>
46096
46097         * lib/gc-libgcrypt.c: Change copyright to FSF.
46098         * lib/gc-gnulib.c: Likewise.
46099
46100 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
46101
46102         * lib/gethostname.c: Include limits.h.
46103
46104 2009-08-02  Simon Josefsson  <simon@josefsson.org>
46105             Bruno Haible  <bruno@clisp.org>
46106
46107         Ensure HOST_NAME_MAX as part of the gethostname module.
46108         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
46109         define also HOST_NAME_MAX.
46110         * tests/test-gethostname.c: Include <limits.h>.
46111         (main): Check also HOST_NAME_MAX.
46112         * doc/posix-headers/limits.texi: Document the mingw problem.
46113
46114 2009-08-02  Bruno Haible  <bruno@clisp.org>
46115
46116         * lib/gethostname.c (gethostname): Fix handling of large len argument.
46117         Add comments.
46118
46119 2009-03-31  Simon Josefsson  <simon@josefsson.org>
46120
46121         * lib/gethostname.c: Add Windows wrapper.
46122         * m4/gethostname.m4: Look for gethostname in -lws2_32.
46123         * modules/gethostname: Depend on sys_socket & errno, for also
46124         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
46125         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
46126
46127 2009-07-31  Jim Meyering  <meyering@redhat.com>
46128
46129         getloadavg: fix symbol name in comment
46130         * lib/getloadavg.c: Correct a typo I introduced when adding
46131         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
46132         Matt Kraai spotted the problem.
46133
46134 2009-07-29  Matt Kraai  <mkraai@beckman.com>
46135
46136         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
46137         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
46138         code also if ! defined N_NAME_POINTER.
46139         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
46140         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
46141         but the n_name member is a 12-byte array.
46142
46143 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
46144
46145         update-copyright: generalize comment handling
46146         * build-aux/update-copyright: Handle copyright statements
46147         within more comment styles.
46148         Document usage.
46149         Report any file with an external copyright holder or parse failure.
46150
46151 2009-07-29  Jim Meyering  <meyering@redhat.com>
46152
46153         mktime: correct setting of REPLACE_MKTIME
46154         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
46155
46156         update-copyright: new module
46157         * modules/update-copyright: New file.
46158         * build-aux/update-copyright: New file.
46159         * MODULES.html.sh (maint+release support): Add update-copyright.
46160
46161 2009-07-27  Bruno Haible  <bruno@clisp.org>
46162
46163         Fix compilation error when <ctime> is used and mktime is replaced.
46164         * lib/time.in.h (mktime): New declaration.
46165         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
46166         REPLACE_MKTIME instead of defining mktime in config.h.
46167         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
46168         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
46169         Reported by Ross McFarland <rwmcfa1@neces.com>.
46170
46171 2009-07-27  Bruno Haible  <bruno@clisp.org>
46172
46173         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
46174         Reported by Matt Kraai <mkraai@beckman.com>.
46175
46176 2009-07-25  Jim Meyering  <meyering@redhat.com>
46177
46178         maint.mk: avoid warnings about missing files
46179         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
46180         diagnostic when .prev-version does not exist.
46181         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
46182         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
46183         nonexistent cfg.mk.
46184         Suggestions from Simon Josefsson.
46185
46186 2009-07-25  Bruno Haible  <bruno@clisp.org>
46187
46188         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
46189         defined as macros. Needed on QNX 6.4.1.
46190         Reported by Matt Kraai <mkraai@beckman.com>.
46191
46192 2009-07-23  Jim Meyering  <meyering@redhat.com>
46193
46194         maint.mk: invoke "make dist" with a working value of XZ_OPT
46195         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
46196
46197 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
46198
46199         Make fseeko.c compile on QNX.
46200         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
46201
46202 2009-07-22  Peter Simons  <simons@cryp.to>
46203
46204         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
46205         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
46206         * lib/md4.h: Likewise.
46207         * lib/md5.h: Likewise.
46208         * lib/sha1.h: Likewise.
46209         * lib/sha256.h: Likewise.
46210         * lib/sha512.h: Likewise.
46211
46212         tests-sha1: don't assign literal string to 'char *' variable
46213         * tests/test-sha1.c (main): Declare locals with "const" to match
46214         attributes of the right hand side.
46215
46216 2009-07-21  Eric Blake  <ebb9@byu.net>
46217
46218         dup2: fix more mingw problems
46219         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
46220         fd to itself.
46221         * doc/posix-functions/dup2.texi (dup2): Document the bug.
46222         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
46223         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
46224         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
46225         care of mingw bugs.
46226
46227 2009-07-21  Jim Meyering  <meyering@redhat.com>
46228
46229         vc-list-files: avoid failure when /bin/sh is dash
46230         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
46231         On some Debian based systems, /bin/sh is a symlink to dash, and running
46232         this command would omit the "/" following each 'tests' prefix:
46233           dash -x build-aux/vc-list-files -C . tests
46234         That is because bash and dash work differently:
46235           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
46236           bash ok
46237           dash odd
46238
46239 2009-07-21  Eric Blake  <ebb9@byu.net>
46240
46241         dup2-tests: test previous patch
46242         * modules/dup2-tests: New file.
46243         * tests/test-dup2.c: Likewise.
46244         * tests/test-open.c (main): Avoid unspecified behavior.
46245         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
46246         test.
46247
46248         dup2: work around mingw and cygwin 1.5 bug
46249         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
46250         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
46251         * modules/unistd (Makefile.am): Substitute it.
46252         * lib/unistd.in.h (dup2): Declare the replacement.
46253         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
46254         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
46255         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
46256         * modules/execute (Depends-on): Add dup2.
46257         * modules/fseterr (Depends-on): Likewise.
46258         * modules/pipe (Depends-on): Likewise.
46259         * modules/posix_spawn-internal (Depends-on): Likewise.
46260
46261 2009-07-21  Bruno Haible  <bruno@clisp.org>
46262
46263         * modules/.gitattributes: New file.
46264
46265 2009-07-20  Bruno Haible  <bruno@clisp.org>
46266
46267         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
46268         (main): Use it.
46269
46270 2009-07-20  Eric Blake  <ebb9@byu.net>
46271
46272         test-pipe: make a bit more robust.
46273         * tests/test-pipe.c (myerr): Allow error messages regardless of
46274         what we do to stderr.
46275         (test_pipe): Rearrange to avoid deadlock.
46276         (child_main): Try a larger read, to ensure we avoided deadlock.
46277         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
46278         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
46279         if misused.
46280
46281 2009-07-19  Jim Meyering  <meyering@redhat.com>
46282
46283         fts: avoid false-positive cycle-detection
46284         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
46285         for each new command line argument.
46286
46287 2009-07-19  Bruno Haible  <bruno@clisp.org>
46288
46289         Fix build error on mingw with the modules sys_select and unistd.
46290         * modules/acl-tests (Depends-on): Add close.
46291         * modules/binary-io-tests (Depends-on): Likewise.
46292         * modules/closein-tests (Depends-on): Likewise.
46293         * modules/flock-tests (Depends-on): Likewise.
46294         * modules/fsync-tests (Depends-on): Likewise.
46295         * modules/lseek-tests (Depends-on): Likewise.
46296         * modules/pipe-tests (Depends-on): Likewise.
46297         * modules/posix_spawn-tests (Depends-on): Likewise.
46298         * modules/posix_spawnp-tests (Depends-on): Likewise.
46299         * modules/stat-time-tests (Depends-on): Likewise.
46300         * modules/yesno-tests (Depends-on): Likewise.
46301
46302 2009-07-19  Bruno Haible  <bruno@clisp.org>
46303
46304         Unify conditionals.
46305         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
46306         macros, not at the compiler macros.
46307         * lib/pipe.c: Likewise.
46308         * lib/execute.c: Likewise.
46309         * lib/spawni.c: Likewise.
46310
46311 2009-07-19  Bruno Haible  <bruno@clisp.org>
46312
46313         Fix handling of closed stdin/stdout/stderr on mingw.
46314         * lib/w32spawn.h: Include unistd.h.
46315         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
46316         file descriptor with O_NOINHERIT flag.
46317         (fd_safer_noinherit): New function, based on fd-safer.c.
46318         (dup_safer_noinherit): New function, based on dup-safer.c.
46319         (undup_safer_noinherit): New function.
46320         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
46321         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
46322         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
46323         instead of fd_safer.
46324         * tests/test-pipe.c: Include <windows.h>.
46325         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
46326         result.
46327
46328         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
46329         from main.
46330         (test_pipe): Pass an extra argument for disambiguation.
46331         (main): Invoke parent_main or child_main.
46332
46333         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
46334         consistently.
46335
46336 2009-07-18  Eric Blake  <ebb9@byu.net>
46337
46338         test-pipe: fix mingw build
46339         * tests/test-pipe.c (main): Avoid fcntl on mingw.
46340
46341 2009-07-18  Bruno Haible  <bruno@clisp.org>
46342
46343         * modules/pipe-tests (Makefile.am): Fix typo.
46344
46345 2009-07-18  Eric Blake  <ebb9@byu.net>
46346
46347         error: fix mingw build
46348         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
46349         Reported by Bruno Haible.
46350
46351         error: avoid undefined use of stdout
46352         * lib/error.c (error, error_at_line): Check that fd 1 is open
46353         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
46354         is handling faults and the close_stdout module wants to report the
46355         detection of closed stdout as an error.
46356
46357 2009-07-17  Eric Blake  <ebb9@byu.net>
46358
46359         pipe: be robust in face of closed fds
46360         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
46361         should cause child to misbehave.
46362         * modules/pipe-tests: New module.
46363         * tests/test-pipe.c: New file.
46364         * tests/test-pipe.sh: New file.
46365         Reported by Akim Demaille.
46366
46367 2009-07-14  Bruno Haible  <bruno@clisp.org>
46368
46369         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
46370         Reported by anonymous kc.
46371
46372 2009-07-07  Jim Meyering  <meyering@redhat.com>
46373
46374         maint.mk: don't look for translatable strings in *.m4 or *.mk
46375         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
46376         when searching for translatable strings.
46377
46378 2009-07-05  Jim Meyering  <meyering@redhat.com>
46379
46380         remove superfluous parentheses in STREQ definition
46381         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
46382         * lib/getugroups.c (STREQ): Likewise.
46383         * lib/fnmatch.c (STREQ): Likewise.
46384         Spotted by Bruno Haible.
46385
46386 2009-07-04  Jim Meyering  <meyering@redhat.com>
46387
46388         argv-iter: new module
46389         * MODULES.html.sh: Add argv-iter.
46390         * lib/argv-iter.c, lib/argv-iter.h: New files.
46391         * modules/argv-iter: New file.
46392         * modules/argv-iter-tests: New file.
46393         * tests/test-argv-iter.c: Test it.
46394
46395 2009-07-04  Bruno Haible  <bruno@clisp.org>
46396
46397         Fix assertion.
46398         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
46399         contains more exact copies of a given entry than file2, leave the extra
46400         copies unpaired rather than aborting.
46401         Reported by Eric Blake.
46402
46403 2009-07-02  Bruno Haible  <bruno@clisp.org>
46404
46405         Speedup git-merge-changelog for git cherry-pick.
46406         * lib/git-merge-changelog.c (struct entries_mapping): New type.
46407         (entries_mapping_get): New function, extracted from compute_mapping.
46408         (entries_mapping_reverse_get): New function.
46409         (compute_mapping): Add a 'full' argument. Return the result in a
46410         'struct entries_mapping'.
46411         (main): Update. Access the mappings through entries_mapping_get.
46412         Reported by Eric Blake.
46413
46414 2009-07-02  Bruno Haible  <bruno@clisp.org>
46415
46416         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
46417         best_i.
46418
46419 2009-07-02  Bruno Haible  <bruno@clisp.org>
46420
46421         Speed up approximate search for matching ChangeLog entries.
46422         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
46423         argument. Call fstrcmp_bounded instead of fstrcmp.
46424         (compute_mapping, try_split_merged_entry, main): Update callers.
46425
46426 2009-07-02  Bruno Haible  <bruno@clisp.org>
46427
46428         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
46429
46430 2009-06-30  Bruno Haible  <bruno@clisp.org>
46431
46432         Reduce the number of uc_is_cased calls.
46433         * lib/unicase.h (casing_suffix_context_t): Add
46434         'first_char_except_ignorable' field.
46435         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
46436         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
46437         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
46438         Update initializer.
46439         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
46440         case-ignorable characters.
46441         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
46442         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
46443         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
46444         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
46445         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
46446
46447 2009-06-30  Bruno Haible  <bruno@clisp.org>
46448
46449         Tests for module 'unicase/ignorable'.
46450         * modules/unicase/ignorable-tests: New file.
46451         * tests/unicase/test-ignorable.c: New file, generated by
46452         gen-uni-tables.
46453
46454         Tests for module 'unicase/cased'.
46455         * modules/unicase/cased-tests: New file.
46456         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
46457         * tests/unicase/test-predicate-part1.h: New file, derived from
46458         tests/unictype/test-predicate-part1.h.
46459         * tests/unicase/test-predicate-part2.h: New file, same as
46460         tests/unictype/test-predicate-part2.h.
46461
46462         Fix evaluation of "Before C" condition of FINAL_SIGMA.
46463         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
46464         (output_casing_properties): New function.
46465         (main): Call it.
46466         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
46467         * lib/unicase/cased.c: Include unictype/bitmap.h.
46468         (uc_is_cased): Define through a bitmap lookup.
46469         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
46470         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
46471         (uc_is_case_ignorable): Define through a bitmap lookup.
46472         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
46473         lib/unictype/bitmap.h.
46474         (Depends-on): Add inline. Clean up.
46475         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
46476         lib/unictype/bitmap.h.
46477         (Depends-on): Add inline. Clean up.
46478         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
46479         recognition.
46480         * tests/unicase/test-u16-tolower.c (main): Likewise.
46481         * tests/unicase/test-u32-tolower.c (main): Likewise.
46482
46483 2009-06-30  Bruno Haible  <bruno@clisp.org>
46484
46485         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
46486         * lib/unicase/u16-casemap.c: Likewise.
46487         * lib/unicase/u32-casemap.c: Likewise.
46488
46489 2009-06-29  Bruno Haible  <bruno@clisp.org>
46490
46491         Define u32_casefold as a wrapper around u32_ct_casefold.
46492         * lib/unicase/u32-casefold.c: Update.
46493         * modules/unicase/u32-casefold (Depends-on): Add
46494         unicase/u32-ct-casefold, unicase/empty-prefix-context,
46495         unicase/empty-suffix-context. Clean up.
46496
46497         Define u16_casefold as a wrapper around u16_ct_casefold.
46498         * lib/unicase/u16-casefold.c: Update.
46499         * modules/unicase/u16-casefold (Depends-on): Add
46500         unicase/u16-ct-casefold, unicase/empty-prefix-context,
46501         unicase/empty-suffix-context. Clean up.
46502
46503         Define u8_casefold as a wrapper around u8_ct_casefold.
46504         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
46505         * lib/unicase/u8-casefold.c: Update.
46506         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
46507         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46508
46509         Define u32_totitle as a wrapper around u32_ct_totitle.
46510         * lib/unicase/u32-totitle.c: Update.
46511         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
46512         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46513
46514         Define u16_totitle as a wrapper around u16_ct_totitle.
46515         * lib/unicase/u16-totitle.c: Update.
46516         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
46517         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46518
46519         Define u8_totitle as a wrapper around u8_ct_totitle.
46520         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
46521         functions.
46522         (FUNC): Delegate to U_CT_TOTITLE.
46523         * lib/unicase/u8-totitle.c: Update.
46524         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
46525         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
46526
46527         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
46528         invocation.
46529         * modules/unicase/u32-tolower (Depends-on): Add
46530         unicase/empty-prefix-context, unicase/empty-suffix-context.
46531
46532         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
46533         invocation.
46534         * modules/unicase/u16-tolower (Depends-on): Add
46535         unicase/empty-prefix-context, unicase/empty-suffix-context.
46536
46537         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
46538         * modules/unicase/u8-tolower (Depends-on): Add
46539         unicase/empty-prefix-context, unicase/empty-suffix-context.
46540
46541         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
46542         invocation.
46543         * modules/unicase/u32-toupper (Depends-on): Add
46544         unicase/empty-prefix-context, unicase/empty-suffix-context.
46545
46546         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
46547         invocation.
46548         * modules/unicase/u16-toupper (Depends-on): Add
46549         unicase/empty-prefix-context, unicase/empty-suffix-context.
46550
46551         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
46552         * modules/unicase/u8-toupper (Depends-on): Add
46553         unicase/empty-prefix-context, unicase/empty-suffix-context.
46554
46555         New module 'unicase/u32-ct-casefold'.
46556         * lib/unicase/u32-ct-casefold.c: New file.
46557         * modules/unicase/u32-ct-casefold: New file.
46558
46559         New module 'unicase/u16-ct-casefold'.
46560         * lib/unicase/u16-ct-casefold.c: New file.
46561         * modules/unicase/u16-ct-casefold: New file.
46562
46563         New module 'unicase/u8-ct-casefold'.
46564         * lib/unicase/u8-ct-casefold.c: New file.
46565         * lib/unicase/u-ct-casefold.h: New file, derived from
46566         lib/unicase/u-casefold.h.
46567         * modules/unicase/u8-ct-casefold: New file.
46568
46569         New module 'unicase/u32-ct-totitle'.
46570         * lib/unicase/u32-ct-totitle.c: New file.
46571         * modules/unicase/u32-ct-totitle: New file.
46572
46573         New module 'unicase/u16-ct-totitle'.
46574         * lib/unicase/u16-ct-totitle.c: New file.
46575         * modules/unicase/u16-ct-totitle: New file.
46576
46577         New module 'unicase/u8-ct-totitle'.
46578         * lib/unicase/u8-ct-totitle.c: New file.
46579         * lib/unicase/u-ct-totitle.h: New file, derived from
46580         lib/unicase/u-totitle.h.
46581         * modules/unicase/u8-ct-totitle: New file.
46582
46583         New module 'unicase/u32-ct-tolower'.
46584         * lib/unicase/u32-ct-tolower.c: New file.
46585         * modules/unicase/u32-ct-tolower: New file.
46586
46587         New module 'unicase/u16-ct-tolower'.
46588         * lib/unicase/u16-ct-tolower.c: New file.
46589         * modules/unicase/u16-ct-tolower: New file.
46590
46591         New module 'unicase/u8-ct-tolower'.
46592         * lib/unicase/u8-ct-tolower.c: New file.
46593         * modules/unicase/u8-ct-tolower: New file.
46594
46595         New module 'unicase/u32-ct-toupper'.
46596         * lib/unicase/u32-ct-toupper.c: New file.
46597         * modules/unicase/u32-ct-toupper: New file.
46598
46599         New module 'unicase/u16-ct-toupper'.
46600         * lib/unicase/u16-ct-toupper.c: New file.
46601         * modules/unicase/u16-ct-toupper: New file.
46602
46603         New module 'unicase/u8-ct-toupper'.
46604         * lib/unicase/u8-ct-toupper.c: New file.
46605         * modules/unicase/u8-ct-toupper: New file.
46606
46607         Add context arguments to u*_casemap functions.
46608         * lib/unicase/unicasemap.h: Include unicase.h.
46609         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
46610         suffix_context arguments.
46611         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
46612         functions.
46613         (FUNC): Add prefix_context and suffix_context arguments. Use
46614         uc_is_cased and uc_is_case_ignorable.
46615         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
46616         * lib/unicase/u16-casemap.c: Likewise.
46617         * lib/unicase/u32-casemap.c: Likewise.
46618         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
46619         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46620         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
46621         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46622         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
46623         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
46624
46625         New module 'unicase/u32-suffix-context'.
46626         * lib/unicase/u32-suffix-context.c: New file.
46627         * modules/unicase/u32-suffix-context: New file.
46628
46629         New module 'unicase/u16-suffix-context'.
46630         * lib/unicase/u16-suffix-context.c: New file.
46631         * modules/unicase/u16-suffix-context: New file.
46632
46633         New module 'unicase/u8-suffix-context'.
46634         * lib/unicase/u8-suffix-context.c: New file.
46635         * lib/unicase/u-suffix-context.h: New file.
46636         * modules/unicase/u8-suffix-context: New file.
46637
46638         New module 'unicase/empty-suffix-context'.
46639         * lib/unicase/empty-suffix-context.c: New file.
46640         * modules/unicase/empty-suffix-context: New file.
46641
46642         New module 'unicase/u32-prefix-context'.
46643         * lib/unicase/u32-prefix-context.c: New file.
46644         * modules/unicase/u32-prefix-context: New file.
46645
46646         New module 'unicase/u16-prefix-context'.
46647         * lib/unicase/u16-prefix-context.c: New file.
46648         * modules/unicase/u16-prefix-context: New file.
46649
46650         New module 'unicase/u8-prefix-context'.
46651         * lib/unicase/u8-prefix-context.c: New file.
46652         * lib/unicase/u-prefix-context.h: New file.
46653         * lib/unicase/context.h: New file.
46654         * modules/unicase/u8-prefix-context: New file.
46655
46656         New module 'unicase/empty-prefix-context'.
46657         * lib/unicase/empty-prefix-context.c: New file.
46658         * modules/unicase/empty-prefix-context: New file.
46659
46660         New module 'unicase/ignorable'.
46661         * lib/unicase/ignorable.c: New file.
46662         * modules/unicase/ignorable: New file.
46663
46664         New module 'unicase/cased'.
46665         * lib/unicase/caseprop.h: New file.
46666         * lib/unicase/cased.c: New file.
46667         * modules/unicase/cased: New file.
46668
46669         New functions for case mapping of substrings.
46670         * lib/unicase.h (casing_prefix_context_t): New type.
46671         (unicase_empty_prefix_context): New variable.
46672         (u8_casing_prefix_context, u16_casing_prefix_context,
46673         u32_casing_prefix_context, u8_casing_prefixes_context,
46674         u16_casing_prefixes_context, u32_casing_prefixes_context): New
46675         declarations.
46676         (casing_suffix_context_t): New type.
46677         (unicase_empty_suffix_context): New variable.
46678         (u8_casing_suffix_context, u16_casing_suffix_context,
46679         u32_casing_suffix_context, u8_casing_suffixes_context,
46680         u16_casing_suffixes_context, u32_casing_suffixes_context,
46681         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
46682         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
46683         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
46684         declarations.
46685
46686 2009-06-28  Jim Meyering  <meyering@redhat.com>
46687
46688         boostrap: indent only with spaces
46689         * build-aux/bootstrap: Indent only with spaces, never TABs.
46690
46691         bootstrap: split long lines
46692         * build-aux/bootstrap: Keep line length < 80.
46693
46694         bootstrap: sync from coreutils
46695         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
46696         just as autoreconf does.  Verify a list of prerequisite
46697         package-name,version-number pairs if defined in bootstrap.conf.
46698         Refer to README-prereq, if prerequisites are not satisfied.
46699
46700 2009-06-27  Eric Blake  <ebb9@byu.net>
46701
46702         tests: add test for bogus NULL definition
46703         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
46704         * tests/test-stdlib.c: Likewise.
46705         * tests/test-string.c: Likewise.
46706         * tests/test-locale.c: Likewise.
46707         * tests/test-unistd.c: Likewise.
46708         * modules/stdio-tests (Depends-on): Add verify.
46709         * modules/stdlib-tests (Depends-on): Likewise.
46710         * modules/string-tests (Depends-on): Likewise.
46711         * modules/locale-tests (Depends-on): Likewise.
46712         * modules/unistd-tests (Depends-on): Likewise.
46713
46714 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
46715
46716         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
46717         self-explaining comment.
46718         * m4/selinux-selinux-h: Update serial.
46719         (gl_LIBSELINUX): New macro, adding a warning for missing development
46720         packages to code extracted from...
46721         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
46722         Add warning for missing development packages here, too.
46723
46724 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
46725
46726         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
46727
46728 2009-06-25  Eric Blake  <ebb9@byu.net>
46729
46730         version-etc: fix regression
46731         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
46732         gcc.
46733         (version_etc): Use it, to catch bugs with trailing NULL.
46734         * lib/version-etc.c (version_etc_arn): Delete unused argument.
46735         (version_etc_va): Fix logic bug.
46736         * modules/version-etc-tests: Add test.
46737         * tests/test-version-etc.c: New file.
46738         * tests/test-version-etc.sh: Likewise.
46739
46740 2009-06-25  Sam Steingold  <sds@gnu.org>
46741
46742         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
46743         mbtowc declaration.
46744
46745 2009-06-25  Eric Blake  <ebb9@byu.net>
46746
46747         fpurge: migrate into <stdio.h>
46748         * lib/fpurge.h: Delete...
46749         * lib/stdio.in.h (fpurge): ...and declare here, instead.
46750         * lib/fpurge.c (fpurge): Change declaring header.
46751         * modules/fpurge (Files): Drop deleted file.
46752         (Depends-on): Add stdio.
46753         (configure.ac): Set witness.
46754         * modules/stdio (Makefile.am): Support fpurge macros.
46755         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
46756         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
46757         * lib/fflush.c: Update client.
46758         * tests/test-fpurge.c: Likewise.
46759         * NEWS: Mention the change.
46760
46761 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46762
46763         * lib/argp-version-etc.c (program_authors): Add const
46764         qualifier.
46765         * lib/version-etc.c: Fix typos in the comments.
46766         * modules/argp-version-etc: Depends on version-etc.
46767
46768 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46769
46770         argp-version-etc: new module.
46771
46772         * lib/argp-version-etc.c: New file.
46773         * lib/argp-version-etc.h: New file.
46774         * modules/argp-version-etc: New file.
46775         * modules/argp-version-etc-tests: New file.
46776         * tests/test-argp-version-etc.c: New test.
46777         * tests/test-argp-version-etc-1.sh: New test.
46778
46779 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
46780
46781         Provide additional interfaces and documentation for version-etc
46782         module.
46783
46784         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
46785         interfaces.
46786         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
46787         prototypes.
46788
46789 2009-06-24  Bruno Haible  <bruno@clisp.org>
46790
46791         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
46792         HAVE_LIB${NAME} macro.
46793         Reported by Sam Steingold <sds@gnu.org>.
46794
46795 2009-06-23  Simon Josefsson  <simon@josefsson.org>
46796
46797         * modules/hash-tests (test_hash_LDADD): Link to libintl when
46798         needed.
46799
46800 2009-06-21  Bruno Haible  <bruno@clisp.org>
46801
46802         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
46803         work.
46804         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
46805         together with LIB${NAME}, LTLIB${NAME}.
46806         Reported by Sam Steingold <sds@gnu.org>.
46807
46808 2009-06-20  Jim Meyering  <meyering@redhat.com>
46809
46810         tests: make sc_require_test_exit_idiom more generic
46811         * top/maint.mk (Exit_witness_file): New overridable variable.
46812         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
46813         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
46814
46815 2009-06-19  Jim Meyering  <meyering@redhat.com>
46816
46817         hash: reverse order of src/dst parameters in an internal interface
46818         * lib/hash.c (transfer_entries): Reverse order of parameters to
46819         put DST before SRC.  Adjust callers.
46820
46821         tests: test-hash: avoid wholesale duplication
46822         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
46823         Instead, use a loop and add a single conditional.
46824
46825         tests: test-hash: allow seed selection via a command line argument
46826         * tests/test-hash.c (get_seed): New function.
46827         (main): Use it.
46828
46829 2009-06-19  Eric Blake  <ebb9@byu.net>
46830
46831         hash: avoid memory leak on allocation failure
46832         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
46833         failure.  Factor repeated algorithm...
46834         (transfer_entries): ...into new helper routine.
46835         (hash_delete): React to hash_rehash return value.
46836
46837         hash: reduce memory pressure in hash_rehash no-op case
46838         * lib/hash.c (next_prime): Avoid overflow.
46839         (hash_initialize): Factor bucket size computation...
46840         (compute_bucket_size): ...into new helper function.
46841         (hash_rehash): Use new function and open coding to reduce memory
46842         pressure, and avoid a memory leak in USE_OBSTACK code.
46843         Reported by Jim Meyering.
46844
46845 2009-06-18  Eric Blake  <ebb9@byu.net>
46846
46847         hash: make rotation more obvious
46848         * modules/hash (Depends-on): Add bitrotate and stdint.
46849         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
46850         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
46851         (SIZE_MAX): Rely on headers for definition.
46852         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
46853         (raw_hasher): Use rotr_sz.
46854         Suggested by Jim Meyering.
46855
46856         hash: fix memory leak in last patch
46857         * lib/hash.c (hash_rehash): Avoid memory leak.
46858
46859         hash: avoid no-op rehashing
46860         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
46861
46862         hash: provide default callback functions
46863         * lib/hash.c (raw_hasher, raw_comparator): New functions.
46864         (hash_initialize): Use them as defaults.
46865         * tests/test-hash.c (main): Test this.
46866
46867         hash: minor optimization
46868         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
46869         when possible.
46870         (hash_initialize): Document this promise.
46871         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
46872         * tests/test-hash.c (hash_compare_strings): Test this.
46873
46874 2009-06-18  Bruno Haible  <bruno@clisp.org>
46875
46876         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
46877         going to be replaced anyway.
46878
46879 2009-06-18  Bruno Haible  <bruno@clisp.org>
46880
46881         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
46882         in one place.
46883         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
46884         be replaced anyway.
46885
46886 2009-06-18  Eric Blake  <ebb9@byu.net>
46887
46888         hash: check for resize before insertion
46889         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
46890         threshold before insertion, so that a pathological hash_rehash
46891         that fills every bucket can still trigger another rehash.
46892
46893 2009-06-18  Jim Meyering  <meyering@redhat.com>
46894
46895         hash-tests: add a loop around the small tests
46896         * tests/test-hash.c (main): Repeat small tests with selected
46897         small initial table sizes.
46898
46899 2009-06-17  Eric Blake  <ebb9@byu.net>
46900
46901         hash: minor cleanups
46902         * lib/hash.h (hash_entry): Make opaque, by moving...
46903         * lib/hash.c (hash_entry): ...here.
46904         (hash_insert): Clarify restrictions on what can be inserted.
46905         (hash_get_next): Clarify when it is safe to remove an element
46906         during traversal.
46907         (check_tuning): Skip verification when tuning is known safe.
46908         (hash_initialize): Clarify restrictions on tuning.
46909
46910 2009-06-17  Jim Meyering  <jim@meyering.net>
46911         and Eric Blake  <ebb9@byu.net>
46912
46913         hash-tests: new module
46914         * modules/hash-tests: New file.
46915         * tests/test-hash.c: New file.
46916
46917 2009-06-17  Eric Blake  <ebb9@byu.net>
46918
46919         strstr-simple: document new module
46920         * MODULES.html.sh: Document new module.
46921
46922         strstr, strcasestr: replace on platforms with broken memchr
46923         * modules/strstr: Split into...
46924         * modules/strstr-simple: ...new module that does not care about
46925         performance, but does care about glibc bug.
46926         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
46927         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
46928         if platform memchr is broken, per Debian bug 521737.
46929         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
46930         memchr.
46931         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
46932         * doc/posix-functions/strstr.texi (strstr): Document the fix.
46933         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
46934         * modules/mountlist (Depends-on): Add strstr-simple.
46935         * modules/gen-uni-tables (Depends-on): Likewise.
46936         * modules/argz (Depends-on): Add strstr.
46937
46938 2009-06-17  Bruno Haible  <bruno@clisp.org>
46939
46940         * modules/posix_spawn-internal (Depends-on): Add errno.
46941
46942 2009-06-17  Bruno Haible  <bruno@clisp.org>
46943
46944         Define missing ESTALE on Interix 3.5.
46945         * lib/errno.in.h (ESTALE): Assign a value if missing.
46946         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
46947         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
46948         missing.
46949         * doc/posix-headers/errno.texi: Mention the Interix bug.
46950         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
46951
46952 2009-06-15  Eric Blake  <ebb9@byu.net>
46953
46954         memchr, memchr2: add valgrind exception
46955         * lib/memchr.valgrind: New file.
46956         * lib/memchr2.valgrind: New file.
46957         * modules/memchr (Files): Distribute valgrind file.
46958         * modules/memchr2 (Files): Likewise.
46959
46960         docs: memchr is no longer obsolete
46961         * MODULES.html.sh: Move memchr from obsolete to string.h section.
46962         * lib/string.in.h (memchr): Simplify logic.
46963
46964 2009-06-14  Jim Meyering  <meyering@redhat.com>
46965
46966         link-follow: fix the "checking..." message to not mention trailing slash
46967         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
46968         never considered trailing slashes.
46969
46970 2009-06-14  Bruno Haible  <bruno@clisp.org>
46971
46972         * m4/memchr.m4: Mention also the bug on IA-64.
46973         * doc/posix-functions/memchr.texi: Likewise.
46974
46975 2009-06-12  Eric Blake  <ebb9@byu.net>
46976
46977         memchr: detect broken x86_64 and alpha implementations
46978         * modules/memchr-tests (Depends-on): Move mmap detection...
46979         * modules/memchr (Depends-on): ...here.
46980         (configure.ac): Set indicator.
46981         * lib/string.in.h (memchr): Declare replacement.
46982         * modules/string (Makefile.am): Trigger replacement.
46983         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
46984         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
46985         bugs.
46986         * doc/posix-functions/memchr.texi (memchr): Document the bug.
46987         * modules/getpagesize (License): Relax license.
46988
46989 2009-06-11  Bruno Haible  <bruno@clisp.org>
46990
46991         * lib/idpriv.h: Add more references.
46992
46993 2009-06-08  Bruno Haible  <bruno@clisp.org>
46994
46995         Tests for module 'idpriv-droptemp'.
46996         * modules/idpriv-droptemp-tests: New file.
46997         * tests/test-idpriv-droptemp.sh: New file.
46998         * tests/test-idpriv-droptemp.su.sh: New file.
46999         * tests/test-idpriv-droptemp.c: New file.
47000
47001         New module 'idpriv-droptemp'.
47002         * lib/idpriv-droptemp.c: New file.
47003         * modules/idpriv-droptemp: New file.
47004
47005 2009-06-08  Bruno Haible  <bruno@clisp.org>
47006
47007         Tests for module 'idpriv-drop'.
47008         * modules/idpriv-drop-tests: New file.
47009         * tests/test-idpriv-drop.sh: New file.
47010         * tests/test-idpriv-drop.su.sh: New file.
47011         * tests/test-idpriv-drop.c: New file.
47012
47013         New module 'idpriv-drop'.
47014         * lib/idpriv.h: New file.
47015         * lib-idpriv-drop.c: New file.
47016         * m4/idpriv.m4: New file.
47017         * modules/idpriv-drop: New file.
47018
47019 2009-06-08  Bruno Haible  <bruno@clisp.org>
47020
47021         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
47022         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
47023         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
47024         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
47025         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
47026         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
47027         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
47028
47029 2009-06-08  Eric Blake  <ebb9@byu.net>
47030
47031         test-strstr: use memory fence, when possible
47032         * tests/test-strstr.c (main): Use memory fence, in order to be
47033         more likely to trigger Debian bug 521737.
47034         * modules/strstr-tests (Files): Pull in additional files.
47035
47036         memchr: no longer obsolete, for wider field testing
47037         * modules/memchr (Status, Notice): Delete, this module is no
47038         longer obsolete.
47039         * modules/vasnprintf (Depends-on): Add memchr.
47040
47041 2009-06-07  Jim Meyering  <meyering@redhat.com>
47042
47043         hash: declare some functions with the warn_unused_result attribute
47044         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
47045
47046 2009-06-07  Bruno Haible  <bruno@clisp.org>
47047
47048         * tests/test-alignof.c: Don't test int64_t if it does not exist.
47049         Reported by Eric Blake.
47050
47051 2009-06-06  Eric Blake  <ebb9@byu.net>
47052
47053         test-alignof: fix typo with long double
47054         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
47055         compiler error.
47056
47057 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
47058
47059         Escape non-texinfo { and }s.
47060         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
47061         markup error.
47062
47063 2009-06-04  Jim Meyering  <meyering@redhat.com>
47064
47065         gitlog-to-changelog: don't infloop on an empty commit log
47066         * build-aux/gitlog-to-changelog: Warn about an empty log message.
47067         Reported by Boris Petersen <transacid@centerim.org>.
47068
47069 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
47070
47071         version-etc: extend for packagers
47072         Add three new configure options, intended for packagers:
47073           --with-packager="packager name"
47074           --with-packager-version="packager-specific version"
47075           --with-packager-bug-reports="packager bug reporting"
47076         An example with coreutils:
47077           $ ./configure \
47078             --with-packager=Gentoo \
47079             --with-packager-bug-report=http://bugs.gentoo.org/ \
47080             --with-packager-version="patchset 1.6"
47081           $ ./src/ls --version | head -n2
47082           ls (GNU coreutils) 7.1-dirty
47083           Packaged by Gentoo (patchset 1.6)
47084         Note that the bug reporting info via --help doesn't show up because
47085         coreutils uses its own custom emit_bug_reporting_address() implementation
47086         in src/system.h.  If it didn't, it'd look like:
47087           $ ./src/ls --help | tail -n4
47088           Report bugs to <bug-coreutils@gnu.org>.
47089           Report Gentoo bugs to <http://bugs.gentoo.org/>.
47090           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
47091           General help using GNU software: <http://www.gnu.org/gethelp/>.
47092         * lib/version-etc.c: Print new information, if provided.
47093         * m4/version-etc.m4: New file.
47094         * modules/version-etc (Files): Add m4/version-etc.m4.
47095         (configure.ac): Add gl_VERSION_ETC.
47096
47097 2009-05-31  Bruno Haible  <bruno@clisp.org>
47098
47099         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
47100         and 'int64_t'.
47101         * modules/alignof-tests (Dependencies): Add stdint.
47102         Reported by Eric Blake.
47103
47104 2009-05-31  Bruno Haible  <bruno@clisp.org>
47105
47106         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
47107         restriction due to compiler bugs.
47108         Reported by Eric Blake.
47109
47110 2009-05-31  Simon Josefsson  <simon@josefsson.org>
47111             Bruno Haible  <bruno@clisp.org>
47112
47113         Fix test-alignof failure.
47114         * lib/alignof.h (alignof_slot): New macro.
47115         (alignof_type): New macro, with the same semantics as the previous
47116         'alignof'.
47117         (alignof): Alias to alignof_slot.
47118         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
47119         check that the results are usable as constant expressions.
47120
47121 2009-05-31  Bruno Haible  <bruno@clisp.org>
47122
47123         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
47124         * tests/test-memchr.c (main): Check that memchr does not read past the
47125         first occurrence of the byte.
47126         * tests/test-strstr.c (main): Update comment.
47127         Suggested by Eric Blake.
47128
47129 2009-05-30  Bruno Haible  <bruno@clisp.org>
47130
47131         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
47132         detail how to use dumpbin.
47133         Reported by David Byron <dbyron@dbyron.com>.
47134
47135 2009-06-02  Simon Josefsson  <simon@josefsson.org>
47136
47137         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
47138
47139 2009-06-02  Simon Josefsson  <simon@josefsson.org>
47140
47141         * m4/manywarnings.m4: Add GCC 4.4 warnings.
47142
47143 2009-05-28  Bruno Haible  <bruno@clisp.org>
47144
47145         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
47146         build-aux/ files.
47147
47148 2009-05-28  Simon Josefsson  <simon@josefsson.org>
47149
47150         * gnulib-tool (func_import): Transform license on build-aux/ files too.
47151
47152 2009-05-27  Simon Josefsson  <simon@josefsson.org>
47153
47154         * gnulib-tool (sed_transform_main_lib_file)
47155         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
47156         regexps.
47157
47158 2009-05-26  Simon Josefsson  <simon@josefsson.org>
47159
47160         * tests/test-strstr.c: Add another self-test.
47161         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
47162         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
47163
47164 2009-05-23  Bruno Haible  <bruno@clisp.org>
47165
47166         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
47167         change.
47168
47169 2009-05-21  Bruno Haible  <bruno@clisp.org>
47170
47171         Simplify use of mode_t varargs.
47172         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
47173         uses 'mode_t' or 'int'.
47174         * lib/openat.c (openat): Likewise.
47175         * lib/open-safer.c (open_safer): Likewise.
47176         * m4/mode_t.m4: New file.
47177         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
47178         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
47179         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
47180         * modules/open (Files): Add m4/mode_t.m4.
47181         * modules/openat (Files): Likewise.
47182         * modules/fcntl-safer (Files): Likewise.
47183         Suggested by Eric Blake.
47184
47185 2009-05-21  Pádraig Brady  <P@draigbrady.com>
47186
47187         * doc/glibc-functions/fallocate.texi: New file.
47188         * doc/gnulib.texi: Include it.
47189
47190 2009-05-21  Eric Blake  <ebb9@byu.net>
47191             Bruno Haible  <bruno@clisp.org>
47192
47193         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
47194         invocations.
47195         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
47196
47197 2009-05-21  Eric Blake  <ebb9@byu.net>
47198             Bruno Haible  <bruno@clisp.org>
47199
47200         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
47201         include_next. Fix of 2008-11-20 commit.
47202         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
47203         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
47204         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
47205         NEXT_MATH_H.
47206         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
47207         instead of NEXT_MATH_H.
47208
47209 2009-05-21  Bruno Haible  <bruno@clisp.org>
47210
47211         Avoid redefinition warnings for SIZE_MAX.
47212         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
47213         Reported by Simon Josefsson.
47214
47215 2009-05-21  Bruno Haible  <bruno@clisp.org>
47216
47217         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
47218         AC_CACHE_VAL.
47219
47220 2009-05-20  Bruno Haible  <bruno@clisp.org>
47221
47222         Make zeroptr.h work on mingw.
47223         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
47224         mprotect.
47225         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
47226         * modules/memchr2-tests (configure.ac): Likewise.
47227         * modules/memcmp-tests (configure.ac): Likewise.
47228         * modules/memmem-tests (configure.ac): Likewise.
47229         * modules/memrchr-tests (configure.ac): Likewise.
47230         Reported by Simon Josefsson.
47231
47232 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47233
47234         * tests/test-glob.c: Include string.h for strcmp prototype.
47235
47236 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47237
47238         * modules/getdelim (Depends-on): Add explicit stdint, although it
47239         was implicitly already pulled in via realloc-posix.
47240         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
47241
47242 2009-05-20  Simon Josefsson  <simon@josefsson.org>
47243
47244         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
47245         G. Christensen" <tgc@jupiterrise.com>.
47246         * m4/sys_socket_h.m4: Check for sa_family_t.
47247         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
47248         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
47249         * tests/test-sys_socket.c: Check that sa_family_t works.
47250
47251 2009-05-18  Eric Blake  <ebb9@byu.net>
47252
47253         maint.mk: allow gnulib_dir in VPATH build
47254         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
47255
47256 2009-05-15  Jim Meyering  <meyering@redhat.com>
47257
47258         maint.mk: Give gnulib_dir a default definition.
47259         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
47260         Thus, most packages no longer need to specify this variable in cfg.mk
47261
47262 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
47263
47264         rename.m4: fix typos that would make non-mingw cross-configure fail
47265         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
47266
47267 2009-05-13  Eric Blake  <ebb9@byu.net>
47268
47269         mmap-anon: avoid out-of-order autoconf expansion
47270         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
47271         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
47272         * modules/memchr-tests (Depends-on): Add extensions.
47273         * modules/memchr2-tests (Depends-on): Add extensions.
47274         * modules/memcmp-tests (Depends-on): Add extensions.
47275         * modules/memmem-tests (Depends-on): Add extensions.
47276         * modules/memrchr-tests (Depends-on): Add extensions.
47277
47278 2009-05-13  Bruno Haible  <bruno@clisp.org>
47279
47280         Make some tests ISO C 99 compliant.
47281         * tests/zerosize-ptr.h: New file.
47282         * tests/test-memchr.c: Include zerosize-ptr.h.
47283         (main): Use a zero-size object pointer instead of NULL.
47284         * tests/test-memchr2.c: Include zerosize-ptr.h.
47285         (main): Use a zero-size object pointer instead of NULL.
47286         * tests/test-memcmp.c: Include zerosize-ptr.h.
47287         (main): Use a zero-size object pointer instead of NULL.
47288         * tests/test-memmem.c: Include zerosize-ptr.h.
47289         (main): Use a zero-size object pointer instead of NULL.
47290         * tests/test-memrchr.c: Include zerosize-ptr.h.
47291         (main): Use a zero-size object pointer instead of NULL.
47292         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
47293         m4/mmap-anon.m4.
47294         (Depends-on): Add getpagesize.
47295         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47296         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
47297         m4/mmap-anon.m4.
47298         (Depends-on): Add getpagesize.
47299         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47300         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
47301         m4/mmap-anon.m4.
47302         (Depends-on): Add getpagesize.
47303         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47304         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
47305         m4/mmap-anon.m4.
47306         (Depends-on): Add getpagesize.
47307         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47308         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
47309         m4/mmap-anon.m4.
47310         (Depends-on): Add getpagesize.
47311         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
47312
47313 2009-05-12  Bruno Haible  <bruno@clisp.org>
47314
47315         Tests for module 'alignof'.
47316         * modules/alignof-tests: New file.
47317         * tests/test-alignof.c: New file.
47318
47319 2009-05-12  Bruno Haible  <bruno@clisp.org>
47320
47321         Fix alignof macro.
47322         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
47323         vendor compilers that are always correct.
47324
47325 2009-05-12  Bruno Haible  <bruno@clisp.org>
47326
47327         Make the MAP_ANONYMOUS detection work on HP-UX 11.
47328         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
47329         not whether its fully works.
47330
47331 2009-05-12  Bruno Haible  <bruno@clisp.org>
47332
47333         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
47334
47335 2009-05-12  Jim Meyering  <meyering@redhat.com>
47336
47337         * top/maint.mk: Adjust backslash alignment.
47338
47339 2009-05-11  Simon Josefsson  <simon@josefsson.org>
47340
47341         * top/maint.mk: Make $(srcdir)/build-aux configurable.
47342
47343 2009-05-11  Eric Blake  <ebb9@byu.net>
47344
47345         argp: avoid undefined behavior
47346         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
47347         macros.
47348
47349 2009-05-08  Simon Josefsson  <simon@josefsson.org>
47350
47351         * tests/test-vc-list-files-git.sh: Do git config of user.email and
47352         user.name to prevent git commit from complaining.
47353
47354 2009-05-10  Bruno Haible  <bruno@clisp.org>
47355
47356         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
47357         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
47358         it rewrites every file name only once.
47359         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
47360
47361 2009-05-08  Bruno Haible  <bruno@clisp.org>
47362
47363         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
47364         instead of 'max'.
47365
47366 2009-05-08  Simon Josefsson  <simon@josefsson.org>
47367
47368         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
47369         sockaddr_storage test.
47370
47371 2009-05-07  Simon Josefsson  <simon@josefsson.org>
47372
47373         * modules/sys_socket (Makefile.am): Substitute
47374         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
47375         * m4/sys_socket_h.m4: Check for sockaddr_storage.
47376         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
47377         * tests/test-sys_socket.c: Check sockaddr_storage.
47378
47379 2009-05-08  Bruno Haible  <bruno@clisp.org>
47380
47381         New module 'alignof'.
47382         * lib/alignof.h: New file.
47383         * modules/alignof: New file.
47384
47385 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47386             Bruno Haible  <bruno@clisp.org>
47387
47388         Fix test-file-has-acl on FreeBSD.
47389         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
47390         mask is implicitly added.
47391         * tests/test-file-has-acl.c: Include <signal.h>.
47392         (main): Terminate the test after 5 seconds.
47393         * modules/acl-tests (configure.ac): Check for alarm function.
47394
47395 2009-05-04  Bruno Haible  <bruno@clisp.org>
47396
47397         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
47398         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
47399         * modules/errno (configure.ac): Drop AC_REQUIRE.
47400         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
47401         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
47402
47403 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47404
47405         * modules/glob-tests: New module.
47406         * tests/test-glob.c: Add.
47407
47408 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47409
47410         * modules/fnmatch-tests: New module.
47411         * tests/test-fnmatch.c: Add.
47412
47413 2009-05-04  Eric Blake  <ebb9@byu.net>
47414
47415         maint: make the new no-submodule-changes rule VPATH-safe
47416         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
47417
47418 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47419             Bruno Haible  <bruno@clisp.org>
47420
47421         acl: Fix infinite loop on FreeBSD.
47422         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
47423         of return value from acl_get_entry.
47424         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
47425         Likewise.
47426
47427 2009-05-03  Bruno Haible  <bruno@clisp.org>
47428
47429         * lib/acl-internal.h (acl_entries): Clarify return value.
47430         * lib/acl_entries.c (acl_entries): Likewise.
47431
47432 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47433
47434         Bug fix in acl module.
47435         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
47436
47437 2009-05-03  Bruno Haible  <bruno@clisp.org>
47438
47439         Create gperf-generated file in the source dir, not in the build dir.
47440         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
47441         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
47442         * modules/unicase/locale-language (unicase/locale-languages.h):
47443         Likewise.
47444         * modules/unicase/special-casing (unicase/special-casing-table.h):
47445         Likewise.
47446         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
47447         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
47448         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
47449         Reported by Ralf Wildenhues.
47450
47451 2009-05-03  Bruno Haible  <bruno@clisp.org>
47452
47453         * modules/fnmatch (Description, configure.ac): Taken from
47454         fnmatch-posix.
47455         * modules/fnmatch-posix: Turn into a symbolic reference to the
47456         'fnmatch' module, and deprecate.
47457         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
47458
47459 2009-05-03  Bruno Haible  <bruno@clisp.org>
47460
47461         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
47462         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
47463         Reported by Ralf Wildenhues.
47464
47465 2009-05-04  Simon Josefsson  <simon@josefsson.org>
47466
47467         * m4/fnmatch.m4: Fix fnmatch re-define.
47468
47469 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
47470
47471         priv-set: new module and tests; adapt write-any-file
47472         * lib/priv-set.c: New file.
47473         * lib/priv-set.h: New file.
47474         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
47475         * lib/write-any-file.c: Simplify by using priv-set module.
47476         * m4/priv-set.m4: New file.
47477         * modules/priv-set: New file.
47478         * modules/unlinkdir: Add dependency on priv-set module.
47479         * modules/write-any-file: Likewise.
47480
47481         Tests for module 'priv-set'.
47482         * modules/priv-set-tests: New file.
47483         * tests/test-priv-set.c: New file.
47484
47485 2009-05-03  Jim Meyering  <meyering@redhat.com>
47486             Bruno Haible  <bruno@clisp.org>
47487
47488         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
47489         use the converted UTF-8 variant of the name instead.
47490
47491 2009-05-03  Jim Meyering  <meyering@redhat.com>
47492
47493         tests: tighten some getdate tests
47494         * tests/test-getdate.c (main): Tighten tests: require equality,
47495         not just greater than.  Set TZ envvar to UTC0.
47496
47497 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
47498
47499         getdate: correctly interpret "next monday" when run on a Monday
47500         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
47501         that e.g., "next tues" (when run on a tuesday) results in a date
47502         that is one week in the future, and not today's date.
47503         I.e., add a week when the wday is the same as the current one.
47504         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
47505         and earlier by Martin Bernreuther and Jan Minář.
47506         * tests/test-getdate.c (main): Check that "next DAY" is always in
47507         the future and that "last DAY" is always in the past.
47508
47509 2009-05-02  Jim Meyering  <meyering@redhat.com>
47510
47511         build: ensure that a release build fails when a submodule is unclean
47512         * top/maint.mk (no-submodule-changes): New rule.
47513         (alpha beta major): Depend on it.
47514
47515 2009-05-02  Bruno Haible  <bruno@clisp.org>
47516
47517         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
47518         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
47519         shell variable gl_fnmatch_required to detect which variant is
47520         requested.
47521         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
47522         gl_FUNC_FNMATCH_POSIX.
47523         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
47524         exclude fnmatch-posix.
47525
47526 2009-05-02  Bruno Haible  <bruno@clisp.org>
47527
47528         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
47529         * modules/mbsrtowcs (License): Change to LGPLv2+.
47530         * modules/strnlen1 (License): Likewise.
47531         Reported by Simon Josefsson.
47532
47533 2009-05-02  Bruno Haible  <bruno@clisp.org>
47534
47535         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
47536         "cross".
47537         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
47538         gnulib-tool was called with option --source-base=lib.
47539
47540 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47541
47542         Use automake *-local hooks without commands, for extensibility.
47543         * modules/localcharset (Makefile.am): Rename install-exec-local
47544         rule to install-exec-localcharset, and make it a prerequisite of
47545         install-exec-local.  Likewise, rename the uninstall-local rule to
47546         uninstall-localcharset, and make it a prerequisite of the former.
47547
47548 2009-05-01  Bruno Haible  <bruno@clisp.org>
47549
47550         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
47551         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
47552         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
47553         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
47554         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
47555         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
47556         m4/locale-zh.m4, m4/codeset.m4.
47557
47558         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
47559         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
47560         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
47561         m4/locale-zh.m4.
47562
47563         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
47564         REPLACE_WCRTOMB if mbstate_t must be replaced.
47565         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
47566         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
47567
47568 2009-05-01  Bruno Haible  <bruno@clisp.org>
47569
47570         Avoid compiler warnings when redefining macros defined by <libintl.h>.
47571         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
47572         dngettext, dcngettext, textdomain, bindtextdomain,
47573         bind_textdomain_codeset): Undefine before redefining.
47574
47575 2009-04-30  Bruno Haible  <bruno@clisp.org>
47576
47577         Fix bug introduced on 2009-04-25.
47578         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
47579         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
47580         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
47581         is defined.
47582         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
47583         is defined.
47584         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
47585         is defined.
47586         Reported by Elbert_Pol <elbert.pol@gmail.com>.
47587
47588 2009-04-28  Bruno Haible  <bruno@clisp.org>
47589
47590         Comment tweaks.
47591         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
47592         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
47593         * lib/unicase.h (u*_casexfrm): Likewise.
47594         Reported by Paolo Bonzini.
47595
47596 2009-04-28  Bruno Haible  <bruno@clisp.org>
47597
47598         Fix a compilation error.
47599         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
47600         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
47601         Reported by Jim Meyering.
47602
47603 2009-04-27  Bruno Haible  <bruno@clisp.org>
47604
47605         New module 'libunistring'.
47606         * modules/libunistring: New file.
47607         * m4/libunistring.m4: New file.
47608         * MODULES.html.sh (Unicode string functions): Add it.
47609
47610 2009-04-27  Eric Blake  <ebb9@byu.net>
47611
47612         maint.mk: allow package-specific header to provide <config.h>
47613         * top/maint.mk (sc_require_config_h): New variable.
47614         (sc_require_config_h, sc_require_config_h_first): Use it.
47615
47616 2009-04-27  Simon Josefsson  <simon@josefsson.org>
47617
47618         * top/maint.mk (sc_avoid_if_before_free): Except
47619         useless-if-before-free script.
47620
47621 2009-04-27  Eric Blake  <ebb9@byu.net>
47622
47623         maintainer-makefile: depend on all required helper scripts
47624         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
47625         useless-if-before-free.
47626         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
47627         version, rather than assuming gnulib checkout is available.
47628         Reported by Simen Josefsson.
47629
47630 2009-04-26  Bruno Haible  <bruno@clisp.org>
47631
47632         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
47633         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
47634         "../" or "..".
47635
47636 2009-04-26  Bruno Haible  <bruno@clisp.org>
47637
47638         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
47639         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
47640         AC_LIB_HAVE_LINKFLAGS.
47641
47642 2009-04-26  Bruno Haible  <bruno@clisp.org>
47643
47644         Simplify calling convention of u*_conv_from_encoding.
47645         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
47646         u32_conv_from_encoding): Expect a resultbuf argument and return the
47647         result directly as a pointer.
47648         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
47649         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
47650         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
47651         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
47652         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
47653         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
47654         Update.
47655         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
47656         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
47657         * lib/vasnprintf.c (VASNPRINTF): Update.
47658         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
47659         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
47660         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
47661         * NEWS: Mention the change.
47662
47663 2009-04-26  Bruno Haible  <bruno@clisp.org>
47664
47665         Simplify calling convention of u*_conv_to_encoding.
47666         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
47667         u32_conv_to_encoding): Expect a resultbuf argument and return the
47668         result directly as a pointer.
47669         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
47670         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
47671         freeing scaled_offsets if mem_iconveha failed.
47672         * lib/unicase/u-casexfrm.h (FUNC): Update.
47673         * lib/uninorm/u-normxfrm.h (FUNC): Update.
47674         * lib/vasnprintf.c (VASNPRINTF): Update.
47675         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
47676         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
47677         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
47678         * NEWS: Mention the change.
47679
47680 2009-04-26  Bruno Haible  <bruno@clisp.org>
47681
47682         Avoid test failures on AIX and OSF/1.
47683         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
47684         malloc(0).
47685         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
47686         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
47687         Likewise.
47688         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
47689         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
47690         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
47691         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
47692         * doc/posix-functions/malloc.texi: Document the portability problem
47693         related to malloc(0).
47694
47695 2009-04-26  Bruno Haible  <bruno@clisp.org>
47696
47697         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
47698         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
47699         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
47700
47701 2009-04-25  Bruno Haible  <bruno@clisp.org>
47702
47703         Avoid link error when creating a namespace clean library.
47704         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
47705         as macro with arguments if already defined as an alias.
47706         * lib/signbitf.c (gl_signbitf): Don't undefine.
47707         * lib/signbitd.c (gl_signbitd): Don't undefine.
47708         * lib/signbitl.c (gl_signbitl): Don't undefine.
47709
47710 2009-04-25  Jim Meyering  <meyering@redhat.com>
47711
47712         vc-list-files: fix another quoting bug
47713         * build-aux/vc-list-files: Avoid sed backslash expansion
47714         of pathological directory names.
47715
47716 2009-04-25  Eric Blake  <ebb9@byu.net>
47717
47718         vc-list-files: fix shell quoting error
47719         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
47720         timestamp.
47721
47722 2009-04-25  Jim Meyering  <meyering@redhat.com>
47723
47724         vc-list-files: restore lost functionality with subdir argument
47725         * build-aux/vc-list-files: When given a non-"." sub-directory
47726         argument, substitute the $dir/ prefix back onto each resulting name.
47727         Otherwise, coreutils' root_tests check would fail.
47728
47729 2009-04-24  Eric Blake  <ebb9@byu.net>
47730
47731         vc-list-files: ignore git symlinks
47732         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
47733         than ls-files, to ignore git symlinks.
47734
47735         maint.mk: import improvements from m4
47736         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
47737         (move_if_change): Delete unused macro.
47738         (news-date-check, vc-diff-check): Support VPATH builds.
47739         (announcement): Likewise.  Split --bootstrap-tools list...
47740         (boostrap-tools): ...into separate list, which can be overridden
47741         in cfg.mk.
47742         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
47743         requiring dependency on useless-if-before-free module.
47744         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
47745         Support VPATH builds.
47746
47747 2009-04-24  Jim Meyering  <meyering@redhat.com>
47748
47749         maint.mk: remove coreutils-specific rules and variables
47750         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
47751         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
47752         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
47753
47754         maint.mk: remove obsolete rule
47755         * top/maint.mk (rel-check): Remove rule.
47756         (WGET, WGETFLAGS): Remove now-unused variables.
47757
47758 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47759
47760         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
47761         consistency.
47762
47763         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
47764         '$(PATH_SEPARATOR)' instead of ':'.
47765
47766 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47767
47768         * lib/getopt1.c (main): Use 'const' for static array.
47769
47770 2009-04-24  Simon Josefsson  <simon@josefsson.org>
47771
47772         * top/maint.mk: Sync with coreutils.
47773         * NEWS: Explain incompatibilities.
47774
47775 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
47776             Bruno Haible  <bruno@clisp.org>
47777
47778         Fix cross-compilation results.
47779         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
47780         statement, as third argument of AC_TRY_RUN.
47781         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
47782         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
47783         Likewise.
47784         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
47785         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
47786         Likewise.
47787         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
47788         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
47789         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
47790
47791 2009-04-20  Bruno Haible  <bruno@clisp.org>
47792
47793         Avoid test failure on mingw.
47794         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
47795
47796 2009-04-20  Bruno Haible  <bruno@clisp.org>
47797
47798         Avoid compilation error on mingw.
47799         * modules/localename-tests (Depends-on): Add locale.
47800
47801 2009-04-19  Bruno Haible  <bruno@clisp.org>
47802
47803         Support for building a shared library on Windows platforms.
47804         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
47805         (main): Test the presence of UNINORM_NFC here.
47806         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
47807         (main): Test the presence of UNINORM_NFD here.
47808         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
47809         (main): Test the presence of UNINORM_NFKC here.
47810         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
47811         (main): Test the presence of UNINORM_NFKD here.
47812
47813 2009-04-19  Bruno Haible  <bruno@clisp.org>
47814
47815         Avoid a compiler warning.
47816         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
47817         Change type of variable 'sequence'.
47818
47819 2009-04-19  Bruno Haible  <bruno@clisp.org>
47820
47821         * modules/configmake (Makefile.am): When the contents of configmake.h
47822         does not change, arrange to preserve its modification time.
47823
47824 2009-04-17  Simon Josefsson  <simon@josefsson.org>
47825
47826         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
47827         gettext domain.
47828
47829 2009-04-16  Jim Meyering  <meyering@redhat.com>
47830
47831         useless-if-before-free: improve conversion code
47832         * build-aux/useless-if-before-free: Adjust code-in-comment to match
47833         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
47834
47835 2009-04-14  Bruno Haible  <bruno@clisp.org>
47836
47837         * modules/fcntl (Depends-on): Add extensions.
47838         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
47839
47840 2009-04-12  Ben Pfaff  <blp@gnu.org>
47841
47842         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
47843         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
47844
47845 2009-03-20  Ben Pfaff  <blp@gnu.org>
47846
47847         Make rename replace existing destinations on Windows.
47848         * m4/rename.m4: Add test for Mingw.
47849         * lib/rename.c: Add rename replacement that uses MoveFileEx with
47850         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
47851         * doc/posix-functions/rename.texi: Document.
47852
47853 2009-04-10  Bruno Haible  <bruno@clisp.org>
47854
47855         New include file "iconveh.h".
47856         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
47857         * lib/striconveh.h: Include it.
47858         (enum iconv_ilseq_handler): Remove definition.
47859         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
47860         striconveh.h.
47861         * lib/striconveha.c: Include striconveh.h.
47862         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
47863         * modules/striconveh (Files): Add lib/iconveh.h.
47864         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
47865         lib/striconveh.h.
47866
47867 2009-04-10  Bruno Haible  <bruno@clisp.org>
47868
47869         * lib/uniconv.h: Update comment.
47870
47871 2009-04-10  Bruno Haible  <bruno@clisp.org>
47872
47873         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
47874         always.
47875         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
47876         * lib/unistr/u16-mbtouc-aux.c: Likewise.
47877         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
47878         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
47879         "unistring-notinline.h", so that the function gets defined always.
47880         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
47881         * lib/unistr/u8-uctomb.c: Likewise.
47882         * lib/unistr/u16-mbtouc.c: Likewise.
47883         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
47884         * lib/unistr/u16-uctomb.c: Likewise.
47885         * lib/unistr/u32-mbtouc.c: Likewise.
47886         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
47887         * lib/unistr/u32-uctomb.c: Likewise.
47888
47889 2009-04-10  Bruno Haible  <bruno@clisp.org>
47890
47891         Mark 'utime' obsolete.
47892         * modules/utime (Status, Notice): New sections.
47893         Suggested by Jim Meyering.
47894
47895         Fix cross-compile guess for utime test.
47896         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
47897         autoconf.
47898         * doc/posix-functions/utime.texi: Give more precisions.
47899         Reported by Jan <ipif@ymail.com>.
47900
47901 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
47902
47903         filevercmp: correct today's change
47904         * lib/filevercmp.c: Also handle coreutils' test inputs.
47905         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
47906
47907         Fix regression in 'filevercmp' module. Thanks Sven Joachim
47908         for reporting it.
47909         * lib/filevercmp.c: Special handle for "", "." and "..".
47910         * tests/test-filevercmp.c: Enlarge the set suite.
47911
47912 2009-04-07  Jim Meyering  <meyering@redhat.com>
47913
47914         useless-if-before-free: show how to remove braced useless free, too
47915         * build-aux/useless-if-before-free: still only in a comment, though.
47916
47917 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
47918
47919         maint.mk: import changes to syntax-check macros from coreutils
47920         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
47921         Use them in the relevant macros.
47922
47923 2009-04-06  Bruno Haible  <bruno@clisp.org>
47924
47925         Fix unportable use of bit-fields.
47926         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
47927         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
47928         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
47929
47930 2009-04-06  Bruno Haible  <bruno@clisp.org>
47931
47932         Avoid test failures on AIX and OSF/1.
47933         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
47934         that malloc(0) = NULL.
47935         * tests/unicase/test-u8-tolower.c (check): Likewise.
47936         * tests/unicase/test-u8-totitle.c (check): Likewise.
47937         * tests/unicase/test-u8-toupper.c (check): Likewise.
47938         * tests/unicase/test-u16-casefold.c (check): Likewise.
47939         * tests/unicase/test-u16-tolower.c (check): Likewise.
47940         * tests/unicase/test-u16-totitle.c (check): Likewise.
47941         * tests/unicase/test-u16-toupper.c (check): Likewise.
47942         * tests/unicase/test-u32-casefold.c (check): Likewise.
47943         * tests/unicase/test-u32-tolower.c (check): Likewise.
47944         * tests/unicase/test-u32-totitle.c (check): Likewise.
47945         * tests/unicase/test-u32-toupper.c (check): Likewise.
47946         * tests/uninorm/test-u8-nfc.c (check): Likewise.
47947         * tests/uninorm/test-u8-nfd.c (check): Likewise.
47948         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
47949         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
47950         * tests/uninorm/test-u16-nfc.c (check): Likewise.
47951         * tests/uninorm/test-u16-nfd.c (check): Likewise.
47952         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
47953         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
47954         * tests/uninorm/test-u32-nfc.c (check): Likewise.
47955         * tests/uninorm/test-u32-nfd.c (check): Likewise.
47956         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
47957         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
47958
47959 2009-04-05  Bruno Haible  <bruno@clisp.org>
47960
47961         Work around an autoconf limitation.
47962         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
47963         comment line if it would be longer than 3 KB.
47964
47965 2009-04-05  Bruno Haible  <bruno@clisp.org>
47966
47967         Avoid test failure with libiconv-1.13.
47968         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
47969         of the expected test results.
47970
47971 2009-04-05  Bruno Haible  <bruno@clisp.org>
47972
47973         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
47974         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
47975         that it should be installed.
47976
47977 2009-04-05  Bruno Haible  <bruno@clisp.org>
47978
47979         * gnulib-tool: New option --copy-file.
47980         (func_usage): Document it.
47981         (func_dest_tmpfilename): Moved out of func_import.
47982         (func_add_file, func_update_file): New functions, extracted from
47983         func_import.
47984         (func_import): Update.
47985
47986 2009-04-05  Karl Berry  <karl@gnu.org>
47987
47988         * README: prominently mention gnulib-tool.
47989         Rearrange sections so getting the code is near the top.
47990
47991 2009-04-05  Bruno Haible  <bruno@clisp.org>
47992
47993         * lib/unicase.h: Mention u*_cmp2.
47994         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
47995         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
47996         * lib/unicase/ulc-casecmp.c: Likewise.
47997         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
47998         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
47999         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
48000         unistr/u8-cmp.
48001         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
48002         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
48003         unistr/u16-cmp.
48004         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
48005         unistr/u32-cmp.
48006
48007         * lib/uninorm.h: Mention u*_cmp2.
48008         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
48009         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
48010         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
48011         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
48012         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
48013         unistr/u8-cmp.
48014         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
48015         unistr/u16-cmp.
48016         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
48017         unistr/u32-cmp.
48018
48019         New module 'unistr/u32-cmp2'.
48020         * lib/unistr/u32-cmp2.c: New file.
48021         * modules/unistr/u32-cmp2: New file.
48022
48023         New module 'unistr/u16-cmp2'.
48024         * lib/unistr/u16-cmp2.c: New file.
48025         * modules/unistr/u16-cmp2: New file.
48026
48027         New module 'unistr/u8-cmp2'.
48028         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
48029         * lib/unistr/u8-cmp2.c: New file.
48030         * lib/unistr/u-cmp2.h: New file.
48031         * modules/unistr/u8-cmp2: New file.
48032
48033 2009-04-05  Bruno Haible  <bruno@clisp.org>
48034
48035         * lib/unictype.h (uc_property_is_valid): New macro.
48036         * tests/unictype/test-pr_byname.c (main): Use it.
48037
48038         * lib/unistr.h: Doc fixes.
48039         * lib/uniconv.h: Doc fixes.
48040         * lib/unictype.h: Doc fixes.
48041
48042 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
48043
48044         Port coreutils 7.2 to Solaris 8.
48045
48046         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
48047         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
48048         for Solaris 8.  This is a bit of a hack, as it means it's the
48049         caller's responsibility to add -lnsl if needed, but most likely it
48050         won't be needed since only getaddrinfo uses this and getaddrinfo
48051         isn't needed on Solaris 8.
48052
48053         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
48054         problem to Solaris 8 encountered with coreutils 7.2, which
48055         resulted in a message "fnmatch.c:292: warning: passing argument 4
48056         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
48057         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
48058
48059 2009-04-03  Simon Josefsson  <simon@josefsson.org>
48060
48061         * m4/ld-version-script.m4: Add FIXME comment.
48062
48063 2009-04-02  Simon Josefsson  <simon@josefsson.org>
48064
48065         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
48066         SOVERSION variable.
48067
48068 2009-04-02  Bruno Haible  <bruno@clisp.org>
48069
48070         * Makefile (info, html, dvi, pdf): Combine the rules.
48071         Suggested by Jim Meyering.
48072
48073 2009-04-01  Bruno Haible  <bruno@clisp.org>
48074
48075         * Makefile (info, html, dvi, pdf): New targets.
48076         Reported by Reuben Thomas <rrt@sc3d.org>.
48077
48078 2009-04-01  Bruno Haible  <bruno@clisp.org>
48079
48080         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
48081         can be put into PATH.
48082         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
48083
48084 2009-04-01  Bruno Haible  <bruno@clisp.org>
48085
48086         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
48087
48088 2009-04-01  Bruno Haible  <bruno@clisp.org>
48089
48090         Rename module 'visibility'.
48091         * modules/lib-symbol-visibility: Renamed from modules/visibility.
48092         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
48093         * doc/gnulib.texi: Update.
48094         * MODULES.html.sh (Misc): Update.
48095         * NEWS: Mention the change.
48096
48097 2009-04-01  Simon Josefsson  <simon@josefsson.org>
48098
48099         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
48100         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
48101         Eric Blake <ebb9@byu.net> for review.
48102         * MODULES.html.sh: Add lib-msvc-compat.
48103         * doc/gnulib.texi: Link to new section.
48104         * m4/ld-output-def.m4: New file.
48105         * doc/ld-output-def.texi: New file.
48106
48107 2009-04-01  Simon Josefsson  <simon@josefsson.org>
48108
48109         Rename ld-version-script to lib-symbol-versions.  Suggested by
48110         Bruno Haible <bruno@clisp.org>.
48111         * modules/ld-version-script: Renamed to lib-symbol-versions.
48112         * doc/ld-version-script.texi: Fix module name.
48113         * MODULES.html.sh: Add lib-symbol-versions.
48114
48115 2009-03-31  Simon Josefsson  <simon@josefsson.org>
48116
48117         * modules/u64-tests: New file.
48118         * tests/test-u64.c: New file.
48119
48120 2009-03-04  Simon Josefsson  <simon@josefsson.org>
48121
48122         * MODULES.html.sh: Mention u64.
48123         * modules/u64: New module.
48124         * modules/crypto/sha512: Depend on u64 module instead of providing
48125         u64.h.
48126
48127 2009-03-27  Eric Blake  <ebb9@byu.net>
48128
48129         test-strerror: make debugging EAI_SYSTEM easier
48130         * modules/getaddrinfo-tests (Depends-on): Add strerror.
48131         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
48132         failure was EAI_SYSTEM.
48133
48134 2009-03-25  Bruno Haible  <bruno@clisp.org>
48135
48136         Fix a problem with --enable-relocatable on Solaris 7.
48137         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
48138         since 2008-02-24.
48139
48140 2009-03-25  Eric Blake  <ebb9@byu.net>
48141
48142         test-sockets: avoid gcc warning
48143         * tests/test-sockets.c (main): Silence compiler warning.
48144
48145 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
48146
48147         New modules nproc, pthread, contributed by Glen Lenker.
48148
48149         * MODULES.html.sh: Add pthread, nproc.
48150         * lib/nproc.c: New file.
48151         * lib/nproc.h: New file.
48152         * lib/pthread.in.h: New file.
48153         * m4/pthread.m4: New file.
48154         * modules/nproc: New file.
48155         * modules/pthread: New file.
48156
48157 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48158
48159         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
48160         New variable.
48161
48162 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
48163
48164         filevercmp: handle simple~ and numbered.~3~ backup suffixes
48165         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
48166         * tests/test-filevercmp.c: Add tests for backup suffixes.
48167
48168 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48169
48170         * modules/stdlib (Depends-on): Add stdint, needed when defining
48171         struct random_data on, for example, HP-UX 10.20.  Reported by
48172         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
48173
48174 2009-03-24  Simon Josefsson  <simon@josefsson.org>
48175
48176         * lib/readline.c (readline): Call fflush on stdout after printing
48177         prompt.
48178
48179 2009-03-20  Bruno Haible  <bruno@clisp.org>
48180
48181         Remove dependency from 'close' module to -lws2_32 on native Windows.
48182         * lib/close-hook.h: New file.
48183         * lib/close-hook.c: New file.
48184         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
48185         w32sock.h.
48186         (_gl_close_fd_maybe_socket): Remove function.
48187         (rpl_close): Invoke execute_all_close_hooks instead of
48188         _gl_close_fd_maybe_socket.
48189         * lib/sockets.c: Include close-hook.h, w32sock.h.
48190         (close_fd_maybe_socket): New function, essentially from lib/close.c.
48191         (close_sockets_hook): New variable.
48192         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
48193         (gl_sockets_cleanup): Unregister it.
48194         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
48195         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
48196         * modules/close-hook: New file.
48197         * modules/close (Files): Remove lib/w32sock.h.
48198         (Depends-on): Add close-hook.
48199         (Link): Remove section.
48200         * modules/sockets (Files): Add lib/w32sock.h.
48201         (Depends-on): Add close-hook.
48202         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
48203         invocation.
48204         * NEWS: Mention that LIB_CLOSE is gone.
48205
48206 2009-03-23  Eric Blake  <ebb9@byu.net>
48207
48208         signal-tests: test previous patch
48209         * tests/test-signal.c: New file.
48210         * modules/signal-tests: Likewise.
48211
48212         signal.h: always support 'volatile sig_atomic_t'
48213         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
48214         (gl_SIGNAL_H_DEFAULTS): Add a default.
48215         * modules/signal (Makefile.am): Substitute if needed.
48216         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
48217         users can blindly add volatile.
48218         * doc/posix-headers/signal.texi (signal.h): Document it.
48219         Reported by Matthew Woehlke.
48220
48221 2009-03-23  Jim Meyering  <meyering@redhat.com>
48222
48223         pathmax: PATH_MAX: use pathconf only when available
48224         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
48225         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
48226         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
48227         This avoids a link failure in a PSP cross-compilation environment
48228         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
48229
48230         * lib/vasnprintf.c (divide): Fix typo in comment.
48231
48232 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48233
48234         * gnulib-tool (func_filter_filelist): Fix comment.
48235
48236 2009-03-20  Bruno Haible  <bruno@clisp.org>
48237
48238         Make sockets.h self-contained.
48239         * lib/sockets.c: Include sockets.h first.
48240         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
48241
48242 2009-03-19  Eric Blake  <ebb9@byu.net>
48243
48244         doc: mention more functions added in cygwin 1.7.0
48245         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
48246         addition.
48247         * doc/posix-functions/log2f.texi: Likewise.
48248
48249 2009-03-19  Jim Meyering  <meyering@redhat.com>
48250
48251         fsusage: avoid syntax error due to statement-before-declaration
48252         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
48253         after all declarations.  Reported by Matthew Woehlke in
48254         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
48255
48256 2009-03-18  Eric Blake  <ebb9@byu.net>
48257
48258         build-aux/compile: sync from automake
48259         * build-aux/compile: New file, from automake.
48260         * config/srclist.txt: Mention build-aux/compile.
48261
48262 2009-03-17  Bruno Haible  <bruno@clisp.org>
48263
48264         * lib/git-merge-changelog.c: Fix typo in comment.
48265         Reported by Reuben Thomas <rrt@sc3d.org>.
48266
48267 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
48268
48269         * m4/regex.m4: update and improve help for
48270         --without-included-regex.
48271
48272 2009-03-17  Simon Josefsson  <simon@josefsson.org>
48273
48274         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
48275         failure on missing include files.
48276
48277 2009-03-17  Eric Blake  <ebb9@byu.net>
48278
48279         doc: mention more functions added in cygwin 1.7.0
48280         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
48281         addition.
48282         * doc/posix-functions/fwscanf.texi: Likewise.
48283         * doc/posix-functions/swprintf.texi: Likewise.
48284         * doc/posix-functions/swscanf.texi: Likewise.
48285         * doc/posix-functions/vfwprintf.texi: Likewise.
48286         * doc/posix-functions/vfwscanf.texi: Likewise.
48287         * doc/posix-functions/vswprintf.texi: Likewise.
48288         * doc/posix-functions/vswscanf.texi: Likewise.
48289         * doc/posix-functions/vwprintf.texi: Likewise.
48290         * doc/posix-functions/vwscanf.texi: Likewise.
48291         * doc/posix-functions/wcscasecmp.texi: Likewise.
48292         * doc/posix-functions/wcsdup.texi: Likewise.
48293         * doc/posix-functions/wcsftime.texi: Likewise.
48294         * doc/posix-functions/wcsncasecmp.texi: Likewise.
48295         * doc/posix-functions/wprintf.texi: Likewise.
48296         * doc/posix-functions/wscanf.texi: Likewise.
48297         * doc/glibc-functions/gethostbyname2.texi: Likewise.
48298
48299 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
48300
48301         maint.mk: really add $(AM_MAKEFLAGS)
48302         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
48303         was inadvertently omitted in the last commit.
48304         Spotted by Bruno Haible.
48305
48306         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
48307         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
48308         $(AM_MAKEFLAGS)' rather than plain `make'.
48309
48310         gnulib-tool: execute $MAKE not make
48311         * gnulib-tool: Default $MAKE to 'make'.
48312         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
48313         than make.  Initialize $MAKE in the do-autobuild script.
48314
48315         gnulib-tool: use $MAKE not make in generated files
48316         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
48317         make, in generated files.  Initialize $MAKE in the do-autobuild
48318         script.
48319
48320         * top/GNUmakefile (_have-git-version-gen): Fix typo.
48321
48322         GNUmakefile: disable parallelism only for multiple, recursive targets
48323         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
48324         additions in the Makefile.
48325         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
48326         by Automake.
48327         (.NOTPARALLEL): Only disable parallel builds if multiple targets
48328         are listed on the command line and at least one of them is
48329         listed in $(ALL_RECURSIVE_TARGETS).
48330
48331 2009-03-14  Bruno Haible  <bruno@clisp.org>
48332
48333         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
48334         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
48335         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
48336         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
48337         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
48338         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
48339         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
48340         unistr/u8-uctomb.
48341         * modules/unistr/u8-strchr (Depends-on): Likewise.
48342         * modules/unistr/u8-strrchr (Depends-on): Likewise.
48343         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
48344         unistr/u16-uctomb.
48345         * modules/unistr/u16-strchr (Depends-on): Likewise.
48346         * modules/unistr/u16-strrchr (Depends-on): Likewise.
48347
48348 2009-03-12  Bruno Haible  <bruno@clisp.org>
48349
48350         Work around select() bug on Interix 3.5.
48351         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
48352         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
48353         * m4/select.m4: New file.
48354         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
48355         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
48356         * modules/select (Files): Add m4/select.m4.
48357         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
48358         * modules/nanosleep (Depends-on): Add select.
48359         * modules/poll (Depends-on): Likewise.
48360         * doc/posix-functions/select.texi: Mention the Interix bug.
48361         Reported by Markus Duft <mduft@gentoo.org>.
48362
48363         * lib/select.c: Renamed from lib/winsock-select.c.
48364         * modules/select (Files): Add lib/select.c, remove
48365         lib/winsock-select.c.
48366         (configure.ac): Update.
48367
48368 2009-03-12  Jim Meyering  <meyering@redhat.com>
48369
48370         avoid gcc warnings about unused macro definitions
48371         * lib/readtokens.c (STREQ): Remove unused definition.
48372         * lib/xmalloc.c (SIZE_MAX): Likewise.
48373         * lib/openat-die.c (N_): Likewise.
48374         * lib/mountlist.c (SIZE_MAX): Remove definition.
48375         Instead, include <stdint.h>.
48376         * lib/readutmp.c: Likewise.
48377         * modules/readutmp (Depends-on): Add stdint.
48378         * modules/mountlist (Depends-on): Add stdint.
48379         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
48380
48381 2009-03-10  Bruno Haible  <bruno@clisp.org>
48382
48383         Tests for module 'mbmemcasecoll'.
48384         * modules/mbmemcasecoll-tests: New file.
48385         * tests/test-mbmemcasecoll1.sh: New file.
48386         * tests/test-mbmemcasecoll2.sh: New file.
48387         * tests/test-mbmemcasecoll3.sh: New file.
48388         * tests/test-mbmemcasecoll.c: New file.
48389
48390         New module 'mbmemcasecoll'.
48391         * lib/mbmemcasecoll.h: New file.
48392         * lib/mbmemcasecoll.c: New file.
48393         * modules/mbmemcasecoll: New file.
48394
48395         * tests/test-mbmemcasecmp.h: New file, extracted from
48396         tests/test-mbmemcasecmp.c.
48397         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
48398         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
48399         (main): Update.
48400         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
48401
48402 2009-03-09  Bruno Haible  <bruno@clisp.org>
48403
48404         Tests for module 'mbmemcasecmp'.
48405         * modules/mbmemcasecmp-tests: New file.
48406         * tests/test-mbmemcasecmp1.sh: New file.
48407         * tests/test-mbmemcasecmp2.sh: New file.
48408         * tests/test-mbmemcasecmp3.sh: New file.
48409         * tests/test-mbmemcasecmp.c: New file.
48410
48411         New module 'mbmemcasecmp'.
48412         * lib/mbmemcasecmp.h: New file.
48413         * lib/mbmemcasecmp.c: New file.
48414         * modules/mbmemcasecmp: New file.
48415
48416 2009-03-09  Bruno Haible  <bruno@clisp.org>
48417
48418         Tests for module 'unicase/ulc-casecoll'.
48419         * modules/unicase/ulc-casecoll-tests: New file.
48420         * tests/unicase/test-ulc-casecoll1.sh: New file.
48421         * tests/unicase/test-ulc-casecoll2.sh: New file.
48422         * tests/unicase/test-ulc-casecoll.c: New file.
48423
48424         New module 'unicase/ulc-casecoll'.
48425         * lib/unicase.h (ulc_casecoll): New declaration.
48426         * lib/unicase/ulc-casecoll.c: New file.
48427         * modules/unicase/ulc-casecoll: New file.
48428
48429         New module 'unicase/ulc-casexfrm'.
48430         * lib/unicase.h (ulc_casexfrm): New declaration.
48431         * lib/unicase/ulc-casexfrm.c: New file.
48432         * modules/unicase/ulc-casexfrm: New file.
48433
48434 2009-03-09  Bruno Haible  <bruno@clisp.org>
48435
48436         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
48437         invocations.
48438
48439         * m4/mbscasecmp.m4: Remove file.
48440         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
48441         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
48442
48443         * m4/mbscasestr.m4: Remove file.
48444         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
48445         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
48446
48447         * m4/mbschr.m4: Remove file.
48448         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
48449         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
48450
48451         * m4/mbscspn.m4: Remove file.
48452         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
48453         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
48454
48455         * m4/mbslen.m4: Remove file.
48456         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
48457         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
48458
48459         * m4/mbsncasecmp.m4: Remove file.
48460         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
48461         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
48462
48463         * m4/mbsnlen.m4: Remove file.
48464         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
48465         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
48466
48467         * m4/mbspbrk.m4: Remove file.
48468         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
48469         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
48470
48471         * m4/mbspcasecmp.m4: Remove file.
48472         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
48473         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
48474
48475         * m4/mbsrchr.m4: Remove file.
48476         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
48477         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
48478
48479         * m4/mbssep.m4: Remove file.
48480         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
48481         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
48482
48483         * m4/mbsspn.m4: Remove file.
48484         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
48485         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
48486
48487         * m4/mbsstr.m4: Remove file.
48488         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
48489         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
48490
48491         * m4/mbstok_r.m4: Remove file.
48492         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
48493         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
48494
48495         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
48496
48497         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
48498         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
48499
48500         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
48501
48502 2009-03-08  Bruno Haible  <bruno@clisp.org>
48503
48504         Tests for module 'unicase/ulc-casecmp'.
48505         * modules/unicase/ulc-casecmp-tests: New file.
48506         * tests/unicase/test-ulc-casecmp1.sh: New file.
48507         * tests/unicase/test-ulc-casecmp2.sh: New file.
48508         * tests/unicase/test-ulc-casecmp.c: New file.
48509
48510         New module 'unicase/ulc-casecmp'.
48511         * lib/unicase.h (ulc_casecmp): New declaration.
48512         * lib/unicase/ulc-casecmp.c: New file.
48513         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
48514         'const SRC_UNIT *'.
48515         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
48516         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
48517         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
48518         * modules/unicase/ulc-casecmp: New file.
48519
48520         Tests for module 'unicase/u32-is-cased'.
48521         * modules/unicase/u32-is-cased-tests: New file.
48522         * tests/unicase/test-u32-is-cased.c: New file.
48523
48524         Tests for module 'unicase/u16-is-cased'.
48525         * modules/unicase/u16-is-cased-tests: New file.
48526         * tests/unicase/test-u16-is-cased.c: New file.
48527
48528         Tests for module 'unicase/u8-is-cased'.
48529         * modules/unicase/u8-is-cased-tests: New file.
48530         * tests/unicase/test-u8-is-cased.c: New file.
48531         * tests/unicase/test-is-cased.h: New file.
48532
48533         New module 'unicase/u32-is-cased'.
48534         * lib/unicase/u32-is-cased.c: New file.
48535         * modules/unicase/u32-is-cased: New file.
48536
48537         New module 'unicase/u16-is-cased'.
48538         * lib/unicase/u16-is-cased.c: New file.
48539         * modules/unicase/u16-is-cased: New file.
48540
48541         New module 'unicase/u8-is-cased'.
48542         * lib/unicase/u8-is-cased.c: New file.
48543         * lib/unicase/u-is-cased.h: New file.
48544         * modules/unicase/u8-is-cased: New file.
48545
48546         Tests for module 'unicase/u32-is-casefolded'.
48547         * modules/unicase/u32-is-casefolded-tests: New file.
48548         * tests/unicase/test-u32-is-casefolded.c: New file.
48549
48550         Tests for module 'unicase/u16-is-casefolded'.
48551         * modules/unicase/u16-is-casefolded-tests: New file.
48552         * tests/unicase/test-u16-is-casefolded.c: New file.
48553
48554         Tests for module 'unicase/u8-is-casefolded'.
48555         * modules/unicase/u8-is-casefolded-tests: New file.
48556         * tests/unicase/test-u8-is-casefolded.c: New file.
48557         * tests/unicase/test-is-casefolded.h: New file.
48558
48559         New module 'unicase/u32-is-casefolded'.
48560         * lib/unicase/u32-is-casefolded.c: New file.
48561         * modules/unicase/u32-is-casefolded: New file.
48562
48563         New module 'unicase/u16-is-casefolded'.
48564         * lib/unicase/u16-is-casefolded.c: New file.
48565         * modules/unicase/u16-is-casefolded: New file.
48566
48567         New module 'unicase/u8-is-casefolded'.
48568         * lib/unicase/u8-is-casefolded.c: New file.
48569         * modules/unicase/u8-is-casefolded: New file.
48570
48571         Tests for module 'unicase/u32-is-titlecase'.
48572         * modules/unicase/u32-is-titlecase-tests: New file.
48573         * tests/unicase/test-u32-is-titlecase.c: New file.
48574
48575         Tests for module 'unicase/u16-is-titlecase'.
48576         * modules/unicase/u16-is-titlecase-tests: New file.
48577         * tests/unicase/test-u16-is-titlecase.c: New file.
48578
48579         Tests for module 'unicase/u8-is-titlecase'.
48580         * modules/unicase/u8-is-titlecase-tests: New file.
48581         * tests/unicase/test-u8-is-titlecase.c: New file.
48582         * tests/unicase/test-is-titlecase.h: New file.
48583
48584         New module 'unicase/u32-is-titlecase'.
48585         * lib/unicase/u32-is-titlecase.c: New file.
48586         * modules/unicase/u32-is-titlecase: New file.
48587
48588         New module 'unicase/u16-is-titlecase'.
48589         * lib/unicase/u16-is-titlecase.c: New file.
48590         * modules/unicase/u16-is-titlecase: New file.
48591
48592         New module 'unicase/u8-is-titlecase'.
48593         * lib/unicase/u8-is-titlecase.c: New file.
48594         * modules/unicase/u8-is-titlecase: New file.
48595
48596         Tests for module 'unicase/u32-is-lowercase'.
48597         * modules/unicase/u32-is-lowercase-tests: New file.
48598         * tests/unicase/test-u32-is-lowercase.c: New file.
48599
48600         Tests for module 'unicase/u16-is-lowercase'.
48601         * modules/unicase/u16-is-lowercase-tests: New file.
48602         * tests/unicase/test-u16-is-lowercase.c: New file.
48603
48604         Tests for module 'unicase/u8-is-lowercase'.
48605         * modules/unicase/u8-is-lowercase-tests: New file.
48606         * tests/unicase/test-u8-is-lowercase.c: New file.
48607         * tests/unicase/test-is-lowercase.h: New file.
48608
48609         New module 'unicase/u32-is-lowercase'.
48610         * lib/unicase/u32-is-lowercase.c: New file.
48611         * modules/unicase/u32-is-lowercase: New file.
48612
48613         New module 'unicase/u16-is-lowercase'.
48614         * lib/unicase/u16-is-lowercase.c: New file.
48615         * modules/unicase/u16-is-lowercase: New file.
48616
48617         New module 'unicase/u8-is-lowercase'.
48618         * lib/unicase/u8-is-lowercase.c: New file.
48619         * modules/unicase/u8-is-lowercase: New file.
48620
48621         Tests for module 'unicase/u32-is-uppercase'.
48622         * modules/unicase/u32-is-uppercase-tests: New file.
48623         * tests/unicase/test-u32-is-uppercase.c: New file.
48624
48625         Tests for module 'unicase/u16-is-uppercase'.
48626         * modules/unicase/u16-is-uppercase-tests: New file.
48627         * tests/unicase/test-u16-is-uppercase.c: New file.
48628
48629         Tests for module 'unicase/u8-is-uppercase'.
48630         * modules/unicase/u8-is-uppercase-tests: New file.
48631         * tests/unicase/test-u8-is-uppercase.c: New file.
48632         * tests/unicase/test-is-uppercase.h: New file.
48633
48634         New module 'unicase/u32-is-uppercase'.
48635         * lib/unicase/u32-is-uppercase.c: New file.
48636         * modules/unicase/u32-is-uppercase: New file.
48637
48638         New module 'unicase/u16-is-uppercase'.
48639         * lib/unicase/u16-is-uppercase.c: New file.
48640         * modules/unicase/u16-is-uppercase: New file.
48641
48642         New module 'unicase/u8-is-uppercase'.
48643         * lib/unicase/u8-is-uppercase.c: New file.
48644         * modules/unicase/u8-is-uppercase: New file.
48645
48646         New module 'unicase/u32-is-invariant'.
48647         * lib/unicase/u32-is-invariant.c: New file.
48648         * modules/unicase/u32-is-invariant: New file.
48649
48650         New module 'unicase/u16-is-invariant'.
48651         * lib/unicase/u16-is-invariant.c: New file.
48652         * modules/unicase/u16-is-invariant: New file.
48653
48654         New module 'unicase/u8-is-invariant'.
48655         * lib/unicase/u8-is-invariant.c: New file.
48656         * lib/unicase/invariant.h: New file.
48657         * lib/unicase/u-is-invariant.h: New file.
48658         * modules/unicase/u8-is-invariant: New file.
48659
48660         Tests for module 'unicase/u32-casecoll'.
48661         * modules/unicase/u32-casecoll-tests: New file.
48662         * tests/unicase/test-u32-casecoll.c: New file.
48663
48664         Tests for module 'unicase/u16-casecoll'.
48665         * modules/unicase/u16-casecoll-tests: New file.
48666         * tests/unicase/test-u16-casecoll.c: New file.
48667
48668         Tests for module 'unicase/u8-casecoll'.
48669         * modules/unicase/u8-casecoll-tests: New file.
48670         * tests/unicase/test-u8-casecoll.c: New file.
48671
48672         New module 'unicase/u32-casecoll'.
48673         * lib/unicase/u32-casecoll.c: New file.
48674         * modules/unicase/u32-casecoll: New file.
48675
48676         New module 'unicase/u16-casecoll'.
48677         * lib/unicase/u16-casecoll.c: New file.
48678         * modules/unicase/u16-casecoll: New file.
48679
48680         New module 'unicase/u8-casecoll'.
48681         * lib/unicase/u8-casecoll.c: New file.
48682         * lib/unicase/u-casecoll.h: New file.
48683         * modules/unicase/u8-casecoll: New file.
48684
48685         New module 'unicase/u32-casexfrm'.
48686         * lib/unicase/u32-casexfrm.c: New file.
48687         * modules/unicase/u32-casexfrm: New file.
48688
48689         New module 'unicase/u16-casexfrm'.
48690         * lib/unicase/u16-casexfrm.c: New file.
48691         * modules/unicase/u16-casexfrm: New file.
48692
48693         New module 'unicase/u8-casexfrm'.
48694         * lib/unicase/u8-casexfrm.c: New file.
48695         * lib/unicase/u-casexfrm.h: New file.
48696         * modules/unicase/u8-casexfrm: New file.
48697
48698         Tests for module 'unicase/u32-casecmp'.
48699         * modules/unicase/u32-casecmp-tests: New file.
48700         * tests/unicase/test-u32-casecmp.c: New file.
48701
48702         Tests for module 'unicase/u16-casecmp'.
48703         * modules/unicase/u16-casecmp-tests: New file.
48704         * tests/unicase/test-u16-casecmp.c: New file.
48705
48706         Tests for module 'unicase/u8-casecmp'.
48707         * modules/unicase/u8-casecmp-tests: New file.
48708         * tests/unicase/test-u8-casecmp.c: New file.
48709         * tests/unicase/test-casecmp.h: New file.
48710
48711         New module 'unicase/u32-casecmp'.
48712         * lib/unicase/u32-casecmp.c: New file.
48713         * modules/unicase/u32-casecmp: New file.
48714
48715         New module 'unicase/u16-casecmp'.
48716         * lib/unicase/u16-casecmp.c: New file.
48717         * modules/unicase/u16-casecmp: New file.
48718
48719         New module 'unicase/u8-casecmp'.
48720         * lib/unicase/u8-casecmp.c: New file.
48721         * lib/unicase/u-casecmp.h: New file.
48722         * modules/unicase/u8-casecmp: New file.
48723
48724         Tests for module 'unicase/u32-casefold'.
48725         * modules/unicase/u32-casefold-tests: New file.
48726         * tests/unicase/test-u32-casefold.c: New file.
48727
48728         Tests for module 'unicase/u16-casefold'.
48729         * modules/unicase/u16-casefold-tests: New file.
48730         * tests/unicase/test-u16-casefold.c: New file.
48731
48732         Tests for module 'unicase/u8-casefold'.
48733         * modules/unicase/u8-casefold-tests: New file.
48734         * tests/unicase/test-u8-casefold.c: New file.
48735
48736         New module 'unicase/u32-casefold'.
48737         * lib/unicase/u32-casefold.c: New file.
48738         * modules/unicase/u32-casefold: New file.
48739
48740         New module 'unicase/u16-casefold'.
48741         * lib/unicase/u16-casefold.c: New file.
48742         * modules/unicase/u16-casefold: New file.
48743
48744         New module 'unicase/u8-casefold'.
48745         * lib/unicase/u8-casefold.c: New file.
48746         * lib/unicase/u-casefold.h: New file.
48747         * modules/unicase/u8-casefold: New file.
48748
48749         New module 'unicase/tocasefold'.
48750         * lib/unicase/casefold.h: New file.
48751         * lib/unicase/tocasefold.c: New file.
48752         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
48753         * modules/unicase/tocasefold: New file.
48754
48755         Tests for module 'unicase/u32-totitle'.
48756         * modules/unicase/u32-totitle-tests: New file.
48757         * tests/unicase/test-u32-totitle.c: New file.
48758
48759         Tests for module 'unicase/u16-totitle'.
48760         * modules/unicase/u16-totitle-tests: New file.
48761         * tests/unicase/test-u16-totitle.c: New file.
48762
48763         Tests for module 'unicase/u8-totitle'.
48764         * modules/unicase/u8-totitle-tests: New file.
48765         * tests/unicase/test-u8-totitle.c: New file.
48766
48767         New module 'unicase/u32-totitle'.
48768         * lib/unicase/u32-totitle.c: New file.
48769         * modules/unicase/u32-totitle: New file.
48770
48771         New module 'unicase/u16-totitle'.
48772         * lib/unicase/u16-totitle.c: New file.
48773         * modules/unicase/u16-totitle: New file.
48774
48775         New module 'unicase/u8-totitle'.
48776         * lib/unicase/u8-totitle.c: New file.
48777         * lib/unicase/u-totitle.h: New file.
48778         * modules/unicase/u8-totitle: New file.
48779
48780         Tests for module 'unicase/u32-tolower'.
48781         * modules/unicase/u32-tolower-tests: New file.
48782         * tests/unicase/test-u32-tolower.c: New file.
48783
48784         Tests for module 'unicase/u16-tolower'.
48785         * modules/unicase/u16-tolower-tests: New file.
48786         * tests/unicase/test-u16-tolower.c: New file.
48787
48788         Tests for module 'unicase/u8-tolower'.
48789         * modules/unicase/u8-tolower-tests: New file.
48790         * tests/unicase/test-u8-tolower.c: New file.
48791
48792         New module 'unicase/u32-tolower'.
48793         * lib/unicase/u32-tolower.c: New file.
48794         * modules/unicase/u32-tolower: New file.
48795
48796         New module 'unicase/u16-tolower'.
48797         * lib/unicase/u16-tolower.c: New file.
48798         * modules/unicase/u16-tolower: New file.
48799
48800         New module 'unicase/u8-tolower'.
48801         * lib/unicase/u8-tolower.c: New file.
48802         * modules/unicase/u8-tolower: New file.
48803
48804         Tests for module 'unicase/u32-toupper'.
48805         * modules/unicase/u32-toupper-tests: New file.
48806         * tests/unicase/test-u32-toupper.c: New file.
48807
48808         Tests for module 'unicase/u16-toupper'.
48809         * modules/unicase/u16-toupper-tests: New file.
48810         * tests/unicase/test-u16-toupper.c: New file.
48811
48812         Tests for module 'unicase/u8-toupper'.
48813         * modules/unicase/u8-toupper-tests: New file.
48814         * tests/unicase/test-u8-toupper.c: New file.
48815
48816         New module 'unicase/u32-toupper'.
48817         * lib/unicase/u32-toupper.c: New file.
48818         * modules/unicase/u32-toupper: New file.
48819
48820         New module 'unicase/u16-toupper'.
48821         * lib/unicase/u16-toupper.c: New file.
48822         * modules/unicase/u16-toupper: New file.
48823
48824         New module 'unicase/u8-toupper'.
48825         * lib/unicase/u8-toupper.c: New file.
48826         * modules/unicase/u8-toupper: New file.
48827
48828         New module 'unicase/u32-casemap'.
48829         * lib/unicase/u32-casemap.c: New file.
48830         * modules/unicase/u32-casemap: New file.
48831
48832         New module 'unicase/u16-casemap'.
48833         * lib/unicase/u16-casemap.c: New file.
48834         * modules/unicase/u16-casemap: New file.
48835
48836         New module 'unicase/u8-casemap'.
48837         * lib/unicase/unicasemap.h: New file.
48838         * lib/unicase/u8-casemap.c: New file.
48839         * lib/unicase/u-casemap.h: New file.
48840         * modules/unicase/u8-casemap: New file.
48841
48842         New module 'unicase/special-casing'.
48843         * lib/unicase/special-casing.h: New file.
48844         * lib/unicase/special-casing.c: New file.
48845         * lib/unicase/special-casing-table.gperf: New file, generated by
48846         gen-uni-tables.c.
48847         * modules/unicase/special-casing: New file.
48848
48849         Tests for module 'unicase/locale-language'.
48850         * modules/unicase/locale-language-tests: New file.
48851         * tests/unicase/test-locale-language.sh: New file.
48852         * tests/unicase/test-locale-language.c: New file.
48853
48854         New module 'unicase/locale-language'.
48855         * lib/unicase/locale-language.c: New file.
48856         * lib/unicase/locale-languages.gperf: New file.
48857         * modules/unicase/locale-language: New file.
48858
48859         Generate more tables for case conversion and case folding.
48860         * lib/gen-uni-tables.c (SCC_*): New enum items.
48861         (struct special_casing_rule): New type.
48862         (casing_rules, num_casing_rules, allocated_casing_rules): New
48863         variables.
48864         (add_casing_rule, fill_casing_rules): New functions.
48865         (struct casefold_rule): New type.
48866         (casefolding_rules, num_casefolding_rules,
48867         allocated_casefolding_rules): New variables.
48868         (fill_casefolding_rules): New function.
48869         (unicode_casefold): New variable.
48870         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
48871         sort_casing_rules, output_casing_rules): New functions.
48872         (main): Accept to more arguments: SpecialCasing.txt and
48873         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
48874         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
48875         Output mapping for casefolding.
48876
48877         * lib/unicase.h: Include stdbool.h, uninorm.h.
48878         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
48879         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
48880         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
48881         arguments.
48882         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
48883         resultp arguments.
48884         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
48885         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
48886         resultp arguments.
48887         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
48888         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
48889         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
48890         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
48891         declarations.
48892         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
48893
48894 2009-03-08  Bruno Haible  <bruno@clisp.org>
48895
48896         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
48897         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
48898         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
48899         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
48900
48901 2009-03-07  Bruno Haible  <bruno@clisp.org>
48902
48903         Adjust u*_normcmp, u*_normcoll API.
48904         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
48905         u16_normcoll, u32_normcoll): Change failure conventions.
48906         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
48907         errno and return -1.
48908         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
48909
48910 2009-03-07  Bruno Haible  <bruno@clisp.org>
48911
48912         Tests for module 'uninorm/u32-normcoll'.
48913         * modules/uninorm/u32-normcoll-tests: New file.
48914         * tests/uninorm/test-u32-normcoll.c: New file.
48915
48916         Tests for module 'uninorm/u16-normcoll'.
48917         * modules/uninorm/u16-normcoll-tests: New file.
48918         * tests/uninorm/test-u16-normcoll.c: New file.
48919
48920         Tests for module 'uninorm/u8-normcoll'.
48921         * modules/uninorm/u8-normcoll-tests: New file.
48922         * tests/uninorm/test-u8-normcoll.c: New file.
48923
48924 2009-03-07  Bruno Haible  <bruno@clisp.org>
48925
48926         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
48927         tests/uninorm/test-u32-normcmp.c.
48928         * tests/uninorm/test-u32-normcmp.c: Include it.
48929         (test_nonascii): New function, extracted from main. Add some more
48930         tests.
48931         (main): Invoke test_ascii and test_nonascii.
48932         * modules/uninorm/u32-normcmp-tests (Files): Add
48933         tests/uninorm/test-u32-normcmp.h.
48934         (Depends-on): Remove uninorm/u32-normcmp.
48935
48936         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
48937         tests/uninorm/test-u16-normcmp.c.
48938         * tests/uninorm/test-u16-normcmp.c: Include it.
48939         (test_nonascii): New function, extracted from main. Add some more
48940         tests.
48941         (main): Invoke test_ascii and test_nonascii.
48942         * modules/uninorm/u16-normcmp-tests (Files): Add
48943         tests/uninorm/test-u16-normcmp.h.
48944         (Depends-on): Remove uninorm/u16-normcmp.
48945
48946         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
48947         tests/uninorm/test-u8-normcmp.c.
48948         * tests/uninorm/test-u8-normcmp.c: Include it.
48949         (test_nonascii): New function, extracted from main. Add some more
48950         tests.
48951         (main): Invoke test_ascii and test_nonascii.
48952         * modules/uninorm/u8-normcmp-tests (Files): Add
48953         tests/uninorm/test-u8-normcmp.h.
48954         (Depends-on): Remove uninorm/u8-normcmp.
48955
48956 2009-03-07  Bruno Haible  <bruno@clisp.org>
48957
48958         New module 'uninorm/u32-normcoll'.
48959         * lib/uninorm/u32-normcoll.c: New file.
48960         * modules/uninorm/u32-normcoll: New file.
48961
48962         New module 'uninorm/u16-normcoll'.
48963         * lib/uninorm/u16-normcoll.c: New file.
48964         * modules/uninorm/u16-normcoll: New file.
48965
48966         New module 'uninorm/u8-normcoll'.
48967         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
48968         declarations.
48969         * lib/uninorm/u8-normcoll.c: New file.
48970         * lib/uninorm/u-normcoll.h: New file.
48971         * modules/uninorm/u8-normcoll: New file.
48972
48973         New module 'uninorm/u32-normxfrm'.
48974         * lib/uninorm/u32-normxfrm.c: New file.
48975         * modules/uninorm/u32-normxfrm: New file.
48976
48977         New module 'uninorm/u16-normxfrm'.
48978         * lib/uninorm/u16-normxfrm.c: New file.
48979         * modules/uninorm/u16-normxfrm: New file.
48980
48981         New module 'uninorm/u8-normxfrm'.
48982         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
48983         declarations.
48984         * lib/uninorm/u8-normxfrm.c: New file.
48985         * lib/uninorm/u-normxfrm.h: New file.
48986         * modules/uninorm/u8-normxfrm: New file.
48987
48988 2009-03-07  Bruno Haible  <bruno@clisp.org>
48989
48990         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
48991         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
48992         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
48993
48994 2009-03-07  Bruno Haible  <bruno@clisp.org>
48995
48996         New module 'memxfrm'.
48997         * lib/memxfrm.h: New file.
48998         * lib/memxfrm.c: New file.
48999         * modules/memxfrm: New file.
49000
49001 2009-03-07  Bruno Haible  <bruno@clisp.org>
49002
49003         New module 'memcmp2'.
49004         * lib/memcmp2.h: New file.
49005         * lib/memcmp2.c: New file.
49006         * modules/memcmp2: New file.
49007
49008 2009-03-07  Bruno Haible  <bruno@clisp.org>
49009
49010         Tests for module 'uninorm/decomposing-form'.
49011         * modules/uninorm/decomposing-form-tests: New file.
49012         * tests/uninorm/test-decomposing-form.c: New file.
49013
49014         New module 'uninorm/decomposing-form'.
49015         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
49016         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
49017         Add 'decomposing_variant' field.
49018         * lib/uninorm/decomposing-form.c: New file.
49019         * lib/uninorm/nfc.c (uninorm_nfc): Update.
49020         * lib/uninorm/nfd.c (uninorm_nfd): Update.
49021         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
49022         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
49023         * modules/uninorm/decomposing-form: New file.
49024         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
49025         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
49026
49027 2009-03-07  Bruno Haible  <bruno@clisp.org>
49028
49029         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
49030         strings.
49031
49032 2009-03-06  Bruno Haible  <bruno@clisp.org>
49033
49034         Tests for module 'uninorm/u32-normcmp'.
49035         * tests/uninorm/test-u32-normcmp.c: New file.
49036         * modules/uninorm/u32-normcmp-tests: New file.
49037
49038         Tests for module 'uninorm/u16-normcmp'.
49039         * tests/uninorm/test-u16-normcmp.c: New file.
49040         * modules/uninorm/u16-normcmp-tests: New file.
49041
49042         Tests for module 'uninorm/u8-normcmp'.
49043         * tests/uninorm/test-u8-normcmp.c: New file.
49044         * modules/uninorm/u8-normcmp-tests: New file.
49045
49046         New module 'uninorm/u32-normcmp'.
49047         * lib/uninorm/u32-normcmp.c: New file.
49048         * modules/uninorm/u32-normcmp: New file.
49049
49050         New module 'uninorm/u16-normcmp'.
49051         * lib/uninorm/u16-normcmp.c: New file.
49052         * modules/uninorm/u16-normcmp: New file.
49053
49054         New module 'uninorm/u8-normcmp'.
49055         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
49056         declarations.
49057         * lib/uninorm/u8-normcmp.c: New file.
49058         * lib/uninorm/u-normcmp.h: New file.
49059         * modules/uninorm/u8-normcmp: New file.
49060
49061 2009-03-06  Bruno Haible  <bruno@clisp.org>
49062
49063         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
49064         Reported by Eric Blake.
49065
49066 2009-03-06  Eric Blake  <ebb9@byu.net>
49067             Bruno Haible  <bruno@clisp.org>
49068
49069         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
49070         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
49071         condition.
49072         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
49073         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
49074         condition.
49075         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
49076
49077 2009-03-06  Eric Blake  <ebb9@byu.net>
49078
49079         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
49080         to avoid compiler warnings.
49081         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
49082
49083 2009-03-05  Bruno Haible  <bruno@clisp.org>
49084
49085         * tests/test-ftell.c (main): Disable test beyond end of file on
49086         FreeMiNT.
49087         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
49088
49089 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
49090
49091         * lib/filevercmp.c: Move hidden files up in ordering.
49092         * tests/test-filevercmp.c: Add tests for hidden files.
49093
49094 2009-03-04  Bruno Haible  <bruno@clisp.org>
49095
49096         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
49097         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
49098         AM_CFLAGS.
49099         Reported by Simon Josefsson.
49100
49101 2009-03-03  Bruno Haible  <bruno@clisp.org>
49102
49103         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
49104         Reported by Simon Josefsson.
49105
49106         * doc/ld-version-script.texi: Update node reference.
49107
49108 2009-03-03  Bruno Haible  <bruno@clisp.org>
49109
49110         * modules/visibility (License): Change to 'unlimited'.
49111         Suggested by Simon Josefsson.
49112
49113 2009-03-03  Jim Meyering  <meyering@redhat.com>
49114
49115         unlinkdir: cannot_unlink_dir may modify process state
49116         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
49117         it's neither thread-safe nor appropriate for use in a library.
49118
49119 2009-03-03  Eric Blake  <ebb9@byu.net>
49120
49121         test-closein: silence test under Darwin
49122         * tests/test-closein.sh: Ignore stderr from cat, since we don't
49123         care if it dies from EPIPE or EBADF.
49124
49125 2009-03-03  Bruno Haible  <bruno@clisp.org>
49126
49127         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
49128         earlier.
49129         * doc/visibility.texi: Fix @node and @section.
49130
49131 2009-03-03  Simon Josefsson  <simon@josefsson.org>
49132
49133         * doc/gnulib.texi: Link to sections for ld version script and
49134         visibility.
49135         * doc/visibility.texi: Add @node and @section.
49136         * modules/ld-version-script: New module.
49137         * m4/ld-version-script.m4: New file.
49138         * doc/ld-version-script.texi: New file.
49139
49140 2009-03-02  David Lutterkort  <lutter@redhat.com>
49141
49142         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
49143         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49144
49145 2009-03-02  Bruno Haible  <bruno@clisp.org>
49146
49147         * doc/visibility.texi: Mention libtool's -export-symbols option.
49148
49149 2009-03-02  Jim Meyering  <meyering@redhat.com>
49150
49151         announce-gen: new option: --no-print-checksums
49152         * build-aux/announce-gen (usage): Describe it.
49153         (print_checksums): Print a newline here, not in the [*] footnote.
49154         (main): Honor it.
49155
49156 2009-03-01  Bruno Haible  <bruno@clisp.org>
49157
49158         Use socklen_t in the native Windows replacements prototypes.
49159         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
49160         instead of 'int'.
49161         * lib/getsockopt.c (rpl_getsockopt): Likewise.
49162         * lib/setsockopt.c (rpl_setsockopt): Likewise.
49163         * modules/getsockopt (Depends-on): Add socklen.
49164         * modules/setsockopt (Depends-on): Add socklen.
49165
49166 2009-03-01  Bruno Haible  <bruno@clisp.org>
49167
49168         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
49169         least 4.2.
49170
49171 2009-03-01  Eric Blake  <ebb9@byu.net>
49172             Bruno Haible  <bruno@clisp.org>
49173
49174         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
49175         error messages.
49176         * lib/wait-process.c (wait_subprocess): Omit error message about
49177         deadly signal sent to the child of termsigp != NULL.
49178
49179 2009-03-01  Eric Blake  <ebb9@byu.net>
49180
49181         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
49182
49183 2009-03-01  Bruno Haible  <bruno@clisp.org>
49184
49185         Avoid a gcc warning.
49186         * tests/test-sched.c (b): Make global.
49187         Reported by Eric Blake.
49188
49189 2009-01-19  Martin Lambers  <marlam@marlam.de>
49190
49191         Provide POSIX semantics for socket timeout options on W32.
49192         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
49193         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
49194         * modules/setsockopt: Depend on sys_time module for struct timeval.
49195         * modules/getsockopt: Depend on sys_time module for struct timeval.
49196
49197 2009-03-01  Simon Josefsson  <simon@josefsson.org>
49198
49199         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
49200         __USE_GNU, for consistency with netdb.in.h.
49201         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49202
49203 2009-03-01  Bruno Haible  <bruno@clisp.org>
49204
49205         More support for FreeMiNT.
49206         * lib/fseeko.c (rpl_fseeko): Complete last commit.
49207         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49208
49209 2009-03-01  Bruno Haible  <bruno@clisp.org>
49210
49211         More support for FreeMiNT.
49212         * lib/fpurge.c (fpurge): Correct last commit.
49213         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49214
49215 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49216
49217         Fix unportable awk script in vc-list-files.
49218         * build-aux/vc-list-files: In the replacement awk script, use
49219         substr with a second argument of 1, not zero.
49220         Report by Simon Josefsson.
49221
49222 2009-02-28  Bruno Haible  <bruno@clisp.org>
49223
49224         More support for FreeMiNT.
49225         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
49226         to FreeMiNT today.
49227         * lib/fwriting.c (fwriting): Likewise.
49228         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
49229
49230 2009-02-28  Bruno Haible  <bruno@clisp.org>
49231
49232         * tests/test-freadseek.c (main): Disable test beyond end of file on
49233         FreeMiNT.
49234         * tests/test-ftello.c (main): Likewise.
49235         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
49236
49237 2009-02-28  Bruno Haible  <bruno@clisp.org>
49238
49239         Add tentative support for FreeMiNT.
49240         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
49241         * lib/fpurge.c (fpurge): Likewise.
49242         * lib/freadable.c (freadable): Likewise.
49243         * lib/freading.c (freading): Likewise.
49244         * lib/freadptr.c (freadptr): Likewise.
49245         * lib/freadseek.c (freadptrinc): Likewise.
49246         * lib/fseeko.c (rpl_fseeko): Likewise.
49247         * lib/fseterr.c (fseterr): Likewise.
49248         * lib/fwritable.c (fwritable): Likewise.
49249         * lib/fwriting.c (fwriting): Likewise.
49250         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
49251         Hourihane.
49252         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
49253
49254 2009-02-28  Bruno Haible  <bruno@clisp.org>
49255
49256         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
49257         SIGCHLD.
49258         Reported by Jim Meyering.
49259
49260 2009-02-28  Bruno Haible  <bruno@clisp.org>
49261
49262         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
49263         Mention the results of these tests on various platforms.
49264         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
49265         order.
49266         * doc/posix-functions/printf.texi: Likewise.
49267         * doc/posix-functions/snprintf.texi: Likewise.
49268         * doc/posix-functions/sprintf.texi: Likewise.
49269         * doc/posix-functions/vfprintf.texi: Likewise.
49270         * doc/posix-functions/vprintf.texi: Likewise.
49271         * doc/posix-functions/vsnprintf.texi: Likewise.
49272         * doc/posix-functions/vsprintf.texi: Likewise.
49273         * doc/glibc-functions/obstack_printf.texi: Likewise.
49274         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
49275
49276 2009-02-28  Bruno Haible  <bruno@clisp.org>
49277
49278         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
49279         Reported by Loïc Minier <lool@dooz.org>.
49280
49281 2009-02-27  Bruno Haible  <bruno@clisp.org>
49282
49283         * gnulib-tool (func_import): Make the sed expression used to create the
49284         sed script for updating the .gitignore file POSIX compliant.
49285         Reported by Eric Blake.
49286
49287 2009-02-27  Bruno Haible  <bruno@clisp.org>
49288
49289         * gnulib-tool (sed): Don't alias as "sed --posix".
49290         Reported by Eric Blake.
49291
49292 2009-02-27  Bruno Haible  <bruno@clisp.org>
49293
49294         Avoid test link errors.
49295         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
49296         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
49297         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
49298         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
49299         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49300
49301 2009-02-27  Bruno Haible  <bruno@clisp.org>
49302
49303         Avoid spurious "(cached)" in configure output.
49304         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
49305         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
49306         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
49307         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
49308         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
49309         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
49310         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
49311         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
49312         Reported by Eric Blake.
49313
49314 2009-02-27  Eric Blake  <ebb9@byu.net>
49315
49316         printf: fix regression in previous patch
49317         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
49318
49319 2009-02-27  Bruno Haible  <bruno@clisp.org>
49320
49321         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
49322         value.
49323         * lib/stdint.in.h: Likewise.
49324         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
49325
49326 2009-02-27  Eric Blake  <ebb9@byu.net>
49327
49328         doc: mention more functions added in cygwin 1.7.0
49329         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
49330         addition.
49331         * doc/posix-functions/open_wmemstream.texi: Likewise.
49332         * doc/posix-functions/wcsnlen.texi: Likewise.
49333         * doc/posix-functions/wcsnrtombs.texi: Likewise.
49334         * doc/posix-functions/wcstod.texi: Likewise.
49335         * doc/posix-functions/wcstof.texi: Likewise.
49336         * doc/posix-functions/wcstoimax.texi: Likewise.
49337         * doc/posix-functions/wcstok.texi: Likewise.
49338         * doc/posix-functions/wcstoumax.texi: Likewise.
49339
49340         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
49341         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
49342         * doc/posix-functions/fprintf.texi: Update.
49343         * doc/posix-functions/printf.texi: Update.
49344         * doc/posix-functions/snprintf.texi: Update.
49345         * doc/posix-functions/sprintf.texi: Update.
49346         * doc/posix-functions/vfprintf.texi: Update.
49347         * doc/posix-functions/vprintf.texi: Update.
49348         * doc/posix-functions/vsnprintf.texi: Update.
49349         * doc/posix-functions/vsprintf.texi: Update.
49350         * doc/glibc-functions/obstack_printf.texi: Update.
49351         * doc/glibc-functions/obstack_vprintf.texi: Update.
49352
49353 2009-02-26  Eric Blake  <ebb9@byu.net>
49354
49355         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
49356         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
49357         compilation bug by using runtime conversion.
49358         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
49359         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
49360         * modules/ceill-tests (Files): Use nan.h.
49361         * modules/floorl-tests (Files): Likewise.
49362         * modules/frexpl-tests (Files): Likewise.
49363         * modules/isnanl-tests (Files): Likewise.
49364         * modules/ldexpl-tests (Files): Likewise.
49365         * modules/roundl-tests (Files): Likewise.
49366         * modules/truncl-tests (Files): Likewise.
49367         * tests/test-ceill.c (main): Use a working NaN.
49368         * tests/test-floorl.c (main): Likewise.
49369         * tests/test-frexpl.c (main): Likewise.
49370         * tests/test-isnan.c (test_long_double): Likewise.
49371         * tests/test-isnanl.h (main): Likewise.
49372         * tests/test-ldexpl.h (main): Likewise.
49373         * tests/test-roundl.h (main): Likewise.
49374         * tests/test-truncl.h (main): Likewise.
49375         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
49376
49377 2009-02-26  Eric Blake  <ebb9@byu.net>
49378             Bruno Haible  <bruno@clisp.org>
49379
49380         Work around a *printf bug with %ls on Solaris.
49381         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
49382         precision is specified, sprintf stops converting the wide string
49383         argument when the number of bytes that have been produced by this
49384         conversion equals or exceeds the precision.
49385         * doc/posix-functions/fprintf.texi: Update.
49386         * doc/posix-functions/printf.texi: Update.
49387         * doc/posix-functions/snprintf.texi: Update.
49388         * doc/posix-functions/sprintf.texi: Update.
49389         * doc/posix-functions/vfprintf.texi: Update.
49390         * doc/posix-functions/vprintf.texi: Update.
49391         * doc/posix-functions/vsnprintf.texi: Update.
49392         * doc/posix-functions/vsprintf.texi: Update.
49393         * doc/glibc-functions/obstack_printf.texi: Update.
49394         * doc/glibc-functions/obstack_vprintf.texi: Update.
49395
49396 2009-02-26  Eric Blake  <ebb9@byu.net>
49397
49398         stdlib: favor compiler check of random.h
49399         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
49400         to avoid an ObjC random.h installed by Swarm.
49401
49402 2009-02-26  Bruno Haible  <bruno@clisp.org>
49403
49404         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
49405         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
49406         Reported by Gary V. Vaughan <gary@gnu.org>.
49407
49408 2009-02-26  Bruno Haible  <bruno@clisp.org>
49409
49410         Fix *printf behaviour regarding the %ls directive.
49411         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
49412         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
49413         NEED_PRINTF_DIRECTIVE_LS.
49414         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
49415         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
49416         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
49417         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
49418         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
49419         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
49420         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
49421         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
49422         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
49423         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
49424         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
49425         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
49426         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
49427         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
49428         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
49429         * doc/posix-functions/fprintf.texi: Update.
49430         * doc/posix-functions/printf.texi: Update.
49431         * doc/posix-functions/snprintf.texi: Update.
49432         * doc/posix-functions/sprintf.texi: Update.
49433         * doc/posix-functions/vfprintf.texi: Update.
49434         * doc/posix-functions/vprintf.texi: Update.
49435         * doc/posix-functions/vsnprintf.texi: Update.
49436         * doc/posix-functions/vsprintf.texi: Update.
49437         * doc/glibc-functions/obstack_printf.texi: Update.
49438         * doc/glibc-functions/obstack_vprintf.texi: Update.
49439         Reported by Eric Blake.
49440
49441 2009-02-25  Bruno Haible  <bruno@clisp.org>
49442
49443         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
49444         with known value.
49445         Reported by Gary V. Vaughan <gary@gnu.org>.
49446
49447 2009-02-25  Bruno Haible  <bruno@clisp.org>
49448
49449         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
49450         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
49451         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
49452         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
49453         Reported by Gary V. Vaughan <gary@gnu.org>.
49454
49455 2009-02-25  Bruno Haible  <bruno@clisp.org>
49456
49457         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
49458         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
49459         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
49460         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
49461         Reported by Gary V. Vaughan <gary@gnu.org>.
49462
49463 2009-02-25  Eric Blake  <ebb9@byu.net>
49464
49465         tests: skip fseek/ftell tests if ungetc is broken
49466         * m4/ungetc.m4: New file.
49467         * modules/fseek-tests: Split test, so ungetc dependency is
49468         separate from rest of test.
49469         * modules/fseeko-tests: Likewise.
49470         * modules/ftell-tests: Likewise.
49471         * modules/ftello-tests: Likewise.
49472         * tests/test-fseek.c (main): Isolate ungetc dependency.
49473         * tests/test-fseeko.c (main): Likewise.
49474         * tests/test-ftell.c (main): Likewise.
49475         * tests/test-ftello.c (main): Likewise.
49476         * tests/test-fseek2.sh: New file.
49477         * tests/test-fseeko2.sh: Likewise.
49478         * tests/test-ftell2.sh: Likewise.
49479         * tests/test-ftello2.sh: Likewise.
49480
49481 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
49482
49483         test-getaddrinfo: fix usage of skip return code 77
49484         * tests/test-gettaddrinfo.c: Return skip code 77 only
49485         for first occurrence of skip (4x77 is not 77)
49486
49487 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
49488
49489         strtod: avoid C99 decl-after-statement
49490         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
49491
49492 2009-02-24  Eric Blake  <ebb9@byu.net>
49493
49494         strtod: detect HP-UX 11.31 bug
49495         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
49496         Reported by Gary V. Vaughan.
49497
49498 2009-02-23  Bruno Haible  <bruno@clisp.org>
49499
49500         Fix invalid read past end of memory block.
49501         * lib/vasnprintf.c (DCHAR_SET): Define.
49502         (local_wcslen): Define only when needed.
49503         (local_strnlen, local_wcsnlen): New functions.
49504         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
49505         directives that involve a conversion ourselves.
49506         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
49507         wcsnlen, mbrtowc, wcrtomb.
49508         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
49509         * tests/test-vasprintf-posix.c (test_function): Likewise.
49510         * tests/test-snprintf-posix.h (test_function): Likewise.
49511         * tests/test-sprintf-posix.h (test_function): Likewise.
49512         Reported by Ben Pfaff <blp@cs.stanford.edu>.
49513
49514 2009-02-22  Bruno Haible  <bruno@clisp.org>
49515
49516         Implement new clarified decomposition of Hangul syllables.
49517         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
49518         of type LTV, return only a pairwise decomposition.
49519         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
49520         Likewise.
49521         * tests/uninorm/test-decomposition.c (main): Updated expected result.
49522         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
49523         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
49524
49525 2009-02-22  Bruno Haible  <bruno@clisp.org>
49526
49527         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
49528         zero-length results and shrink excess allocated memory.
49529         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
49530         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
49531         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
49532         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
49533         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
49534         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
49535         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
49536         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
49537         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
49538         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
49539         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
49540         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
49541
49542 2009-02-21  Bruno Haible  <bruno@clisp.org>
49543
49544         * doc/gnulib.texi: Include safe-alloc.texi earlier.
49545         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
49546         spaces after a period. Put a space between a macro name and its
49547         argument list. Trivial rewordings.
49548         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
49549         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
49550         (main): Return 0 explicitly.
49551
49552 2009-02-21  Bruno Haible  <bruno@clisp.org>
49553
49554         Tests for module 'uninorm/filter'.
49555         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
49556         * modules/uninorm/filter-tests: New file.
49557
49558         New module 'uninorm/filter'.
49559         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
49560         uninorm_filter_flush, uninorm_filter_free): New declarations.
49561         * lib/uninorm/uninorm-filter.c: New file.
49562         * modules/uninorm/filter: New file.
49563
49564 2009-02-21  Bruno Haible  <bruno@clisp.org>
49565
49566         Tests for module 'uninorm/nfkc'.
49567         * tests/uninorm/test-nfkc.c: New file.
49568         * tests/uninorm/test-u8-nfkc.c: New file.
49569         * tests/uninorm/test-u16-nfkc.c: New file.
49570         * tests/uninorm/test-u32-nfkc.c: New file.
49571         * tests/uninorm/test-u32-nfkc-big.sh: New file.
49572         * tests/uninorm/test-u32-nfkc-big.c: New file.
49573         * modules/uninorm/nfkc-tests: New file.
49574
49575         New module 'uninorm/nfkc'.
49576         * lib/uninorm/nfkc.c: New file.
49577         * modules/uninorm/nfkc: New file.
49578
49579         Tests for module 'uninorm/nfkd'.
49580         * tests/uninorm/test-nfkd.c: New file.
49581         * tests/uninorm/test-u8-nfkd.c: New file.
49582         * tests/uninorm/test-u16-nfkd.c: New file.
49583         * tests/uninorm/test-u32-nfkd.c: New file.
49584         * tests/uninorm/test-u32-nfkd-big.sh: New file.
49585         * tests/uninorm/test-u32-nfkd-big.c: New file.
49586         * modules/uninorm/nfkd-tests: New file.
49587
49588         New module 'uninorm/nfkd'.
49589         * lib/uninorm/nfkd.c: New file.
49590         * modules/uninorm/nfkd: New file.
49591
49592         Tests for module 'uninorm/nfc'.
49593         * tests/uninorm/test-nfc.c: New file.
49594         * tests/uninorm/test-u8-nfc.c: New file.
49595         * tests/uninorm/test-u16-nfc.c: New file.
49596         * tests/uninorm/test-u32-nfc.c: New file.
49597         * tests/uninorm/test-u32-nfc-big.sh: New file.
49598         * tests/uninorm/test-u32-nfc-big.c: New file.
49599         * modules/uninorm/nfc-tests: New file.
49600
49601         New module 'uninorm/nfc'.
49602         * lib/uninorm/nfc.c: New file.
49603         * modules/uninorm/nfc: New file.
49604
49605         Tests for module 'uninorm/nfd'.
49606         * tests/uninorm/test-nfd.c: New file.
49607         * tests/uninorm/test-u8-nfd.c: New file.
49608         * tests/uninorm/test-u16-nfd.c: New file.
49609         * tests/uninorm/test-u32-nfd.c: New file.
49610         * tests/uninorm/test-u32-nfd-big.sh: New file.
49611         * tests/uninorm/test-u32-nfd-big.c: New file.
49612         * tests/uninorm/test-u32-normalize-big.h: New file.
49613         * tests/uninorm/test-u32-normalize-big.c: New file.
49614         * tests/uninorm/NormalizationTest.txt: New file, created from
49615         Unicode 5.1.0 NormalizationTest.txt.
49616         * modules/uninorm/nfd-tests: New file.
49617
49618         New module 'uninorm/nfd'.
49619         * lib/uninorm/nfd.c: New file.
49620         * modules/uninorm/nfd: New file.
49621
49622         New module 'uninorm/u32-normalize'.
49623         * lib/uninorm/u32-normalize.c: New file.
49624         * modules/uninorm/u32-normalize: New file.
49625
49626         New module 'uninorm/u16-normalize'.
49627         * lib/uninorm/u16-normalize.c: New file.
49628         * modules/uninorm/u16-normalize: New file.
49629
49630         New module 'uninorm/u8-normalize'.
49631         * lib/uninorm/u8-normalize.c: New file.
49632         * lib/uninorm/normalize-internal.h: New file.
49633         * lib/uninorm/u-normalize-internal.h: New file.
49634         * modules/uninorm/u8-normalize: New file.
49635
49636         New module 'uninorm/decompose-internal'.
49637         * lib/uninorm/decompose-internal.c: New file.
49638         * modules/uninorm/decompose-internal: New file.
49639
49640         Tests for module 'uninorm/composition'.
49641         * tests/uninorm/test-composition.c: New file.
49642         * modules/uninorm/composition-tests: New file.
49643
49644         New module 'uninorm/composition'.
49645         * lib/uninorm/composition.c: New file.
49646         * lib/uninorm/composition-table.gperf: New file, generated by
49647         gen-uni-tables.
49648         * modules/uninorm/composition: New file.
49649
49650         Tests for module 'uninorm/compat-decomposition'.
49651         * tests/uninorm/test-compat-decomposition.c: New file.
49652         * modules/uninorm/compat-decomposition-tests: New file.
49653
49654         New module 'uninorm/compat-decomposition'.
49655         * lib/uninorm/decompose-internal.h: New file.
49656         * lib/uninorm/compat-decomposition.c: New file.
49657         * modules/uninorm/compat-decomposition: New file.
49658
49659         Tests for module 'uninorm/canonical-decomposition'.
49660         * tests/uninorm/test-canonical-decomposition.c: New file.
49661         * modules/uninorm/canonical-decomposition-tests: New file.
49662
49663         New module 'uninorm/canonical-decomposition'.
49664         * lib/uninorm/canonical-decomposition.c: New file.
49665         * modules/uninorm/canonical-decomposition: New file.
49666
49667         Tests for module 'uninorm/decomposition'.
49668         * tests/uninorm/test-decomposition.c: New file.
49669         * modules/uninorm/decomposition-tests: New file.
49670
49671         New module 'uninorm/decomposition'.
49672         * lib/uninorm/decomposition.c: New file.
49673         * modules/uninorm/decomposition: New file.
49674
49675         New module 'uninorm/decomposition-table'.
49676         * lib/uninorm/decomposition-table.h: New file.
49677         * lib/uninorm/decomposition-table.c: New file.
49678         * lib/uninorm/decomposition-table1.h: New file, generated by
49679         gen-uni-tables.
49680         * lib/uninorm/decomposition-table2.h: New file, generated by
49681         gen-uni-tables.
49682         * modules/uninorm/decomposition-table: New file.
49683
49684         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
49685         (UC_DECOMP_*): New enumeration items.
49686         (get_decomposition): New function.
49687         (struct decomp_table): New type.
49688         (output_decomposition, output_decomposition_tables): New functions.
49689         (unicode_composition_exclusions): New variable.
49690         (fill_composition_exclusions, debug_output_composition_tables): New
49691         functions.
49692         (main): Accept one more argument. Invoke fill_composition_exclusions.
49693         Output decomposition and composition tables.
49694
49695         New module 'uninorm/base'.
49696         * lib/uninorm.h: New file.
49697         * lib/unictype.h: Update comment.
49698         * modules/uninorm/base: New file.
49699
49700 2009-02-21  David Lutterkort  <lutter@redhat.com>
49701
49702         Tests for module 'safe-alloc'.
49703         * tests/test-safe-alloc.c: New file.
49704         * modules/safe-alloc-tests: New file.
49705
49706         New module 'safe-alloc'.
49707         * lib/safe-alloc.h: New file.
49708         * lib/safe-alloc.c: New file.
49709         * m4/safe-alloc.m4: New file.
49710         * modules/safe-alloc: New file.
49711         * doc/safe-alloc.texi: New file.
49712         * doc/gnulib.texi: Include it.
49713         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
49714         safe-alloc.
49715
49716 2009-02-18  Bruno Haible  <bruno@clisp.org>
49717
49718         Fix link error on non-glibc systems.
49719         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
49720         variable.
49721         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49722
49723 2009-02-18  Jim Meyering  <meyering@redhat.com>
49724
49725         fts: avoid used-uninitialized error due to recent change
49726         * lib/fts.c (fts_read): Guard uses of the new member,
49727         parent->fts_n_dirs_remaining, since it's not relevant for
49728         the parent of a directory specified on the command-line.
49729
49730 2009-02-17  James Youngman  <jay@gnu.org>
49731             Bruno Haible  <bruno@clisp.org>
49732
49733         * m4/include_next.m4: Reformulate comment.
49734
49735 2009-02-16  Jim Meyering  <meyering@redhat.com>
49736
49737         fts: add #if guards so that the fts_lgpl module still builds
49738         * lib/fts.c: Guard just-added hash-table-using parts with
49739         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
49740         Reported by Simon Josefsson.
49741
49742 2009-02-15  Bruno Haible  <bruno@clisp.org>
49743
49744         * modules/array-mergesort-tests: New file.
49745         * tests/test-array-mergesort.c: New file.
49746
49747         New module 'array-mergesort'.
49748         * modules/array-mergesort: New file.
49749         * lib/array-mergesort.h: New file.
49750
49751 2009-02-15  Bruno Haible  <bruno@clisp.org>
49752
49753         Fix 2009-02-07 commit.
49754         * lib/gen-uni-tables.c (output_predicate, output_category,
49755         output_combclass, output_bidi_category, output_decimal_digit,
49756         output_digit, output_numeric, output_mirror, output_scripts,
49757         output_ident_category, output_simple_mapping): Fix format directives.
49758         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
49759
49760 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
49761
49762         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
49763         fixes are available from IBM.
49764
49765 2009-02-13  Jim Meyering  <meyering@redhat.com>
49766
49767         fts: arrange not to stat non-directories in more cases
49768         This makes GNU find (when it doesn't need to stat each file)
49769         *much* more efficient at traversing reiserfs file systems.
49770         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
49771         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
49772         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
49773         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
49774         (leaf_optimization_applies): New function.
49775         (LCO_hash, LCO_compare): New helper functions.
49776         (link_count_optimize_ok): New function.
49777         (fts_stat): Initialize new member (if dir).
49778         (fts_read): Decrement parent's fts_n_dirs_remaining count if
49779         we've just stat'ed a directory.  Skip the stat call when possible.
49780         ---
49781         Note this AFS-related exchange:
49782         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
49783         and note find's pioctl call in find/fstype.c.
49784         But that is necessary only if you want to enable the
49785         optimization for AFS, and for now, I don't.
49786
49787         fts: move a function definition "up" (no semantic change)
49788         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
49789         "up" to precede upcoming use of a related function.
49790
49791 2009-02-11  Jim Meyering  <meyering@redhat.com>
49792
49793         fts: correct internal computation of nlinks (optimization-related)
49794         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
49795         whether the current entry is a directory, so don't test it.
49796
49797 2009-02-10  Bruno Haible  <bruno@clisp.org>
49798
49799         Tests for module 'uniwbrk/ulc-wordbreaks'.
49800         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
49801         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
49802         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
49803
49804         Tests for module 'uniwbrk/u32-wordbreaks'.
49805         * modules/uniwbrk/u32-wordbreaks-tests: New file.
49806         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
49807
49808         Tests for module 'uniwbrk/u16-wordbreaks'.
49809         * modules/uniwbrk/u16-wordbreaks-tests: New file.
49810         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
49811
49812         Tests for module 'uniwbrk/u8-wordbreaks'.
49813         * modules/uniwbrk/u8-wordbreaks-tests: New file.
49814         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
49815
49816 2009-02-10  Bruno Haible  <bruno@clisp.org>
49817
49818         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
49819         property.
49820         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
49821         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
49822         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
49823
49824 2009-02-10  Simon Josefsson  <simon@josefsson.org>
49825
49826         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
49827         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
49828
49829 2009-02-10  Bruno Haible  <bruno@clisp.org>
49830
49831         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
49832         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
49833         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
49834         * lib/unilbrk/u8-possible-linebreaks.c: Update.
49835         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
49836         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
49837
49838 2009-02-09  Simon Josefsson  <simon@josefsson.org>
49839
49840         * lib/sockets.h (gl_fd_to_handle): New function.
49841
49842         * tests/test-sockets.c: Call gl_fd_to_handle.
49843
49844 2009-02-09  Bruno Haible  <bruno@clisp.org>
49845
49846         * doc/havelib.texi: Document the conventions on bi-arch systems.
49847
49848 2009-02-08  Bruno Haible  <bruno@clisp.org>
49849
49850         Document the AC_LIB_LINKFLAGS macro.
49851         * doc/havelib.texi: New file, mostly written on 2005-05-24.
49852         * doc/gnulib.texi: Include it.
49853
49854 2009-02-08  Bruno Haible  <bruno@clisp.org>
49855
49856         Fix wrong order of sections, compared to TOC.
49857         * doc/gnulib.texi: Include relocatable-maint.texi after the
49858         "Regular expressions" node, not before.
49859
49860 2009-02-08  Bruno Haible  <bruno@clisp.org>
49861
49862         Tests for module 'unicase/totitle'.
49863         * modules/unicase/totitle-tests: New file.
49864
49865         Tests for module 'unicase/tolower'.
49866         * modules/unicase/tolower-tests: New file.
49867
49868         Tests for module 'unicase/toupper'.
49869         * modules/unicase/toupper-tests: New file.
49870         * tests/unicase/test-mapping-part1.h: New file.
49871         * tests/unicase/test-mapping-part2.h: New file.
49872
49873         New module 'unicase/totitle'.
49874         * modules/unicase/totitle: New file.
49875         * lib/unicase/totitle.c: New file.
49876
49877         New module 'unicase/tolower'.
49878         * modules/unicase/tolower: New file.
49879         * lib/unicase/tolower.c: New file.
49880
49881         New module 'unicase/toupper'.
49882         * modules/unicase/toupper: New file.
49883         * lib/unicase/toupper.c: New file.
49884         * lib/unicase/simple-mapping.h: New file.
49885
49886         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
49887         (mapping_table): New structure.
49888         (output_simple_mapping): New function.
49889         (main): Invoke output_simple_mapping_test and output_simple_mapping.
49890         * modules/gen-uni-tables (Description): Update.
49891         * lib/unicase/toupper.h: New file, automatically generated by
49892         gen-uni-tables.
49893         * lib/unicase/tolower.h: New file, automatically generated by
49894         gen-uni-tables.
49895         * lib/unicase/totitle.h: New file, automatically generated by
49896         gen-uni-tables.
49897         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
49898         gen-uni-tables.
49899         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
49900         gen-uni-tables.
49901         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
49902         gen-uni-tables.
49903
49904         New module 'unicase/base'.
49905         * modules/unicase/base: New file.
49906         * lib/unicase.h: New file.
49907
49908 2009-02-08  Bruno Haible  <bruno@clisp.org>
49909
49910         New module 'uniwbrk/ulc-wordbreaks'.
49911         * modules/uniwbrk/ulc-wordbreaks: New file.
49912         * lib/uniwbrk/ulc-wordbreaks.c: New file.
49913
49914         New module 'uniwbrk/u32-wordbreaks'.
49915         * modules/uniwbrk/u32-wordbreaks: New file.
49916         * lib/uniwbrk/u32-wordbreaks.c: New file.
49917
49918         New module 'uniwbrk/u16-wordbreaks'.
49919         * modules/uniwbrk/u16-wordbreaks: New file.
49920         * lib/uniwbrk/u16-wordbreaks.c: New file.
49921
49922         New module 'uniwbrk/u8-wordbreaks'.
49923         * modules/uniwbrk/u8-wordbreaks: New file.
49924         * lib/uniwbrk/u8-wordbreaks.c: New file.
49925         * lib/uniwbrk/u-wordbreaks.h: New file.
49926
49927         New module 'uniwbrk/table'.
49928         * modules/uniwbrk/table: New file.
49929         * lib/uniwbrk/wbrktable.h: New file.
49930         * lib/uniwbrk/wbrktable.c: New file.
49931
49932         New module 'uniwbrk/wordbreak-property'.
49933         * modules/uniwbrk/wordbreak-property: New file.
49934         * lib/uniwbrk/wordbreak-property.c: New file.
49935
49936         * lib/gen-uni-tables.c (WBP_*): New enum items.
49937         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
49938         (unicode_org_wbp): New variable.
49939         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
49940         New functions.
49941         (wbp_table): New structure.
49942         (output_wbp, output_wbrk_tables): New functions.
49943         (main): Accept additional argument. Invoke fill_org_wbp,
49944         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
49945         output_wbrk_tables.
49946         * modules/gen-uni-tables (Description): Update.
49947         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
49948         gen-uni-tables.
49949
49950         New module 'uniwbrk/base'.
49951         * modules/uniwbrk/base: New file.
49952         * lib/uniwbrk.h: New file.
49953
49954 2009-02-08  Bruno Haible  <bruno@clisp.org>
49955
49956         Update to Unicode 5.1.0.
49957         * lib/gen-uni-tables.c (is_property_alphabetic): Include
49958         U+2185..U+2188.
49959         (is_property_default_ignorable_code_point): Don't include characters
49960         of category Cc or Cs and not-a-characters.
49961         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
49962         U+0D79, U+109E, U+109F, U+A60C.
49963         * lib/unictype/bidi_of.h: Regenerated.
49964         * lib/unictype/blocks.h: Regenerated.
49965         * lib/unictype/categ_C.h: Regenerated.
49966         * lib/unictype/categ_Cf.h: Regenerated.
49967         * lib/unictype/categ_Cn.h: Regenerated.
49968         * lib/unictype/categ_L.h: Regenerated.
49969         * lib/unictype/categ_Ll.h: Regenerated.
49970         * lib/unictype/categ_Lm.h: Regenerated.
49971         * lib/unictype/categ_Lo.h: Regenerated.
49972         * lib/unictype/categ_Lu.h: Regenerated.
49973         * lib/unictype/categ_M.h: Regenerated.
49974         * lib/unictype/categ_Mc.h: Regenerated.
49975         * lib/unictype/categ_Me.h: Regenerated.
49976         * lib/unictype/categ_Mn.h: Regenerated.
49977         * lib/unictype/categ_N.h: Regenerated.
49978         * lib/unictype/categ_Nd.h: Regenerated.
49979         * lib/unictype/categ_Nl.h: Regenerated.
49980         * lib/unictype/categ_No.h: Regenerated.
49981         * lib/unictype/categ_P.h: Regenerated.
49982         * lib/unictype/categ_Pd.h: Regenerated.
49983         * lib/unictype/categ_Pe.h: Regenerated.
49984         * lib/unictype/categ_Pf.h: Regenerated.
49985         * lib/unictype/categ_Pi.h: Regenerated.
49986         * lib/unictype/categ_Po.h: Regenerated.
49987         * lib/unictype/categ_Ps.h: Regenerated.
49988         * lib/unictype/categ_S.h: Regenerated.
49989         * lib/unictype/categ_Sk.h: Regenerated.
49990         * lib/unictype/categ_Sm.h: Regenerated.
49991         * lib/unictype/categ_So.h: Regenerated.
49992         * lib/unictype/categ_of.h: Regenerated.
49993         * lib/unictype/combining.h: Regenerated.
49994         * lib/unictype/ctype_alnum.h: Regenerated.
49995         * lib/unictype/ctype_alpha.h: Regenerated.
49996         * lib/unictype/ctype_graph.h: Regenerated.
49997         * lib/unictype/ctype_lower.h: Regenerated.
49998         * lib/unictype/ctype_print.h: Regenerated.
49999         * lib/unictype/ctype_punct.h: Regenerated.
50000         * lib/unictype/ctype_upper.h: Regenerated.
50001         * lib/unictype/decdigit.h: Regenerated.
50002         * lib/unictype/digit.h: Regenerated.
50003         * lib/unictype/mirror.h: Regenerated.
50004         * lib/unictype/numeric.h: Regenerated.
50005         * lib/unictype/pr_alphabetic.h: Regenerated.
50006         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
50007         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
50008         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
50009         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
50010         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
50011         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
50012         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
50013         * lib/unictype/pr_combining.h: Regenerated.
50014         * lib/unictype/pr_dash.h: Regenerated.
50015         * lib/unictype/pr_decimal_digit.h: Regenerated.
50016         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
50017         * lib/unictype/pr_deprecated.h: Regenerated.
50018         * lib/unictype/pr_diacritic.h: Regenerated.
50019         * lib/unictype/pr_extender.h: Regenerated.
50020         * lib/unictype/pr_format_control.h: Regenerated.
50021         * lib/unictype/pr_grapheme_base.h: Regenerated.
50022         * lib/unictype/pr_grapheme_extend.h: Regenerated.
50023         * lib/unictype/pr_grapheme_link.h: Regenerated.
50024         * lib/unictype/pr_id_continue.h: Regenerated.
50025         * lib/unictype/pr_id_start.h: Regenerated.
50026         * lib/unictype/pr_ideographic.h: Regenerated.
50027         * lib/unictype/pr_ignorable_control.h: Regenerated.
50028         * lib/unictype/pr_lowercase.h: Regenerated.
50029         * lib/unictype/pr_math.h: Regenerated.
50030         * lib/unictype/pr_numeric.h: Regenerated.
50031         * lib/unictype/pr_other_alphabetic.h: Regenerated.
50032         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
50033         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
50034         * lib/unictype/pr_other_id_continue.h: Regenerated.
50035         * lib/unictype/pr_other_lowercase.h: Regenerated.
50036         * lib/unictype/pr_other_math.h: Regenerated.
50037         * lib/unictype/pr_punctuation.h: Regenerated.
50038         * lib/unictype/pr_sentence_terminal.h: Regenerated.
50039         * lib/unictype/pr_soft_dotted.h: Regenerated.
50040         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
50041         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
50042         * lib/unictype/pr_unified_ideograph.h: Regenerated.
50043         * lib/unictype/pr_uppercase.h: Regenerated.
50044         * lib/unictype/pr_xid_continue.h: Regenerated.
50045         * lib/unictype/pr_xid_start.h: Regenerated.
50046         * lib/unictype/pr_zero_width.h: Regenerated.
50047         * lib/unictype/scripts.h: Regenerated.
50048         * lib/unictype/scripts_byname.gperf: Regenerated.
50049         * lib/unictype/sy_java_ident.h: Regenerated.
50050         * lib/unilbrk/lbrkprop1.h: Regenerated.
50051         * lib/unilbrk/lbrkprop2.h: Regenerated.
50052         * tests/unictype/test-categ_C.c: Regenerated.
50053         * tests/unictype/test-categ_Cf.c: Regenerated.
50054         * tests/unictype/test-categ_Cn.c: Regenerated.
50055         * tests/unictype/test-categ_L.c: Regenerated.
50056         * tests/unictype/test-categ_Ll.c: Regenerated.
50057         * tests/unictype/test-categ_Lm.c: Regenerated.
50058         * tests/unictype/test-categ_Lo.c: Regenerated.
50059         * tests/unictype/test-categ_Lu.c: Regenerated.
50060         * tests/unictype/test-categ_M.c: Regenerated.
50061         * tests/unictype/test-categ_Mc.c: Regenerated.
50062         * tests/unictype/test-categ_Me.c: Regenerated.
50063         * tests/unictype/test-categ_Mn.c: Regenerated.
50064         * tests/unictype/test-categ_N.c: Regenerated.
50065         * tests/unictype/test-categ_Nd.c: Regenerated.
50066         * tests/unictype/test-categ_Nl.c: Regenerated.
50067         * tests/unictype/test-categ_No.c: Regenerated.
50068         * tests/unictype/test-categ_P.c: Regenerated.
50069         * tests/unictype/test-categ_Pd.c: Regenerated.
50070         * tests/unictype/test-categ_Pe.c: Regenerated.
50071         * tests/unictype/test-categ_Pf.c: Regenerated.
50072         * tests/unictype/test-categ_Pi.c: Regenerated.
50073         * tests/unictype/test-categ_Po.c: Regenerated.
50074         * tests/unictype/test-categ_Ps.c: Regenerated.
50075         * tests/unictype/test-categ_S.c: Regenerated.
50076         * tests/unictype/test-categ_Sk.c: Regenerated.
50077         * tests/unictype/test-categ_Sm.c: Regenerated.
50078         * tests/unictype/test-categ_So.c: Regenerated.
50079         * tests/unictype/test-ctype_alnum.c: Regenerated.
50080         * tests/unictype/test-ctype_alpha.c: Regenerated.
50081         * tests/unictype/test-ctype_graph.c: Regenerated.
50082         * tests/unictype/test-ctype_lower.c: Regenerated.
50083         * tests/unictype/test-ctype_print.c: Regenerated.
50084         * tests/unictype/test-ctype_punct.c: Regenerated.
50085         * tests/unictype/test-ctype_upper.c: Regenerated.
50086         * tests/unictype/test-decdigit.h: Regenerated.
50087         * tests/unictype/test-digit.h: Regenerated.
50088         * tests/unictype/test-numeric.h: Regenerated.
50089         * tests/unictype/test-pr_alphabetic.c: Regenerated.
50090         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
50091         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
50092         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
50093         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
50094         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
50095         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
50096         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
50097         * tests/unictype/test-pr_combining.c: Regenerated.
50098         * tests/unictype/test-pr_dash.c: Regenerated.
50099         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
50100         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
50101         * tests/unictype/test-pr_deprecated.c: Regenerated.
50102         * tests/unictype/test-pr_diacritic.c: Regenerated.
50103         * tests/unictype/test-pr_extender.c: Regenerated.
50104         * tests/unictype/test-pr_format_control.c: Regenerated.
50105         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
50106         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
50107         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
50108         * tests/unictype/test-pr_id_continue.c: Regenerated.
50109         * tests/unictype/test-pr_id_start.c: Regenerated.
50110         * tests/unictype/test-pr_ideographic.c: Regenerated.
50111         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
50112         * tests/unictype/test-pr_lowercase.c: Regenerated.
50113         * tests/unictype/test-pr_math.c: Regenerated.
50114         * tests/unictype/test-pr_numeric.c: Regenerated.
50115         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
50116         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
50117         Regenerated.
50118         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
50119         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
50120         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
50121         * tests/unictype/test-pr_other_math.c: Regenerated.
50122         * tests/unictype/test-pr_punctuation.c: Regenerated.
50123         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
50124         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
50125         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
50126         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
50127         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
50128         * tests/unictype/test-pr_uppercase.c: Regenerated.
50129         * tests/unictype/test-pr_xid_continue.c: Regenerated.
50130         * tests/unictype/test-pr_xid_start.c: Regenerated.
50131         * tests/unictype/test-pr_zero_width.c: Regenerated.
50132
50133         Update to Unicode 5.1.0.
50134         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
50135         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
50136         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
50137         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
50138         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
50139         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
50140         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
50141         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
50142         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
50143         (nonspacing_table_ind): Update.
50144         * tests/uniwidth/test-uc_width2.sh: Update expected result.
50145
50146         Update to Unicode 5.1.0.
50147         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
50148         code transform.
50149         * lib/uniname/uniname.c (unicode_character_name,
50150         unicode_name_character): Add the range 0x1Fxxx to the code transform.
50151         * lib/uniname/uninames.h: Regenerated.
50152         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
50153
50154 2009-02-07  Bruno Haible  <bruno@clisp.org>
50155
50156         Merge gen-ctype and gen-lbrk into a single program.
50157         * lib/gen-uni-tables.c: New file, incorporating
50158         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
50159         Add directory prefixes to the names of the generated files.
50160         * lib/unictype/gen-ctype.c: Remove file.
50161         * lib/unilbrk/gen-lbrk.c: Remove file.
50162         * modules/gen-uni-tables: New file.
50163         * modules/unictype/gen-ctype: Remove file.
50164         * modules/unilbrk/gen-lbrk: Remove file.
50165
50166 2009-02-07  Bruno Haible  <bruno@clisp.org>
50167
50168         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
50169
50170         New module 'unistr/u32-strcoll'.
50171         * modules/unistr/u32-strcoll: New file.
50172         * lib/unistr/u32-strcoll.c: New file.
50173
50174         New module 'unistr/u16-strcoll'.
50175         * modules/unistr/u16-strcoll: New file.
50176         * lib/unistr/u16-strcoll.c: New file.
50177
50178         New module 'unistr/u8-strcoll'.
50179         * modules/unistr/u8-strcoll: New file.
50180         * lib/unistr/u8-strcoll.c: New file.
50181         * lib/unistr/u-strcoll.h: New file.
50182
50183 2009-02-07  Bruno Haible  <bruno@clisp.org>
50184
50185         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
50186         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
50187         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
50188         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
50189         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
50190         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
50191
50192 2009-02-07  Bruno Haible  <bruno@clisp.org>
50193
50194         Make 64-bit clean.
50195         * lib/unictype/gen-ctype.c (output_predicate, output_category,
50196         output_combclass, output_bidi_category, output_decimal_digit,
50197         output_digit, output_numeric, output_mirror, output_scripts,
50198         output_ident_category): Use proper width specifier in format strings.
50199
50200 2009-02-07  Bruno Haible  <bruno@clisp.org>
50201
50202         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
50203         failure behaviour.
50204
50205 2009-02-07  Jim Meyering  <meyering@redhat.com>
50206
50207         regex: avoid compilation failure with upcoming gcc-4.4
50208         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
50209         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
50210         "... error: integer overflow in preprocessor expression".
50211
50212 2009-02-05  Ben Pfaff  <blp@gnu.org>
50213
50214         Fix link errors on Windows when close module is used.
50215         * modules/close: Add $(LIB_CLOSE) to Link section.
50216         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
50217         $(LIB_CLOSE) on Windows.
50218
50219 2009-02-05  Jim Meyering  <meyering@redhat.com>
50220
50221         still avoid unused-parameter warnings, but do it cleanly
50222         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
50223         (get_fs_usage): Cast to void instead.
50224         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
50225         (dev_from_mount_options, read_file_system_list): Cast to void.
50226         Prompted by Bruno Haible.
50227
50228 2009-02-04  Jim Meyering  <meyering@redhat.com>
50229
50230         fsusage.c: correct copyright year
50231         * lib/fsusage.c: Reflect year in which the change is pushed into
50232
50233         avoid misc. warnings
50234         * lib/fsusage.c (UNUSED_PARAM): Define.
50235         (get_fs_usage): Mark parameter "disk" as unused.
50236         * lib/getugroups.c (getgrent): Use "void" in prototype.
50237         * lib/mountlist.c: Mark unused parameters.
50238         (read_file_system_list): Declare a local with "const".
50239         * lib/nanosleep.c (getnow): Declare static.
50240         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
50241
50242         dirfd: set errno upon failure
50243         * lib/dirfd.c: Include <errno.h>.
50244         Set errno to ENOTSUP when returning -1.
50245         * modules/dirfd (Depends-on): Add errno.
50246         Suggested by John Kodis <kodis@comcast.net>.
50247
50248 2009-02-01  Bruno Haible  <bruno@clisp.org>
50249
50250         Don't assume sizeof (long) >= sizeof (void *).
50251         * lib/memcmp.c: Include stdint.h.
50252         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
50253         srcp2 to 'const byte *'.
50254         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
50255         types to uintptr_t.
50256         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
50257         * modules/memcmp (Depends-on): Add stdint.
50258         Reported by Ozkan Sezer <sezeroz@gmail.com>.
50259
50260 2009-01-30  Eric Blake  <ebb9@byu.net>
50261
50262         fix more require-before-expand issues
50263         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
50264         expand, AC_PROG_AWK.
50265         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
50266
50267 2009-01-28  Eric Blake  <ebb9@byu.net>
50268
50269         version-etc: use consistent URL formatting
50270         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
50271         Improve formatting.  Use fputs for string without %.
50272
50273 2009-01-28  Jim Meyering  <meyering@redhat.com>
50274
50275         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
50276         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
50277         "underquoted definition of NAME" from autoconf-2.59.
50278
50279 2009-01-28  Bruno Haible  <bruno@clisp.org>
50280
50281         * doc/gnulib.texi: Add "Obsolete modules" to index.
50282
50283 2009-01-28  Jim Meyering  <meyering@redhat.com>
50284
50285         useless-if-before-free: recognize more variants
50286         * build-aux/useless-if-before-free: Also recognize e.g.,
50287         if (NULL != p) free (p);
50288
50289 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
50290
50291         test-getaddrinfo: skip (don't fail) this test when there's no network
50292         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
50293         on the presumption that it means you lack network access.
50294
50295 2009-01-26  Jim Meyering  <meyering@redhat.com>
50296
50297         fflush: avoid warnings on modern systems
50298         * lib/fflush.c (rpl_fflush): Move declarations of locals,
50299         pos and result, into scopes where they're used.
50300
50301 2009-01-26  Eric Blake  <ebb9@byu.net>
50302
50303         Silence warning reintroduced by recent extensions patch.
50304         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
50305         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
50306         autoconf.
50307
50308         Backport improved autoconf semantics of AC_DEFUN_ONCE.
50309         * m4/00gnulib.m4: New file.
50310         * gnulib-tool (func_get_filelist): Always use it.
50311         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
50312         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
50313
50314 2009-01-25  Bruno Haible  <bruno@clisp.org>
50315
50316         Make test-quotearg work on MacOS X and AIX.
50317         * tests/test-quotearg.sh: New file.
50318         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
50319         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
50320         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
50321         include <libintl.h>.
50322         (fake_locale): Remove variable.
50323         (gettext, dgettext, dcgettext): Remove functions.
50324         (main): Instead of setting a fake locale, set a real locale. Call
50325         textdomain and bindtextdomain.
50326         * modules/quotearg-tests (Files): Add the new files.
50327         (Depends-on): Add gettext, setenv, unsetenv.
50328         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
50329         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
50330         Augment TESTS_ENVIRONMENT.
50331
50332 2009-01-25  Bruno Haible  <bruno@clisp.org>
50333
50334         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
50335         fr_FR.ISO8859-1 locale on MacOS X.
50336         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
50337         ja_JP.eucJP locale on MacOS X.
50338         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
50339         zh_CN.GB18030 locale on MacOS X.
50340
50341 2009-01-25  Bruno Haible  <bruno@clisp.org>
50342
50343         Avoid link errors on MacOS X 10.3.
50344         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
50345         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
50346
50347 2009-01-25  Bruno Haible  <bruno@clisp.org>
50348
50349         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
50350         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
50351         * modules/pipe (Files): Remove m4/posix_spawn.m4.
50352         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
50353         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
50354         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
50355         posix_spawnattr_init, posix_spawnattr_setsigmask,
50356         posix_spawnattr_setflags, posix_spawnattr_destroy.
50357
50358         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
50359         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
50360         * modules/execute (Files): Remove m4/posix_spawn.m4.
50361         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
50362         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
50363         posix_spawnattr_init, posix_spawnattr_setsigmask,
50364         posix_spawnattr_setflags, posix_spawnattr_destroy.
50365
50366 2009-01-25  Bruno Haible  <bruno@clisp.org>
50367
50368         * lib/glthread/threadlib.c: Include <stdlib.h>.
50369
50370 2009-01-25  Bruno Haible  <bruno@clisp.org>
50371
50372         * lib/glthread/threadlib.c (dummy): New declaration.
50373
50374 2009-01-25  Bruno Haible  <bruno@clisp.org>
50375
50376         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
50377         multibyte characters also for the GB18030 encoding. Don't crash when
50378         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
50379
50380 2009-01-25  Bruno Haible  <bruno@clisp.org>
50381
50382         Avoid redefining 'struct random_data' on OSF/1 5.1.
50383         * lib/stdlib.in.h: Include <random.h> if it exists.
50384         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
50385         HAVE_RANDOM_H. Include <random.h> when testing whether
50386         'struct random_data' exists.
50387         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
50388
50389 2009-01-25  Bruno Haible  <bruno@clisp.org>
50390
50391         Don't install charset.alias on MacOS X >= 10.3.
50392         * lib/localcharset.c (DARWIN7): New macro.
50393         (get_charset_aliases): Hardcode the result for Darwin7.
50394         * modules/localcharset (install-exec-local): Don't install
50395         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
50396
50397 2009-01-25  Bruno Haible  <bruno@clisp.org>
50398
50399         Don't install charset.alias on mingw and Cygwin.
50400         * modules/localcharset (install-exec-local): Don't install
50401         charset.alias on mingw and Cygwin, if the file does not yet exist.
50402         The result for these platforms is hardcoded in localcharset.c.
50403
50404 2009-01-25  Bruno Haible  <bruno@clisp.org>
50405
50406         Make it possible again to use AC_GNU_SOURCE together with gnulib.
50407         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
50408         before requiring AC_USE_SYSTEM_EXTENSIONS.
50409
50410 2009-01-25  Jim Meyering  <meyering@redhat.com>
50411
50412         c-strtod: avoid warnings
50413         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
50414         "assignment discards qualifiers from pointer target type" warnings.
50415
50416 2009-01-24  Bruno Haible  <bruno@clisp.org>
50417
50418         Add support for non-UTF-8 locales on MacOS X.
50419         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
50420         canonical encodings. For Darwin 7 and newer, don't map traditional
50421         encodings to UTF-8.
50422         Reported by Vincent Lefevre <vincent@vinc17.org>
50423         at <http://savannah.gnu.org/bugs/?25235>.
50424
50425 2009-01-24  Bruno Haible  <bruno@clisp.org>
50426
50427         * doc/gnulib.texi (Obsolete modules): New section.
50428         Reported by Mike Frysinger <vapier@gentoo.org>.
50429
50430 2009-01-24  Bruno Haible  <bruno@clisp.org>
50431
50432         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
50433         (%.dvi): New rule.
50434
50435 2009-01-24  Bruno Haible  <bruno@clisp.org>
50436
50437         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
50438         Reported by Eric Blake.
50439
50440 2009-01-24  Bruno Haible  <bruno@clisp.org>
50441
50442         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
50443         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
50444         Reported by Gary V. Vaughan <gary@gnu.org>.
50445
50446 2009-01-24  Bruno Haible  <bruno@clisp.org>
50447
50448         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
50449
50450 2009-01-23  Bruno Haible  <bruno@clisp.org>
50451
50452         Make c-strtod, c-strtold usable in libraries.
50453         * lib/c-strtod.c: Include string.h instead of xalloc.h.
50454         (C_STRTOD): Call strdup instead of xstrdup.
50455         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
50456         * modules/c-strtold (Depends-on): Likewise.
50457         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
50458         * NEWS: Mention the change.
50459         Reported by Michael Gold <mgold@ncf.ca>.
50460
50461 2009-01-23  Jim Meyering  <meyering@redhat.com>
50462
50463         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
50464         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
50465         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
50466
50467 2009-01-23  Simon Josefsson  <simon@josefsson.org>
50468
50469         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
50470         GNU CoreUtils.
50471         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
50472         * modules/version-etc (Description): Update.
50473
50474 2009-01-22  Bruno Haible  <bruno@clisp.org>
50475
50476         Cache the C locale object.
50477         * lib/c-strtod.c (c_locale_cache): New variable.
50478         (c_locale): New function.
50479         (C_STRTOD): Use it, and don't call freelocale.
50480         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
50481         Suggested by Paolo Bonzini.
50482
50483 2009-01-21  Bruno Haible  <bruno@clisp.org>
50484
50485         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
50486         conditions other than overflow.
50487
50488 2009-01-21  Bruno Haible  <bruno@clisp.org>
50489
50490         * lib/c-strtod.c: Include errno.h.
50491         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
50492         value from STRTOD_L and STRTOD.
50493
50494 2009-01-21  Bruno Haible  <bruno@clisp.org>
50495         and Jim Meyering  <meyering@redhat.com>
50496
50497         nanosleep: skip configure test (fail it) for apple universal builds
50498         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
50499         universal builds, assume that nanosleep does not work.
50500         * modules/nanosleep (Depends-on): Add multiarch.
50501
50502         mktime: skip configure test (fail it) for apple universal builds
50503         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
50504         universal builds, assume that mktime does not work.
50505         * modules/mktime (Depends-on): Add multiarch.
50506
50507 2009-01-21  Eric Blake  <ebb9@byu.net>
50508
50509         multiarch: avoid expand-before-require warning
50510         * modules/multiarch (configure.ac): Require, rather than expand,
50511         gl_MULTIARCH.
50512         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
50513         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
50514         enforce that all clients require it.  Partial reversion of
50515         2008-12-29 patch.
50516
50517         error: avoid expand-before-require warning
50518         * modules/errno (configure.ac): Require, rather than expand,
50519         gl_HEADER_ERRNO_H.
50520         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
50521         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
50522         enforce that all clients require it.
50523
50524         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
50525         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
50526         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
50527         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
50528
50529 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
50530
50531         Revert:
50532         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
50533
50534         regex: do not depend on obsolete modules.
50535         * modules/regex: Remove memcmp and memmove.
50536
50537 2009-01-20  Bruno Haible  <bruno@clisp.org>
50538
50539         Make the 'link' module link on Windows NT 4.
50540         * lib/link.c (_WIN32_WINNT): Don't define.
50541         (CreateHardLinkFuncType): New type.
50542         (CreateHardLinkFunc, initialized): New variables.
50543         (initialize): New function.
50544         (link): Invoke CreateHardLink indirectly through the function pointer.
50545
50546 2009-01-20  Bruno Haible  <bruno@clisp.org>
50547
50548         Fix compilation failure on mingw.
50549         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
50550
50551 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
50552
50553         * doc/c-strtod.texi: Mention a couple of restrictions.
50554
50555 2009-01-20  Jim Meyering  <meyering@redhat.com>
50556
50557         gettimeofday: move more declarations out of functions
50558         * lib/gettimeofday.c: Move extern declarations of tzset and
50559         gmtime out of containing functions.  Prompted by Bruno Haible.
50560
50561 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
50562
50563         regex: do not depend on obsolete modules.
50564         * modules/regex: Remove memcmp and memmove.
50565
50566 2009-01-19  Bruno Haible  <bruno@clisp.org>
50567
50568         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
50569         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
50570         gl_BIGENDIAN, not AC_C_BIGENDIAN.
50571         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
50572         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
50573
50574 2009-01-19  Bruno Haible  <bruno@clisp.org>
50575
50576         * tests/test-link.c: Include <errno.h>.
50577         (main): Exit with code 77 when a hard link cannot be created due to
50578         the file system.
50579         * tests/test-link.sh: Skip test when a hard link cannot be created due
50580         to the file system.
50581         Suggested by Eric Blake.
50582
50583 2009-01-19  Martin Lambers  <marlam@marlam.de>
50584
50585         * modules/link-tests: New file.
50586         * tests/test-link.sh: New file.
50587         * tests/test-link.c: New file.
50588
50589 2009-01-19  Eric Blake  <ebb9@byu.net>
50590
50591         doc: mention another function added in cygwin 1.7.0
50592         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
50593         Another new function in cygwin 1.7.
50594
50595 2009-01-19  Bruno Haible  <bruno@clisp.org>
50596
50597         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
50598         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
50599         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
50600         gl_BIGENDIAN, not AC_C_BIGENDIAN.
50601         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
50602         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
50603         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
50604         * m4/md4.m4 (gl_MD4): Likewise.
50605         * m4/md5.m4 (gl_MD5): Likewise.
50606         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
50607         * m4/sha1.m4 (gl_SHA1): Likewise.
50608         * m4/sha256.m4 (gl_SHA256): Likewise.
50609         * m4/sha512.m4 (gl_SHA512): Likewise.
50610
50611 2009-01-19  Bruno Haible  <bruno@clisp.org>
50612
50613         * modules/uniname/uniname-tests (Depends-on): Add progname.
50614         * tests/uniname/test-uninames.c: Include progname.h.
50615         (main): Call set_program_name.
50616
50617         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
50618         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
50619         (main): Call set_program_name.
50620
50621         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
50622         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
50623         (main): Call set_program_name.
50624
50625         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
50626         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
50627         (main): Call set_program_name.
50628
50629         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
50630         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
50631         (main): Call set_program_name.
50632
50633         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
50634         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
50635         (main): Call set_program_name.
50636
50637         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
50638         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
50639         (main): Call set_program_name.
50640
50641         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
50642         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
50643         (main): Call set_program_name.
50644
50645         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
50646         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
50647         (main): Call set_program_name.
50648
50649 2009-01-19  Eric Blake  <ebb9@byu.net>
50650
50651         test-unistd: test previous patch
50652         * tests/test-unistd.c: Test *_FILENO macros.
50653
50654         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
50655         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50656         Guarantee a definition.
50657         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
50658         * modules/unistd-safer (Depends-on): Add dependency on unistd.
50659         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
50660         * lib/dup-safer.c (STDERR_FILENO): Likewise.
50661         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50662         Likewise.
50663         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
50664         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
50665         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
50666         Likewise.
50667         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
50668         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
50669         (STDERR_FILENO): Likewise.
50670         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
50671         (STDERR_FILENO): Likewise.
50672         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
50673         (STDERR_FILENO): Likewise.
50674         Reported by Elbert Pol.
50675
50676 2009-01-19  Eric Blake  <ebb9@byu.net>
50677
50678         doc: mention more functions added in cygwin 1.7.0
50679         * doc/posix-functions/abort.texi (abort): Update wording related
50680         to cygwin.
50681         * doc/posix-functions/daylight.texi (daylight): Likewise.
50682         * doc/posix-functions/optarg.texi (optarg): Likewise.
50683         * doc/posix-functions/optarg.texi (opterr): Likewise.
50684         * doc/posix-functions/optarg.texi (optind): Likewise.
50685         * doc/posix-functions/optarg.texi (optopt): Likewise.
50686         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
50687         worked in 1.5.x, and was withdrawn in 1.7.
50688         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
50689         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
50690         cygwin versions.
50691         * doc/posix-functions/perror.texi (perror): Likewise.
50692         * doc/posix-functions/printf.texi (printf): Likewise.
50693         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
50694         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
50695         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
50696         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
50697         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
50698         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
50699         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
50700         Likewise.
50701         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
50702         Likewise.
50703         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
50704         this function.
50705         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
50706         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
50707         Likewise.
50708         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
50709         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
50710         * doc/posix-functions/confstr.texi (confstr): Likewise.
50711         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
50712         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
50713         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
50714         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
50715         * doc/posix-functions/fputws.texi (fputws): Likewise.
50716         * doc/posix-functions/fwide.texi (fwide): Likewise.
50717         * doc/posix-functions/getwc.texi (getwc): Likewise.
50718         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
50719         * doc/posix-functions/putwc.texi (putwc): Likewise.
50720         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
50721         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
50722         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
50723         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
50724         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
50725         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
50726         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
50727         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
50728         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
50729         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
50730         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
50731
50732 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
50733
50734         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
50735         * lib/ioctl.c: Include <sys/ioctl.h>.
50736
50737 2009-01-19  Simon Josefsson  <simon@josefsson.org>
50738
50739         * modules/getdate-tests (Depends-on): Add progname.
50740         * tests/test-getdate.c: Use progname module, to avoid link errors
50741         on non-glibc systems.
50742
50743 2009-01-18  Simon Josefsson  <simon@josefsson.org>
50744
50745         * modules/filenamecat-tests (Depends-on): Add progname.
50746         * modules/fstrcmp-tests (Depends-on): Likewise.
50747
50748         * tests/test-filenamecat.c: Use progname module, to avoid link
50749         errors on non-glibc systems.
50750         * tests/test-fstrcmp.c: Likewise.
50751
50752 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
50753
50754         gettimeofday: avoid warning: nested extern declaration of 'localtime'
50755         * lib/gettimeofday.c: Move extern declaration out of function.
50756
50757 2009-01-18  Bruno Haible  <bruno@clisp.org>
50758
50759         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
50760         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
50761         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
50762
50763 2009-01-18  Bruno Haible  <bruno@clisp.org>
50764
50765         * lib/strftime.c (MEMPCPY): Remove unused macro.
50766         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
50767
50768 2009-01-18  Martin Lambers  <marlam@marlam.de>
50769
50770         New module 'link'.
50771         * lib/unistd.in.h (link): New declaration.
50772         * lib/link.c: New file.
50773         * m4/link.m4: New file.
50774         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
50775         HAVE_LINK.
50776         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
50777         * modules/link: New file.
50778         * doc/posix-functions/link.texi: Mention the new module.
50779
50780 2009-01-18  Bruno Haible  <bruno@clisp.org>
50781
50782         * tests/test-avltree_list.c (main): Call set_program_name.
50783         * tests/test-avltree_oset.c (main): Likewise.
50784         * tests/test-obstack-printf.c: Include progname.h.
50785         (main): Call set_program_name.
50786         * tests/test-quotearg.c: Include progname.h.
50787         (main): Call set_program_name.
50788         * tests/test-xmemdup0.c: Include progname.h.
50789         (main): Call set_program_name.
50790
50791 2009-01-18  Bruno Haible  <bruno@clisp.org>
50792
50793         New module 'alphasort'.
50794         * lib/dirent.in.h (alphasort): New declaration.
50795         * lib/alphasort.c: New file, from glibc with modifications.
50796         * m4/alphasort.m4: New file.
50797         * modules/alphasort: New file.
50798         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
50799         HAVE_ALPHASORT.
50800         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
50801         HAVE_ALPHASORT.
50802         * doc/posix-functions/alphasort.texi: Mention the new module and the
50803         portability problems.
50804
50805 2009-01-18  Bruno Haible  <bruno@clisp.org>
50806
50807         New module 'scandir'.
50808         * lib/dirent.in.h (scandir): New declaration.
50809         * lib/scandir.c: New file, from glibc with modifications.
50810         * m4/scandir.m4: New file.
50811         * modules/scandir: New file.
50812         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
50813         HAVE_SCANDIR.
50814         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
50815         HAVE_SCANDIR.
50816         * doc/posix-functions/scandir.texi: Mention the new module and the
50817         portability problems.
50818
50819 2009-01-17  Bruno Haible  <bruno@clisp.org>
50820
50821         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
50822         Update documentation.
50823         (func_remove_suffix): Escape all dots in the suffix. Update
50824         documentation.
50825         (func_filter_filelist): Update documentation.
50826         Reported by Ralf Wildenhues.
50827
50828 2009-01-17  Bruno Haible  <bruno@clisp.org>
50829
50830         * modules/dprintf-posix-tests: New file.
50831         * tests/test-dprintf-posix.sh: New file.
50832         * tests/test-dprintf-posix.c: New file.
50833
50834         New modules 'dprintf', 'dprintf-posix'.
50835         * lib/stdio.in.h (dprintf): New declaration.
50836         * lib/dprintf.c: New file.
50837         * m4/dprintf.m4: New file.
50838         * m4/dprintf-posix.m4: New file.
50839         * modules/dprintf: New file.
50840         * modules/dprintf-posix: New file.
50841         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
50842         HAVE_DPRINTF, REPLACE_DPRINTF.
50843         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
50844         HAVE_DPRINTF, REPLACE_DPRINTF.
50845         * doc/posix-functions/dprintf.texi: Mention the new modules.
50846
50847 2009-01-17  Bruno Haible  <bruno@clisp.org>
50848
50849         * modules/vdprintf-posix-tests: New file.
50850         * tests/test-vdprintf-posix.sh: New file.
50851         * tests/test-vdprintf-posix.c: New file.
50852
50853         New modules 'vdprintf', 'vdprintf-posix'.
50854         * lib/stdio.in.h (vdprintf): New declaration.
50855         * lib/vdprintf.c: New file.
50856         * m4/vdprintf.m4: New file.
50857         * m4/vdprintf-posix.m4: New file.
50858         * modules/vdprintf: New file.
50859         * modules/vdprintf-posix: New file.
50860         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
50861         HAVE_VDPRINTF, REPLACE_VDPRINTF.
50862         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
50863         HAVE_VDPRINTF, REPLACE_VDPRINTF.
50864         * doc/posix-functions/vdprintf.texi: Mention the new modules.
50865
50866 2009-01-17  Bruno Haible  <bruno@clisp.org>
50867
50868         Fix replacement of fopen on mingw.
50869         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
50870         mingw.
50871
50872 2009-01-17  Bruno Haible  <bruno@clisp.org>
50873
50874         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
50875         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
50876
50877 2009-01-17  Bruno Haible  <bruno@clisp.org>
50878
50879         Avoid test-fflush2.sh failure on mingw.
50880         * tests/test-fflush2.c: Include binary-io.h.
50881         (main): Put standard input into binary mode.
50882         * modules/fflush-tests (Depends-on): Add binary-io.
50883
50884 2009-01-17  Bruno Haible  <bruno@clisp.org>
50885
50886         * lib/wchar.in.h: In another particular situation, include only the
50887         system's <wchar.h> file.
50888         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
50889         Reported by Albert Chin-A-Young <china@thewrittenword.com>
50890         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
50891
50892 2009-01-17  Bruno Haible  <bruno@clisp.org>
50893
50894         Support for stripping executables in --enable-relocatable.
50895         * build-aux/install-reloc: Expect one more argument, or an environment
50896         variable RELOC_STRIP_PROG. If set, strip the destination program and
50897         its wrapper.
50898         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
50899         RELOC_STRIP_PROG.
50900         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
50901         to set RELOCATABLE_STRIP.
50902         * NEWS: Mention the new Makefile requirement.
50903
50904 2009-01-17  Bruno Haible  <bruno@clisp.org>
50905
50906         * build-aux/install-reloc: Remove debugging information left over by
50907         C compiler on MacOS X.
50908
50909 2009-01-17  Bruno Haible  <bruno@clisp.org>
50910
50911         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
50912         * lib/progreloc.c (find_executable): Fix type of pointer passed to
50913         _NSGetExecutablePath.
50914
50915 2009-01-16  Jim Meyering  <meyering@redhat.com>
50916
50917         strerror: avoid warnings about discarding "const"
50918         * lib/strerror.c (rpl_strerror): Instead of returning a const
50919         string from each and every "case", use a variable, and add a single
50920         cast after the switch.
50921
50922 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
50923
50924         * lib/arpa_inet.in.h: Add extern "C" block for C++.
50925
50926 2009-01-16  Bruno Haible  <bruno@clisp.org>
50927
50928         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
50929         array initializer syntax that also works in C++ mode.
50930         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50931
50932 2009-01-16  Jim Meyering  <meyering@redhat.com>
50933
50934         poll: suppress a warning
50935         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
50936         to ignore "...unsigned expression < 0 is always false" warnings.
50937
50938 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
50939
50940         poll: remove declarations of unused variables
50941         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
50942         sockbuf and optlen.
50943
50944 2009-01-15  Bruno Haible  <bruno@clisp.org>
50945
50946         Make fflush-after-ungetc POSIX compliant on BSD systems.
50947         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
50948         (clear_ungetc_buffer): Implement also for other systems.
50949         (rpl_fflush): On glibc systems, invoke
50950         clear_ungetc_buffer_preserving_position. Otherwise, invoke
50951         clear_ungetc_buffer after fetching the stream's position, not before.
50952
50953 2009-01-15  Bruno Haible  <bruno@clisp.org>
50954
50955         Make fflush-after-ungetc POSIX compliant on glibc systems.
50956         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
50957         after ungetc.
50958         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
50959         (rpl_fflush): On glibc systems, simply call the system's fflush
50960         function after clearing the ungetc buffer.
50961         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
50962         Instead, lseek only to the end of file, then use the system's fseeko
50963         for the rest. On glibc systems, reset the EOF indicator bit.
50964
50965 2009-01-15  Jim Meyering  <meyering@redhat.com>
50966
50967         openmp.m4: revert quote-adding change, for portability to older autoconf
50968         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
50969         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
50970         Simon Josefsson noticed the problem when using autoconf-2.61.
50971
50972 2009-01-15  Bruno Haible  <bruno@clisp.org>
50973
50974         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
50975         * tests/test-fflush2.c (ASSERT): Always fail.
50976         (main): Add two tests for fflush() after ungetc(), taking into account
50977         the Austin Group's clarification.
50978         Suggested by Eric Blake.
50979
50980 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
50981
50982         mktime.m4: remove K&R-style function prototypes
50983         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
50984         for the Sun C++ compiler.
50985
50986 2009-01-14  Bruno Haible  <bruno@clisp.org>
50987
50988         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
50989         while including <wchar.h>.
50990         * lib/wchar.in.h: In two particular situations on HP-UX, include only
50991         the system's <wchar.h> file.
50992         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50993
50994 2009-01-14  Bruno Haible  <bruno@clisp.org>
50995
50996         * m4/csharp.m4: Don't mention gettext on the serial number line.
50997         * m4/csharpexec.m4: Likewise.
50998         * m4/eaccess.m4: Likewise.
50999         * m4/javaexec.m4: Likewise.
51000         * m4/sig_atomic_t.m4: Likewise.
51001         * m4/tmpdir.m4: Likewise.
51002         * m4/intldir.m4: Bump gettext version.
51003         * m4/lib-ld.m4: Likewise.
51004
51005 2009-01-14  Bruno Haible  <bruno@clisp.org>
51006
51007         * lib/progname.c (set_program_name): Add more comments.
51008         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
51009
51010 2009-01-14  Simon Josefsson  <simon@josefsson.org>
51011
51012         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
51013         were sys/stat.h does not define it.
51014
51015 2009-01-14  Jim Meyering  <meyering@redhat.com>
51016
51017         many *.m4 files: improve m4 quoting
51018         99% of this change was performed by running the following commands:
51019         git ls-files | grep '\.m4$' | xargs perl -pi \
51020           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
51021           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
51022           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
51023           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
51024         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
51025         The remainder were to add Copyright dates, increment serial numbers,
51026         undo some changes in comments, exclude m4/intl.m4, and add quotes
51027         around the "1" in ",1" where the unusual spacing prohibited the
51028         above regexps from doing the job.  For more details, see
51029         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
51030         * m4/acl.m4: Modified.
51031         * m4/afs.m4: Likewise.
51032         * m4/alloca.m4: Likewise.
51033         * m4/argp.m4: Likewise.
51034         * m4/argz.m4: Likewise.
51035         * m4/atexit.m4: Likewise.
51036         * m4/bison-i18n.m4: Likewise.
51037         * m4/bison.m4: Likewise.
51038         * m4/byteswap.m4: Likewise.
51039         * m4/c-stack.m4: Likewise.
51040         * m4/c-strtod.m4: Likewise.
51041         * m4/calloc.m4: Likewise.
51042         * m4/canonicalize-lgpl.m4: Likewise.
51043         * m4/chown.m4: Likewise.
51044         * m4/clock_time.m4: Likewise.
51045         * m4/codeset.m4: Likewise.
51046         * m4/copy-file.m4: Likewise.
51047         * m4/csharp.m4: Likewise.
51048         * m4/csharpcomp.m4: Likewise.
51049         * m4/csharpexec.m4: Likewise.
51050         * m4/d-ino.m4: Likewise.
51051         * m4/d-type.m4: Likewise.
51052         * m4/dirfd.m4: Likewise.
51053         * m4/double-slash-root.m4: Likewise.
51054         * m4/eaccess.m4: Likewise.
51055         * m4/eealloc.m4: Likewise.
51056         * m4/environ.m4: Likewise.
51057         * m4/errno_h.m4: Likewise.
51058         * m4/euidaccess.m4: Likewise.
51059         * m4/execute.m4: Likewise.
51060         * m4/fatal-signal.m4: Likewise.
51061         * m4/fchdir.m4: Likewise.
51062         * m4/fcntl_h.m4: Likewise.
51063         * m4/fileblocks.m4: Likewise.
51064         * m4/filenamecat.m4: Likewise.
51065         * m4/findprog.m4: Likewise.
51066         * m4/flexmember.m4: Likewise.
51067         * m4/fnmatch.m4: Likewise.
51068         * m4/fopen.m4: Likewise.
51069         * m4/fpending.m4: Likewise.
51070         * m4/fprintf-posix.m4: Likewise.
51071         * m4/free.m4: Likewise.
51072         * m4/frexp.m4: Likewise.
51073         * m4/frexpl.m4: Likewise.
51074         * m4/fsusage.m4: Likewise.
51075         * m4/ftruncate.m4: Likewise.
51076         * m4/gc-camellia.m4: Likewise.
51077         * m4/gc-random.m4: Likewise.
51078         * m4/gc.m4: Likewise.
51079         * m4/getaddrinfo.m4: Likewise.
51080         * m4/getcwd-abort-bug.m4: Likewise.
51081         * m4/getcwd-path-max.m4: Likewise.
51082         * m4/getdate.m4: Likewise.
51083         * m4/getdomainname.m4: Likewise.
51084         * m4/getgroups.m4: Likewise.
51085         * m4/gethostname.m4: Likewise.
51086         * m4/gethrxtime.m4: Likewise.
51087         * m4/getline.m4: Likewise.
51088         * m4/getloadavg.m4: Likewise.
51089         * m4/getndelim2.m4: Likewise.
51090         * m4/getpass.m4: Likewise.
51091         * m4/gettext.m4: Likewise.
51092         * m4/gettime.m4: Likewise.
51093         * m4/gettimeofday.m4: Likewise.
51094         * m4/gnulib-common.m4: Likewise.
51095         * m4/group-member.m4: Likewise.
51096         * m4/host-os.m4: Likewise.
51097         * m4/iconv.m4: Likewise.
51098         * m4/iconv_open.m4: Likewise.
51099         * m4/inet_ntop.m4: Likewise.
51100         * m4/inet_pton.m4: Likewise.
51101         * m4/inline.m4: Likewise.
51102         * m4/intldir.m4: Likewise.
51103         * m4/intlmacosx.m4: Likewise.
51104         * m4/intmax.m4: Likewise.
51105         * m4/intmax_t.m4: Likewise.
51106         * m4/inttypes.m4: Likewise.
51107         * m4/inttypes_h.m4: Likewise.
51108         * m4/inttypes-pri.m4: Likewise.
51109         * m4/isapipe.m4: Likewise.
51110         * m4/isnand.m4: Likewise.
51111         * m4/isnanf.m4: Likewise.
51112         * m4/isnanl.m4: Likewise.
51113         * m4/javacomp.m4: Likewise.
51114         * m4/javaexec.m4: Likewise.
51115         * m4/jm-winsz1.m4: Likewise.
51116         * m4/jm-winsz2.m4: Likewise.
51117         * m4/lchown.m4: Likewise.
51118         * m4/lcmessage.m4: Likewise.
51119         * m4/ldexpl.m4: Likewise.
51120         * m4/lib-ld.m4: Likewise.
51121         * m4/lib-link.m4: Likewise.
51122         * m4/libsigsegv.m4: Likewise.
51123         * m4/link-follow.m4: Likewise.
51124         * m4/localcharset.m4: Likewise.
51125         * m4/locale-fr.m4: Likewise.
51126         * m4/locale-ja.m4: Likewise.
51127         * m4/locale-tr.m4: Likewise.
51128         * m4/locale-zh.m4: Likewise.
51129         * m4/lock.m4: Likewise.
51130         * m4/longlong.m4: Likewise.
51131         * m4/ls-mntd-fs.m4: Likewise.
51132         * m4/lstat.m4: Likewise.
51133         * m4/malloc.m4: Likewise.
51134         * m4/mathl.m4: Likewise.
51135         * m4/mbrtowc.m4: Likewise.
51136         * m4/mbstate_t.m4: Likewise.
51137         * m4/mbswidth.m4: Likewise.
51138         * m4/memchr.m4: Likewise.
51139         * m4/memcmp.m4: Likewise.
51140         * m4/memcpy.m4: Likewise.
51141         * m4/memmem.m4: Likewise.
51142         * m4/memmove.m4: Likewise.
51143         * m4/mempcpy.m4: Likewise.
51144         * m4/memrchr.m4: Likewise.
51145         * m4/memset.m4: Likewise.
51146         * m4/minmax.m4: Likewise.
51147         * m4/mkdir-slash.m4: Likewise.
51148         * m4/mkdtemp.m4: Likewise.
51149         * m4/mktime.m4: Likewise.
51150         * m4/mmap-anon.m4: Likewise.
51151         * m4/mountlist.m4: Likewise.
51152         * m4/nanosleep.m4: Likewise.
51153         * m4/nls.m4: Likewise.
51154         * m4/nocrash.m4: Likewise.
51155         * m4/open.m4: Likewise.
51156         * m4/openat.m4: Likewise.
51157         * m4/openmp.m4: Likewise.
51158         * m4/pathmax.m4: Likewise.
51159         * m4/perl.m4: Likewise.
51160         * m4/physmem.m4: Likewise.
51161         * m4/pipe.m4: Likewise.
51162         * m4/po.m4: Likewise.
51163         * m4/poll.m4: Likewise.
51164         * m4/posixtm.m4: Likewise.
51165         * m4/posixver.m4: Likewise.
51166         * m4/printf-frexp.m4: Likewise.
51167         * m4/printf-frexpl.m4: Likewise.
51168         * m4/printf-posix.m4: Likewise.
51169         * m4/printf-posix-rpl.m4: Likewise.
51170         * m4/printf.m4: Likewise.
51171         * m4/progtest.m4: Likewise.
51172         * m4/putenv.m4: Likewise.
51173         * m4/readline.m4: Likewise.
51174         * m4/readlink.m4: Likewise.
51175         * m4/readutmp.m4: Likewise.
51176         * m4/realloc.m4: Likewise.
51177         * m4/regex.m4: Likewise.
51178         * m4/relocatable.m4: Likewise.
51179         * m4/relocatable-lib.m4: Likewise.
51180         * m4/rename-dest-slash.m4: Likewise.
51181         * m4/rename.m4: Likewise.
51182         * m4/rmdir-errno.m4: Likewise.
51183         * m4/rmdir.m4: Likewise.
51184         * m4/roundf.m4: Likewise.
51185         * m4/roundl.m4: Likewise.
51186         * m4/rpmatch.m4: Likewise.
51187         * m4/save-cwd.m4: Likewise.
51188         * m4/selinux-selinux-h.m4: Likewise.
51189         * m4/setenv.m4: Likewise.
51190         * m4/settime.m4: Likewise.
51191         * m4/sig2str.m4: Likewise.
51192         * m4/sig_atomic_t.m4: Likewise.
51193         * m4/signalblocking.m4: Likewise.
51194         * m4/signbit.m4: Likewise.
51195         * m4/sigpipe.m4: Likewise.
51196         * m4/sockets.m4: Likewise.
51197         * m4/sockpfaf.m4: Likewise.
51198         * m4/st_dm_mode.m4: Likewise.
51199         * m4/stat-time.m4: Likewise.
51200         * m4/stdbool.m4: Likewise.
51201         * m4/stdint.m4: Likewise.
51202         * m4/stdint_h.m4: Likewise.
51203         * m4/stpcpy.m4: Likewise.
51204         * m4/stpncpy.m4: Likewise.
51205         * m4/strcase.m4: Likewise.
51206         * m4/strchrnul.m4: Likewise.
51207         * m4/strcspn.m4: Likewise.
51208         * m4/strdup.m4: Likewise.
51209         * m4/strftime.m4: Likewise.
51210         * m4/strndup.m4: Likewise.
51211         * m4/strnlen.m4: Likewise.
51212         * m4/strpbrk.m4: Likewise.
51213         * m4/strptime.m4: Likewise.
51214         * m4/strsep.m4: Likewise.
51215         * m4/strtod.m4: Likewise.
51216         * m4/strtoimax.m4: Likewise.
51217         * m4/strtok_r.m4: Likewise.
51218         * m4/strtol.m4: Likewise.
51219         * m4/strtoll.m4: Likewise.
51220         * m4/strtoul.m4: Likewise.
51221         * m4/strtoull.m4: Likewise.
51222         * m4/strtoumax.m4: Likewise.
51223         * m4/strverscmp.m4: Likewise.
51224         * m4/threadlib.m4: Likewise.
51225         * m4/timegm.m4: Likewise.
51226         * m4/tm_gmtoff.m4: Likewise.
51227         * m4/tmpdir.m4: Likewise.
51228         * m4/tmpfile.m4: Likewise.
51229         * m4/tzset.m4: Likewise.
51230         * m4/uintmax_t.m4: Likewise.
51231         * m4/unlinkdir.m4: Likewise.
51232         * m4/unlocked-io.m4: Likewise.
51233         * m4/uptime.m4: Likewise.
51234         * m4/userspec.m4: Likewise.
51235         * m4/utimbuf.m4: Likewise.
51236         * m4/utime.m4: Likewise.
51237         * m4/utimes-null.m4: Likewise.
51238         * m4/utimes.m4: Likewise.
51239         * m4/vararrays.m4: Likewise.
51240         * m4/vasnprintf.m4: Likewise.
51241         * m4/vfprintf-posix.m4: Likewise.
51242         * m4/vprintf-posix.m4: Likewise.
51243         * m4/wait-process.m4: Likewise.
51244         * m4/wchar_t.m4: Likewise.
51245         * m4/wint_t.m4: Likewise.
51246         * m4/write-any-file.m4: Likewise.
51247         * m4/yield.m4: Likewise.
51248
51249 2009-01-13  Bruno Haible  <bruno@clisp.org>
51250
51251         Avoid test-copy-file.sh failures when ACL support insufficient.
51252         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
51253         TESTS_ENVIRONMENT.
51254         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
51255         Reported by Jim Meyering.
51256
51257 2009-01-13  Bruno Haible  <bruno@clisp.org>
51258
51259         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
51260         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
51261         * modules/unistdio/u8-printf-parse (Files): Likewise.
51262         * modules/unistdio/u32-printf-parse (Files): Likewise.
51263         * modules/unistdio/ulc-printf-parse (Files): Likewise.
51264
51265 2009-01-13  Simon Josefsson  <simon@josefsson.org>
51266
51267         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
51268         and m4/inttypes_h.m4 too.
51269
51270 2009-01-12  Eric Blake  <ebb9@byu.net>
51271
51272         tests: IRIX 6.2 cc can't compile -0.0 into .data
51273         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
51274         rather than at compile-time.
51275         * tests/test-floorl.c (minus_zero): Likewise.
51276         * tests/test-frexpl.c (minus_zero): Likewise.
51277         * tests/test-isnan.c (minus_zerol): Likewise.
51278         * tests/test-isnanl.h (minus_zero): Likewise.
51279         * tests/test-ldexpl.c (minus_zero): Likewise.
51280         * tests/test-roundl.c (minus_zero): Likewise.
51281         * tests/test-signbit.c (minus_zerol): Likewise.
51282         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
51283         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
51284         * tests/test-truncl.c (minus_zero): Likewise.
51285         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
51286         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
51287         Reported by Tom G. Christensen and Nelson H. F. Beebe.
51288
51289 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51290
51291         regex: fix glibc bug 9697
51292         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
51293         handling.
51294
51295 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51296
51297         regex: fix glibc bug 697
51298         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
51299         being NULL also if there are no backreferences.
51300
51301 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
51302
51303         regex: merge glibc changes
51304         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
51305         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
51306         re_string_skip_chars, re_string_reconstruct): Likewise.
51307         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
51308
51309 2009-01-07  Jim Meyering  <meyering@redhat.com>
51310
51311         poll: filter through cppi
51312         * lib/poll.c: Indent cpp directives to reflect nesting.
51313
51314 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
51315
51316         poll: don't return uninitialized
51317         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
51318
51319 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
51320
51321         avoid compile failure on AIX 6.1
51322         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
51323         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
51324
51325 2009-01-04  Jim Meyering  <meyering@redhat.com>
51326
51327         remove duplicate inclusion of <stdio.h>
51328         * tests/test-fprintf-posix.c: Likewise.
51329         * tests/test-printf-posix.c: Likewise.
51330         * tests/test-snprintf-posix.c: Likewise.
51331         * tests/test-sprintf-posix.c: Likewise.
51332         * tests/test-vasprintf-posix.c: Likewise.
51333         * tests/test-vfprintf-posix.c: Likewise.
51334         * tests/test-vprintf-posix.c: Likewise.
51335         * tests/test-vsnprintf-posix.c: Likewise.
51336         * tests/test-vsprintf-posix.c: Likewise.
51337
51338 2009-01-03  Jim Meyering  <meyering@redhat.com>
51339
51340         gnulib-tool: fix sed-based filtering
51341         * gnulib-tool (func_filter_filelist): Remove extra backslash
51342         in sed_fff_filter definition.
51343
51344 2009-01-02  Jim Meyering  <meyering@redhat.com>
51345
51346         strftime: avoid compilation failure on Solaris 2.6
51347         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
51348         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
51349         Don't #define mbrlen or mbsinit, since now they're guaranteed to
51350         be available.  Reported by Tom G. Christensen.  Details in
51351         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
51352
51353 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51354             Bruno Haible  <bruno@clisp.org>
51355
51356         Speed up gnulib-tool by doing more string processing through shell
51357         built-ins.
51358         * gnulib-tool (fast_func_append): New variable.
51359         (func_remove_prefix, func_remove_suffix): New functions.
51360         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
51361         (func_filter_filelist): New function.
51362         (func_get_dependencies): Use func_remove_suffix instead of sed.
51363         (func_get_automake_snippet): Use func_filter_filelist instead of a
51364         subshell and sed invocation.
51365
51366 2009-01-01  Bruno Haible  <bruno@clisp.org>
51367
51368         Fix a security bug.
51369         * gnulib-tool (func_import, import, update): Don't allow the characters
51370         '"', '$', '`', '\' in macro arguments that become part of commands that
51371         are evaluated.
51372
51373 2009-01-01  Bruno Haible  <bruno@clisp.org>
51374
51375         * gnulib-tool (func_reset_sigpipe): Add more comments.
51376
51377 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51378
51379         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
51380         func_emit_tests_Makefile_am, func_import): Abort loops early if we
51381         already know the answer.
51382
51383 2009-01-01  Jim Meyering  <meyering@redhat.com>
51384
51385         * lib/version-etc.c (version_etc_va): Update copyright year.
51386
51387 2008-12-30  Bruno Haible  <bruno@clisp.org>
51388
51389         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
51390         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
51391         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
51392
51393 2008-12-29  Eric Blake  <ebb9@byu.net>
51394
51395         multiarch: avoid autoconf AC_REQUIRE bug
51396         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
51397         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
51398         2.63 and older.
51399         Reported by Bruno Haible, and analyzed in
51400         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
51401
51402 2008-12-29  Bruno Haible  <bruno@clisp.org>
51403
51404         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
51405         files in subdirectories correctly.
51406         Reported by Ralf Wildenhues.
51407
51408 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51409
51410         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
51411         rather than 'join FILE -', for Solaris join.
51412
51413 2008-12-29  Bruno Haible  <bruno@clisp.org>
51414
51415         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
51416         quoting.
51417         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
51418         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
51419         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
51420         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
51421         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
51422         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
51423         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
51424         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
51425         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
51426         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
51427         * m4/nls.m4 (AM_NLS): Likewise.
51428         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
51429         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
51430         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
51431         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
51432         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
51433         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
51434         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
51435         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
51436         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
51437         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
51438         * m4/xsize.m4 (gl_XSIZE): Likewise.
51439         Suggested by Jim Meyering.
51440
51441 2008-11-17  Bruce Korb  <bkorb@gnu.org>
51442
51443         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
51444         * lib/parse-duration.c: use a switch instead of cascading if's.
51445
51446 2008-12-29  Eric Blake  <ebb9@byu.net>
51447
51448         wchar.h: supply WEOF on Irix 5.3
51449         * lib/wchar.in.h (wint_t): Also supply WEOF.
51450         * lib/wctype.in.h (wint_t): Likewise.
51451         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
51452         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
51453         Reported by Tom G. Christensen.
51454
51455 2008-12-26  Bruno Haible  <bruno@clisp.org>
51456
51457         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
51458         i486, i586, i686.
51459
51460 2008-12-26  Bruno Haible  <bruno@clisp.org>
51461
51462         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
51463
51464 2008-12-26  Bruno Haible  <bruno@clisp.org>
51465
51466         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
51467         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
51468         not __STDC_CONSTANT_MACROS.
51469         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
51470
51471 2008-12-25  Bruno Haible  <bruno@clisp.org>
51472
51473         Add support for universal builds to vasnprintf.
51474         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
51475         universal builds, guess no.
51476         * modules/vasnprintf-posix (Depends-on): Add multiarch.
51477         * modules/vasprintf-posix (Depends-on): Likewise.
51478         * modules/fprintf-posix (Depends-on): Likewise.
51479         * modules/vfprintf-posix (Depends-on): Likewise.
51480         * modules/snprintf-posix (Depends-on): Likewise.
51481         * modules/vsnprintf-posix (Depends-on): Likewise.
51482         * modules/sprintf-posix (Depends-on): Likewise.
51483         * modules/vsprintf-posix (Depends-on): Likewise.
51484         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
51485         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
51486         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
51487         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
51488         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
51489         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
51490         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
51491
51492         Add support for universal builds to <inttypes.h>.
51493         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
51494         _SCNu64_PREFIX): In Apple
51495         universal builds, define directly, using _LP64.
51496         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
51497         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
51498         * modules/inttypes (Depends-on): Add multiarch.
51499         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
51500
51501         Add support for universal builds to <stdint.h>.
51502         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
51503         universal builds, define directly, using _LP64.
51504         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
51505         Apple universal builds, don't test for the size and suffix of ptrdiff_t
51506         and size_t.
51507         * modules/stdint (Depends-on): Add multiarch.
51508         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
51509
51510         New module 'multiarch'.
51511         * modules/multiarch: New file.
51512         * m4/multiarch.m4: New file.
51513
51514 2008-12-25  Bruno Haible  <bruno@clisp.org>
51515
51516         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
51517
51518 2008-12-25  Bruno Haible  <bruno@clisp.org>
51519
51520         * modules/btowc (License): Relicense under LGPLv2+.
51521         * modules/mbsinit (License): Likewise.
51522         * modules/mbrtowc (License): Likewise.
51523         * modules/wcrtomb (License): Likewise.
51524         * modules/streq (License): Likewise.
51525         Reported by David Lutterkort <lutter@redhat.com>.
51526
51527 2008-12-23  Bruno Haible  <bruno@clisp.org>
51528
51529         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
51530
51531 2008-12-23  Bruno Haible  <bruno@clisp.org>
51532
51533         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
51534         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
51535         GETADDRINFO_LIB, not in LIBS.
51536         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
51537         * modules/canon-host (Link): Likewise.
51538         * NEWS: Mention the change.
51539         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
51540         GETADDRINFO_LIB.
51541
51542 2008-12-22  Bruno Haible  <bruno@clisp.org>
51543
51544         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
51545         * doc/posix-functions/iswalpha_l.texi: Likewise.
51546         * doc/posix-functions/iswblank_l.texi: Likewise.
51547         * doc/posix-functions/iswcntrl_l.texi: Likewise.
51548         * doc/posix-functions/iswctype_l.texi: Likewise.
51549         * doc/posix-functions/iswdigit_l.texi: Likewise.
51550         * doc/posix-functions/iswgraph_l.texi: Likewise.
51551         * doc/posix-functions/iswlower_l.texi: Likewise.
51552         * doc/posix-functions/iswprint_l.texi: Likewise.
51553         * doc/posix-functions/iswpunct_l.texi: Likewise.
51554         * doc/posix-functions/iswspace_l.texi: Likewise.
51555         * doc/posix-functions/iswupper_l.texi: Likewise.
51556         * doc/posix-functions/iswxdigit_l.texi: Likewise.
51557         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
51558         * doc/posix-functions/open_wmemstream.texi: Likewise.
51559         * doc/posix-functions/swscanf.texi: Likewise.
51560         * doc/posix-functions/towctrans_l.texi: Likewise.
51561         * doc/posix-functions/towlower.texi: Likewise.
51562         * doc/posix-functions/towlower_l.texi: Likewise.
51563         * doc/posix-functions/towupper.texi: Likewise.
51564         * doc/posix-functions/towupper_l.texi: Likewise.
51565         * doc/posix-functions/vfwprintf.texi: Likewise.
51566         * doc/posix-functions/vfwscanf.texi: Likewise.
51567         * doc/posix-functions/vswscanf.texi: Likewise.
51568         * doc/posix-functions/vwprintf.texi: Likewise.
51569         * doc/posix-functions/vwscanf.texi: Likewise.
51570         * doc/posix-functions/wcpcpy.texi: Likewise.
51571         * doc/posix-functions/wcpncpy.texi: Likewise.
51572         * doc/posix-functions/wcscasecmp.texi: Likewise.
51573         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
51574         * doc/posix-functions/wcscoll_l.texi: Likewise.
51575         * doc/posix-functions/wcsdup.texi: Likewise.
51576         * doc/posix-functions/wcsncasecmp.texi: Likewise.
51577         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
51578         * doc/posix-functions/wcsnlen.texi: Likewise.
51579         * doc/posix-functions/wcsnrtombs.texi: Likewise.
51580         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
51581         * doc/posix-functions/wctrans_l.texi: Likewise.
51582         * doc/posix-functions/wctype_l.texi: Likewise.
51583         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
51584         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
51585         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
51586         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
51587         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
51588         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
51589         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
51590         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
51591         * doc/glibc-functions/wcschrnul.texi: Likewise.
51592         * doc/glibc-functions/wcsftime_l.texi: Likewise.
51593         * doc/glibc-functions/wcstod_l.texi: Likewise.
51594         * doc/glibc-functions/wcstof_l.texi: Likewise.
51595         * doc/glibc-functions/wcstol_l.texi: Likewise.
51596         * doc/glibc-functions/wcstold_l.texi: Likewise.
51597         * doc/glibc-functions/wcstoll_l.texi: Likewise.
51598         * doc/glibc-functions/wcstoq.texi: Likewise.
51599         * doc/glibc-functions/wcstoul_l.texi: Likewise.
51600         * doc/glibc-functions/wcstoull_l.texi: Likewise.
51601         * doc/glibc-functions/wcstouq.texi: Likewise.
51602         * doc/glibc-functions/wmempcpy.texi: Likewise.
51603
51604 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
51605             Eric Blake  <ebb9@byu.net>
51606             Paolo Bonzini  <bonzini@gnu.org>
51607             Bruno Haible  <bruno@clisp.org>
51608
51609         Make c-stack work on Haiku.
51610         * lib/c-stack.c (SA_ONSTACK): Define fallback.
51611         (c_stack_action): Use SA_ONSTACK flag.
51612
51613 2008-12-22  Bruno Haible  <bruno@clisp.org>
51614
51615         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
51616
51617 2008-12-22  Bruno Haible  <bruno@clisp.org>
51618
51619         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
51620         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
51621         being overridden.
51622         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
51623         New macros.
51624         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
51625         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
51626         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
51627         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
51628
51629 2008-12-22  Bruno Haible  <bruno@clisp.org>
51630
51631         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
51632         from test code.
51633
51634 2008-12-22  Eric Blake  <ebb9@byu.net>
51635
51636         Avoid gcc warnings on cygwin.
51637         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
51638         Avoid unused variable.
51639         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
51640         Likewise.
51641
51642 2008-12-22  Bruno Haible  <bruno@clisp.org>
51643
51644         Remove HAVE_MBRTOWC conditionals.
51645         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
51646         (mbscasecmp): Assume mbrtowc function.
51647         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
51648         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
51649         * lib/mbschr.c: Include mbuiter.h unconditionally.
51650         (mbschr): Assume mbrtowc function.
51651         * lib/mbscspn.c: Include mbuiter.h unconditionally.
51652         (mbscspn): Assume mbrtowc function.
51653         * lib/mbslen.c: Include mbuiter.h unconditionally.
51654         (mbslen): Assume mbrtowc function.
51655         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
51656         (mbsncasecmp): Assume mbrtowc function.
51657         * lib/mbsnlen.c: Include mbiter.h unconditionally.
51658         (mbsnlen): Assume mbrtowc function.
51659         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
51660         (mbspbrk): Assume mbrtowc function.
51661         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
51662         (mbspcasecmp): Assume mbrtowc function.
51663         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
51664         (mbsrchr): Assume mbrtowc function.
51665         * lib/mbssep.c: Include mbuiter.h unconditionally.
51666         (mbssep): Assume mbrtowc function.
51667         * lib/mbsspn.c: Include mbuiter.h unconditionally.
51668         (mbsspn): Assume mbrtowc function.
51669         * lib/mbsstr.c: Include mbuiter.h unconditionally.
51670         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
51671         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
51672         (mbstok_r): Assume mbrtowc function.
51673         * lib/propername.c: Include mbuiter.h unconditionally.
51674         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
51675         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
51676         (trim2): Assume mbrtowc function.
51677         * lib/mbswidth.c (mbsinit): Remove fallback definition.
51678         (mbsnwidth): Assume mbrtowc function.
51679         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
51680         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
51681         fallback definitions.
51682         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
51683
51684 2008-12-22  Bruno Haible  <bruno@clisp.org>
51685
51686         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
51687
51688 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
51689
51690         * modules/regex: Request emulations for the mb*/wc* functions we need.
51691         * m4/regex.m4: Don't look for those functions here.
51692         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
51693
51694 2008-12-22  Bruno Haible  <bruno@clisp.org>
51695
51696         * modules/fnmatch (Depends-on): Remove duplicated dependency.
51697
51698 2008-12-21  Bruno Haible  <bruno@clisp.org>
51699
51700         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
51701         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
51702         (Include): Remove conditionalization.
51703         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
51704         (Include): Remove conditionalization.
51705         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
51706         (Include): Remove conditionalization.
51707         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
51708         * m4/mbfile.m4 (gl_MBFILE): Likewise.
51709         * NEWS: Mention the change.
51710         Reported by Alan Hourihane <alanh@fairlite.co.uk>
51711         via Sergey Poznyakoff <gray@gnu.org.ua>.
51712
51713 2008-12-21  Bruno Haible  <bruno@clisp.org>
51714
51715         * MODULES.html.sh (Extended multibyte and wide character utilities
51716         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
51717         wcrtomb, wcsrtombs.
51718         (Support for systems lacking POSIX:2008): Add accept, bind, close,
51719         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
51720         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
51721         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
51722
51723 2008-12-21  Bruno Haible  <bruno@clisp.org>
51724
51725         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
51726
51727 2008-12-21  Bruno Haible  <bruno@clisp.org>
51728
51729         * modules/wcsnrtombs-tests: New file.
51730         * tests/test-wcsnrtombs1.sh: New file.
51731         * tests/test-wcsnrtombs2.sh: New file.
51732         * tests/test-wcsnrtombs3.sh: New file.
51733         * tests/test-wcsnrtombs4.sh: New file.
51734         * tests/test-wcsnrtombs.c: New file.
51735
51736         New module 'wcsnrtombs'.
51737         * lib/wchar.in.h (wcsnrtombs): New declaration.
51738         * lib/wcsnrtombs.c: New file.
51739         * lib/wcsrtombs-state.c: New file.
51740         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
51741         (internal_state): Remove variable.
51742         * m4/wcsnrtombs.m4: New file.
51743         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
51744         compilation units.
51745         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
51746         HAVE_WCSNRTOMBS.
51747         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
51748         HAVE_WCSNRTOMBS.
51749         * modules/wcsnrtombs: New file.
51750         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
51751         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
51752
51753 2008-12-21  Bruno Haible  <bruno@clisp.org>
51754
51755         * modules/wcsrtombs-tests: New file.
51756         * tests/test-wcsrtombs1.sh: New file.
51757         * tests/test-wcsrtombs2.sh: New file.
51758         * tests/test-wcsrtombs3.sh: New file.
51759         * tests/test-wcsrtombs4.sh: New file.
51760         * tests/test-wcsrtombs.c: New file.
51761
51762         New module 'wcsrtombs'.
51763         * lib/wchar.in.h (wcsrtombs): New declaration.
51764         * lib/wcsrtombs.c: New file.
51765         * m4/wcsrtombs.m4: New file.
51766         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
51767         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
51768         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
51769         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
51770         * modules/wcsrtombs: New file.
51771         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
51772         bugs.
51773
51774 2008-12-21  Bruno Haible  <bruno@clisp.org>
51775
51776         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
51777         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
51778         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
51779         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
51780         if not correct.
51781         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
51782         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
51783         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
51784         m4/locale-zh.m4, m4/codeset.m4.
51785         * doc/posix-functions/wcrtomb.texi: Document the bug.
51786
51787 2008-12-21  Bruno Haible  <bruno@clisp.org>
51788
51789         Work around a btowc() bug on IRIX 6.5.
51790         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
51791         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
51792         REPLACE_WTOBC if not.
51793         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
51794         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
51795         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
51796
51797 2008-12-21  Bruno Haible  <bruno@clisp.org>
51798
51799         * modules/wcrtomb-tests: New file.
51800         * tests/test-wcrtomb.sh: New file.
51801         * tests/test-wcrtomb.c: New file.
51802
51803         New module 'wcrtomb'.
51804         * lib/wchar.in.h (wcrtomb): New declaration.
51805         * lib/wcrtomb.c: New file.
51806         * m4/wcrtomb.m4: New file.
51807         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
51808         HAVE_WCRTOMB.
51809         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
51810         HAVE_WCRTOMB.
51811         * modules/wcrtomb: New file.
51812         * doc/posix-functions/wcrtomb.texi: Mention the new module.
51813
51814 2008-12-21  Bruno Haible  <bruno@clisp.org>
51815
51816         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
51817         * modules/mbsrtowcs (Files): Likewise.
51818         * modules/wctob (Files): Likewise.
51819         * modules/c-strcase-tests (Files): Likewise.
51820         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
51821         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
51822         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
51823         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
51824         * modules/vasnprintf-posix-tests (Files): Likewise.
51825
51826 2008-12-21  William Pursell  <bill.pursell@gmail.com>
51827
51828         gitlog-to-changelog: pass all command-line arguments to git-log
51829         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
51830         it is sometimes convenient to filter the commits in various ways.
51831         gitlog-to-changelog only allows --since to specify a start date,
51832         but git-log itself supports many other filtering mechanisms.
51833         At the moment, I want to filter by branch name.  Rather than
51834         adding a --branch option to gitlog-to-changelog, it seems more
51835         flexible to simply pass all options directly to git-log and let
51836         git do the work.  Notice that this effectively makes --since a
51837         redundant option for gitlog-to-changelog, but removing it would
51838         require current usage to change since calls would then require
51839         an additional '--'.
51840
51841 2008-12-21  Bruno Haible  <bruno@clisp.org>
51842
51843         * modules/mbsnrtowcs-tests: New file.
51844         * tests/test-mbsnrtowcs1.sh: New file.
51845         * tests/test-mbsnrtowcs2.sh: New file.
51846         * tests/test-mbsnrtowcs3.sh: New file.
51847         * tests/test-mbsnrtowcs4.sh: New file.
51848         * tests/test-mbsnrtowcs.c: New file.
51849
51850         New module 'mbsnrtowcs'.
51851         * lib/wchar.in.h (mbsnrtowcs): New declaration.
51852         * lib/mbsnrtowcs.c: New file.
51853         * lib/mbsrtowcs-state.c: New file.
51854         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
51855         (internal_state): Remove variable.
51856         * m4/mbsnrtowcs.m4: New file.
51857         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
51858         compilation units.
51859         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
51860         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
51861         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
51862         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
51863         * modules/mbsnrtowcs: New file.
51864         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
51865         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
51866         portability problem.
51867
51868 2008-12-21  Bruno Haible  <bruno@clisp.org>
51869
51870         Work around mbsrtowcs bug.
51871         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
51872         (gl_FUNC_MBSRTOWCS): Invoke it.
51873         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
51874         m4/locale-zh.m4.
51875         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
51876
51877 2008-12-21  Bruno Haible  <bruno@clisp.org>
51878
51879         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
51880
51881 2008-12-21  Bruno Haible  <bruno@clisp.org>
51882
51883         Update doc for AIX.
51884         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
51885         16-bit wchar_t type.
51886         * doc/posix-functions/btowc.texi: Likewise.
51887         * doc/posix-functions/fgetwc.texi: Likewise.
51888         * doc/posix-functions/fgetws.texi: Likewise.
51889         * doc/posix-functions/fputwc.texi: Likewise.
51890         * doc/posix-functions/fputws.texi: Likewise.
51891         * doc/posix-functions/fwide.texi: Likewise.
51892         * doc/posix-functions/fwprintf.texi: Likewise.
51893         * doc/posix-functions/fwscanf.texi: Likewise.
51894         * doc/posix-functions/getwchar.texi: Likewise.
51895         * doc/posix-functions/getwc.texi: Likewise.
51896         * doc/posix-functions/iswalnum.texi: Likewise.
51897         * doc/posix-functions/iswalpha.texi: Likewise.
51898         * doc/posix-functions/iswblank.texi: Likewise.
51899         * doc/posix-functions/iswcntrl.texi: Likewise.
51900         * doc/posix-functions/iswctype.texi: Likewise.
51901         * doc/posix-functions/iswdigit.texi: Likewise.
51902         * doc/posix-functions/iswgraph.texi: Likewise.
51903         * doc/posix-functions/iswlower.texi: Likewise.
51904         * doc/posix-functions/iswprint.texi: Likewise.
51905         * doc/posix-functions/iswpunct.texi: Likewise.
51906         * doc/posix-functions/iswspace.texi: Likewise.
51907         * doc/posix-functions/iswupper.texi: Likewise.
51908         * doc/posix-functions/iswxdigit.texi: Likewise.
51909         * doc/posix-functions/mbrtowc.texi: Likewise.
51910         * doc/posix-functions/mbsrtowcs.texi: Likewise.
51911         * doc/posix-functions/mbstowcs.texi: Likewise.
51912         * doc/posix-functions/mbtowc.texi: Likewise.
51913         * doc/posix-functions/putwchar.texi: Likewise.
51914         * doc/posix-functions/putwc.texi: Likewise.
51915         * doc/posix-functions/swprintf.texi: Likewise.
51916         * doc/posix-functions/tolower.texi: Likewise.
51917         * doc/posix-functions/toupper.texi: Likewise.
51918         * doc/posix-functions/towctrans.texi: Likewise.
51919         * doc/posix-functions/ungetwc.texi: Likewise.
51920         * doc/posix-functions/vswprintf.texi: Likewise.
51921         * doc/posix-functions/wcrtomb.texi: Likewise.
51922         * doc/posix-functions/wcscat.texi: Likewise.
51923         * doc/posix-functions/wcschr.texi: Likewise.
51924         * doc/posix-functions/wcscmp.texi: Likewise.
51925         * doc/posix-functions/wcscoll.texi: Likewise.
51926         * doc/posix-functions/wcscpy.texi: Likewise.
51927         * doc/posix-functions/wcscspn.texi: Likewise.
51928         * doc/posix-functions/wcsftime.texi: Likewise.
51929         * doc/posix-functions/wcslen.texi: Likewise.
51930         * doc/posix-functions/wcsncat.texi: Likewise.
51931         * doc/posix-functions/wcsncmp.texi: Likewise.
51932         * doc/posix-functions/wcsncpy.texi: Likewise.
51933         * doc/posix-functions/wcspbrk.texi: Likewise.
51934         * doc/posix-functions/wcsrchr.texi: Likewise.
51935         * doc/posix-functions/wcsrtombs.texi: Likewise.
51936         * doc/posix-functions/wcsspn.texi: Likewise.
51937         * doc/posix-functions/wcsstr.texi: Likewise.
51938         * doc/posix-functions/wcstod.texi: Likewise.
51939         * doc/posix-functions/wcstof.texi: Likewise.
51940         * doc/posix-functions/wcstoimax.texi: Likewise.
51941         * doc/posix-functions/wcstok.texi: Likewise.
51942         * doc/posix-functions/wcstold.texi: Likewise.
51943         * doc/posix-functions/wcstoll.texi: Likewise.
51944         * doc/posix-functions/wcstol.texi: Likewise.
51945         * doc/posix-functions/wcstombs.texi: Likewise.
51946         * doc/posix-functions/wcstoull.texi: Likewise.
51947         * doc/posix-functions/wcstoul.texi: Likewise.
51948         * doc/posix-functions/wcstoumax.texi: Likewise.
51949         * doc/posix-functions/wcswidth.texi: Likewise.
51950         * doc/posix-functions/wcsxfrm.texi: Likewise.
51951         * doc/posix-functions/wctob.texi: Likewise.
51952         * doc/posix-functions/wctomb.texi: Likewise.
51953         * doc/posix-functions/wctrans.texi: Likewise.
51954         * doc/posix-functions/wctype.texi: Likewise.
51955         * doc/posix-functions/wcwidth.texi: Likewise.
51956         * doc/posix-functions/wmemchr.texi: Likewise.
51957         * doc/posix-functions/wmemcmp.texi: Likewise.
51958         * doc/posix-functions/wmemcpy.texi: Likewise.
51959         * doc/posix-functions/wmemmove.texi: Likewise.
51960         * doc/posix-functions/wmemset.texi: Likewise.
51961         * doc/posix-functions/wprintf.texi: Likewise.
51962         * doc/posix-functions/wscanf.texi: Likewise.
51963
51964 2008-12-21  Bruno Haible  <bruno@clisp.org>
51965
51966         Update doc for HP-UX 11.11.
51967         * doc/posix-functions/btowc.texi: Clarify that the function is missing
51968         in HP-UX version 11.00, not in all versions of HP-UX 11.
51969         * doc/posix-functions/fwide.texi: Likewise.
51970         * doc/posix-functions/fwprintf.texi: Likewise.
51971         * doc/posix-functions/fwscanf.texi: Likewise.
51972         * doc/posix-functions/inet_ntop.texi: Likewise.
51973         * doc/posix-functions/inet_pton.texi: Likewise.
51974         * doc/posix-functions/mbrlen.texi: Likewise.
51975         * doc/posix-functions/mbrtowc.texi: Likewise.
51976         * doc/posix-functions/mbsinit.texi: Likewise.
51977         * doc/posix-functions/mbsrtowcs.texi: Likewise.
51978         * doc/posix-functions/swprintf.texi: Likewise.
51979         * doc/posix-functions/swscanf.texi: Likewise.
51980         * doc/posix-functions/towctrans.texi: Likewise.
51981         * doc/posix-functions/vfwprintf.texi: Likewise.
51982         * doc/posix-functions/vswprintf.texi: Likewise.
51983         * doc/posix-functions/vwprintf.texi: Likewise.
51984         * doc/posix-functions/wcrtomb.texi: Likewise.
51985         * doc/posix-functions/wcsrtombs.texi: Likewise.
51986         * doc/posix-functions/wcsstr.texi: Likewise.
51987         * doc/posix-functions/wctob.texi: Likewise.
51988         * doc/posix-functions/wctrans.texi: Likewise.
51989         * doc/posix-functions/wmemchr.texi: Likewise.
51990         * doc/posix-functions/wmemcmp.texi: Likewise.
51991         * doc/posix-functions/wmemcpy.texi: Likewise.
51992         * doc/posix-functions/wmemmove.texi: Likewise.
51993         * doc/posix-functions/wmemset.texi: Likewise.
51994         * doc/posix-functions/wprintf.texi: Likewise.
51995         * doc/posix-functions/wscanf.texi: Likewise.
51996
51997 2008-12-21  Bruno Haible  <bruno@clisp.org>
51998
51999         Work around a portability problem.
52000         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
52001         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
52002
52003 2008-12-20  Bruno Haible  <bruno@clisp.org>
52004
52005         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
52006         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
52007         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
52008         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
52009         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
52010
52011         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
52012         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
52013         set.
52014         (GNULIB_defined_mbstate_t): New macro.
52015         (mbsinit): Redefine if REPLACE_MBSINIT is set.
52016         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
52017         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
52018         reuses the system's mbrtowc function but works around the bugs.
52019         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
52020         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
52021         macros.
52022         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
52023         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
52024         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
52025         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
52026         REPLACE_MBSINIT if mbsinit needs to be overridden.
52027         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
52028         REPLACE_MBSINIT, REPLACE_MBRTOWC.
52029         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
52030         REPLACE_MBSINIT, REPLACE_MBRTOWC.
52031         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
52032         m4/locale-zh.m4.
52033         (Depends): Add mbsinit.
52034         * modules/mbsinit (Depends): Add mbrtowc.
52035         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
52036
52037 2008-12-20  Bruno Haible  <bruno@clisp.org>
52038
52039         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
52040         so that there are no conversion errors on AIX.
52041         * tests/test-mbsrtowcs.c (main): LIkewise.
52042
52043 2008-12-20  Bruno Haible  <bruno@clisp.org>
52044
52045         Work around wctob bug on Solaris <= 9.
52046         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
52047         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
52048         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
52049         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
52050         * modules/wctob (Files): Add m4/locale-fr.m4.
52051         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
52052
52053 2008-12-20  Bruno Haible  <bruno@clisp.org>
52054
52055         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
52056         /dev/null.
52057         * tests/test-select-in.sh: Likewise.
52058         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52059
52060 2008-12-20  Bruno Haible  <bruno@clisp.org>
52061
52062         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
52063         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
52064         Cygwin 1.5.x.
52065
52066 2008-12-20  Bruno Haible  <bruno@clisp.org>
52067
52068         Ensure mbstate_t is defined on HP-UX 11.11.
52069         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
52070         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
52071         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
52072         AC_USE_SYSTEM_EXTENSIONS.
52073         * modules/fnmatch (Depends-on): Add extensions.
52074         * modules/mbrlen (Depends-on): Likewise.
52075         * modules/mbrtowc (Depends-on): Likewise.
52076         * modules/mbsinit (Depends-on): Likewise.
52077         * modules/mbsrtowcs (Depends-on): Likewise.
52078         * modules/mbswidth (Depends-on): Likewise.
52079         * modules/quotearg (Depends-on): Likewise.
52080         * modules/strftime (Depends-on): Likewise.
52081
52082 2008-12-20  Bruno Haible  <bruno@clisp.org>
52083
52084         Ensure wctob is declared on IRIX 6.5.
52085         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
52086         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
52087         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
52088         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
52089         of HAVE_WCTOB.
52090         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
52091         HAVE_WCTOB.
52092         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
52093
52094 2008-12-19  Bruno Haible  <bruno@clisp.org>
52095
52096         * modules/mbsrtowcs-tests: New file.
52097         * tests/test-mbsrtowcs1.sh: New file.
52098         * tests/test-mbsrtowcs2.sh: New file.
52099         * tests/test-mbsrtowcs3.sh: New file.
52100         * tests/test-mbsrtowcs4.sh: New file.
52101         * tests/test-mbsrtowcs.c: New file.
52102
52103         New module 'mbsrtowcs'.
52104         * lib/wchar.in.h (mbsrtowcs): New declaration.
52105         * lib/mbsrtowcs.c: New file.
52106         * m4/mbsrtowcs.m4: New file.
52107         * modules/mbsrtowcs: New file.
52108         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
52109         HAVE_MBSRTOWCS.
52110         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
52111         HAVE_MBSRTOWCS.
52112         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
52113
52114 2008-12-19  Bruno Haible  <bruno@clisp.org>
52115
52116         New module 'mbrlen'.
52117         * lib/wchar.in.h (mbrlen): New declaration.
52118         * lib/mbrlen.c: New file.
52119         * m4/mbrlen.m4: New file.
52120         * modules/mbrlen: New file.
52121         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
52122         HAVE_MBRLEN.
52123         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
52124         HAVE_MBRLEN.
52125         * doc/posix-functions/mbrlen.texi: Document the new module.
52126
52127 2008-12-19  Bruno Haible  <bruno@clisp.org>
52128
52129         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
52130         * modules/mbrtowc (Depends-on): Add verify.
52131         Suggested by Paul Eggert.
52132
52133 2008-12-18  Bruno Haible  <bruno@clisp.org>
52134
52135         * modules/mbsinit-tests: New file.
52136         * tests/test-mbsinit.sh: New file.
52137         * tests/test-mbsinit.c: New file.
52138
52139 2008-12-18  Bruno Haible  <bruno@clisp.org>
52140
52141         * modules/mbrtowc-tests: New file.
52142         * tests/test-mbrtowc1.sh: New file.
52143         * tests/test-mbrtowc2.sh: New file.
52144         * tests/test-mbrtowc3.sh: New file.
52145         * tests/test-mbrtowc4.sh: New file.
52146         * tests/test-mbrtowc.c: New file.
52147
52148         New module 'mbrtowc'.
52149         * lib/wchar.in.h (mbstate_t): Override when the system does not have
52150         mbsinit and mbrtowc.
52151         (mbrtowc): New declaration.
52152         * lib/mbrtowc.c: New file.
52153         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
52154         * modules/mbrtowc: New file.
52155         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
52156         HAVE_MBRTOWC.
52157         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
52158         HAVE_MBRTOWC.
52159         * doc/posix-functions/mbrtowc.texi: Document the new module.
52160
52161 2008-12-18  Bruno Haible  <bruno@clisp.org>
52162
52163         New module 'wctob'.
52164         * lib/wchar.in.h (wctob): New declaration.
52165         * lib/wctob.c: New file.
52166         * m4/wctob.m4: New file.
52167         * modules/wctob: New file.
52168         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
52169         HAVE_WCTOB.
52170         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
52171         * doc/posix-functions/wctob.texi: Document the new module.
52172
52173 2008-12-18  Bruno Haible  <bruno@clisp.org>
52174
52175         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
52176         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
52177
52178 2008-12-18  Simon Josefsson  <simon@josefsson.org>
52179
52180         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
52181         G. Christensen" <tgc@jupiterrise.com>.
52182
52183         * lib/flock.c: Need to include errno.h.  Reported by "Tom
52184         G. Christensen" <tgc@jupiterrise.com>.
52185
52186         * lib/flock.c: Need to include string.h.  Reported by "Tom
52187         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
52188         <ebb9@byu.net>.
52189
52190 2008-12-18  Bruno Haible  <bruno@clisp.org>
52191
52192         * m4/locale-ja.m4: New file, from GNU gettext.
52193
52194 2008-12-17  Bruno Haible  <bruno@clisp.org>
52195
52196         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
52197         Suggested by Eric Blake.
52198
52199 2008-12-17  Bruno Haible  <bruno@clisp.org>
52200
52201         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
52202
52203 2008-12-17  Bruno Haible  <bruno@clisp.org>
52204
52205         * lib/mbsinit.c: Include verify.h. Verify an assumption.
52206         * modules/mbsinit (Depends-on): Add verify.
52207         Suggested by Paul Eggert.
52208
52209 2008-12-17  Bruno Haible  <bruno@clisp.org>
52210
52211         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
52212         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
52213         gl_FUNC_MBRTOWC.
52214         * m4/mbiter.m4 (gl_MBITER): LIkewise.
52215         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
52216         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
52217         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
52218         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
52219         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
52220         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
52221         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
52222         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
52223         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
52224         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
52225         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
52226         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
52227         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
52228         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
52229         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
52230         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
52231         * modules/trim (configure.ac): Likewise.
52232
52233 2008-12-17  Bruno Haible  <bruno@clisp.org>
52234
52235         * modules/btowc-tests: New file.
52236         * tests/test-btowc1.sh: New file.
52237         * tests/test-btowc2.sh: New file.
52238         * tests/test-btowc.c: New file.
52239
52240         New module 'btowc'.
52241         * lib/wchar.in.h (btowc): New declaration.
52242         * lib/btowc.c: New file.
52243         * m4/btowc.m4: New file.
52244         * modules/btowc: New file.
52245         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
52246         HAVE_BTOWC.
52247         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
52248         * doc/posix-functions/btowc.texi: Document the new module.
52249
52250 2008-12-17  Bruno Haible  <bruno@clisp.org>
52251
52252         New module 'mbsinit'.
52253         * lib/wchar.in.h (mbsinit): New declaration.
52254         * lib/mbsinit.c: New file.
52255         * m4/mbsinit.m4: New file.
52256         * modules/mbsinit: New file.
52257         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
52258         HAVE_MBSINIT.
52259         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
52260         HAVE_MBSINIT.
52261         * doc/posix-functions/mbsinit.texi: Document the new module.
52262
52263 2008-12-16  Bruno Haible  <bruno@clisp.org>
52264
52265         * lib/unistd.in.h: Add comment.
52266         * tests/test-environ.c: Don't include <stdlib.h>.
52267
52268 2008-12-16  Bruno Haible  <bruno@clisp.org>
52269
52270         * lib/parse-duration.h (parse_duration): Document return value
52271         convention.
52272         * lib/parse-duration.c: Include specification header first. Add
52273         comments.
52274         (_): Remove macro.
52275         (parse_year_month_day, parse_hour_minute_second): Move side effects
52276         outside of strchr call.
52277         (parse_non_iso8601): Move side effects outside of isspace call.
52278         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
52279         call.
52280
52281 2008-12-16  Bruno Haible  <bruno@clisp.org>
52282
52283         * tests/test-parse-duration.sh: Produce no output when the test
52284         succeeds.
52285
52286 2008-12-16  Bruno Haible  <bruno@clisp.org>
52287
52288         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
52289         expressions.
52290
52291 2008-12-15  Bruno Haible  <bruno@clisp.org>
52292
52293         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
52294         * doc/glibc-functions/flistxattr.texi: Likewise.
52295         * doc/glibc-functions/fopencookie.texi: Likewise.
52296         * doc/glibc-functions/fremovexattr.texi: Likewise.
52297         * doc/glibc-functions/fsetxattr.texi: Likewise.
52298         * doc/glibc-functions/getxattr.texi: Likewise.
52299         * doc/glibc-functions/lgetxattr.texi: Likewise.
52300         * doc/glibc-functions/listxattr.texi: Likewise.
52301         * doc/glibc-functions/llistxattr.texi: Likewise.
52302         * doc/glibc-functions/lremovexattr.texi: Likewise.
52303         * doc/glibc-functions/lsetxattr.texi: Likewise.
52304         * doc/glibc-functions/removexattr.texi: Likewise.
52305         * doc/glibc-functions/setxattr.texi: Likewise.
52306         * doc/posix-functions/open_memstream.texi: Likewise.
52307
52308 2008-12-15  Eric Blake  <ebb9@byu.net>
52309
52310         Update doc for cygwin 1.7.
52311         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
52312         functions.
52313         * doc/posix-functions/fchmodat.texi: Likewise.
52314         * doc/posix-functions/fchownat.texi: Likewise.
52315         * doc/posix-functions/fdopendir.texi: Likewise.
52316         * doc/posix-functions/fmemopen.texi: Likewise.
52317         * doc/posix-functions/freeaddrinfo.texi: Likewise.
52318         * doc/posix-functions/fstatat.texi: Likewise.
52319         * doc/posix-functions/futimens.texi: Likewise.
52320         * doc/posix-functions/gai_strerror.texi: Likewise.
52321         * doc/posix-functions/getaddrinfo.texi: Likewise.
52322         * doc/posix-functions/getnameinfo.texi: Likewise.
52323         * doc/posix-functions/if_freenameindex.texi: Likewise.
52324         * doc/posix-functions/if_indextoname.texi: Likewise.
52325         * doc/posix-functions/if_nameindex.texi: Likewise.
52326         * doc/posix-functions/if_nametoindex.texi: Likewise.
52327         * doc/posix-functions/insque.texi: Likewise.
52328         * doc/posix-functions/linkat.texi: Likewise.
52329         * doc/posix-functions/llrint.texi: Likewise.
52330         * doc/posix-functions/llrintf.texi: Likewise.
52331         * doc/posix-functions/llrintl.texi: Likewise.
52332         * doc/posix-functions/lockf.texi: Likewise.
52333         * doc/posix-functions/lrintl.texi: Likewise.
52334         * doc/posix-functions/mkdirat.texi: Likewise.
52335         * doc/posix-functions/mkfifoat.texi: Likewise.
52336         * doc/posix-functions/mknodat.texi: Likewise.
52337         * doc/posix-functions/mq_close.texi: Likewise.
52338         * doc/posix-functions/mq_getattr.texi: Likewise.
52339         * doc/posix-functions/mq_notify.texi: Likewise.
52340         * doc/posix-functions/mq_open.texi: Likewise.
52341         * doc/posix-functions/mq_receive.texi: Likewise.
52342         * doc/posix-functions/mq_send.texi: Likewise.
52343         * doc/posix-functions/mq_setattr.texi: Likewise.
52344         * doc/posix-functions/mq_timedreceive.texi: Likewise.
52345         * doc/posix-functions/mq_timedsend.texi: Likewise.
52346         * doc/posix-functions/mq_unlink.texi: Likewise.
52347         * doc/posix-functions/open_memstream.texi: Likewise.
52348         * doc/posix-functions/openat.texi: Likewise.
52349         * doc/posix-functions/posix_fadvise.texi: Likewise.
52350         * doc/posix-functions/posix_fallocate.texi: Likewise.
52351         * doc/posix-functions/posix_madvise.texi: Likewise.
52352         * doc/posix-functions/posix_memalign.texi: Likewise.
52353         * doc/posix-functions/posix_openpt.texi: Likewise.
52354         * doc/posix-functions/readlinkat.texi: Likewise.
52355         * doc/posix-functions/remque.texi: Likewise.
52356         * doc/posix-functions/renameat.texi: Likewise.
52357         * doc/posix-functions/rintl.texi: Likewise.
52358         * doc/posix-functions/sem_unlink.texi: Likewise.
52359         * doc/posix-functions/shm_open.texi: Likewise.
52360         * doc/posix-functions/shm_unlink.texi: Likewise.
52361         * doc/posix-functions/signgam.texi: Likewise.
52362         * doc/posix-functions/sigset.texi: Likewise.
52363         * doc/posix-functions/stpcpy.texi: Likewise.
52364         * doc/posix-functions/stpncpy.texi: Likewise.
52365         * doc/posix-functions/strerror.texi: Likewise.
52366         * doc/posix-functions/strtod.texi: Likewise.
52367         * doc/posix-functions/symlinkat.texi: Likewise.
52368         * doc/posix-functions/unlinkat.texi: Likewise.
52369         * doc/posix-functions/utimensat.texi: Likewise.
52370         * doc/glibc-functions/bindresvport.texi: Likewise.
52371         * doc/glibc-functions/dn_expand.texi: Likewise.
52372         * doc/glibc-functions/exp10.texi: Likewise.
52373         * doc/glibc-functions/exp10f.texi: Likewise.
52374         * doc/glibc-functions/fgetxattr.texi: Likewise.
52375         * doc/glibc-functions/flistxattr.texi: Likewise.
52376         * doc/glibc-functions/fopencookie.texi: Likewise.
52377         * doc/glibc-functions/freeifaddrs.texi: Likewise.
52378         * doc/glibc-functions/fremovexattr.texi: Likewise.
52379         * doc/glibc-functions/fsetxattr.texi: Likewise.
52380         * doc/glibc-functions/getifaddrs.texi: Likewise.
52381         * doc/glibc-functions/getxattr.texi: Likewise.
52382         * doc/glibc-functions/lgetxattr.texi: Likewise.
52383         * doc/glibc-functions/listxattr.texi: Likewise.
52384         * doc/glibc-functions/llistxattr.texi: Likewise.
52385         * doc/glibc-functions/lremovexattr.texi: Likewise.
52386         * doc/glibc-functions/lsetxattr.texi: Likewise.
52387         * doc/glibc-functions/pow10.texi: Likewise.
52388         * doc/glibc-functions/pow10f.texi: Likewise.
52389         * doc/glibc-functions/rcmd_af.texi: Likewise.
52390         * doc/glibc-functions/removexattr.texi: Likewise.
52391         * doc/glibc-functions/res_init.texi: Likewise.
52392         * doc/glibc-functions/res_mkquery.texi: Likewise.
52393         * doc/glibc-functions/res_query.texi: Likewise.
52394         * doc/glibc-functions/res_querydomain.texi: Likewise.
52395         * doc/glibc-functions/res_send.texi: Likewise.
52396         * doc/glibc-functions/rresvport_af.texi: Likewise.
52397         * doc/glibc-functions/setxattr.texi: Likewise.
52398         * doc/glibc-functions/strcasestr.texi: Likewise.
52399
52400 2008-12-15  Bruno Haible  <bruno@clisp.org>
52401
52402         Fix compilation error on OSF/1 4.0.
52403         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
52404         <sys/time.h>, simply delegate to the system header.
52405         Reported by Daniel Richard G. <oss@teragram.com>.
52406
52407 2008-12-15  Bruno Haible  <bruno@clisp.org>
52408
52409         * doc/posix-functions/openat.texi: Mention the 'openat' module.
52410         * doc/posix-functions/fchmodat.texi: Likewise.
52411         * doc/posix-functions/fchownat.texi: Likewise.
52412         * doc/posix-functions/fdopendir.texi: Likewise.
52413         * doc/posix-functions/fstatat.texi: Likewise.
52414         * doc/posix-functions/mkdirat.texi: Likewise.
52415         * doc/posix-functions/unlinkat.texi: Likewise.
52416
52417 2008-12-14  Bruno Haible  <bruno@clisp.org>
52418
52419         Update doc for POSIX:2008.
52420         * doc/posix-functions/faccessat.texi: New file.
52421         * doc/posix-functions/fchmodat.texi: New file.
52422         * doc/posix-functions/fchownat.texi: New file.
52423         * doc/posix-functions/fdopendir.texi: New file.
52424         * doc/posix-functions/fstatat.texi: New file.
52425         * doc/posix-functions/futimens.texi: New file.
52426         * doc/posix-functions/linkat.texi: New file.
52427         * doc/posix-functions/mkdirat.texi: New file.
52428         * doc/posix-functions/mkfifoat.texi: New file.
52429         * doc/posix-functions/mknodat.texi: New file.
52430         * doc/posix-functions/open_wmemstream.texi: New file.
52431         * doc/posix-functions/openat.texi: New file.
52432         * doc/posix-functions/psiginfo.texi: New file.
52433         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
52434         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
52435         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
52436         * doc/posix-functions/readlinkat.texi: New file.
52437         * doc/posix-functions/renameat.texi: New file.
52438         * doc/posix-functions/strerror_l.texi: New file.
52439         * doc/posix-functions/symlinkat.texi: New file.
52440         * doc/posix-functions/unlinkat.texi: New file.
52441         * doc/posix-functions/utimensat.texi: New file.
52442         * doc/gnulib.texi (Function Substitutes): Add these subsections.
52443
52444 2008-12-14  Bruno Haible  <bruno@clisp.org>
52445
52446         Update doc for POSIX:2008.
52447         * doc/posix-functions/alphasort.texi: Renamed from
52448         doc/glibc-functions/alphasort.texi.
52449         * doc/posix-functions/dirfd.texi: Renamed from
52450         doc/glibc-functions/dirfd.texi.
52451         * doc/posix-functions/dprintf.texi: Renamed from
52452         doc/glibc-functions/dprintf.texi.
52453         * doc/posix-functions/duplocale.texi: Renamed from
52454         doc/glibc-functions/duplocale.texi.
52455         * doc/posix-functions/fexecve.texi: Renamed from
52456         doc/glibc-functions/fexecve.texi.
52457         * doc/posix-functions/fmemopen.texi: Renamed from
52458         doc/glibc-functions/fmemopen.texi.
52459         * doc/posix-functions/freelocale.texi: Renamed from
52460         doc/glibc-functions/freelocale.texi.
52461         * doc/posix-functions/getdate_err.texi: Renamed from
52462         doc/glibc-functions/getdate_err.texi.
52463         * doc/posix-functions/isalnum_l.texi: Renamed from
52464         doc/glibc-functions/isalnum_l.texi.
52465         * doc/posix-functions/isalpha_l.texi: Renamed from
52466         doc/glibc-functions/isalpha_l.texi.
52467         * doc/posix-functions/isblank_l.texi: Renamed from
52468         doc/glibc-functions/isblank_l.texi.
52469         * doc/posix-functions/iscntrl_l.texi: Renamed from
52470         doc/glibc-functions/iscntrl_l.texi.
52471         * doc/posix-functions/isdigit_l.texi: Renamed from
52472         doc/glibc-functions/isdigit_l.texi.
52473         * doc/posix-functions/isgraph_l.texi: Renamed from
52474         doc/glibc-functions/isgraph_l.texi.
52475         * doc/posix-functions/islower_l.texi: Renamed from
52476         doc/glibc-functions/islower_l.texi.
52477         * doc/posix-functions/isprint_l.texi: Renamed from
52478         doc/glibc-functions/isprint_l.texi.
52479         * doc/posix-functions/ispunct_l.texi: Renamed from
52480         doc/glibc-functions/ispunct_l.texi.
52481         * doc/posix-functions/isspace_l.texi: Renamed from
52482         doc/glibc-functions/isspace_l.texi.
52483         * doc/posix-functions/isupper_l.texi: Renamed from
52484         doc/glibc-functions/isupper_l.texi.
52485         * doc/posix-functions/iswalnum_l.texi: Renamed from
52486         doc/glibc-functions/iswalnum_l.texi.
52487         * doc/posix-functions/iswalpha_l.texi: Renamed from
52488         doc/glibc-functions/iswalpha_l.texi.
52489         * doc/posix-functions/iswblank_l.texi: Renamed from
52490         doc/glibc-functions/iswblank_l.texi.
52491         * doc/posix-functions/iswcntrl_l.texi: Renamed from
52492         doc/glibc-functions/iswcntrl_l.texi.
52493         * doc/posix-functions/iswctype_l.texi: Renamed from
52494         doc/glibc-functions/iswctype_l.texi.
52495         * doc/posix-functions/iswdigit_l.texi: Renamed from
52496         doc/glibc-functions/iswdigit_l.texi.
52497         * doc/posix-functions/iswgraph_l.texi: Renamed from
52498         doc/glibc-functions/iswgraph_l.texi.
52499         * doc/posix-functions/iswlower_l.texi: Renamed from
52500         doc/glibc-functions/iswlower_l.texi.
52501         * doc/posix-functions/iswprint_l.texi: Renamed from
52502         doc/glibc-functions/iswprint_l.texi.
52503         * doc/posix-functions/iswpunct_l.texi: Renamed from
52504         doc/glibc-functions/iswpunct_l.texi.
52505         * doc/posix-functions/iswspace_l.texi: Renamed from
52506         doc/glibc-functions/iswspace_l.texi.
52507         * doc/posix-functions/iswupper_l.texi: Renamed from
52508         doc/glibc-functions/iswupper_l.texi.
52509         * doc/posix-functions/iswxdigit_l.texi: Renamed from
52510         doc/glibc-functions/iswxdigit_l.texi.
52511         * doc/posix-functions/isxdigit_l.texi: Renamed from
52512         doc/glibc-functions/isxdigit_l.texi.
52513         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
52514         doc/glibc-functions/mbsnrtowcs.texi.
52515         * doc/posix-functions/mkdtemp.texi: Renamed from
52516         doc/glibc-functions/mkdtemp.texi.
52517         * doc/posix-functions/newlocale.texi: Renamed from
52518         doc/glibc-functions/newlocale.texi.
52519         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
52520         doc/glibc-functions/nl_langinfo_l.texi.
52521         * doc/posix-functions/open_memstream.texi: Renamed from
52522         doc/glibc-functions/open_memstream.texi.
52523         * doc/posix-functions/opterr.texi: Renamed from
52524         doc/glibc-functions/opterr.texi.
52525         * doc/posix-functions/optind.texi: Renamed from
52526         doc/glibc-functions/optind.texi.
52527         * doc/posix-functions/optopt.texi: Renamed from
52528         doc/glibc-functions/optopt.texi.
52529         * doc/posix-functions/psignal.texi: Renamed from
52530         doc/glibc-functions/psignal.texi.
52531         * doc/posix-functions/scandir.texi: Renamed from
52532         doc/glibc-functions/scandir.texi.
52533         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
52534         doc/glibc-functions/sched_get_priority_min.texi.
52535         * doc/posix-functions/signgam.texi: Renamed from
52536         doc/glibc-functions/signgam.texi.
52537         * doc/posix-functions/stpcpy.texi: Renamed from
52538         doc/glibc-functions/stpcpy.texi.
52539         * doc/posix-functions/stpncpy.texi: Renamed from
52540         doc/glibc-functions/stpncpy.texi.
52541         * doc/posix-functions/strcasecmp_l.texi: Renamed from
52542         doc/glibc-functions/strcasecmp_l.texi.
52543         * doc/posix-functions/strcoll_l.texi: Renamed from
52544         doc/glibc-functions/strcoll_l.texi.
52545         * doc/posix-functions/strfmon_l.texi: Renamed from
52546         doc/glibc-functions/strfmon_l.texi.
52547         * doc/posix-functions/strftime_l.texi: Renamed from
52548         doc/glibc-functions/strftime_l.texi.
52549         * doc/posix-functions/strncasecmp_l.texi: Renamed from
52550         doc/glibc-functions/strncasecmp_l.texi.
52551         * doc/posix-functions/strndup.texi: Renamed from
52552         doc/glibc-functions/strndup.texi.
52553         * doc/posix-functions/strnlen.texi: Renamed from
52554         doc/glibc-functions/strnlen.texi.
52555         * doc/posix-functions/strsignal.texi: Renamed from
52556         doc/glibc-functions/strsignal.texi.
52557         * doc/posix-functions/strxfrm_l.texi: Renamed from
52558         doc/glibc-functions/strxfrm_l.texi.
52559         * doc/posix-functions/timer_gettime.texi: Renamed from
52560         doc/glibc-functions/timer_gettime.texi.
52561         * doc/posix-functions/tolower_l.texi: Renamed from
52562         doc/glibc-functions/tolower_l.texi.
52563         * doc/posix-functions/toupper_l.texi: Renamed from
52564         doc/glibc-functions/toupper_l.texi.
52565         * doc/posix-functions/towctrans_l.texi: Renamed from
52566         doc/glibc-functions/towctrans_l.texi.
52567         * doc/posix-functions/towlower_l.texi: Renamed from
52568         doc/glibc-functions/towlower_l.texi.
52569         * doc/posix-functions/towupper_l.texi: Renamed from
52570         doc/glibc-functions/towupper_l.texi.
52571         * doc/posix-functions/uselocale.texi: Renamed from
52572         doc/glibc-functions/uselocale.texi.
52573         * doc/posix-functions/vdprintf.texi: Renamed from
52574         doc/glibc-functions/vdprintf.texi.
52575         * doc/posix-functions/wcpcpy.texi:
52576         Renamed from doc/glibc-functions/wcpcpy.texi.
52577         * doc/posix-functions/wcpncpy.texi: Renamed from
52578         doc/glibc-functions/wcpncpy.texi.
52579         * doc/posix-functions/wcscasecmp.texi: Renamed from
52580         doc/glibc-functions/wcscasecmp.texi.
52581         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
52582         doc/glibc-functions/wcscasecmp_l.texi.
52583         * doc/posix-functions/wcscoll_l.texi: Renamed from
52584         doc/glibc-functions/wcscoll_l.texi.
52585         * doc/posix-functions/wcsdup.texi: Renamed from
52586         doc/glibc-functions/wcsdup.texi.
52587         * doc/posix-functions/wcsncasecmp.texi: Renamed from
52588         doc/glibc-functions/wcsncasecmp.texi.
52589         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
52590         doc/glibc-functions/wcsncasecmp_l.texi.
52591         * doc/posix-functions/wcsnlen.texi: Renamed from
52592         doc/glibc-functions/wcsnlen.texi.
52593         * doc/posix-functions/wcsnrtombs.texi: Renamed from
52594         doc/glibc-functions/wcsnrtombs.texi.
52595         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
52596         doc/glibc-functions/wcsxfrm_l.texi.
52597         * doc/posix-functions/wctrans_l.texi: Renamed from
52598         doc/glibc-functions/wctrans_l.texi.
52599         * doc/posix-functions/wctype_l.texi: Renamed from
52600         doc/glibc-functions/wctype_l.texi.
52601         * doc/gnulib.texi (Function Substitutes): Add these subsections.
52602         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
52603         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
52604         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
52605         these subsections.
52606         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
52607         Remove sections.
52608
52609 2008-12-14  Bruno Haible  <bruno@clisp.org>
52610
52611         Update doc for POSIX:2008.
52612         * doc/posix-functions/*.texi: Update URL of POSIX specification.
52613
52614 2008-12-14  Bruno Haible  <bruno@clisp.org>
52615
52616         Update doc for POSIX:2008.
52617         * doc/pastposix-functions/bcmp.texi: Renamed from
52618         doc/posix-functions/bcmp.texi.
52619         * doc/pastposix-functions/bcopy.texi: Renamed from
52620         doc/posix-functions/bcopy.texi.
52621         * doc/pastposix-functions/bsd_signal.texi: Renamed from
52622         doc/posix-functions/bsd_signal.texi.
52623         * doc/pastposix-functions/bzero.texi: Renamed from
52624         doc/posix-functions/bzero.texi.
52625         * doc/pastposix-functions/ecvt.texi: Renamed from
52626         doc/posix-functions/ecvt.texi.
52627         * doc/pastposix-functions/fcvt.texi: Renamed from
52628         doc/posix-functions/fcvt.texi.
52629         * doc/pastposix-functions/ftime.texi: Renamed from
52630         doc/posix-functions/ftime.texi.
52631         * doc/pastposix-functions/gcvt.texi: Renamed from
52632         doc/posix-functions/gcvt.texi.
52633         * doc/pastposix-functions/getcontext.texi: Renamed from
52634         doc/posix-functions/getcontext.texi.
52635         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
52636         doc/posix-functions/gethostbyaddr.texi.
52637         * doc/pastposix-functions/gethostbyname.texi: Renamed from
52638         doc/posix-functions/gethostbyname.texi.
52639         * doc/pastposix-functions/getwd.texi: Renamed from
52640         doc/posix-functions/getwd.texi.
52641         * doc/pastposix-functions/h_errno.texi: Renamed from
52642         doc/posix-functions/h_errno.texi.
52643         * doc/pastposix-functions/index.texi: Renamed from
52644         doc/posix-functions/index.texi.
52645         * doc/pastposix-functions/makecontext.texi: Renamed from
52646         doc/posix-functions/makecontext.texi.
52647         * doc/pastposix-functions/mktemp.texi: Renamed from
52648         doc/posix-functions/mktemp.texi.
52649         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
52650         doc/posix-functions/pthread_attr_getstackaddr.texi.
52651         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
52652         doc/posix-functions/pthread_attr_setstackaddr.texi.
52653         * doc/pastposix-functions/rindex.texi: Renamed from
52654         doc/posix-functions/rindex.texi.
52655         * doc/pastposix-functions/scalb.texi: Renamed from
52656         doc/posix-functions/scalb.texi.
52657         * doc/pastposix-functions/setcontext.texi: Renamed from
52658         doc/posix-functions/setcontext.texi.
52659         * doc/pastposix-functions/swapcontext.texi: Renamed from
52660         doc/posix-functions/swapcontext.texi.
52661         * doc/pastposix-functions/ualarm.texi: Renamed from
52662         doc/posix-functions/ualarm.texi.
52663         * doc/pastposix-functions/usleep.texi: Renamed from
52664         doc/posix-functions/usleep.texi.
52665         * doc/pastposix-functions/vfork.texi: Renamed from
52666         doc/posix-functions/vfork.texi.
52667         * doc/pastposix-functions/wcswcs.texi: Renamed from
52668         doc/posix-functions/wcswcs.texi.
52669         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
52670         (Function Substitutes): Update.
52671
52672 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52673
52674         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
52675         m4/strerror.m4.
52676
52677 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52678             Bruno Haible  <bruno@clisp.org>
52679
52680         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
52681
52682 2008-12-13  Bruno Haible  <bruno@clisp.org>
52683
52684         * modules/strtoull (Depends-on): Remove unistd.
52685
52686 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52687
52688         * modules/strtoull (Depends-on): Add stdlib.
52689
52690 2008-12-11  Simon Josefsson  <simon@josefsson.org>
52691
52692         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
52693
52694 2008-12-10  Jim Meyering  <meyering@redhat.com>
52695
52696         gl_ASSERT: don't say assertions are disabled when they're not
52697         * m4/assert.m4 (gl_ASSERT): Do not make configure report
52698         "checking whether to enable assertions... no", when they are in
52699         fact enabled.  This is solely a bug in the output of configure.
52700         In spite of saying "no", NDEBUG was not defined in that case.
52701         Also, as noted by Eric Blake, leave assertions enabled upon
52702         --enable-assert=INVALID.
52703
52704 2008-12-10  Bruno Haible  <bruno@clisp.org>
52705
52706         Change MODULES.html to refer to POSIX:2008 where possible.
52707         * MODULES.html.sh (POSIX2008_URL): New variable.
52708         (posix_headers): Remove sys/timeb, ucontext.
52709         (posix2001_headers): New variable.
52710         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
52711         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
52712         index, makecontext, mktemp, pthread_attr_getstackaddr,
52713         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
52714         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
52715         (posix2001_functions): New variable.
52716         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
52717         otherwise.
52718
52719 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52720
52721         add missing include to parse-duration.c
52722         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
52723         * modules/parse-duration (Depends-on): Add xalloc.
52724
52725         fix sed script reading maint.mk
52726         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
52727         (syntax-check-rules): Use it.
52728
52729 2008-12-09  Bruno Haible  <bruno@clisp.org>
52730
52731         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
52732         MacOS X 10.4/PowerPC.
52733         Reported by Simon Josefsson.
52734
52735 2008-12-08  Jim Meyering  <meyering@redhat.com>
52736
52737         work around mingw's lack of some S_IF definitions
52738         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
52739         Reported by Simon Josefsson.
52740
52741 2008-12-08  Bruno Haible  <bruno@clisp.org>
52742
52743         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
52744         applied to variables. Needed on MacOS X 10.4/PowerPC.
52745         Reported by Simon Josefsson.
52746
52747 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
52748         and Eric Blake  <ebb9@byu.net>
52749
52750         assert: honor --enable-assert
52751         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
52752         order to honor --enable-assert, rather than treating it as a
52753         synonym for --disable-assert.
52754
52755 2008-12-08  Jim Meyering  <meyering@redhat.com>
52756
52757         * lib/posixtm.c: Remove now-useless declaration of mktime.
52758
52759         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
52760
52761 2008-12-07  Bruno Haible  <bruno@clisp.org>
52762
52763         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
52764         test_once): Mark functions as static.
52765         * tests/test-tls.c (test_tls): Likewise.
52766
52767 2008-12-07  Bruno Haible  <bruno@clisp.org>
52768
52769         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
52770         iconv_register_autodetect.
52771
52772 2008-12-07  Jim Meyering  <meyering@redhat.com>
52773
52774         posixtm.c: avoid a warning
52775         * lib/posixtm.c (posixtime): Don't initialize tm0.
52776         It's no longer needed to placate gcc4's -Wuninitialized,
52777         and the attempt to placate would elicit a new warning.
52778
52779         unicodeio.c: mark unused parameters
52780         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
52781         (fallback_failure_callback): Likewise.
52782
52783 2008-12-07  Bruno Haible  <bruno@clisp.org>
52784
52785         * gnulib-tool (func_create_testdir): When building the tests
52786         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
52787         Reported by Simon Josefsson.
52788
52789 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52790
52791         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
52792
52793 2008-12-06  Bruno Haible  <bruno@clisp.org>
52794
52795         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
52796         Suggested by Eric Blake.
52797
52798 2008-12-06  Bruno Haible  <bruno@clisp.org>
52799
52800         Fix a c-stack test failure on MacOS X.
52801         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
52802         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
52803         handler for SIGBUS as well.
52804         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
52805         install a signal handler for SIGBUS as well.
52806         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
52807
52808 2008-12-06  Bruno Haible  <bruno@clisp.org>
52809
52810         Advocacy documentation.
52811         * doc/gnulib-intro.texi (Benefits): New section.
52812         * doc/gnulib.texi: Update.
52813
52814 2008-12-06  Bruno Haible  <bruno@clisp.org>
52815
52816         Document the 'manywarnings' module.
52817         * doc/manywarnings.texi: New file.
52818         * doc/gnulib.texi: Include it.
52819
52820 2008-12-05  Eric Blake  <ebb9@byu.net>
52821
52822         tests: silence some gcc warnings
52823         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
52824         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
52825         type mismatches.
52826
52827 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52828             Bruno Haible  <bruno@clisp.org>
52829
52830         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
52831
52832 2008-11-29  Jim Meyering  <meyering@redhat.com>
52833
52834         unicodeio.c: mark unused parameters
52835         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
52836         (fallback_failure_callback): Likewise.
52837
52838         fts: fix a thinko
52839         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
52840         (set_stat_type): Return S_IF*-valued "type" directly.
52841         Prompted by James Youngman's spotting a related bug.
52842         Confirmed by further testing through find.
52843
52844         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
52845         * lib/fts.c (D_TYPE): Define.
52846         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
52847         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
52848         (s_ifmt_shift_bits): New function.
52849         (set_stat_type): New function.
52850         (fts_build): When not calling fts_stat, call set_stat_type
52851         to propagate dirent.d_type info to fts_read caller.
52852         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
52853         fts_statp->st_mode type information may be valid.
52854
52855 2008-11-28  Simon Josefsson  <simon@josefsson.org>
52856
52857         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
52858         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
52859         <sds@gnu.org>.
52860
52861 2008-11-20  Bruno Haible  <bruno@clisp.org>
52862
52863         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
52864         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
52865         INCLUDE_NEXT.
52866         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
52867         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
52868         * modules/math (Makefile.am): Substitute
52869         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
52870         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
52871
52872 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
52873             Bruno Haible  <bruno@clisp.org>
52874
52875         * lib/stdint.in.h: Define all type macros so that their expansion is
52876         a single typedef'ed token. Fixes a compilation failure in Boost which
52877         does "using ::int8_t;".
52878
52879 2008-11-18  Simon Josefsson  <simon@josefsson.org>
52880
52881         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
52882         gl_MANYWARN_ALL_GCC.
52883         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
52884         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
52885         * modules/manywarnings: New file.
52886         * MODULES.html.sh: Mention manywarnings module.
52887
52888 2008-11-18  Bruno Haible  <bruno@clisp.org>
52889
52890         * doc/gnulib-tool.texi (Unit tests): New section.
52891
52892 2008-11-18  Simon Josefsson  <simon@josefsson.org>
52893
52894         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
52895         paths like 'lib/po/foo.po'.
52896
52897 2008-11-17  Simon Josefsson  <simon@josefsson.org>
52898
52899         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
52900         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
52901
52902 2008-11-17  Simon Josefsson  <simon@josefsson.org>
52903
52904         * m4/warnings.m4: Use CPPFLAGS to really check whether the
52905         parameter works.
52906
52907 2008-11-17  Simon Josefsson  <simon@josefsson.org>
52908
52909         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
52910
52911 2008-11-17  Bruce Korb  <bkorb@gnu.org>
52912
52913         * modules/parse-duration-tests: New file.
52914         * tests/test-parse-duration.sh: New file.
52915         * tests/test-parse-duration.c: New file.
52916
52917         New module 'parse-duration'.
52918         * lib/parse-duration.h: New file.
52919         * lib/parse-duration.c: New file.
52920         * modules/parse-duration: New file.
52921
52922 2008-11-17  Bruno Haible  <bruno@clisp.org>
52923
52924         * tests/test-select-out.sh: Comment out the first pipe test.
52925         Reported by Simon Josefsson.
52926
52927 2008-11-17  Bruno Haible  <bruno@clisp.org>
52928
52929         * modules/getaddrinfo (Depends-on): Add servent, hostent.
52930         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
52931         gl_HOSTENT.
52932
52933 2008-11-17  Bruno Haible  <bruno@clisp.org>
52934
52935         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
52936         -lnetwork and -lnet. Needed for Haiku and BeOS.
52937
52938 2008-11-16  Bruno Haible  <bruno@clisp.org>
52939
52940         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
52941
52942 2008-11-16  Bruno Haible  <bruno@clisp.org>
52943
52944         Avoid test failure on Haiku.
52945         * tests/test-fsync.c: Include <errno.h>.
52946         (main): Don't require that fsync (0) fails.
52947
52948 2008-11-15  Bruno Haible  <bruno@clisp.org>
52949
52950         New module 'hostent'.
52951         * modules/hostent: New file.
52952         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
52953
52954 2008-11-15  Bruno Haible  <bruno@clisp.org>
52955
52956         New module 'servent'.
52957         * modules/servent: New file.
52958         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
52959
52960 2008-11-15  Bruno Haible  <bruno@clisp.org>
52961
52962         Avoid generating same test program with two different rules.
52963         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
52964         test-frexp to test-frexp-nolibm.
52965         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
52966         test-frexpl to test-frexpl-nolibm.
52967
52968 2008-11-15  Bruno Haible  <bruno@clisp.org>
52969
52970         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
52971         $(FREXPL_LIBM).
52972
52973 2008-11-15  Bruno Haible  <bruno@clisp.org>
52974
52975         * lib/netdb.in.h: Activate the definitions also when the system's
52976         <netdb.h> has 'struct addrinfo'.
52977         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
52978         EAI_OVERFLOW or AI_NUMERICSERV.
52979         * doc/posix-headers/netdb.texi: Document the problem.
52980
52981 2008-11-15  Bruno Haible  <bruno@clisp.org>
52982
52983         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
52984
52985         Make the 'sched' module work on platforms where <sched.h> exists but
52986         is incomplete (such as Haiku).
52987         * lib/sched.in.h; Include the system's <sched.h> if it exists.
52988         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
52989         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
52990         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
52991         HAVE_STRUCT_SCHED_PARAM.
52992         * modules/sched (Depends-on): Add include_next.
52993         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
52994         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
52995         * doc/posix-headers/sched.texi: Document the issue.
52996
52997 2008-11-13  Jim Meyering  <meyering@redhat.com>
52998
52999         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
53000         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
53001         test would fail due to the difference in the Report bugs to ...
53002         line.  The expected address is empty, "<>", while the actual
53003         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
53004
53005 2008-11-12  Bruno Haible  <bruno@clisp.org>
53006
53007         lstat: don't compile lstat.c on systems lacking lstat
53008         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
53009         which don't have lstat; this is handled by lib/sys_stat.in.h already.
53010         Reported by Daniel P. Berrange via Jim Meyering.
53011
53012 2008-11-12  Jim Meyering  <meyering@redhat.com>
53013
53014         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
53015
53016 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53017
53018         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
53019         instead.
53020
53021 2008-11-12  Bruno Haible  <bruno@clisp.org>
53022
53023         * lib/unicodeio.c: Include unistr.h.
53024         (utf8_wctomb): Remove function.
53025         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
53026
53027 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53028
53029         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
53030         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
53031         <bruno@clisp.org>.
53032         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
53033
53034 2008-11-12  Simon Josefsson  <simon@josefsson.org>
53035
53036         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
53037         * doc/gnulib.texi: Add section for warnings.
53038
53039 2008-11-11  Bruno Haible  <bruno@clisp.org>
53040
53041         * lib/sockets.h: Add a comment.
53042
53043 2008-11-11  Karl Berry  <karl@gnu.org>
53044
53045         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
53046
53047 2008-11-11  Eric Blake  <ebb9@byu.net>
53048
53049         fdl.texi: avoid git symlinks
53050         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
53051
53052 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53053
53054         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
53055
53056 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53057
53058         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
53059         (gl_WARN_ADD): Substitute $2 if literal.
53060
53061 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53062
53063         * m4/warning.m4: Remove.
53064
53065 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
53066
53067         * m4/warnings.m4: Almost complete rewrite. :-)
53068
53069 2008-11-10  Simon Josefsson  <simon@josefsson.org>
53070
53071         * modules/warnings: New module.
53072         * m4/warnings.m4: New file.
53073         * MODULES.html.sh: Mention warnings module.
53074         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
53075         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
53076
53077 2008-11-10  Eric Blake  <ebb9@byu.net>
53078
53079         fdl.texi: make a symlink to the latest version
53080         * doc/standards.texi: Revert today's earlier change.
53081         * doc/fdl-1.2.texi: Rename from old fdl.texi...
53082         * doc/fdl.texi: ...and replace this with a symlink to the newer
53083         fdl-1.3.texi.
53084
53085 2008-11-10  Bruno Haible  <bruno@clisp.org>
53086
53087         * tests/test-select-fd.c (main): Accept the result file name as fourth
53088         argument.
53089         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
53090         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
53091
53092 2008-11-10  Bruno Haible  <bruno@clisp.org>
53093
53094         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
53095         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
53096         as autoconf-substituted macros.
53097         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
53098         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
53099         gl_NETDB_H_DEFAULTS. Set these variables.
53100         * modules/netdb (Makefile.am): Substitute these variables.
53101
53102 2008-11-10  Eric Blake  <ebb9@byu.net>
53103
53104         standards.texi: include correct file for FDL 1.3
53105         * doc/standards.texi (GNU Free Documentation License): Change
53106         include file to pull in FDL 1.3, not 1.2.
53107
53108         fdl.texi: revert accidental change to license
53109         * doc/fdl.texi: This is FDL 1.2, not 1.3.
53110
53111 2008-11-10  Bruno Haible  <bruno@clisp.org>
53112
53113         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
53114         cross-compiling guesses also when the native compile gives no result.
53115
53116 2008-11-10  Bruno Haible  <bruno@clisp.org>
53117
53118         * lib/spawni.c (__spawni): Force variable into the stack.
53119
53120 2008-11-10  Bruno Haible  <bruno@clisp.org>
53121
53122         Add support for Haiku.
53123         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
53124         glibc and BeOS, but also on Haiku.
53125         * lib/fpurge.c (fpurge): Likewise.
53126         * lib/freadable.c (freadable): Likewise.
53127         * lib/freadahead.c (freadahead): Likewise.
53128         * lib/freading.c (freading): Likewise.
53129         * lib/freadptr.c (freadptr): Likewise.
53130         * lib/freadseek.c (freadptrinc): Likewise.
53131         * lib/fseeko.c (rpl_fseeko): Likewise.
53132         * lib/fseterr.c (fseterr): Likewise.
53133         * lib/fwritable.c (fwritable): Likewise.
53134         * lib/fwriting.c (fwriting): Likewise.
53135         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
53136
53137 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
53138
53139         * lib/config.charset: Treat Haiku like BeOS.
53140
53141 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
53142
53143         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
53144         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
53145
53146 2008-11-08  Bruno Haible  <bruno@clisp.org>
53147
53148         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
53149         AC_CACHE_CHECK.
53150
53151 2008-11-08  Bruno Haible  <bruno@clisp.org>
53152
53153         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
53154
53155 2008-11-08  Bruno Haible  <bruno@clisp.org>
53156
53157         * tests/test-select-fd.c: New file.
53158         * tests/test-select-in.sh: New file.
53159         * tests/test-select-out.sh: New file.
53160         * tests/test-select-stdin.c: New file.
53161         * modules/select-tests (Files): Add the new files.
53162         (Depends-on): Add gettimeofday.
53163         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
53164         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
53165         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
53166
53167 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
53168             Bruno Haible  <bruno@clisp.org>
53169
53170         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
53171
53172 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
53173
53174         * build-aux/pmccabe2html: Added support for C++ source files.
53175
53176 2008-11-05  Ben Pfaff  <blp@gnu.org>
53177
53178         Fix lib/close.c build on Windows.
53179         * modules/close (Files): Add lib/w32sock.h.
53180
53181 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
53182
53183         Accept Bison's NEWS format.
53184         * build-aux/announce-gen (print_news_deltas): Tweak
53185         $re_prefix.
53186
53187 2008-11-04  Bruno Haible  <bruno@clisp.org>
53188
53189         * modules/random_r (Maintainer): Add glibc.
53190
53191 2008-11-04  Simon Josefsson  <simon@josefsson.org>
53192
53193         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
53194         by karl@freefriends.org (Karl Berry).
53195         * doc/alloca.texi: Likewise.
53196         * doc/c-ctype.texi: Likewise.
53197         * doc/c-strcase.texi: Likewise.
53198         * doc/c-strcaseeq.texi: Likewise.
53199         * doc/c-strcasestr.texi: Likewise.
53200         * doc/c-strstr.texi: Likewise.
53201         * doc/c-strtod.texi: Likewise.
53202         * doc/c-strtold.texi: Likewise.
53203         * doc/ctime.texi: Likewise.
53204         * doc/error.texi: Likewise.
53205         * doc/fdl.texi: Likewise.
53206         * doc/gcd.texi: Likewise.
53207         * doc/getdate.texi: Likewise.
53208         * doc/gnulib-intro.texi: Likewise.
53209         * doc/gnulib-tool.texi: Likewise.
53210         * doc/gnulib.texi: Likewise.
53211         * doc/inet_ntoa.texi: Likewise.
53212         * doc/maintain.texi: Likewise.
53213         * doc/make-stds.texi: Likewise.
53214         * doc/quote.texi: Likewise.
53215         * doc/regexprops-generic.texi: Likewise.
53216         * doc/standards.texi: Likewise.
53217         * doc/verify.texi: Likewise.
53218         * doc/visibility.texi: Likewise.
53219         * doc/gnulib.texi (GNU Free Documentation License): Include
53220         fdl-1.3.texi instead of fdl.texi.
53221
53222 2008-11-04  Simon Josefsson  <simon@josefsson.org>
53223
53224         * doc/fdl-1.3.texi: New file, from
53225         <http://www.gnu.org/licenses/fdl-1.3.texi>.
53226         * modules/fdl-1.3: Add.
53227         * MODULES.html.sh: Add fdl-1.3.
53228
53229 2008-11-03  Bruno Haible  <bruno@clisp.org>
53230
53231         Make determination of absolute name of header file work with AIX xlc.
53232         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
53233         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
53234         preprocessing.
53235         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
53236         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
53237
53238 2008-11-03  Simon Josefsson  <simon@josefsson.org>
53239
53240         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
53241         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
53242         <ludo@gnu.org>.
53243
53244 2008-11-02  Bruno Haible  <bruno@clisp.org>
53245
53246         Mark 'strpbrk' obsolete.
53247         * modules/strpbrk (Status, Notice): New sections.
53248         * modules/strtok_r (Depends-on): Add strpbrk.
53249
53250 2008-11-02  Bruno Haible  <bruno@clisp.org>
53251
53252         Mark 'strdup' obsolete.
53253         * modules/strdup (Status, Notice): New sections.
53254         * modules/findprog (Depends-on): Add strdup.
53255         * modules/getaddrinfo (Depends-on): Likewise.
53256         * modules/localename (Depends-on): Likewise.
53257         * modules/relocatable-lib (Depends-on): Likewise.
53258         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
53259         * modules/relocatable-prog (Depends-on): Likewise.
53260         * modules/trim (Depends-on): Likewise.
53261         * modules/unictype/gen-ctype (Depends-on): Likewise.
53262         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
53263
53264 2008-11-02  Bruno Haible  <bruno@clisp.org>
53265
53266         Mark 'strcspn' obsolete.
53267         * modules/strcspn (Status, Notice): New sections.
53268
53269 2008-11-02  Bruno Haible  <bruno@clisp.org>
53270
53271         Mark 'rmdir' obsolete.
53272         * modules/rmdir (Status, Notice): New sections.
53273         * modules/clean-temp (Depends-on): Add rmdir.
53274         * modules/openat (Depends-on): Likewise.
53275
53276 2008-11-02  Bruno Haible  <bruno@clisp.org>
53277
53278         Mark 'raise' obsolete.
53279         * modules/raise (Status, Notice): New sections.
53280         (Include): Specify <signal.h>.
53281         * modules/stdio (Depends-on): Add raise.
53282         * modules/write (Depends-on): Likewise.
53283
53284 2008-11-02  Bruno Haible  <bruno@clisp.org>
53285
53286         Mark 'memset' obsolete.
53287         * modules/memset (Status, Notice): New sections.
53288
53289 2008-11-02  Bruno Haible  <bruno@clisp.org>
53290
53291         Mark 'memmove' obsolete.
53292         * modules/memmove (Status, Notice): New sections.
53293         * modules/argp (Depends-on): Add memmove.
53294         * modules/argz (Depends-on): Likewise.
53295         * modules/canonicalize (Depends-on): Likewise.
53296         * modules/canonicalize-lgpl (Depends-on): Likewise.
53297         * modules/fts (Depends-on): Likewise.
53298         * modules/getcwd (Depends-on): Likewise.
53299         * modules/human (Depends-on): Likewise.
53300         * modules/regex (Depends-on): Likewise.
53301         * modules/striconveh (Depends-on): Likewise.
53302         * modules/trim (Depends-on): Likewise.
53303         * modules/unistr/u8-move (Depends-on): Likewise.
53304         * modules/unistr/u16-move (Depends-on): Likewise.
53305         * modules/unistr/u32-move (Depends-on): Likewise.
53306
53307 2008-11-02  Bruno Haible  <bruno@clisp.org>
53308
53309         Mark 'memcpy' obsolete.
53310         * modules/memcpy (Status, Notice): New sections.
53311
53312 2008-11-02  Bruno Haible  <bruno@clisp.org>
53313
53314         Mark 'memcmp' obsolete.
53315         * modules/memcmp (Status, Notice): New sections.
53316         * modules/argmatch (Depends-on): Add memchr.
53317         * modules/backupfile (Depends-on): Likewise.
53318         * modules/c-strcasestr (Depends-on): Likewise.
53319         * modules/crypto/des (Depends-on): Likewise.
53320         * modules/csharpcomp (Depends-on): Likewise.
53321         * modules/fnmatch (Depends-on): Likewise.
53322         * modules/git-merge-changelog (Depends-on): Likewise.
53323         * modules/isnand (Depends-on): Likewise.
53324         * modules/isnand-nolibm (Depends-on): Likewise.
53325         * modules/isnanf (Depends-on): Likewise.
53326         * modules/isnanf-nolibm (Depends-on): Likewise.
53327         * modules/isnanl (Depends-on): Likewise.
53328         * modules/isnanl-nolibm (Depends-on): Likewise.
53329         * modules/mbchar (Depends-on): Likewise.
53330         * modules/memcoll (Depends-on): Likewise.
53331         * modules/quotearg (Depends-on): Likewise.
53332         * modules/regex (Depends-on): Likewise.
53333         * modules/relocatable-prog (Depends-on): Likewise.
53334         * modules/same (Depends-on): Likewise.
53335         * modules/signbit (Depends-on): Likewise.
53336         * modules/strcasestr-simple (Depends-on): Likewise.
53337         * modules/unictype/gen-ctype (Depends-on): Likewise.
53338         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
53339         * modules/uniname/uniname (Depends-on): Likewise.
53340         * modules/unistr/u8-cmp (Depends-on): Likewise.
53341
53342 2008-11-02  Bruno Haible  <bruno@clisp.org>
53343
53344         Mark 'memchr' obsolete.
53345         * modules/memchr (Status, Notice): New sections.
53346         * modules/argp (Depends-on): Add memchr.
53347         * modules/base64 (Depends-on): Likewise.
53348         * modules/c-strcasestr (Depends-on): Likewise.
53349         * modules/chdir-long (Depends-on): Likewise.
53350         * modules/fnmatch (Depends-on): Likewise.
53351         * modules/getsubopt (Depends-on): Likewise.
53352         * modules/git-merge-changelog (Depends-on): Likewise.
53353         * modules/glob (Depends-on): Likewise.
53354         * modules/strcasestr-simple (Depends-on): Likewise.
53355         * modules/strnlen (Depends-on): Likewise.
53356
53357 2008-11-02  Bruno Haible  <bruno@clisp.org>
53358
53359         Mark 'atexit' obsolete.
53360         * modules/atexit (Status, Notice): New sections.
53361         * modules/chdir-long (Depends-on): Add atexit.
53362         * modules/wait-process (Depends-on): Likewise.
53363
53364 2008-11-02  Bruno Haible  <bruno@clisp.org>
53365
53366         * gnulib-tool: New option --with-obsolete.
53367         (func_usage): Document it.
53368         (func_modules_transitive_closure): Drop obsolete dependencies if
53369         incobsolete is not true.
53370         (func_import): Read and save the incobsolete variable to the cache.
53371
53372 2008-11-02  Bruno Haible  <bruno@clisp.org>
53373
53374         * modules/TEMPLATE-EXTENDED: New field 'Status'.
53375         * gnulib-tool: New option --extract-status.
53376         (func_usage): Document it.
53377         (sed_extract_prog): Recognize it.
53378         (func_get_status): New function.
53379
53380 2008-10-30  Simon Josefsson  <simon@josefsson.org>
53381
53382         * modules/sockets (License): Change from LGPL to LGPLv2+.
53383
53384 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53385
53386         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
53387
53388 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53389
53390         * MODULES.html.sh (Support for systems lacking POSIX:2001):
53391         Mention times and sys_times.
53392         * modules/sys_times, modules/sys_times-tests: New modules.
53393         * modules/times, modules/times-tests: Likewise
53394         * m4/sys_times_h.m4: New file.
53395         * lib/sys_times.in.h: Likewise
53396         * lib/times.c: Likewise.
53397         * tests/test-sys_times.c: Likewise.
53398         * tests/test-times.c: Likewise.
53399         * doc/posix-headers/sys_times.texi: Update.
53400         * doc/posix-functions/times.texi: Update.
53401
53402 2008-10-28  Jim Meyering  <meyering@redhat.com>
53403
53404         * modules/tempname (Depends-on): Add lstat.
53405
53406         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
53407
53408 2008-10-28  Simon Josefsson  <simon@josefsson.org>
53409
53410         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
53411         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
53412         using idiom used elsewhere in gnulib.
53413
53414 2008-10-27  Jim Meyering  <meyering@redhat.com>
53415
53416         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
53417
53418 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53419
53420         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
53421         TESTS_ENVIRONMENT, for shell scripts that needs to call built
53422         programs.
53423         * tests/test-argp-2.sh: Use $EXEEXT when needed.
53424
53425 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53426
53427         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
53428
53429 2008-10-27  Bruno Haible  <bruno@clisp.org>
53430
53431         * tests/test-lstat.c: Include <stdio.h>.
53432
53433 2008-10-27  Simon Josefsson  <simon@josefsson.org>
53434
53435         * modules/lstat-tests: New module.
53436         * tests/test-lstat.c: New file.
53437
53438 2008-10-26  Jim Meyering  <meyering@redhat.com>
53439
53440         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
53441
53442 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53443             Bruno Haible  <bruno@clisp.org>
53444
53445         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
53446         * modules/configmake (Include): Add a note that the include must come
53447         after all system headers.
53448         * lib/javaversion.c: Include configmake.h after all other includes.
53449
53450 2008-10-26  Bruno Haible  <bruno@clisp.org>
53451
53452         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
53453         HAVE_STRUCT_RANDOM_DATA to 1.
53454         (gl_STDLIB_H): Simplify.
53455
53456 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53457
53458         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
53459         substitute HAVE_STRUCT_RANDOM_DATA.
53460         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
53461         random_data.
53462         * modules/stdlib (Makefile.am): Substitute
53463         HAVE_STRUCT_RANDOM_DATA.
53464
53465 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53466
53467         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
53468         * doc/gnulib-intro.texi (Copyright): Likewise.
53469
53470 2008-10-26  Simon Josefsson  <simon@josefsson.org>
53471
53472         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
53473         findings.
53474
53475 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
53476             Bruno Haible  <bruno@clisp.org>
53477
53478         * lib/unistd.in.h: Include <winsock2.h>.
53479         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
53480         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
53481         Provide dummy declarations.
53482         (gethostname): Override.
53483         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
53484         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
53485         gl_PREREQ_SYS_H_WINSOCK2.
53486         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
53487         * doc/posix-functions/gethostname.texi: More details.
53488
53489 2008-10-25  Bruno Haible  <bruno@clisp.org>
53490
53491         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
53492         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
53493         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
53494
53495         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
53496         here ...
53497         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
53498         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
53499         gl_UNISTD_H_DEFAULTS.
53500
53501 2008-10-25  Eric Blake  <ebb9@byu.net>
53502
53503         signbit: avoid spurious compiler failure
53504         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
53505         declarations inside function.
53506
53507 2008-10-24  Simon Josefsson  <simon@josefsson.org>
53508             Bruno Haible  <bruno@clisp.org>
53509
53510         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
53511         * modules/random_r (Depends-on): Add stdint.
53512
53513 2008-10-24  Bruno Haible  <bruno@clisp.org>
53514
53515         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
53516         Eggert.
53517         * modules/strerror (License): Likewise.
53518
53519 2008-10-24  Jim Meyering  <meyering@redhat.com>
53520
53521         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
53522         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
53523
53524 2008-10-24  Eric Blake  <ebb9@byu.net>
53525
53526         getgroups: fix compilation when getgroups is available
53527         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
53528         but with <config.h> override of getgroups disabled.
53529
53530 2008-10-24  Simon Josefsson  <simon@josefsson.org>
53531
53532         * doc/gnulib.texi (Header files): Add note about C++ problems.
53533         Explained by Bruno Haible <bruno@clisp.org>.
53534
53535 2008-10-23  Bruno Haible  <bruno@clisp.org>
53536
53537         Define a dummy SA_NODEFER macro on Interix.
53538         * lib/signal.in.h (SA_NODEFER): Define fallback.
53539         Reported by Aleksey Cheusov <cheusov@tut.by> via
53540         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
53541
53542 2008-10-23  Bruno Haible  <bruno@clisp.org>
53543
53544         * modules/freadahead (License): Change to LGPLv2+.
53545         Suggested by Simon Josefsson.
53546
53547 2008-10-23  Jim Meyering  <meyering@redhat.com>
53548
53549         random_r: new module
53550         * modules/random_r: New file.
53551         * m4/random_r.m4: New file.
53552         * lib/random_r.c: New file, from glibc.
53553         * modules/random_r-tests: New file.
53554         * tests/test-random_r.c: New file.
53555         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
53556          Declare.
53557         (RAND_MAX): Define.
53558         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
53559         * modules/stdlib: Substitute them, too.
53560         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
53561         * doc/glibc-functions/initstate_r.texi: Mention the new module.
53562         * doc/glibc-functions/random_r.texi: Likewise.
53563         * doc/glibc-functions/setstate_r.texi: Likewise.
53564         * doc/glibc-functions/srandom_r.texi: Likewise.
53565         * config/srclist.txt: Mention it.
53566
53567 2008-10-23  David Lutterkort  <lutter@redhat.com>
53568
53569         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
53570         link requirement
53571
53572 2008-10-23  Jim Meyering  <meyering@redhat.com>
53573
53574         selinux-h: mark parameters of stub functions as intentionally unused
53575         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
53576         * lib/se-context.in.h: Likewise.
53577
53578 2008-10-22  Simon Josefsson  <simon@josefsson.org>
53579
53580         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
53581
53582 2008-10-22  Simon Josefsson  <simon@josefsson.org>
53583
53584         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
53585
53586 2008-10-22  Eric Blake  <ebb9@byu.net>
53587
53588         glthread/thread: avoid compiler warning
53589         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
53590         Add unreachable abort to silence compiler.
53591
53592 2008-10-22  Eric Blake  <ebb9@byu.net>
53593
53594         netdb: also supply struct addrinfo for cygwin 1.5.x
53595         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
53596         older cygwin.
53597         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
53598         cygwin.
53599         * doc/posix-headers/netdb.texi (netdb.h): Document this.
53600
53601 2008-10-22  Bruno Haible  <bruno@clisp.org>
53602
53603         * users.txt: Update entry about pspp.
53604
53605 2008-10-21  Bruno Haible  <bruno@clisp.org>
53606
53607         Simplification.
53608         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
53609         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
53610
53611         Simplification.
53612         * lib/ioctl.c (ioctl): Don't undefine.
53613         * lib/socket.c (socket): Don't undefine.
53614
53615         Remove unused module indicator macros.
53616         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
53617         GNULIB_$1 as a C macro.
53618
53619         * doc/posix-functions/close.texi: Undo last change.
53620         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
53621         Windows platforms.
53622
53623 2008-10-21  Bruno Haible  <bruno@clisp.org>
53624
53625         Add gethostname() declaration to <unistd.h>.
53626         * lib/unistd.in.h (gethostname): New declaration.
53627         * lib/gethostname.c: Include <unistd.h>.
53628         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
53629         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
53630         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
53631         and HAVE_GETHOSTNAME.
53632         * modules/gethostname (Depends-on): Add unistd.
53633         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53634         (Include): Specify <unistd.h>.
53635         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
53636         HAVE_GETHOSTNAME.
53637         * tests/test-gethostname.c: Include <unistd.h> first.
53638
53639 2008-10-21  Bruno Haible  <bruno@clisp.org>
53640
53641         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
53642         * modules/select-tests (Depends-on): Likewise.
53643         Reported by Simon Josefsson.
53644
53645 2008-10-21  Simon Josefsson  <simon@josefsson.org>
53646
53647         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
53648         * lib/accept.c: New file, based on winsock.c.
53649         * lib/bind.c: New file, based on winsock.c.
53650         * lib/connect.c: New file, based on winsock.c.
53651         * lib/getpeername.c: New file, based on winsock.c.
53652         * lib/getsockname.c: New file, based on winsock.c.
53653         * lib/getsockopt.c: New file, based on winsock.c.
53654         * lib/ioctl.c: New file, based on winsock.c.
53655         * lib/listen.c: New file, based on winsock.c.
53656         * lib/recv.c: New file, based on winsock.c.
53657         * lib/recvfrom.c: New file, based on winsock.c.
53658         * lib/send.c: New file, based on winsock.c.
53659         * lib/sendto.c: New file, based on winsock.c.
53660         * lib/setsockopt.c: New file, based on winsock.c.
53661         * lib/shutdown.c: New file, based on winsock.c.
53662         * lib/socket.c: New file, based on winsock.c.
53663         * lib/w32sock.h: New file, based on winsock.c.
53664         * lib/winsock.c: Remove file.
53665         * modules/accept: Likewise.
53666         * modules/bind: Likewise.
53667         * modules/connect: Likewise.
53668         * modules/getpeername: Likewise.
53669         * modules/getsockname: Likewise.
53670         * modules/getsockopt: Likewise.
53671         * modules/ioctl: Likewise.
53672         * modules/listen: Likewise.
53673         * modules/recv: Likewise.
53674         * modules/recvfrom: Likewise.
53675         * modules/send: Likewise.
53676         * modules/sendto: Likewise.
53677         * modules/setsockopt: Likewise.
53678         * modules/shutdown: Likewise.
53679         * modules/socket: Use socket.c instead of winsock.c.
53680         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
53681         * doc/posix-functions/accept.texi: Doc fix.
53682         * doc/posix-functions/bind.texi: Doc fix.
53683         * doc/posix-functions/close.texi: Doc fix.
53684         * doc/posix-functions/connect.texi: Doc fix.
53685         * doc/posix-functions/getpeername.texi: Doc fix.
53686         * doc/posix-functions/getsockname.texi: Doc fix.
53687         * doc/posix-functions/getsockopt.texi: Doc fix.
53688         * doc/posix-functions/ioctl.texi: Doc fix.
53689         * doc/posix-functions/listen.texi: Doc fix.
53690         * doc/posix-functions/recv.texi: Doc fix.
53691         * doc/posix-functions/recvfrom.texi: Doc fix.
53692         * doc/posix-functions/send.texi: Doc fix.
53693         * doc/posix-functions/sendto.texi: Doc fix.
53694         * doc/posix-functions/setsockopt.texi: Doc fix.
53695         * doc/posix-functions/shutdown.texi: Doc fix.
53696         * doc/posix-functions/socket.texi: Doc fix.
53697
53698 2008-10-20  Bruno Haible  <bruno@clisp.org>
53699
53700         Take into account the role of SIGABRT_COMPAT on Windows 2008.
53701         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
53702         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
53703         as an alias for SIGABRT.
53704         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
53705         (sigaction): Map it to SIGABRT.
53706         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
53707
53708 2008-10-20  Bruno Haible  <bruno@clisp.org>
53709
53710         * lib/fts.c: Don't include lstat.h.
53711         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
53712
53713         Move the lstat() declaration to <sys/stat.h>.
53714         * lib/lstat.h: Remove file.
53715         * lib/sys_stat.in.h: Add special invocation convention.
53716         (lstat): New declaration.
53717         * lib/lstat.c (orig_lstat): New function.
53718         (rpl_lstat): Use orig_lstat instead of lstat.
53719         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
53720         AC_C_INLINE. Set REPLACE_LSTAT.
53721         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
53722         and REPLACE_LSTAT.
53723         * modules/lstat (Files): Remove lib/lstat.h.
53724         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
53725         (Include): Specify <sys/stat.h> instead of lstat.h.
53726         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
53727         REPLACE_LSTAT.
53728         * NEWS: Mention the change.
53729
53730 2008-10-20  Bruno Haible  <bruno@clisp.org>
53731
53732         * modules/posix_spawn-tests: New file.
53733         * tests/test-posix_spawn3.c: New file.
53734
53735 2008-10-20  Bruno Haible  <bruno@clisp.org>
53736
53737         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
53738         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
53739         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
53740         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
53741         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
53742
53743 2008-10-20  Bruno Haible  <bruno@clisp.org>
53744
53745         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
53746         of posix_spawn on AIX 5.3.
53747
53748 2008-10-20  Bruno Haible  <bruno@clisp.org>
53749
53750         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
53751
53752 2008-10-20  Bruno Haible  <bruno@clisp.org>
53753
53754         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
53755         of AC_LANG_PROGRAM.
53756
53757 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53758
53759         * lib/netdb.in.h: Don't define GNU specific constants until they
53760         are supported or needed.  Reported by Bruno Haible
53761         <bruno@clisp.org>.
53762
53763 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53764
53765         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
53766
53767 2008-10-20  Simon Josefsson  <simon@josefsson.org>
53768
53769         * lib/getaddrinfo.h: Remove file.
53770         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
53771         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
53772         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
53773         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
53774         * modules/netdb: Substitute GNULIB_GETADDRINFO.
53775         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
53776         * tests/test-getaddrinfo.c: Likewise.
53777         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
53778         * NEWS: Mention change.
53779
53780 2008-10-19  Bruno Haible  <bruno@clisp.org>
53781
53782         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
53783
53784 2008-10-19  Bruno Haible  <bruno@clisp.org>
53785
53786         * lib/wait-process.c: Include simply <sys/wait.h>.
53787         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
53788         WIFSTOPPED): Remove fallback definitions.
53789         * modules/wait-process (Depends-on): Add sys_wait.
53790
53791         New module 'sys_wait'.
53792         * modules/sys_wait: New file.
53793         * lib/sys_wait.in.h: New file, partially copied from
53794         lib/wait-process.c.
53795         * m4/sys_wait_h.m4: New file.
53796         * doc/posix-headers/sys_wait.texi: Mention the new module.
53797
53798 2008-10-19  Bruno Haible  <bruno@clisp.org>
53799
53800         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
53801
53802 2008-10-19  Bruno Haible  <bruno@clisp.org>
53803
53804         Assume that waitpid() fills an 'int' status, not a 'union wait'.
53805         * lib/wait-process.c (WAIT_T): Remove type.
53806         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
53807         (wait_subprocess): Update.
53808
53809 2008-10-19  Bruno Haible  <bruno@clisp.org>
53810
53811         New module 'atoll'.
53812         * modules/atoll: New file.
53813         * lib/stdlib.in.h (atoll): New declaration.
53814         * lib/atoll.c: New file, from glibc with modifications.
53815         * m4/atoll.m4: New file.
53816         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
53817         HAVE_ATOLL.
53818         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
53819         * doc/posix-functions/atoll.texi: Mention the new module.
53820
53821 2008-10-19  Bruno Haible  <bruno@clisp.org>
53822
53823         Add strtoull() declaration to <stdlib.h>.
53824         * lib/stdlib.in.h (strtoull): New declaration.
53825         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
53826         Set HAVE_STRTOULL.
53827         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
53828         HAVE_STRTOULL.
53829         * modules/strtoull (Depends-on): Add stdlib.
53830         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53831         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
53832         HAVE_STRTOULL.
53833
53834 2008-10-19  Bruno Haible  <bruno@clisp.org>
53835
53836         Add strtoll() declaration to <stdlib.h>.
53837         * lib/stdlib.in.h (strtoll): New declaration.
53838         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
53839         Set HAVE_STRTOLL.
53840         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
53841         HAVE_STRTOLL.
53842         * modules/strtoll (Depends-on): Add stdlib.
53843         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53844         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
53845
53846 2008-10-19  Bruno Haible  <bruno@clisp.org>
53847
53848         * modules/bcopy (Depends-on): Add strings.
53849         (Include): Specify <strings.h>.
53850
53851 2008-10-19  Bruno Haible  <bruno@clisp.org>
53852
53853         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
53854
53855 2008-10-19  Bruno Haible  <bruno@clisp.org>
53856
53857         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
53858         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
53859         mingw.
53860
53861 2008-10-19  Bruno Haible  <bruno@clisp.org>
53862
53863         * lib/atanl.c: Don't include isnanl.h.
53864         * lib/cosl.c: Likewise.
53865         * lib/ldexpl.c: Likewise.
53866         * lib/logl.c: Likewise.
53867         * lib/sinl.c: Likewise.
53868         * lib/sqrtl.c: Likewise.
53869         * lib/tanl.c: Likewise.
53870
53871         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
53872         * lib/isnanf.h: Remove file.
53873         * lib/isnand.h: Remove file.
53874         * lib/isnanl.h: Remove file.
53875         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
53876         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
53877         macros.
53878         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
53879         HAVE_ISNANF, don't define it as a C macro.
53880         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
53881         HAVE_ISNAND, don't define it as a C macro.
53882         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
53883         HAVE_ISNANL, don't define it as a C macro.
53884         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
53885         HAVE_ISNAN[FDL].
53886         * modules/isnanf (Files): Remove lib/isnanf.h.
53887         (Depends-on): Add math.
53888         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
53889         (Include): Specify <math.h> instead of isnanf.h.
53890         * modules/isnand (Files): Remove lib/isnand.h.
53891         (Depends-on): Add math.
53892         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
53893         (Include): Specify <math.h> instead of isnand.h.
53894         * modules/isnanl (Files): Remove lib/isnanl.h.
53895         (Depends-on): Add math.
53896         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
53897         (Include): Specify <math.h> instead of isnanl.h.
53898         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
53899         HAVE_ISNAN[FDL].
53900         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
53901         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
53902         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
53903         * NEWS: Mention the change.
53904
53905 2008-10-18  Bruno Haible  <bruno@clisp.org>
53906
53907         Add getusershell(), setusershell(), endusershell() declarations to
53908         <unistd.h>.
53909         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
53910         declarations.
53911         * lib/getusershell.c: Include unistd.h.
53912         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
53913         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
53914         HAVE_GETUSERSHELL.
53915         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
53916         and HAVE_GETUSERSHELL.
53917         * modules/getusershell (Depends-on): Add unistd, extensions.
53918         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
53919         (Include): Specify <unistd.h>.
53920         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
53921         HAVE_GETUSERSHELL.
53922
53923 2008-10-18  Bruno Haible  <bruno@clisp.org>
53924
53925         Add a getloadavg() declaration to <stdlib.h>.
53926         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
53927         getloadavg declaration.
53928         (getloadavg): New declaration.
53929         * lib/getloadavg.c: Include <stdlib.h> first.
53930         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
53931         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
53932         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
53933         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
53934         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
53935         * modules/getloadavg (Depends-on): Add stdlib, extensions.
53936         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
53937         (Include): Specify <stdlib.h>.
53938         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
53939         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
53940
53941 2008-10-18  Bruno Haible  <bruno@clisp.org>
53942
53943         * lib/dirchownmod.c: Don't include lchmod.h.
53944
53945         Move the lchmod() declaration to <sys/stat.h>.
53946         * lib/lchmod.h: Remove file.
53947         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
53948         (lchmod): New declaration, moved here from lib/lchown.h.
53949         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
53950         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
53951         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
53952         and HAVE_LCHMOD.
53953         * modules/lchmod (Files): Remove lib/lchmod.h.
53954         (Depends-on): Add sys_stat, extensions.
53955         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
53956         (Include): Specify <sys/stat.h> instead of lchmod.h.
53957         * modules/sys_stat (Depends-on): Add link-warning.
53958         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
53959         definition of GL_LINK_WARNING.
53960         * NEWS: Mention the change.
53961
53962 2008-10-18  Bruno Haible  <bruno@clisp.org>
53963
53964         * lib/fchdir.c: Don't include dirfd.h.
53965         * lib/fts.c: Likewise.
53966         * lib/getcwd.c: Likewise.
53967         * lib/glob.c: Likewise.
53968
53969         Move the dirfd() declaration to <dirent.h>.
53970         * lib/dirfd.h: Remove file.
53971         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
53972         (dirfd): New declaration.
53973         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
53974         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
53975         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
53976         HAVE_DECL_DIRFD.
53977         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
53978         HAVE_DECL_DIRFD.
53979         * modules/dirfd (Files): Remove lib/dirfd.h.
53980         (Depends-on): Add dirent, extensions.
53981         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
53982         (Include): Specify <dirent.h> instead of dirfd.h.
53983         * modules/dirent (Depends-on): Add link-warning.
53984         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
53985         definition of GL_LINK_WARNING.
53986         * NEWS: Mention the change.
53987
53988 2008-10-18  Bruno Haible  <bruno@clisp.org>
53989
53990         Move the euidaccess() declaration to <unistd.h>.
53991         * lib/euidaccess.h: Remove file.
53992         * lib/unistd.in.h (euidaccess): New declaration.
53993         * lib/euidaccess.c: Don't include euidaccess.h.
53994         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
53995         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
53996         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
53997         and HAVE_EUIDACCESS.
53998         * modules/euidaccess (Files): Remove lib/euidaccess.h.
53999         (Depends-on): Add unistd.
54000         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54001         (Include): Specify <unistd.h> instead of euidaccess.h.
54002         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
54003         HAVE_EUIDACCESS.
54004         * NEWS: Mention the change.
54005
54006 2008-10-18  Bruno Haible  <bruno@clisp.org>
54007
54008         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
54009
54010         Move the getdomainname() declaration to <unistd.h>.
54011         * lib/getdomainname.h: Remove file.
54012         * lib/unistd.in.h (getdomainname): New declaration.
54013         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
54014         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
54015         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
54016         HAVE_GETDOMAINNAME.
54017         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54018         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
54019         * modules/getdomainname (Files): Remove lib/getdomainname.h.
54020         (Depends-on): Add unistd, extensions.
54021         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
54022         (Includes): Specify <unistd.h> instead of getdomainname.h.
54023         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
54024         HAVE_GETDOMAINNAME.
54025         * NEWS: Mention the change.
54026
54027 2008-10-18  Bruno Haible  <bruno@clisp.org>
54028
54029         * modules/dirent: New file.
54030         * m4/dirent_h.m4: New file.
54031         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
54032         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
54033         * modules/fchdir (Files): Remove lib/dirent.in.h.
54034         (Depends-on): Add dirent.
54035         (Makefile.am): Move rules to modules/dirent.
54036         * doc/posix-headers/dirent.texi: Mention the new module.
54037
54038 2008-10-18  Bruno Haible  <bruno@clisp.org>
54039
54040         Avoid -Wunused-parameter warnings in public gnulib header files.
54041         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
54042         macro.
54043         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
54044
54045 2008-10-18  Bruno Haible  <bruno@clisp.org>
54046
54047         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
54048         * doc/glibc-functions/error.texi: Mention the module 'error'.
54049         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
54050         * doc/glibc-functions/getdomainname.texi: Mention the module
54051         'getdomainname'.
54052         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
54053         * doc/glibc-functions/getpagesize.texi: Mention the module
54054         'getpagesize'.
54055         * doc/glibc-functions/getusershell.texi: Mention the module
54056         'getusershell'.
54057         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
54058         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
54059         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
54060         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
54061         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
54062         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
54063         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
54064         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
54065         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
54066         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
54067         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
54068         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
54069         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
54070         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
54071
54072 2008-10-17  Bruno Haible  <bruno@clisp.org>
54073
54074         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
54075         HP-UX and IRIX, use -0.0L.
54076         * tests/test-ceill.c (minus_zero): Likewise.
54077         * tests/test-floorl.c (minus_zero): Likewise.
54078         * tests/test-frexpl.c (minus_zero): Likewise.
54079         * tests/test-isnan.c (minus_zerol): Likewise.
54080         * tests/test-isnanl.h (minus_zero): Likewise.
54081         * tests/test-ldexpl.c (minus_zero): Likewise.
54082         * tests/test-roundl.c (minus_zero): Likewise.
54083         * tests/test-signbit.c (minus_zerol): Likewise.
54084         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
54085         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
54086         * tests/test-truncl.c (minus_zero): Likewise.
54087         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
54088         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
54089         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
54090         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
54091
54092 2008-10-17  Bruno Haible  <bruno@clisp.org>
54093
54094         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
54095         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
54096         that it gets activated only for gcc >= 3.0.
54097         * lib/dirent.in.h: Likewise.
54098         * lib/errno.in.h: Likewise.
54099         * lib/fcntl.in.h: Likewise.
54100         * lib/float.in.h: Likewise.
54101         * lib/iconv.in.h: Likewise.
54102         * lib/inttypes.in.h: Likewise.
54103         * lib/locale.in.h: Likewise.
54104         * lib/math.in.h: Likewise.
54105         * lib/netdb.in.h: Likewise.
54106         * lib/netinet_in.in.h: Likewise.
54107         * lib/search.in.h: Likewise.
54108         * lib/signal.in.h: Likewise.
54109         * lib/spawn.in.h: Likewise.
54110         * lib/stdarg.in.h: Likewise.
54111         * lib/stdint.in.h: Likewise.
54112         * lib/stdio.in.h: Likewise.
54113         * lib/stdlib.in.h: Likewise.
54114         * lib/string.in.h: Likewise.
54115         * lib/strings.in.h: Likewise.
54116         * lib/sys_file.in.h: Likewise.
54117         * lib/sys_ioctl.in.h: Likewise.
54118         * lib/sys_select.in.h: Likewise.
54119         * lib/sys_socket.in.h: Likewise.
54120         * lib/sys_stat.in.h: Likewise.
54121         * lib/sys_time.in.h: Likewise.
54122         * lib/sysexits.in.h: Likewise.
54123         * lib/time.in.h: Likewise.
54124         * lib/unistd.in.h: Likewise.
54125         * lib/wchar.in.h: Likewise.
54126         * lib/wctype.in.h: Likewise.
54127         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54128
54129 2008-10-17  Jim Meyering  <meyering@redhat.com>
54130
54131         ignore-value: don't depend on inline module
54132         * modules/ignore-value (Depends-on): Remove 'inline'.
54133         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
54134         Suggestion from Bruno Haible.
54135
54136 2008-10-17  Bruno Haible  <bruno@clisp.org>
54137
54138         New implementation of condition variables for Win32.
54139         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
54140         (gl_linked_waitqueue_t): New type.
54141         (gl_cond_t): Use it.
54142         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
54143         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
54144         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
54145         (glthread_cond_init_func, glthread_cond_wait_func,
54146         glthread_cond_timedwait_func, glthread_cond_signal_func,
54147         glthread_cond_broadcast_func, glthread_cond_destroy_func):
54148         Reimplemented on the basis of gl_linked_waitqueue_t.
54149         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
54150         gl_waitqueue_t.
54151         (gl_rwlock_t): Update.
54152         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
54153
54154 2008-10-17  Simon Josefsson  <simon@josefsson.org>
54155
54156         * modules/recvfrom (Depends-on): Add dependency on getpeername.
54157         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54158
54159 2008-10-17  Jim Meyering  <meyering@redhat.com>
54160
54161         ignore-value: new module
54162         * modules/ignore-value: New file.
54163         * lib/ignore-value.h: New file.
54164         * MODULES.html.sh (Compiler warning management): New section,
54165         just for this module.  More to come.
54166
54167 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
54168
54169         open-safer.c: avoid 'signed and unsigned in conditional...' warning
54170         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
54171         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
54172
54173 2008-10-16  Jim Meyering  <meyering@redhat.com>
54174
54175         openat-die.c: avoid 'no previous prototype' warning
54176         * lib/openat-die.c: Include "openat.h".
54177         Reported by Reuben Thomas <rrt@sc3d.org>.
54178
54179 2008-10-16  Simon Josefsson  <simon@josefsson.org>
54180
54181         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
54182         * lib/netdb.in.h: Fix typo.
54183         Reported by Bruno Haible  <bruno@clisp.org>
54184
54185         * lib/netdb.in.h: Include sys/socket.h for platforms without
54186         netdb.h, to get structures like hostent on MinGW.
54187         * modules/netdb (Depends-on): Add sys_socket.
54188
54189 2008-10-15  Simon Josefsson  <simon@josefsson.org>
54190
54191         * modules/netdb, modules/netdb-tests: New file.
54192         * m4/netdb_h.m4: New file.
54193         * lib/netdb.in.h: Add, currently just an empty file pending
54194         definitions.
54195         * tests/test-netdb.c: New file.
54196         * doc/posix-headers/netdb.texi: Mention that we replace it if
54197         needed.
54198         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54199         netdb.
54200
54201 2008-10-15  Simon Josefsson  <simon@josefsson.org>
54202
54203         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
54204         with code.
54205
54206 2008-10-13  Bruno Haible  <bruno@clisp.org>
54207
54208         * lib/glthread/cond.c (glthread_cond_wait_func,
54209         glthread_cond_timedwait_func): Add a comment.
54210
54211 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54212
54213         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
54214         * tests/test-select.c: Likewise,
54215
54216 2008-10-13  Bruno Haible  <bruno@clisp.org>
54217
54218         * lib/glthread/cond.c (glthread_cond_wait_func,
54219         glthread_cond_timedwait_func): Fix variable name.
54220         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
54221
54222 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
54223
54224         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
54225         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
54226         struct sockaddr.sa_len.
54227         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
54228
54229 2008-10-13  Simon Josefsson  <simon@josefsson.org>
54230
54231         * build-aux/pmccabe2html: Add css and css_url parameters.
54232
54233 2008-10-12  Bruno Haible  <bruno@clisp.org>
54234
54235         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
54236         calling aclx_get.
54237         Reported by Rainer Tammer <tammer@tammer.net>.
54238
54239 2008-10-12  Bruno Haible  <bruno@clisp.org>
54240
54241         Use msvcrt aware primitives for creation/termination of Win32 threads.
54242         * lib/glthread/thread.c: Include <process.h>.
54243         (glthread_create_func): Use _beginthreadex instead of CreateThread.
54244         (wrapper_func): Update signature.
54245         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
54246
54247 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
54248             Bruno Haible  <bruno@clisp.org>
54249
54250         Provide a Win32 implementation of the 'cond' module.
54251         * lib/glthread/cond.h [USE_WIN32]: New implementation.
54252         * lib/glthread/cond.c (glthread_cond_init_func,
54253         glthread_cond_wait_func, glthread_cond_timedwait_func,
54254         glthread_cond_signal_func, glthread_cond_broadcast_func,
54255         glthread_cond_destroy_func) [USE_WIN32]: New functions.
54256         * modules/cond (Dependencies): Add gettimeofday.
54257
54258 2008-10-11  Bruno Haible  <bruno@clisp.org>
54259
54260         Make sleep work on older versions of mingw.
54261         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
54262         only whether it exists.
54263         * doc/posix-functions/sleep.texi: Mention the problem with older
54264         versions of mingw.
54265
54266 2008-10-11  Bruno Haible  <bruno@clisp.org>
54267
54268         New module 'shutdown'.
54269         * modules/shutdown: New file.
54270         * lib/sys_socket.in.h (shutdown): New declaration.
54271         * lib/winsock.c (shutdown): New function.
54272         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
54273         GNULIB_SHUTDOWN.
54274         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
54275         * doc/posix-functions/shutdown.texi: Document the new module.
54276
54277 2008-10-11  Jim Meyering  <meyering@redhat.com>
54278
54279         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
54280
54281 2008-10-11  Bruno Haible  <bruno@clisp.org>
54282
54283         New module 'fclose'.
54284         * modules/fclose: New file.
54285         * lib/stdio.in.h (fclose): New declaration.
54286         * lib/fclose.c: New file.
54287         * m4/fclose.m4: New file.
54288         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
54289         REPLACE_FCLOSE.
54290         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
54291         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
54292         REPLACE_FCLOSE.
54293         * modules/close (Depends-on): fclose.
54294         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
54295
54296 2008-10-11  Bruno Haible  <bruno@clisp.org>
54297
54298         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
54299         set errno and don't call _close.
54300
54301 2008-10-10  Bruno Haible  <bruno@clisp.org>
54302
54303         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
54304         ACL, not afterwards. Fixes test failure on Cygwin.
54305
54306 2008-10-09  Ben Pfaff  <blp@gnu.org>
54307
54308         * build-aux/announce-gen: Fix gnulib version related part of usage
54309         message.  Die with a useful error message if no tarballs are
54310         found.
54311
54312 2008-10-10  Jim Meyering  <meyering@redhat.com>
54313
54314         bootstrap: use git's --depth=N option only if it's supported
54315         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
54316         recognize the --depth option.  Reported by Pádraig Brady.
54317
54318 2008-10-09  Bruno Haible  <bruno@clisp.org>
54319
54320         New module 'ioctl'.
54321         * modules/ioctl: New file.
54322         * lib/sys_socket.in.h (ioctl): Remove declaration.
54323         * lib/winsock.c: Include <sys/ioctl.h>.
54324         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
54325         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
54326         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
54327         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
54328         * doc/posix-functions/ioctl.texi: Mention the new module.
54329
54330 2008-10-09  Bruno Haible  <bruno@clisp.org>
54331
54332         New module 'sys_ioctl'.
54333         * lib/sys_ioctl.in.h: New file.
54334         * m4/sys_ioctl_h.m4: New file.
54335         * modules/sys_ioctl: New file.
54336         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
54337
54338 2008-10-09  Bruno Haible  <bruno@clisp.org>
54339
54340         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
54341         * lib/winsock.c: Include <stdarg.h>.
54342         (rpl_ioctl): Change to second argument 'int' and then varargs.
54343
54344 2008-10-09  Bruno Haible  <bruno@clisp.org>
54345
54346         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
54347         when the sys_socket module is present and the system has <winsock2.h>.
54348
54349 2008-10-09  Bruno Haible  <bruno@clisp.org>
54350
54351         * doc/posix-functions/close.texi: Mention module 'close' instead of
54352         module 'sys_socket'.
54353
54354 2008-10-09  Bruno Haible  <bruno@clisp.org>
54355
54356         * doc/glibc-headers/sys_ioctl.texi: New file.
54357         * doc/gnulib.texi: Include it.
54358
54359 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54360             Bruno Haible  <bruno@clisp.org>
54361
54362         Combine the two replacements of 'close'.
54363         * lib/sys_socket.in.h (close): Define to a reminder to include
54364         <unistd.h>.
54365         (_gl_close_fd_maybe_socket): New declaration.
54366         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
54367         * lib/winsock.c (close): Remove undefinition.
54368         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
54369         needed for the gnulib module 'close'.
54370         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
54371         define to an error symbol or to a warning, if suitable.
54372         * lib/close.c: Include <sys/socket.h>.
54373         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
54374         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
54375         UNISTD_H_HAVE_WINSOCK2_H.
54376         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
54377         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54378         UNISTD_H_HAVE_WINSOCK2_H.
54379         * modules/sys_socket (Files): Add m4/unistd_h.m4.
54380         (configure.ac): Set a module indicator.
54381         (Makefile.am): Substitute GNULIB_CLOSE.
54382         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
54383         * modules/poll-tests (Depends-on): Add close.
54384         * modules/select-tests (Depends-on): Likewise.
54385
54386 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54387             Bruno Haible  <bruno@clisp.org>
54388
54389         New module 'close'.
54390         * modules/close: New file.
54391         * lib/unistd.in.h (close): Move declaration out of the
54392         FCHDIR_REPLACEMENT scope.
54393         (_gl_unregister_fd): New declaration.
54394         * lib/close.c: New file.
54395         * lib/fchdir.c (rpl_close): Remove function.
54396         * m4/close.m4: New file.
54397         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
54398         close.
54399         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
54400         REPLACE_CLOSE.
54401         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
54402         REPLACE_CLOSE.
54403         * modules/fchdir (Depends-on): Add close.
54404
54405 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54406             Bruno Haible  <bruno@clisp.org>
54407
54408         * lib/fcntl.in.h (open): Simplify conditionals.
54409         (_gl_register_fd): New declaration.
54410         * lib/fchdir.c (rpl_open): Remove function.
54411         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
54412         also.
54413         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
54414         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
54415         open.
54416
54417 2008-10-09  Jim Meyering  <meyering@redhat.com>
54418
54419         GNUmakefile: use the more name-space-friendly "_version"
54420         * top/GNUmakefile (_dummy): Update.
54421         (_version): Rename from "version".
54422
54423 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54424             Bruno Haible  <bruno@clisp.org>
54425
54426         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
54427         rpl_close.
54428         (_gl_register_fd): New function, extracted from rpl_open.
54429         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
54430         (rpl_open, rpl_opendir): Use _gl_register_fd.
54431
54432 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
54433
54434         Fix organization of 'open' replacement.
54435         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
54436         (gl_FUNC_OPEN): Use it.
54437         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
54438
54439 2008-10-08  Bruno Haible  <bruno@clisp.org>
54440
54441         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
54442
54443 2008-10-08  Simon Josefsson  <simon@josefsson.org>
54444
54445         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
54446         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
54447         listen).
54448
54449 2008-10-08  Eric Blake  <ebb9@byu.net>
54450
54451         GNUmakefile: add 'make version' target
54452         * top/GNUmakefile (_curr-ver): Split version update rules...
54453         (version): ...into a target.
54454
54455 2008-10-07  Bruno Haible  <bruno@clisp.org>
54456
54457         Use a more portable replacement expression for -0.0L.
54458         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
54459         instead of -0.0L. Fix m4 quotation.
54460
54461         * tests/test-signbit.c: Include <float.h>.
54462         (minus_zero): New variable.
54463         (test_signbitl): Use minus_zero instead of -zero.
54464         * modules/signbit-tests (Depends-on): Add float.
54465
54466         * tests/test-ceill.c: Include <float.h>.
54467         (zero): Remove variable.
54468         (minus_zero): New variable.
54469         (main): Use minus_zero instead of -zero.
54470         * modules/ceill-tests (Depends-on): Add float.
54471
54472         * tests/test-floorl.c: Include <float.h>.
54473         (zero): Remove variable.
54474         (minus_zero): New variable.
54475         (main): Use minus_zero instead of -zero.
54476         * modules/floorl-tests (Depends-on): Add float.
54477
54478         * tests/test-roundl.c: Include <float.h>.
54479         (zero): Remove variable.
54480         (minus_zero): New variable.
54481         (main): Use minus_zero instead of -zero.
54482         * modules/roundl-tests (Depends-on): Add float.
54483
54484         * tests/test-truncl.c: Include <float.h>.
54485         (zero): Remove variable.
54486         (minus_zero): New variable.
54487         (main): Use minus_zero instead of -zero.
54488         * modules/truncl-tests (Depends-on): Add float.
54489
54490         * tests/test-frexpl.c (zero): Remove variable.
54491         (minus_zero): New variable.
54492         (main): Use minus_zero instead of -zero.
54493         * modules/frexpl-tests (Depends-on): Add float.
54494
54495         * tests/test-isnan.c (zerol): Remove variable.
54496         (minus_zerol): New variable.
54497         (test_long_double): Use minus_zerol instead of -zerol.
54498         * modules/isnan-tests (Depends-on): Add float.
54499
54500         * tests/test-isnanl.h (zero): Remove variable.
54501         (minus_zero): New variable.
54502         (main): Use minus_zero instead of -zero.
54503         * modules/isnanl-nolibm-tests (Depends-on): Add float.
54504         * modules/isnanl-tests (Depends-on): Add float.
54505
54506         * tests/test-ldexpl.c (zero): Remove variable.
54507         (minus_zero): New variable.
54508         (main): Use minus_zero instead of -zero.
54509         * modules/ldexpl-tests (Depends-on): Add float.
54510
54511         * tests/test-snprintf-posix.h (zerol): Remove variable.
54512         (minus_zerol): New variable.
54513         (test_function): Use minus_zerol instead of -zerol.
54514         * modules/snprintf-posix-tests (Depends-on): Add float.
54515         * modules/vsnprintf-posix-tests (Depends-on): Add float.
54516
54517         * tests/test-sprintf-posix.h (zerol): Remove variable.
54518         (minus_zerol): New variable.
54519         (test_function): Use minus_zerol instead of -zerol.
54520         * modules/sprintf-posix-tests (Depends-on): Add float.
54521         * modules/vsprintf-posix-tests (Depends-on): Add float.
54522
54523         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
54524         (minus_zerol): New variable.
54525         (test_function): Use minus_zerol instead of -zerol.
54526         * modules/vasnprintf-posix-tests (Depends-on): Add float.
54527
54528         * tests/test-vasprintf-posix.c (zerol): Remove variable.
54529         (minus_zerol): New variable.
54530         (test_function): Use minus_zerol instead of -zerol.
54531         * modules/vasprintf-posix-tests (Depends-on): Add float.
54532
54533 2008-10-07  Simon Josefsson  <simon@josefsson.org>
54534
54535         * MODULES.html.sh (Support for building documentation): Mention
54536         pmccabe2html.  Sort entries.
54537
54538         Add pmccabe2html module, from gnupdf.
54539         * build-aux/pmccabe.css: New file.
54540         * build-aux/pmccabe2html: New file.
54541         * m4/pmccabe2html.m4: New file.
54542         * modules/pmccabe2html: New file.
54543
54544 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
54545
54546         flock: new module
54547         * MODULES.html.sh: Add to list of modules.
54548         * lib/flock.c: flock implementation for Windows and Unix systems
54549         which have fcntl.
54550         * doc/glibc-functions/flock.texi: Update documentation.
54551         * lib/sys_file.in.h: <sys/file.h> header file.
54552         * m4/flock.m4: M4 macros.
54553         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
54554         * modules/flock: flock module.
54555         * modules/flock-tests: flock tests module.
54556         * modules/sys_file: sys/file.h module.
54557         * tests/test-flock.c: test suite for flock.
54558
54559 2008-10-06  Jim Meyering  <meyering@redhat.com>
54560
54561         bootstrap: check for LT_INIT more portably still ;-)
54562         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
54563         Spotted by Bruno Haible.
54564
54565 2008-10-06  Eric Blake  <ebb9@byu.net>
54566
54567         test-signbit: avoid tripping Irix cc bug on -0.0L
54568         * tests/test-signbit.c (minus_zerol): Delete, and replace with
54569         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
54570         entire testsuite consistent and avoids an Irix 6.2 bug.
54571
54572 2008-10-05  Bruno Haible  <bruno@clisp.org>
54573             Jim Meyering  <jim@meyering.net>
54574
54575         Add an option for ignoring EPIPE during close_stdout.
54576         * lib/closeout.h: Include <stdbool.h>.
54577         (close_stdout_set_ignore_EPIPE): New declaration.
54578         * lib/closeout.c: Include <stdbool.h>.
54579         (ignore_EPIPE): New variable.
54580         (close_stdout_set_ignore_EPIPE): New function.
54581         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
54582         * lib/close-stream.c (close_stream): Mention the possible EPIPE
54583         failure.
54584         * modules/closeout (Depends-on): Add stdbool.
54585
54586 2008-10-05  Bruno Haible  <bruno@clisp.org>
54587
54588         * modules/accept: New file.
54589         * modules/bind: New file.
54590         * modules/connect: New file.
54591         * modules/getpeername: New file.
54592         * modules/getsockname: New file.
54593         * modules/getsockopt: New file.
54594         * modules/listen: New file.
54595         * modules/recv: New file.
54596         * modules/recvfrom: New file.
54597         * modules/send: New file.
54598         * modules/sendto: New file.
54599         * modules/setsockopt: New file.
54600         * modules/socket: New file.
54601         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
54602         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
54603         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
54604         the particular module is requested. Add a link warning when the
54605         particular module is not requested.
54606         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
54607         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
54608         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
54609         the particular module is requested.
54610         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
54611         gl_SYS_SOCKET_H_DEFAULTS): New macros.
54612         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
54613         * modules/sys_socket (Depends-on): Add link-warning.
54614         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
54615         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
54616         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
54617         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
54618         GL_LINK_WARNING.
54619         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
54620         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
54621         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
54622         * doc/posix-functions/getpeername.texi: Mention the new module
54623         'getpeername'.
54624         * doc/posix-functions/getsockname.texi: Mention the new module
54625         'getsockname'.
54626         * doc/posix-functions/getsockopt.texi: Mention the new module
54627         'getsockopt'.
54628         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
54629         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
54630         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
54631         * doc/posix-functions/send.texi: Mention the new module 'send'.
54632         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
54633         * doc/posix-functions/setsockopt.texi: Mention the new module
54634         'setsockopt'.
54635         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
54636         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
54637         listen, connect, accept.
54638         * modules/select-tests (Depends-on): Likewise.
54639
54640 2008-10-05  Bruno Haible  <bruno@clisp.org>
54641
54642         * lib/winsock.c (strerror): Remove unused #undef.
54643         (rpl_close): Remove unused local variable.
54644
54645         * modules/sys_socket (Depends-on); Add errno.
54646
54647 2008-10-05  Bruno Haible  <bruno@clisp.org>
54648
54649         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
54650         (select): Add a link warning when the 'select' module is not used.
54651         * modules/sys_select (Depends-on): Add link-warning.
54652         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
54653         Suggested by Paolo Bonzini.
54654
54655 2008-10-05  Jim Meyering  <meyering@redhat.com>
54656
54657         bootstrap: check for LT_INIT more portably
54658         * build-aux/bootstrap: Avoid using grep -E, since it's not
54659         portable enough.  Suggestion from Bruno Haible.
54660
54661 2008-10-05  Bruno Haible  <bruno@clisp.org>
54662
54663         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
54664         as being fixed by gnulib.
54665
54666 2008-10-05  Bruno Haible  <bruno@clisp.org>
54667
54668         * modules/select-tests: New file, mostly copied from
54669         modules/sys_select-tests.
54670         * tests/test-select.c: New file, mostly copied from
54671         tests/test-sys_select.c.
54672         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
54673         * modules/sys_select-tests (Depends-on): Remove all dependencies.
54674         (Makefile.am): Remove test_sys_select_LDADD.
54675
54676         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
54677         to an undefined symbol, for an error message.
54678         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
54679         (gl_SYS_SELECT_H_DEFAULTS): New macro.
54680         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
54681         winsock-select.c here.
54682         * modules/sys_select (Files): Remove lib/winsock-select.c.
54683         (Depends-on): Remove alloca.
54684         (Makefile.am): Substitute GNULIB_SELECT.
54685         * modules/select: New file.
54686         * doc/posix-functions/select.texi: Update.
54687
54688 2008-10-05  Bruno Haible  <bruno@clisp.org>
54689
54690         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
54691         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
54692         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
54693         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
54694         getdtablesize.
54695         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
54696         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
54697
54698 2008-10-05  Bruno Haible  <bruno@clisp.org>
54699
54700         * modules/getdtablesize-tests: New file.
54701         * tests/test-getdtablesize.c: New file.
54702
54703         New module 'getdtablesize'.
54704         * lib/unistd.in.h (getdtablesize): New declaration.
54705         * lib/getdtablesize.c: New file.
54706         * m4/getdtablesize.m4: New file.
54707         * modules/getdtablesize: New file.
54708         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54709         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
54710         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
54711         HAVE_GETDTABLESIZE.
54712         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
54713
54714 2008-10-05  Bruno Haible  <bruno@clisp.org>
54715
54716         * modules/sched (Makefile.am): Fix typo.
54717         Reported by Simon Josefsson.
54718
54719 2008-10-05  Jim Meyering  <meyering@redhat.com>
54720
54721         bootstrap: check for LT_INIT, too
54722         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
54723         are deprecated.  Suggestion from Ralf Wildenhues.
54724
54725 2008-10-05  Bruno Haible  <bruno@clisp.org>
54726
54727         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
54728         overriding them by ours.
54729         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
54730
54731 2008-10-05  Jim Meyering  <meyering@redhat.com>
54732
54733         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
54734         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
54735         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
54736
54737 2008-10-04  Bruno Haible  <bruno@clisp.org>
54738
54739         * modules/dup2 (License): Change to LGPLv2+.
54740         * modules/sleep (License): Likewise.
54741         * modules/perror (License): Likewise.
54742         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
54743         Blake.
54744         * modules/signal (License): Likewise.
54745         * modules/sigprocmask (License): Likewise.
54746         * modules/raise (License): Change to LGPLv2+, with approval by Jim
54747         Meyering.
54748
54749 2008-10-04  Bruno Haible  <bruno@clisp.org>
54750
54751         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
54752         Reported by Rainer Tammer <tammer@tammer.net>.
54753
54754 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
54755             Bruno Haible  <bruno@clisp.org>
54756
54757         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
54758         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
54759         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
54760
54761 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
54762
54763         filevercmp: new module
54764         * lib/filevercmp.h: New function filevercmp comparing version strings.
54765         * lib/filevercmp.c: Implementation of filevercmp function.
54766         * modules/filevercmp: Module metadata.
54767         * tests/test-filevercmp.c: Unit test for new module.
54768         * modules/filevercmp-tests: Unit test metadata.
54769         * MODULES.html.sh: Add filevercmp module.
54770
54771 2008-10-03  Bruno Haible  <bruno@clisp.org>
54772
54773         * lib/c-ctype.h: Add comment.
54774         Reported by Jim Meyering.
54775
54776 2008-10-02  Bruno Haible  <bruno@clisp.org>
54777
54778         * modules/posix_spawn-internal (Depends-on): Add 'open'.
54779
54780 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54781
54782         * build-aux/bootstrap: Allow renaming bootstrap, and change the
54783         name of bootstrap.conf accordingly.
54784
54785 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54786
54787         * build-aux/bootstrap: Install git-merge-changelog configuration
54788         items into .gitconfig if needed.
54789
54790 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
54791
54792         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
54793         git repository, and initialize/update it accordingly.
54794
54795 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
54796
54797         * modules/fsync-tests: New file.
54798         * tests/test-fsync.c: New file.
54799
54800         New module 'fsync'.
54801         * lib/fsync.c: New file.
54802         * m4/fsync.m4: New file.
54803         * modules/fsync: New file.
54804         * lib/unistd.in.h (fsync): New declaration.
54805         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
54806         GNULIB_FSYNC and HAVE_FSYNC.
54807         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
54808         * MODULES.html.sh (posix_functions): Add fsync.
54809         * doc/posix-functions/fsync.texi: Mention the new module.
54810
54811 2008-10-02  Jim Meyering  <meyering@redhat.com>
54812
54813         fts.c: sync with similar code from coreutils' remove.c
54814         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
54815         Guard also with "#if defined __linux__", since for now at least,
54816         this code is Linux-kernel-specific.
54817
54818 2008-10-02  Jim Meyering  <meyering@redhat.com>
54819
54820         fts: bug fixes
54821         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
54822         Include <sys/vfs.h>, not <sys/statfs.h>.
54823
54824         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
54825         Include <sys/vfs.h>, not <sys/statfs.h>.
54826
54827 2008-10-01  Bruno Haible  <bruno@clisp.org>
54828
54829         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
54830         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
54831         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
54832         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
54833         * doc/posix-functions/posix_spawnp.texi: Likewise.
54834         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
54835         whether posix_spawn actually works.
54836         * m4/pipe.m4 (gl_PIPE): Likewise.
54837         * modules/execute (Files): Add m4/posix_spawn.m4.
54838         * modules/pipe (Files): Add m4/posix_spawn.m4.
54839         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
54840
54841 2008-10-01  Jim Meyering  <meyering@redhat.com>
54842
54843         remove trailing spaces
54844         * NEWS: Likewise.
54845         * lib/poll.c (poll): Likewise.
54846         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
54847         * lib/winsock.c (rpl_close): Likewise.
54848         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
54849         * modules/yield: Likewise.
54850         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
54851         * tests/test-sys_select.c (connect_to_socket): Likewise.
54852
54853         fts.c: adjust a new interface to be more generally useful
54854         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
54855         (fts_build): Adjust caller.
54856
54857 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54858
54859         * modules/cond-tests: New file.
54860         * tests/test-cond.c: New file.
54861
54862 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54863             Bruno Haible  <bruno@clisp.org>
54864
54865         * modules/cond (Dependencies): Add errno, time.
54866         * lib/glthread/cond.h: Include <time.h>.
54867         (gl_cond_define, gl_cond_define_initialized): Use the same definition
54868         across platforms.
54869
54870 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54871             Bruno Haible  <bruno@clisp.org>
54872
54873         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
54874
54875 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54876             Bruno Haible  <bruno@clisp.org>
54877
54878         * modules/tls-tests (Depends-on): Add thread, yield.
54879         (configure.ac): Remove all checks.
54880         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
54881         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
54882         gl_thread_self): Remove definitions. Include glthread/thread.h and
54883         glthread/yield.h instead.
54884         (test_tls): Pass an additional NULL argument to gl_thread_join.
54885
54886 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54887             Bruno Haible  <bruno@clisp.org>
54888
54889         * modules/lock-tests (Depends-on): Add thread, yield.
54890         (configure.ac): Remove all checks.
54891         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
54892         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
54893         gl_thread_self): Remove definitions. Include glthread/thread.h and
54894         glthread/yield.h instead.
54895         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
54896         additional NULL argument to gl_thread_join.
54897
54898 2008-09-30  Bruno Haible  <bruno@clisp.org>
54899
54900         Fix the Win32 implementation of the 'thread' module.
54901         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
54902         pointer type.
54903         (gl_thread_self): Invoke gl_thread_self_func.
54904         (gl_thread_self_func): New declaration.
54905         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
54906         (do_init_self_key, init_self_key): New functions.
54907         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
54908         Remove some fields.
54909         (running_threads, running_lock): Remove variables.
54910         (get_current_thread_handle): New function.
54911         (gl_thread_self_func, wrapper_func, glthread_create_func,
54912         glthread_join_func, gl_thread_exit_func): Largely rewritten and
54913         simplified.
54914
54915 2008-09-30  Bruno Haible  <bruno@clisp.org>
54916
54917         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
54918         files.
54919
54920 2008-09-30  Jim Meyering  <meyering@redhat.com>
54921
54922         fts.m4: correct the test for statfs.f_type
54923         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
54924         when checking for statfs.f_type.
54925
54926 2008-09-15  Simon Josefsson  <simon@josefsson.org>
54927
54928         tests: avoid some compiler warnings
54929         * tests/test-memchr.c (main): Pass NULL indirectly.
54930         * tests/test-getdate.c (main): Remove unused variable 'ret'.
54931
54932 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
54933
54934         getdate.y: disallow countable dayshifts like "4 yesterday ago"
54935         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
54936         exactly specified dayshifts.
54937         (dayshift): New rule.
54938         (rel): Add dayshift.
54939         (relative_time_table) [tomorrow, yesterday, today, now]:
54940         Use tDAY_SHIFT in place of tDAY_UNIT.
54941         * tests/test-getdate.c: Add tests for now-disallowed countable
54942         dayshifts, e.g., "4 yesterday ago".
54943
54944 2008-09-29  Bruno Haible  <bruno@clisp.org>
54945
54946         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
54947         * tests/test-posix_spawn1.in.sh: Renamed from
54948         tests/test-posix_spawn.in.sh.
54949         * tests/test-posix_spawn2.c: New file.
54950         * tests/test-posix_spawn2.in.sh: New file.
54951         * modules/posix_spawnp-tests (Files): Update.
54952         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
54953
54954 2008-09-29  Bruno Haible  <bruno@clisp.org>
54955
54956         Propagate effects of putenv/setenv/unsetenv to child processes.
54957         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
54958         * lib/pipe.c (create_pipe): Likewise.
54959
54960 2008-09-29  Bruno Haible  <bruno@clisp.org>
54961
54962         Enable use of shell scripts as executables in mingw.
54963         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
54964         run the program as a shell script.
54965         * lib/pipe.c (create_pipe): Likewise.
54966         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
54967         resulting array.
54968
54969 2008-09-29  Eric Blake  <ebb9@byu.net>
54970
54971         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
54972
54973 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
54974
54975         * doc/posix-functions/accept.texi: Update mingw problems.
54976         * doc/posix-functions/bind.texi: Update mingw problems.
54977         * doc/posix-functions/close.texi: Update mingw problems.
54978         * doc/posix-functions/connect.texi: Update mingw problems.
54979         * doc/posix-functions/getpeername.texi: Update mingw problems.
54980         * doc/posix-functions/getsockname.texi: Update mingw problems.
54981         * doc/posix-functions/getsockopt.texi: Update mingw problems.
54982         * doc/posix-functions/ioctl.texi: Update mingw problems.
54983         * doc/posix-functions/listen.texi: Update mingw problems.
54984         * doc/posix-functions/recv.texi: Update mingw problems.
54985         * doc/posix-functions/recvfrom.texi: Update mingw problems.
54986         * doc/posix-functions/select.texi: Update mingw problems.
54987         * doc/posix-functions/send.texi: Update mingw problems.
54988         * doc/posix-functions/sendto.texi: Update mingw problems.
54989         * doc/posix-functions/setsockopt.texi: Update mingw problems.
54990         * doc/posix-functions/socket.texi: Update mingw problems.
54991
54992 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
54993             Bruno Haible  <bruno@clisp.org>
54994
54995         * lib/sys_select.in.h: Include sys/time.h.
54996         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
54997         * modules/sys_select: Depend on sys_time.
54998         * tests/test-sys_select.c: Test that sys/select.h defines struct
54999         timeval fully.
55000
55001 2008-09-29  Bruno Haible  <bruno@clisp.org>
55002
55003         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
55004         * lib/sys_select.in.h: Likewise.
55005
55006 2008-09-29  Bruno Haible  <bruno@clisp.org>
55007
55008         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
55009
55010 2008-09-29  Bruno Haible  <bruno@clisp.org>
55011
55012         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
55013         Set LIBSOCKET instead of augmenting LIBS.
55014         * modules/sockets (Link): New section.
55015         * modules/sockets-tests (test_sockets_LDADD): New variable.
55016         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
55017         * modules/poll-tests (test_poll_LDADD): New variable.
55018         * NEWS: Document the change.
55019
55020 2008-09-29  Bruno Haible  <bruno@clisp.org>
55021
55022         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
55023         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
55024         ARPA_INET_H directly.
55025         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
55026
55027 2008-09-28  Bruno Haible  <bruno@clisp.org>
55028
55029         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
55030         from gl_HEADER_SYS_SOCKET.
55031         (gl_HEADER_SYS_SOCKET): Invoke it.
55032         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
55033
55034 2008-09-28  Bruno Haible  <bruno@clisp.org>
55035
55036         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
55037         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
55038         Needed on OSF/1 4.0.
55039
55040 2008-09-28  Bruno Haible  <bruno@clisp.org>
55041
55042         Override open more carefully.
55043         * lib/open.c (orig_open): New function.
55044         (rpl_open): Use orig_open instead of open.
55045         * lib/fcntl.in.h: Add special invocation convention.
55046         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
55047         (gl_FUNC_OPEN): Invoke it.
55048
55049         Override freopen more carefully.
55050         * lib/freopen.c (orig_freopen): New function.
55051         (rpl_freopen): Use orig_freopen instead of freopen.
55052         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
55053         (gl_FUNC_FREOPEN): Invoke it.
55054
55055         Override fopen more carefully.
55056         * lib/fopen.c (orig_fopen): New function.
55057         (rpl_fopen): Use orig_fopen instead of fopen.
55058         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
55059         (gl_FUNC_FOPEN): Invoke it.
55060         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
55061
55062 2008-09-28  Bruno Haible  <bruno@clisp.org>
55063
55064         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
55065         SIGPIPE.
55066
55067 2008-09-28  Bruno Haible  <bruno@clisp.org>
55068
55069         * tests/test-sigaction.c (handler, main): Disable the check whether
55070         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
55071         glibc systems with LinuxThreads.
55072
55073 2008-09-28  Bruno Haible  <bruno@clisp.org>
55074
55075         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
55076
55077         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
55078         with AIX xlc.
55079         * lib/fcntl.in.h (open): Likewise.
55080         Reported by Rainer Tammer <tammer@tammer.net>.
55081
55082 2008-09-28  Bruno Haible  <bruno@clisp.org>
55083
55084         * modules/posix_spawnp-tests: New file.
55085         * tests/test-posix_spawn.c: New file.
55086         * tests/test-posix_spawn.in.sh: New file.
55087
55088         New module 'posix_spawnp'.
55089         * modules/posix_spawnp: New file.
55090         * lib/spawnp.c: New file, from GNU libc with modifications.
55091         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
55092
55093         New module 'posix_spawn'.
55094         * modules/posix_spawn: New file.
55095         * lib/spawn.c: New file, from GNU libc with modifications.
55096         * doc/posix-functions/posix_spawn.texi: Mention the new module.
55097
55098         New module 'posix_spawnattr_destroy'.
55099         * modules/posix_spawnattr_destroy: New file.
55100         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
55101         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
55102         module.
55103
55104         New module 'posix_spawnattr_setsigmask'.
55105         * modules/posix_spawnattr_setsigmask: New file.
55106         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
55107         modifications.
55108         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
55109         new module.
55110
55111         New module 'posix_spawnattr_getsigmask'.
55112         * modules/posix_spawnattr_getsigmask: New file.
55113         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
55114         modifications.
55115         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
55116         new module.
55117
55118         New module 'posix_spawnattr_setsigdefault'.
55119         * modules/posix_spawnattr_setsigdefault: New file.
55120         * lib/spawnattr_setdefault.c: New file, from GNU libc with
55121         modifications.
55122         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
55123         new module.
55124
55125         New module 'posix_spawnattr_getsigdefault'.
55126         * modules/posix_spawnattr_getsigdefault: New file.
55127         * lib/spawnattr_getdefault.c: New file, from GNU libc with
55128         modifications.
55129         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
55130         new module.
55131
55132         New module 'posix_spawnattr_setschedpolicy'.
55133         * modules/posix_spawnattr_setschedpolicy: New file.
55134         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
55135         modifications.
55136         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
55137         new module.
55138
55139         New module 'posix_spawnattr_getschedpolicy'.
55140         * modules/posix_spawnattr_getschedpolicy: New file.
55141         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
55142         modifications.
55143         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
55144         new module.
55145
55146         New module 'posix_spawnattr_setschedparam'.
55147         * modules/posix_spawnattr_setschedparam: New file.
55148         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
55149         modifications.
55150         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
55151         new module.
55152
55153         New module 'posix_spawnattr_getschedparam'.
55154         * modules/posix_spawnattr_getschedparam: New file.
55155         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
55156         modifications.
55157         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
55158         new module.
55159
55160         New module 'posix_spawnattr_setpgroup'.
55161         * modules/posix_spawnattr_setpgroup: New file.
55162         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
55163         modifications.
55164         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
55165         module.
55166
55167         New module 'posix_spawnattr_getpgroup'.
55168         * modules/posix_spawnattr_getpgroup: New file.
55169         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
55170         modifications.
55171         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
55172         module.
55173
55174         New module 'posix_spawnattr_setflags'.
55175         * modules/posix_spawnattr_setflags: New file.
55176         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
55177         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
55178         module.
55179
55180         New module 'posix_spawnattr_getflags'.
55181         * modules/posix_spawnattr_getflags: New file.
55182         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
55183         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
55184         module.
55185
55186         New module 'posix_spawnattr_init'.
55187         * modules/posix_spawnattr_init: New file.
55188         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
55189         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
55190         module.
55191
55192         New module 'posix_spawn_file_actions_destroy'.
55193         * modules/posix_spawn_file_actions_destroy: New file.
55194         * lib/spawn_faction_destroy.c: New file, from GNU libc with
55195         modifications.
55196         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
55197         the new module.
55198
55199         New module 'posix_spawn_file_actions_addopen'.
55200         * modules/posix_spawn_file_actions_addopen: New file.
55201         * lib/spawn_faction_addopen.c: New file, from GNU libc with
55202         modifications.
55203         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
55204         the new module.
55205
55206         New module 'posix_spawn_file_actions_adddup2'.
55207         * modules/posix_spawn_file_actions_adddup2: New file.
55208         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
55209         modifications.
55210         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
55211         the new module.
55212
55213         New module 'posix_spawn_file_actions_addclose'.
55214         * modules/posix_spawn_file_actions_addclose: New file.
55215         * lib/spawn_faction_addclose.c: New file, from GNU libc with
55216         modifications.
55217         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
55218         the new module.
55219
55220         New module 'posix_spawn_file_actions_init'.
55221         * modules/posix_spawn_file_actions_init: New file.
55222         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
55223         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
55224         new module.
55225
55226         New module 'posix_spawn-internal'.
55227         * modules/posix_spawn-internal: New file.
55228         * lib/spawn_int.h: New file, from GNU libc with modifications.
55229         * lib/spawni.c: New file, from GNU libc with modifications.
55230         * m4/posix_spawn.m4: New file.
55231
55232         New module 'spawn'.
55233         * modules/spawn: New file.
55234         * lib/spawn.in.h: New file, from GNU libc with modifications.
55235         * m4/spawn_h.m4: New file.
55236         * doc/posix-headers/spawn.texi: Mention the new module.
55237
55238 2008-09-28  Bruno Haible  <bruno@clisp.org>
55239
55240         * modules/sched-tests: New file.
55241         * tests/test-sched.c: New file.
55242
55243         New module 'sched'.
55244         * modules/sched: New file.
55245         * lib/sched.in.h: New file.
55246         * m4/sched_h.m4: New file.
55247         * doc/posix-headers/sched.texi: Mention the new module.
55248
55249 2008-09-27  Eric Blake  <ebb9@byu.net>
55250
55251         Fix previous patch, and tweak references to $0.
55252         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
55253         (func_version, func_gnulib_dir): Don't call this program
55254         gnulib-tool.
55255         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
55256         with using $0 in function.
55257         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
55258         (func_fatal_error): Reuse the name the user invoked us with.
55259
55260 2008-09-27  Bruno Haible  <bruno@clisp.org>
55261
55262         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
55263         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
55264         (gl_ICONV_H): Not here.
55265         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
55266         instead of assigning ICONV_H directly.
55267
55268         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
55269         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
55270         WCHAR_H directly.
55271
55272 2008-09-27  Bruno Haible  <bruno@clisp.org>
55273
55274         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
55275         * modules/arpa_inet (Depends-on): Add link-warning.
55276         (Makefile.am): Insert the definition of GL_LINK-WARNING.
55277         * modules/unistd (Makefile.am): Likewise.
55278
55279 2008-09-26  Bruno Haible  <bruno@clisp.org>
55280
55281         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
55282         variables.
55283         (func_version): Essentially copied from gnulib-tool.
55284         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
55285         func_readlink): Copied from gnulib-tool.
55286
55287 2008-09-26  Bruno Haible  <bruno@clisp.org>
55288
55289         * gnulib-tool (func_version): Change directory to $gnulib_dir before
55290         invoking git-version-gen.
55291
55292 2008-09-26  Bruno Haible  <bruno@clisp.org>
55293
55294         * posix-modules: Update to directory names changed on 2008-01-19.
55295         Remove commas in output before splitting into words. No more need to
55296         avoid 'ftruncate' since 2007-02-19.
55297
55298 2008-09-26  Bruno Haible  <bruno@clisp.org>
55299
55300         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
55301
55302 2008-09-26  Bruno Haible  <bruno@clisp.org>
55303
55304         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
55305         * modules/fwriteerror (Depends-on): Add errno.
55306
55307 2008-09-26  Bruno Haible  <bruno@clisp.org>
55308
55309         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
55310         * tests/test-vc-list-files-cvs.sh: Likewise.
55311
55312 2008-09-26  Bruno Haible  <bruno@clisp.org>
55313
55314         * doc/posix-headers/sys_resource.texi: Reorder items.
55315
55316 2008-09-26  Jim Meyering  <meyering@redhat.com>
55317
55318         fts: tweak inode comparison function
55319         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
55320         inode numbers, as documented.
55321
55322         fts: sort dirent entries on inode number before traversing
55323         This avoids a quadratic, seek-related performance penalty when
55324         operating on a directory containing many entries (measurable at 10k;
55325         3.5 hours at 2 million entries with a cold cache) on certain types
55326         of file systems, including ext3 and ext4, but not tmpfs.
55327         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
55328         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
55329         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
55330         (fs_handles_readdir_ordered_dirents_efficiently): New function.
55331         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
55332         (fts_build): Set the stat.st_ino member from D_INO.
55333         If it is likely to be useful, sort dirent entries on inode number.
55334
55335         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
55336         and the struct statfs.f_type member.
55337         * modules/fts (Depends-on): Add d-ino.
55338
55339 2008-09-26  Bruno Haible  <bruno@clisp.org>
55340
55341         * modules/sigpipe-die (Depends-on): Add sigpipe.
55342
55343         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
55344         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
55345         and GNULIB_STDIO_H_SIGPIPE are set.
55346         * lib/stdio-write.c: New file.
55347         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
55348         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55349         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55350         REPLACE_STDIO_WRITE_FUNCS.
55351         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
55352         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55353         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55354         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
55355         * modules/stdio (Files): Add lib/stdio-write.c.
55356         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
55357         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
55358         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
55359         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
55360         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
55361         REPLACE_FPRINTF_POSIX.
55362         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
55363         REPLACE_PRINTF_POSIX.
55364         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
55365         REPLACE_VFPRINTF_POSIX.
55366         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
55367         REPLACE_VPRINTF_POSIX.
55368         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
55369         SIGPIPE issue.
55370         * doc/posix-functions/fputc.texi: Likewise.
55371         * doc/posix-functions/fputs.texi: Likewise.
55372         * doc/posix-functions/fwrite.texi: Likewise.
55373         * doc/posix-functions/printf.texi: Likewise.
55374         * doc/posix-functions/putc.texi: Likewise.
55375         * doc/posix-functions/putchar.texi: Likewise.
55376         * doc/posix-functions/puts.texi: Likewise.
55377         * doc/posix-functions/vfprintf.texi: Likewise.
55378         * doc/posix-functions/vprintf.texi: Likewise.
55379
55380         * modules/safe-write (Depends-on): Add write.
55381
55382         * modules/sigpipe-tests: New file.
55383         * tests/test-sigpipe.c: New file.
55384         * tests/test-sigpipe.sh: New file.
55385
55386         * modules/write: New file.
55387         * lib/unistd.in.h: Include <sys/types.h>.
55388         (write): New declaration.
55389         * lib/write.c: New file.
55390         * m4/write.m4: New file.
55391         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
55392         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
55393         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
55394         GNULIB_WRITE, REPLACE_WRITE.
55395         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
55396         and the SIGPIPE issue.
55397
55398         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
55399         (raise): New declaration.
55400         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
55401         (ext_signal): New function.
55402         (rpl_raise): New function.
55403         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
55404         GNULIB_SIGNAL_H_SIGPIPE.
55405         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
55406         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
55407
55408         * modules/sigpipe: New file.
55409         * m4/sigpipe.m4: New file.
55410
55411 2008-09-25  Derek Price  <derek@ximbiot.com>
55412             Bruno Haible  <bruno@clisp.org>
55413
55414         * gnulib-tool (func_import): Report all license incompatibilities, not
55415         just the first one.
55416
55417 2008-09-25  Bruno Haible  <bruno@clisp.org>
55418
55419         * gnulib-tool (func_import): When computing the edits, consider not
55420         only the Makefile.ams that exist but also those that will be generated.
55421
55422 2008-09-25  Simon Josefsson  <simon@josefsson.org>
55423
55424         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
55425         fixes gnulib-tool --test warning about duplicate dependency.
55426
55427 2008-09-25  Bruno Haible  <bruno@clisp.org>
55428
55429         * gnulib-tool: Don't ask the user to perform edits in the generated
55430         Makefile.ams.
55431         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
55432         apply to the Makefile.am being generated.
55433         (func_emit_tests_Makefile_am): Execute edits that apply to the
55434         Makefile.am being generated.
55435         (func_import): Setup list of Makefile.am edits before emitting the
55436         Makefile.ams, not at the end.
55437         (func_create_testdir): Update.
55438         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55439
55440 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55441
55442         * gnulib-tool (func_import): Store the --tests-base option in the
55443         comment in gnulib-cache.m4.
55444
55445 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
55446
55447         * NEWS: Document increased portability that sys_select now provides.
55448
55449         * lib/sys_select.in.h: Install select wrapper.
55450         * lib/sys_socket.in.h: Use more descriptive name when there is no
55451         select wrapper.
55452         * lib/winsock-select.c: New.
55453         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
55454         Require gl_HEADER_SYS_SOCKET.
55455         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
55456         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
55457         * tests/test-sys_select.c: Add functional tests.
55458
55459 2008-09-24  Eric Blake  <ebb9@byu.net>
55460
55461         open, fopen: close fd leak in last patch
55462         * lib/open.c (rpl_open): Close fd before returning error.
55463         * lib/fopen.c (rpl_fopen): Close fd before returning error.
55464         * doc/posix-functions/open.texi (open): Document that Irix also
55465         has the bug.
55466         * doc/posix-functions/fopen.texi (fopen): Likewise.
55467         Reported by Paolo Bonzini.
55468
55469 2008-09-24  Bruno Haible  <bruno@clisp.org>
55470
55471         Ensure that a filename ending in a slash cannot be used to access a
55472         non-directory.
55473         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
55474         to check whether it's really a directory.
55475         * lib/fopen.c: Include fcntl.h, unistd.h.
55476         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
55477         and fdopen().
55478         * modules/fopen (Depends-on): Add unistd.
55479         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
55480         * tests/test-fopen.c (main): Likewise.
55481         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
55482         * doc/posix-functions/fopen.texi: Likewise.
55483         Reported by Eric Blake.
55484
55485 2008-09-23  Eric Blake  <ebb9@byu.net>
55486
55487         c-stack: avoid compiler optimizations when provoking overflow
55488         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
55489         recursion harder to optimize, to ensure a stack overflow occurs.
55490         * tests/test-c-stack.c (recurse): Likewise.
55491         Borrowed from libsigsegv.
55492
55493         c-stack: work around Irix sigaltstack bug
55494         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
55495         whether sigaltstack uses wrong end of stack_t (copied in part from
55496         libsigsegv).
55497         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
55498         Irix bug, without requiring an over-allocation.
55499         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
55500         bug.
55501
55502         fopen: document mingw bug on directories
55503         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
55504         not allowing a stream visiting a directory, even though reading
55505         from such a stream is not portable.
55506
55507 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55508
55509         * lib/poll.c: Rewrite.
55510         * modules/poll: Depend on alloca.
55511
55512 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55513
55514         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
55515         instead define prototypes for a full set of wrappers.  Ensure
55516         that Cygwin does not use the compatibility code, which is only
55517         for MinGW.
55518         * lib/winsock.c: New.
55519         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
55520         * modules/sys_socket: Add lib/winsock.c.
55521
55522         * modules/poll-tests: Add errno and perror.
55523         * tests/test-poll.c: Use ioctl, not ioctlsocket.
55524
55525 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
55526
55527         * tests/test-poll.c: Downgrade minimum needed Winsock version.
55528
55529 2008-09-23  Bruno Haible  <bruno@clisp.org>
55530
55531         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
55532         * doc/glibc-functions/*: Likewise.
55533
55534 2008-09-23  Simon Josefsson  <simon@josefsson.org>
55535
55536         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
55537         success.
55538
55539 2008-09-22  Eric Blake  <ebb9@byu.net>
55540             Bruno Haible  <bruno@clisp.org>
55541
55542         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
55543         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
55544         supply %A but mishandle pseudo-NaN.
55545         Reported by Simon Josefsson.
55546
55547 2008-09-21  Bruno Haible  <bruno@clisp.org>
55548
55549         * tests/test-lock.c (main): Tweak skip message.
55550         * tests/test-tls.c (main): Likewise.
55551
55552 2008-09-21  Bruno Haible  <bruno@clisp.org>
55553
55554         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
55555         whether 'struct sigaction' has sa_sigaction here...
55556         (gl_PREREQ_SIG_HANDLER_H): ... not here.
55557         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
55558
55559 2008-09-21  Bruno Haible  <bruno@clisp.org>
55560
55561         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
55562         section.
55563         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
55564         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
55565         the new section.
55566         (Support for obsolete systems lacking POSIX:2001): New section.
55567         (String handling <string.h>): Move strdup to the new section.
55568         Suggested by Simon Josefsson and Paolo Bonzini.
55569
55570 2008-09-21  Bruno Haible  <bruno@clisp.org>
55571
55572         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
55573         exponents in %e and %g results on 'long double'. Needed for mingw's
55574         improved *printf functions.
55575         * tests/test-vasprintf-posix.c (test_function): Likewise.
55576         * tests/test-snprintf-posix.h (test_function): Likewise.
55577         * tests/test-sprintf-posix.h (test_function): Likewise.
55578         Reported by Eric Blake.
55579
55580 2008-09-21  Bruno Haible  <bruno@clisp.org>
55581
55582         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
55583         * tests/test-sprintf-posix.h (test_function): Likewise.
55584
55585 2008-09-21  Bruno Haible  <bruno@clisp.org>
55586
55587         * modules/getpass (Depends-on): Add strdup-posix.
55588
55589         New module 'strdup-posix'.
55590         * modules/strdup-posix: New file.
55591         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
55592         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
55593         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
55594         REPLACE_STRDUP.
55595         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
55596         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
55597         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55598         strdup-posix.
55599
55600         * modules/strdup (Depends-on): Remove malloc-posix.
55601
55602 2008-09-20  Bruno Haible  <bruno@clisp.org>
55603
55604         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
55605         Wildenhues.
55606
55607 2008-09-20  Bruno Haible  <bruno@clisp.org>
55608
55609         Ensure that wint_t gets defined on IRIX 5.3.
55610         * lib/wchar.in.h (wint_t): Define if not defined by the system.
55611         * lib/wctype.in.h (wint_t): Likewise.
55612         (__wctype_wint_t): Remove type.
55613         (isw*): Use wint_t instead of __wctype_wint_t.
55614         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
55615         * modules/wchar (Files): Add m4/wint_t.m4.
55616         (Makefile.am): Substitute HAVE_WINT_T.
55617         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
55618         * tests/test-wctype.c: Check that wint_t is defined.
55619         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
55620         * doc/posix-headers/wctype.texi: Likewise.
55621         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
55622
55623 2008-09-18  Bruno Haible  <bruno@clisp.org>
55624
55625         * gnulib-tool (func_exit): Update comment.
55626
55627 2008-09-18  Simon Josefsson  <simon@josefsson.org>
55628
55629         * modules/getaddrinfo (Depends-on): Remove strdup, this module
55630         assumes strdup exists and does not depend on strdup to return
55631         ENOMEM on out of memory conditions.
55632
55633 2008-09-18  Bruno Haible  <bruno@clisp.org>
55634
55635         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
55636         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
55637         digits for the exponent.
55638
55639 2008-09-18  Jim Meyering  <meyering@redhat.com>
55640             Bruno Haible  <bruno@clisp.org>
55641
55642         * lib/vasnprintf.c (decimal_point_char): Define also if
55643         NEED_PRINTF_INFINITE_LONG_DOUBLE.
55644
55645 2008-09-16  Bruno Haible  <bruno@clisp.org>
55646         and Eric Blake  <ebb9@byu.net>
55647
55648         vasnprintf: support Irix 5.3
55649         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
55650         that mishandle long double infinity.
55651         Reported by Tom G. Christensen.
55652
55653 2008-09-16  Bruno Haible  <bruno@clisp.org>
55654
55655         * doc/glibc-functions/scandir.texi: Mention the function is missing on
55656         Solaris 9.
55657         * doc/glibc-functions/alphasort.texi: Likewise.
55658         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
55659
55660 2008-09-16  Jim Meyering  <meyering@redhat.com>
55661
55662         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
55663         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
55664         a umask modification leak out of a subshell.  Otherwise, the
55665         opensolaris /bin/sh would be accepted and thus cause unwarranted
55666         failures in the coreutils test suite.
55667
55668 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
55669
55670         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
55671         to succeed.
55672
55673 2008-09-16  Jim Meyering  <meyering@redhat.com>
55674
55675         avoid spurious test failure when library is built without ACL support
55676         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
55677         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
55678         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
55679         * tests/test-copy-acl.sh: Likewise.
55680
55681 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55682
55683         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
55684         based on character occurrence counts.
55685
55686 2008-09-15  Eric Blake  <ebb9@byu.net>
55687
55688         tests: avoid some compiler warnings
55689         * tests/test-memchr.c (main): Pass NULL indirectly.
55690         * tests/test-closein.c (main): Avoid unused variable.
55691
55692 2008-09-15  Bruno Haible  <bruno@clisp.org>
55693
55694         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
55695         are missing on OpenBSD 4.0 individually.
55696         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55697
55698 2008-09-15  Bruno Haible  <bruno@clisp.org>
55699
55700         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
55701         * doc/posix-functions/strerror.texi: Mention also Cygwin.
55702         * doc/posix-functions/perror.texi: Likewise.
55703         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
55704         is missing.
55705         Reported by Eric Blake.
55706
55707         * lib/errno.in.h: Use replacement values >= 2000.
55708         Reported by Eric Blake.
55709
55710 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55711
55712         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
55713         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
55714         limit.
55715         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
55716         compareseq was aborted.
55717
55718 2008-09-14  Bruno Haible  <bruno@clisp.org>
55719
55720         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
55721         yvec_edit_count.
55722         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
55723         (fstrcmp_bounded): Simplify result computation accordingly.
55724
55725 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55726
55727         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
55728         (fstrcmp): Define in terms of fstrcmp_bounded.
55729         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
55730         lower_bound argument.
55731         Return quickly if the result is certainly < lower_bound.
55732         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
55733
55734 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55735
55736         * lib/diffseq.h (EARLY_ABORT): New macro.
55737         (compareseq): Change return type to bool. Return true when EARLY_ABORT
55738         evaluates to true.
55739
55740 2008-09-14  Bruno Haible  <bruno@clisp.org>
55741
55742         * modules/perror-tests: New file.
55743         * tests/test-perror.sh: New file.
55744         * tests/test-perror.c: New file.
55745
55746         New module 'perror'.
55747         * lib/stdio.in.h (perror): New declaration.
55748         * lib/perror.c: New file.
55749         * m4/perror.m4: New file.
55750         * modules/perror: New file.
55751         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
55752         * doc/posix-functions/perror.texi: Mention the perror module.
55753         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
55754         REPLACE_PERROR.
55755         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
55756         REPLACE_PERROR.
55757
55758 2008-09-14  Bruno Haible  <bruno@clisp.org>
55759
55760         * modules/stdio (Makefile.am): Reorder to match the order in
55761         lib/stdio.in.h.
55762         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
55763
55764 2008-09-13  Bruno Haible  <bruno@clisp.org>
55765
55766         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
55767
55768 2008-09-13  Bruno Haible  <bruno@clisp.org>
55769
55770         Extend strerror to cover the added errno values.
55771         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
55772         (rpl_strerror): Provide error messages for the added errno values and
55773         for the WSA* values.
55774         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
55775         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
55776         strerror.
55777         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
55778         * modules/strerror (Depends-on): Add errno.
55779         * doc/posix-functions/strerror.texi: Document the change.
55780         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
55781         and EOVERFLOW.
55782
55783 2008-09-13  Bruno Haible  <bruno@clisp.org>
55784
55785         * modules/EOVERFLOW: Remove file.
55786         * m4/eoverflow.m4: Remove file.
55787         * modules/EOVERFLOW-tests: Remove file.
55788         * tests/test-EOVERFLOW.c: Remove file.
55789         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
55790         * modules/ftell (Depends-on): Likewise.
55791         * modules/getdelim (Depends-on): Likewise.
55792         * modules/getugroups (Depends-on): Likewise.
55793         * modules/poll (Depends-on): Likewise.
55794         * modules/snprintf (Depends-on): Likewise.
55795         * modules/sprintf-posix (Depends-on): Likewise.
55796         * modules/vasnprintf (Depends-on): Likewise.
55797         * modules/vasprintf (Depends-on): Likewise.
55798         * modules/vfprintf-posix (Depends-on): Likewise.
55799         * modules/vsnprintf (Depends-on): Likewise.
55800         * modules/vsprintf-posix (Depends-on): Likewise.
55801         * modules/xvasprintf (Depends-on): Likewise.
55802         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
55803         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
55804         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
55805         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
55806         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
55807         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
55808         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
55809         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
55810         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
55811         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
55812         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
55813         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
55814         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
55815         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
55816         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
55817         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
55818         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
55819         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
55820         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
55821         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
55822         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
55823         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
55824         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
55825         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
55826         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
55827         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
55828         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
55829         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
55830         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
55831         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
55832         * MODULES.html.sh: Remove EOVERFLOW.
55833         * NEWS: Mention the change.
55834
55835 2008-09-13  Bruno Haible  <bruno@clisp.org>
55836
55837         * modules/errno-tests: New file.
55838         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
55839
55840         * lib/errno.in.h: New file.
55841         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
55842         * modules/errno: New file.
55843         * doc/posix-headers/errno.texi: Update documentation.
55844         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
55845
55846 2008-09-13  Bruno Haible  <bruno@clisp.org>
55847
55848         * tests/test-poll.c: Use #if for native Windows, rather than testing
55849         __MSVCRT__.
55850
55851 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55852             Bruno Haible  <bruno@clisp.org>
55853
55854         * lib/glob.c: Don't include <pwd.h> on native Windows.
55855         (WINDOWS32): New macro.
55856         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
55857
55858 2008-09-13  Bruno Haible  <bruno@clisp.org>
55859
55860         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
55861         (ETIMEDOUT): Remove macro.
55862         (glthread_cond_timedwait_multithreaded): New declaration.
55863         (glthread_cond_timedwait): Use it.
55864         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
55865         (glthread_cond_timedwait_multithreaded): New function.
55866
55867 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
55868
55869         * modules/poll-tests: Do not check for io.h.
55870         * tests/test-poll.c: Check for __MSVCRT__ instead.
55871
55872 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
55873
55874         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
55875         * modules/poll-tests: Add inet_pton, stdbool, sockets.
55876         * tests/test-poll.c: Use them.  Use _pipe on Windows.
55877
55878 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
55879
55880         * modules/poll-tests: New.
55881         * tests/test-poll.c: New.
55882
55883 2008-09-12  Eric Blake  <ebb9@byu.net>
55884
55885         frexp: test for NetBSD failure on -0.0
55886         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
55887         not all, bugs from NetBSD 3.0 have been fixed.
55888         * doc/posix-functions/frexp.texi (frexp): Document bug.
55889         Reported by Thomas Klausner.
55890
55891         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
55892         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
55893         literal -0.0.
55894         Reported by Jonathan C. Patschke <jp@centtech.com>.
55895
55896 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55897
55898         * lib/glthread/cond.h: Use dummy implementation also if
55899         USE_WIN32_THREADS.
55900
55901 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55902
55903         * modules/fnmatch-posix (License): Change to LGPLv2+.
55904         * modules/fnmatch-gnu (License): Likewise.
55905
55906 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55907
55908         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
55909
55910 2008-09-11  Jim Meyering  <meyering@redhat.com>
55911
55912         * users.txt: Add gtk-vnc.
55913
55914 2008-09-08  Simon Josefsson  <simon@josefsson.org>
55915
55916         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
55917         rotate amounts.
55918
55919         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
55920         required for 16-bit and 8-bit rotates.
55921         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
55922         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
55923         UINT8_MAX instead of hard-coded constants.
55924         Suggested by Paul Eggert.
55925
55926 2008-09-07  Bruno Haible  <bruno@clisp.org>
55927
55928         * tests/test-striconveh.c (main): Check behaviour when converting from
55929         UTF-7.
55930
55931         Make striconveh work better with stateful encodings.
55932         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
55933         that iconv does not increment the inptr when returning -1/EINVAL.
55934
55935 2008-09-07  Bruno Haible  <bruno@clisp.org>
55936
55937         * build-aux/config.rpath: Update according to libtool-2.2.6.
55938         * build-aux/config.libpath: Likewise.
55939
55940 2008-09-06  Bruno Haible  <bruno@clisp.org>
55941
55942         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
55943         * lib/freadptr.c (freadptr): Likewise.
55944         * lib/freadseek.c (freadptrinc): Likewise.
55945         Reported by Simon Josefsson.
55946
55947 2008-09-06  Bruno Haible  <bruno@clisp.org>
55948
55949         * modules/freadptr (License): Change to LGPLv2+.
55950         * modules/freadseek (License): Likewise.
55951         Suggested by Eric Blake.
55952
55953         * modules/memchr2 (License): Change to LGPLv2+.
55954         Approved by Eric Blake.
55955
55956 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55957             Bruno Haible  <bruno@clisp.org>
55958
55959         Make gnulib-tool work with native 'sed' on AIX.
55960         * gnulib-tool (sed_noop): New variable.
55961         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
55962         func_add_or_update, func_create_testdir): Use it to initialize sed
55963         script variables.
55964         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55965
55966 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
55967             Bruno Haible  <bruno@clisp.org>
55968
55969         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
55970         also works after #include directives.
55971
55972 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
55973
55974         getdate.y: reject an out-of-range timezone value
55975         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
55976         the range [-24...+24].  When specified with only one or two digits,
55977         * tests/test-getdate.c: Tests for the fix.
55978         * doc/getdate.texi: Document this change.
55979
55980 2008-09-03  Bruno Haible  <bruno@clisp.org>
55981
55982         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
55983
55984 2008-09-02  Simon Josefsson  <simon@josefsson.org>
55985
55986         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
55987         <bruce.korb@gmail.com> with ideas from Ben Pfaff
55988         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
55989         Blake <ebb9@byu.net>.
55990
55991         * tests/test-bitrotate.c: Add more test vectors.
55992
55993 2008-09-02  Eric Blake  <ebb9@byu.net>
55994
55995         vasnprintf-posix: handle large precision via %.*d
55996         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
55997         when handling it ourselves.
55998         * tests/test-vasnprintf-posix.c (test_function): Add test.
55999         * tests/test-snprintf-posix.h (test_function): Likewise.
56000         * tests/test-sprintf-posix.h (test_function): Likewise.
56001         * tests/test-vasprintf-posix.c (test_function): Likewise.
56002         Reported by Alain Guibert.
56003
56004 2008-09-01  Eric Blake  <ebb9@byu.net>
56005
56006         c-stack: make configure-time check more robust
56007         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
56008         successful sigaction call.
56009         Reported by Tom G. Christensen.
56010
56011 2008-09-01  Bruno Haible  <bruno@clisp.org>
56012
56013         New module 'findprog-lgpl'.
56014         * modules/findprog-lgpl: New file.
56015         * lib/findprog-lgpl.c: New file.
56016         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
56017         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
56018         to decide whether to use strdup or xstrdup, concatenated_filename or
56019         xconcatenated_filename.
56020
56021 2008-09-01  Bruno Haible  <bruno@clisp.org>
56022
56023         Split module 'concat-filename' into 'concat-filename' (LGPL) and
56024         'xconcat-filename' (GPL).
56025         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
56026         (License): Change to LGPLv2+.
56027         * modules/xconcat-filename: New file.
56028         * lib/concat-filename.h (concatenated_filename): Change specification.
56029         (xconcatenated_filename): New declaration.
56030         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
56031         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
56032         memory situations.
56033         * lib/xconcat-filename.c: New file.
56034         * NEWS: Mention the change.
56035         * lib/findprog.c: Include concat-filename.h, not filename.h.
56036         (find_in_path): Use xconcatenated_filename instead of
56037         concatenated_filename.
56038         * lib/javacomp.c: Include concat-filename.h, not filename.h.
56039         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
56040         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
56041         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
56042         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
56043         instead of concatenated_filename.
56044         * lib/javaexec.c: Include concat-filename.h, not filename.h.
56045         (execute_java_class): Use xconcatenated_filename instead of
56046         concatenated_filename.
56047         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
56048         * modules/javacomp (Depends-on): Likewise.
56049         * modules/javaexec (Depends-on): Likewise.
56050
56051 2008-09-01  Bruno Haible  <bruno@clisp.org>
56052
56053         Split module 'filename' into 'filename' and 'concat-filename'.
56054         * modules/filename: Keep only lib/filename.h.
56055         (License): Change to LGPLv2+.
56056         * modules/concat-filename: New file, extracted from modules/filename.
56057         * lib/filename.h (concatenated_filename): Remove declaration.
56058         * lib/concat-filename.h: New file, extracted from lib/filename.h.
56059         * lib/concat-filename.c: Include concat-filename.h.
56060         * NEWS: Mention the change.
56061
56062 2008-09-01  Simon Josefsson  <simon@josefsson.org>
56063
56064         * lib/bitrotate.h (rotl8, rotr8): Add.
56065
56066         * modules/bitrotate (configure.ac): Need
56067         AC_REQUIRE([AC_C_INLINE]).
56068         (Description): Mention stdint.h.  Reported by Bruno Haible
56069         <bruno@clisp.org>.
56070
56071         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
56072         Paolo Bonzini <bonzini@gnu.org>.
56073
56074 2008-08-31  Bruno Haible  <bruno@clisp.org>
56075
56076         Assume Solaris specific bi-arch conventions on Solaris systems.
56077         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
56078         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
56079         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
56080         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
56081         like acl_libdirstem.
56082         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
56083         acl_libdirstem.
56084         * NEWS: Mention the change.
56085         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
56086
56087 2008-08-31  Jim Meyering  <meyering@redhat.com>
56088
56089         * lib/strftime.h: Add comments describing the two added arguments.
56090
56091         remove duplicate #include directives
56092         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
56093         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
56094
56095 2008-08-31  Bruno Haible  <bruno@clisp.org>
56096
56097         New module 'sigpipe-die'.
56098         * modules/sigpipe-die: New file.
56099         * lib/sigpipe-die.h: New file.
56100         * lib/sigpipe-die.c: New file.
56101         * MODULES.html.sh (Signal handling): Add sigpipe-die.
56102
56103 2008-08-31  Bruno Haible  <bruno@clisp.org>
56104
56105         Don't override previously installed signal handlers.
56106         * lib/fatal-signal.c (saved_sigactions): New variable.
56107         (uninstall_handlers): Reset the signal to the saved handler, not
56108         to SIG_DFL (except when ignored).
56109         (install_handlers): Save the previous handlers.
56110
56111 2008-08-30  Bruno Haible  <bruno@clisp.org>
56112
56113         * gnulib-tool (func_reset_sigpipe): New function.
56114         (func_get_automake_snippet, func_modules_transitive_closure,
56115         func_import): Invoke it before a join command that reads from stdin,
56116         to avoid "echo: write error: Broken pipe" error messages on stderr.
56117         Reported by Sam Steingold <sds@gnu.org>.
56118
56119 2008-08-30  Bruno Haible  <bruno@clisp.org>
56120
56121         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
56122         Code copied from m4/open.m4.
56123         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
56124         access and the filename ends in a slash. Code copied from lib/open.c.
56125         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
56126         * tests/test-fopen.c (main): Check against bug with trailing slash.
56127
56128 2008-08-29  Bruno Haible  <bruno@clisp.org>
56129
56130         Avoid some "gcc -pedantic" warnings.
56131         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
56132         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
56133         * lib/dirent.in.h: Likewise.
56134         * lib/fcntl.in.h: Likewise.
56135         * lib/float.in.h: Likewise.
56136         * lib/iconv.in.h: Likewise.
56137         * lib/inttypes.in.h: Likewise.
56138         * lib/locale.in.h: Likewise.
56139         * lib/math.in.h: Likewise.
56140         * lib/netinet_in.in.h: Likewise.
56141         * lib/search.in.h: Likewise.
56142         * lib/signal.in.h: Likewise.
56143         * lib/stdarg.in.h: Likewise.
56144         * lib/stdint.in.h: Likewise.
56145         * lib/stdio.in.h: Likewise.
56146         * lib/stdlib.in.h: Likewise.
56147         * lib/string.in.h: Likewise.
56148         * lib/strings.in.h: Likewise.
56149         * lib/sys_select.in.h: Likewise.
56150         * lib/sys_socket.in.h: Likewise.
56151         * lib/sys_stat.in.h: Likewise.
56152         * lib/sys_time.in.h: Likewise.
56153         * lib/sysexits.in.h: Likewise.
56154         * lib/time.in.h: Likewise.
56155         * lib/unistd.in.h: Likewise.
56156         * lib/wchar.in.h: Likewise.
56157         * lib/wctype.in.h: Likewise.
56158         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
56159         * modules/fchdir (Makefile.am): Likewise.
56160         * modules/fcntl (Makefile.am): Likewise.
56161         * modules/float (Makefile.am): Likewise.
56162         * modules/iconv_open (Makefile.am): Likewise.
56163         * modules/inttypes (Makefile.am): Likewise.
56164         * modules/locale (Makefile.am): Likewise.
56165         * modules/math (Makefile.am): Likewise.
56166         * modules/netinet_in (Makefile.am): Likewise.
56167         * modules/search (Makefile.am): Likewise.
56168         * modules/signal (Makefile.am): Likewise.
56169         * modules/stdarg (Makefile.am): Likewise.
56170         * modules/stdint (Makefile.am): Likewise.
56171         * modules/stdio (Makefile.am): Likewise.
56172         * modules/stdlib (Makefile.am): Likewise.
56173         * modules/string (Makefile.am): Likewise.
56174         * modules/strings (Makefile.am): Likewise.
56175         * modules/sys_select (Makefile.am): Likewise.
56176         * modules/sys_socket (Makefile.am): Likewise.
56177         * modules/sys_stat (Makefile.am): Likewise.
56178         * modules/sys_time (Makefile.am): Likewise.
56179         * modules/sysexits (Makefile.am): Likewise.
56180         * modules/time (Makefile.am): Likewise.
56181         * modules/unistd (Makefile.am): Likewise.
56182         * modules/wchar (Makefile.am): Likewise.
56183         * modules/wctype (Makefile.am): Likewise.
56184         Reported by Reuben Thomas <rrt@sc3d.org>.
56185
56186 2008-08-29  Bruno Haible  <bruno@clisp.org>
56187
56188         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
56189         any more.
56190
56191 2008-08-29  Simon Josefsson  <simon@josefsson.org>
56192
56193         * MODULES.html.sh (Misc): Add bitrotate.
56194
56195         * modules/bitrotate: New file.
56196
56197         * lib/bitrotate.h: New file.
56198
56199         * modules/bitrotate-tests: New file.
56200
56201         * tests/test-bitrotate.c: New file.
56202
56203         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
56204         on the bitrotate module.
56205
56206         * lib/arctwo.c: Use new bitrotate module.
56207
56208 2008-08-29  Jim Meyering  <meyering@redhat.com>
56209
56210         bootstrap: merge changes from coreutils
56211         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
56212         of copied files.  Remove a kludge, now that this is fixed.
56213         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
56214         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
56215         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
56216
56217 2008-08-29  Bruno Haible  <bruno@clisp.org>
56218
56219         * MODULES.html.sh: Remove --cvs-urls option.
56220
56221 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
56222
56223         maint.mk: adjust to file name change
56224         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
56225
56226 2008-08-28  Jim Meyering  <meyering@redhat.com>
56227
56228         * modules/getndelim2 (License): Relicense to LGPLv2+.
56229         Approved by Richard Stallman for the version of 1995, and by
56230         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
56231
56232 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
56233
56234         * lib/getdelim.c (flockfile, funlockfile): Make all of them
56235         dummy if one is not available.  Do not touch them if
56236         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
56237         (getc_maybe_unlocked): New.
56238         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
56239
56240 2008-08-26  Eric Blake  <ebb9@byu.net>
56241
56242         doc/INSTALL: resync from autoconf
56243         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
56244         (INSTALL_PRELUDE): Delete; this is done more efficiently by
56245         moving...
56246         * install.texi [!autoconf]: ...here.  Resync from autoconf.
56247         * INSTALL: Regenerate.
56248         * INSTALL.ISO: New file.
56249         * INSTALL.UTF-8: Likewise.
56250
56251 2008-08-26  Jim Meyering  <meyering@redhat.com>
56252
56253         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
56254         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
56255         these definitions conditional, so that they may be overridden, too.
56256
56257 2008-08-26  Bruno Haible  <bruno@clisp.org>
56258
56259         Generate INSTALL file variants with prettier quotes.
56260         * doc/Makefile (INSTALL_PRELUDE): New macro.
56261         (INSTALL): Use it.
56262         (INSTALL.ISO, INSTALL.UTF-8): New rules.
56263
56264 2008-08-26  Bruno Haible  <bruno@clisp.org>
56265
56266         Run makeinfo in an English locale.
56267         * doc/Makefile (MAKEINFO): New variable.
56268
56269 2008-08-26  Bruno Haible  <bruno@clisp.org>
56270
56271         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
56272         Suggested by Eric Blake.
56273
56274 2008-08-25  Bruno Haible  <bruno@clisp.org>
56275
56276         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
56277
56278 2008-08-25  Eric Blake  <ebb9@byu.net>
56279
56280         c-stack: test that stack overflow can be caught
56281         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
56282         that platform allows handling stack overflow; at least OS/2 EMX
56283         has sigaltstack, but crashes before transferring control to
56284         handler on stack overflow.
56285         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
56286         check for HAVE_STACK_OVERFLOW_HANDLING.
56287         Reported by Elbert Pol.
56288
56289 2008-08-25  Bruno Haible  <bruno@clisp.org>
56290
56291         * doc/posix-functions/strftime.texi: Fix description of strftime
56292         module.
56293
56294 2008-08-24  Bruno Haible  <bruno@clisp.org>
56295
56296         * tests/uniwidth/test-uc_width2.c: New file.
56297         * tests/uniwidth/test-uc_width2.sh: New file.
56298         * modules/uniwidth/width-tests (Files): Add the new files.
56299         (TESTS): Add uniwidth/test-uc_width2.sh.
56300         (TESTS_ENVIRONMENT): New variable.
56301         (check_PROGRAMS): Add test-uc_width2.
56302         (test_uc_width2_SOURCES): New variable.
56303
56304         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
56305         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
56306         not 0x00AB.
56307         Reported by Alexander V. Lukyanov <lav@netis.ru>.
56308
56309 2008-08-22  Eric Blake  <ebb9@byu.net>
56310
56311         test-lock, test-tls: mention why a test is skipped
56312         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
56313         skipped.
56314         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
56315
56316         count-one-bits: relax license
56317         * modules/count-one-bits (License): Relicense to LGPLv2+.
56318         Suggested by Ludovic Courtès, approved by Ben Pfaff.
56319
56320 2008-08-22  Andreas Schwab  <schwab@suse.de>
56321
56322         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
56323         Remove spurious space in assignment.
56324
56325 2008-08-21  Simon Josefsson  <simon@josefsson.org>
56326
56327         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
56328         Paul Eggert <eggert@CS.UCLA.EDU>.
56329
56330 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
56331
56332         * modules/gettext: Add m4/threadlib.m4.
56333
56334 2008-08-19  Eric Blake  <ebb9@byu.net>
56335
56336         test-c-stack: fix compilation failure on FreeBSD 5.0
56337         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
56338         headers before <sys/resource.h>.
56339         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
56340         the bug.
56341         Reported by Nelson H. F. Beebe.
56342
56343         strverscmp: migrate from "strverscmp.h" to <string.h>
56344         * modules/string (Makefile.am): Add new hooks.
56345         * modules/strverscmp (Files): Remove strverscmp.h.
56346         (Depends-on): Add string.
56347         (configure.ac): Add indicator.
56348         (Include): Mention new header.
56349         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
56350         defaults.
56351         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
56352         results.
56353         * lib/strverscmp.h: Delete.
56354         * lib/string.in.h (strverscmp): Provide declaration, when needed.
56355         * tests/test-strverscmp.c (includes): Adjust client.
56356         * lib/check-version.c (includes): Likewise.
56357         * NEWS: Document the change.
56358
56359         strverscmp: add unit test
56360         * modules/strverscmp-tests: New file.
56361         * tests/test-strverscmp.c: Likewise.
56362
56363 2008-08-19  Simon Josefsson  <simon@josefsson.org>
56364
56365         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
56366         regarding Windows crypto stuff, from Mono.
56367
56368 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
56369
56370         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
56371         if present, for intel RND.  Return error on failures.
56372
56373 2008-08-18  Ben Pfaff  <blp@gnu.org>
56374
56375         gitlog-to-changelog: give better diagnostic for failed pipe-open
56376         * build-aux/gitlog-to-changelog: Improve error message: suggest
56377         that the version of Git may be too old.
56378
56379 2008-08-18  Simon Josefsson  <simon@josefsson.org>
56380
56381         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
56382         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
56383
56384 2008-08-18  Bruno Haible  <bruno@clisp.org>
56385
56386         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
56387         pthread_in_use().
56388
56389 2008-08-18  Bruno Haible  <bruno@clisp.org>
56390
56391         * lib/glthread/threadlib.c: Include <pthread.h>.
56392
56393 2008-08-18  Bruno Haible  <bruno@clisp.org>
56394
56395         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
56396         glthread_recursive_lock_* macros.
56397         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
56398         Fix syntax error.
56399
56400 2008-08-18  Bruno Haible  <bruno@clisp.org>
56401
56402         * lib/glthread/thread.c: Avoid forcing a context switch right after
56403         thread creation.
56404
56405 2008-08-17  Bruno Haible  <bruno@clisp.org>
56406
56407         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
56408         * lib/glthread/thread.h: Provide Win32 specific implementation.
56409         * modules/thread (Files): Add lib/glthread/thread.c.
56410         (Depends-on): Add lock.
56411         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
56412
56413 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56414
56415         New module 'yield'.
56416         * modules/yield: New file.
56417         * lib/glthread/yield.h: New file.
56418         * m4/yield.m4: New file.
56419         * MODULES.html.sh (Multithreading): Add yield.
56420
56421 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56422
56423         New module 'thread'.
56424         * modules/thread: New file.
56425         * lib/glthread/thread.h: New file.
56426         * m4/thread.m4: New file.
56427         * MODULES.html.sh (Multithreading): Add thread.
56428
56429 2008-08-17  Bruno Haible  <bruno@clisp.org>
56430
56431         * lib/glthread/lock.h: Include <stdlib.h> always.
56432         * lib/glthread/tls.h: Likewise.
56433         * lib/glthread/cond.h: Likewise.
56434
56435 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
56436
56437         New module 'cond'.
56438         * modules/cond: New file.
56439         * lib/glthread/cond.h: New file.
56440         * lib/glthread/cond.c: New file.
56441         * m4/cond.m4: New file.
56442         * MODULES.html.sh (Multithreading): Add cond.
56443
56444 2008-08-16  Eric Blake  <ebb9@byu.net>
56445
56446         c-stack: fix regression on Irix 5.3 from 2008-06-21
56447         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
56448         sa_sigaction...
56449         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
56450         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
56451         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
56452         * modules/signal (Makefile.am): Use the value.
56453         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
56454         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
56455         * doc/posix-headers/signal.texi (signal.h): Document this
56456         portability issue.
56457         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
56458         Reported by Tom G. Christensen.
56459
56460 2008-08-17  Bruno Haible  <bruno@clisp.org>
56461
56462         New module 'threadlib'.
56463         * modules/threadlib: New file.
56464         * lib/glthread/threadlib.c: New file, extracted from
56465         lib/glthread/lock.c.
56466         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
56467         functions.
56468         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
56469         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
56470         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
56471         macros.
56472         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
56473         (gl_DISABLE_THREADS): Remove macro.
56474         * modules/lock (Files): Remove build-aux/config.rpath.
56475         (Depends-on): Remove havelib. Add threadlib.
56476         (configure.ac-early): Remove section.
56477         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
56478         * modules/tls (Depends-on): Remove lock. Add threadlib.
56479         (Link): New section, copied from threadlib.
56480         * MODULES.html.sh (Multithreading): Add threadlib.
56481
56482 2008-08-14  Bruno Haible  <bruno@clisp.org>
56483
56484         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
56485         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
56486         glthread_rwlock_unlock, glthread_rwlock_destroy,
56487         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
56488         glthread_recursive_lock_destroy): Define as macros always.
56489         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
56490         glthread_lock_lock.
56491         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
56492         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
56493         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
56494         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
56495         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
56496         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
56497         (glthread_recursive_lock_lock_func): Renamed from
56498         glthread_recursive_lock_lock.
56499         (glthread_recursive_lock_unlock_func): Renamed from
56500         glthread_recursive_lock_unlock.
56501         (glthread_recursive_lock_destroy_func): Renamed from
56502         glthread_recursive_lock_destroy.
56503
56504 2008-08-14  Bruno Haible  <bruno@clisp.org>
56505
56506         * lib/glthread/lock.h: Renamed from lib/lock.h.
56507         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
56508         * lib/glthread/tls.h: Renamed from lib/tls.h.
56509         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
56510         * lib/fstrcmp.c: Update includes.
56511         * lib/strsignal.c: Update includes.
56512         * modules/lock (Files, Makefile.am): Update.
56513         (Include): Change to "glthread/lock.h".
56514         * modules/tls (Files, Makefile.am): Update.
56515         (Include): Change to "glthread/tls.h".
56516         * tests/test-lock.c: Update includes.
56517         * tests/test-tls.c: Update includes.
56518         * NEWS: Mention the renamed header files.
56519
56520 2008-08-11  Jim Meyering  <meyering@redhat.com>
56521
56522         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
56523
56524 2008-08-11  Eric Blake  <ebb9@byu.net>
56525
56526         test-c-stack: avoid C99-ism
56527         * tests/test-c-stack.c (main): Fix whitespace, move declaration
56528         before statement.
56529         Reported by Alain Guibert.
56530
56531 2008-08-10  Jim Meyering  <meyering@redhat.com>
56532
56533         ensure that return value of uinttostr et al are not ignored
56534         * lib/inttostr.h (__GNUC_PREREQ): Define.
56535         (__attribute_warn_unused_result__): Define.
56536         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
56537
56538 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
56539
56540         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
56541         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
56542
56543 2008-08-07  Jim Meyering  <meyering@redhat.com>
56544
56545         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
56546
56547         * modules/mkstemp (License): Relicense under LGPLv2+.
56548         * modules/tempname (License): Likewise.
56549
56550 2008-08-06  Bruno Haible  <bruno@clisp.org>
56551
56552         * lib/poll.c (poll): Further micro-optimization.
56553
56554 2008-08-06  Jim Meyering  <meyering@redhat.com>
56555
56556         inet_pton.c: use locale-independent tolower
56557         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
56558         (inet_pton6): Use c_tolower rather than tolower.
56559         * modules/inet_pton (Depends-on): Add c-ctype.
56560
56561 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
56562
56563         * lib/poll.c (poll): Avoid division when timeout is 0, cache
56564         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
56565
56566 2008-08-06  Jim Meyering  <meyering@redhat.com>
56567
56568         * modules/inet_pton (License): Relicense under LGPLv2+.
56569
56570 2008-08-03  Bruno Haible  <bruno@clisp.org>
56571
56572         Additional non-aborting API for lock and tls.
56573         * lib/lock.h: Include <errno.h>.
56574         (glthread_lock_init): New macro/function.
56575         (gl_lock_init): Define as wrapper around glthread_lock_init.
56576         (glthread_lock_lock): New macro/function.
56577         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
56578         (glthread_lock_unlock): New macro/function.
56579         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
56580         (glthread_lock_destroy): New macro/function.
56581         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
56582         (glthread_rwlock_init): New macro/function.
56583         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
56584         (glthread_rwlock_rdlock): New macro/function.
56585         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
56586         (glthread_rwlock_wrlock): New macro/function.
56587         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
56588         (glthread_rwlock_unlock): New macro/function.
56589         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
56590         (glthread_rwlock_destroy): New macro/function.
56591         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
56592         (glthread_recursive_lock_init): New macro/function.
56593         (gl_recursive_lock_init): Define as wrapper around
56594         glthread_recursive_lock_init.
56595         (glthread_recursive_lock_lock): New macro/function.
56596         (gl_recursive_lock_lock): Define as wrapper around
56597         glthread_recursive_lock_lock.
56598         (glthread_recursive_lock_unlock): New macro/function.
56599         (gl_recursive_lock_unlock): Define as wrapper around
56600         glthread_recursive_lock_unlock.
56601         (glthread_recursive_lock_destroy): New macro/function.
56602         (gl_recursive_lock_destroy): Define as wrapper around
56603         glthread_recursive_lock_destroy.
56604         (glthread_once): New macro/function.
56605         (gl_once): Define as wrapper around glthread_once.
56606         Update function declarations.
56607         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
56608         glthread_rwlock_init. Return error code.
56609         (glthread_rwlock_rdlock_multithreaded): Renamed from
56610         glthread_rwlock_rdlock. Return error code.
56611         (glthread_rwlock_wrlock_multithreaded): Renamed from
56612         glthread_rwlock_wrlock. Return error code.
56613         (glthread_rwlock_unlock_multithreaded): Renamed from
56614         glthread_rwlock_unlock. Return error code.
56615         (glthread_rwlock_destroy_multithreaded): Renamed from
56616         glthread_rwlock_destroy. Return error code.
56617         (glthread_recursive_lock_init_multithreaded): Renamed from
56618         glthread_recursive_lock_init. Return error code.
56619         (glthread_recursive_lock_lock_multithreaded): Renamed from
56620         glthread_recursive_lock_lock. Return error code.
56621         (glthread_recursive_lock_unlock_multithreaded): Renamed from
56622         glthread_recursive_lock_unlock. Return error code.
56623         (glthread_recursive_lock_destroy_multithreaded): Renamed from
56624         glthread_recursive_lock_destroy. Return error code.
56625         (glthread_once_call): Make static.
56626         (glthread_once_multithreaded): Renamed from glthread_once.
56627         * lib/tls.h: Include <errno.h>.
56628         (glthread_tls_key_init): New macro/function.
56629         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
56630         (glthread_tls_set): New macro/function.
56631         (gl_tls_set): Define as wrapper around glthread_tls_set.
56632         (glthread_tls_key_destroy): New macro/function.
56633         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
56634         Update function declarations.
56635         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
56636         glthread_tls_get.
56637         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
56638
56639 2008-08-04  Eric Blake  <ebb9@byu.net>
56640
56641         gnumakefile: use space, not TAB, outside of targets
56642         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
56643
56644 2008-08-02  Jim Meyering  <meyering@redhat.com>
56645
56646         getdate.y: avoid locale-dependent date parsing failure
56647         In Turkish locales, getdate would fail to recognize keywords
56648         containing a lowercase "i".  The solution is not to rely on
56649         locale-sensitive case-conversion.
56650         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
56651         (lookup_word): Use c_toupper in place of toupper.
56652         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
56653         Reported by Vefa Bicakci <bicave@superonline.com> in
56654         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
56655         * modules/getdate (Depends-on): Add c-ctype.
56656
56657 2008-08-02  Bruno Haible  <bruno@clisp.org>
56658
56659         * gnulib-tool (func_import): When updating or creating a .gitignore
56660         file, prepend each added line with a slash, and ignore leading slashes
56661         from the existing lines.
56662         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
56663
56664 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56665
56666         Portability fix for GNU make 3.79.1.
56667         * top/GNUmakefile: Avoid 'else COND', which older GNU make
56668         versions do not understand.
56669
56670 2008-08-01  Bruno Haible  <bruno@clisp.org>
56671
56672         Work around bug of HP-UX 10.20 cc with -0.0 literal.
56673         * tests/test-isnanf.h (zero): New variable.
56674         (main): Avoid literal -0.0f.
56675         * tests/test-isnand.h (zero): New variable.
56676         (main): Avoid literal -0.0.
56677         * tests/test-isnanl.h (zero): New variable.
56678         (main): Avoid literal -0.0L.
56679         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
56680         (test_float, test_double, test_long_double): Avoid literals -0.0f,
56681         -0.0, -0.0L.
56682         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
56683         (test_signbitd): Avoid literal -0.0.
56684         (test_signbitl): Avoid literal -0.0L.
56685         * tests/test-ceilf1.c (zero): New variable.
56686         (main): Avoid literal -0.0f.
56687         * tests/test-ceill.c (zero): New variable.
56688         (main): Avoid literal -0.0L.
56689         * tests/test-floorf1.c (zero): New variable.
56690         (main): Avoid literal -0.0f.
56691         * tests/test-floorl.c (zero): New variable.
56692         (main): Avoid literal -0.0L.
56693         * tests/test-roundf1.c (zero): New variable.
56694         (main): Avoid literal -0.0f.
56695         * tests/test-round1.c (zero): New variable.
56696         (main): Avoid literal -0.0.
56697         * tests/test-roundl.c (zero): New variable.
56698         (main): Avoid literal -0.0L.
56699         * tests/test-truncf1.c (zero): New variable.
56700         (main): Avoid literal -0.0f.
56701         * tests/test-trunc1.c (zero): New variable.
56702         (main): Avoid literal -0.0.
56703         * tests/test-truncl.c (zero): New variable.
56704         (main): Avoid literal -0.0L.
56705         * tests/test-frexp.c (zero): New variable.
56706         (main): Avoid literal -0.0.
56707         * tests/test-frexpl.c (zero): New variable.
56708         (main): Avoid literal -0.0L.
56709         * tests/test-ldexpl.c (zero): New variable.
56710         (main): Avoid literal -0.0L.
56711         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
56712         (zerod, zerol): New variables.
56713         (test_function): Avoid literals -0.0, -0.0L.
56714         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
56715         (zerod, zerol): New variables.
56716         (test_function): Avoid literals -0.0, -0.0L.
56717         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
56718         (zerod, zerol): New variables.
56719         (test_function): Avoid literals -0.0, -0.0L.
56720         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
56721         (zerod, zerol): New variables.
56722         (test_function): Avoid literals -0.0, -0.0L.
56723         * tests/test-strtod.c (zero): New variable.
56724         (main): Avoid literal -0.0.
56725         Reported by Jonathan C. Patschke <jp@centtech.com>.
56726
56727 2008-07-31  Jim Meyering  <meyering@redhat.com>
56728
56729         sha256.h: correct definition of SHA224_DIGEST_SIZE
56730         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
56731         Reported by Paulie Pena IV <paulie4@gmail.com>.
56732         Define as 224 / 8, rather than as a literal.
56733         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
56734         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
56735         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
56736
56737 2008-07-31  Bruno Haible  <bruno@clisp.org>
56738
56739         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
56740         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
56741         Reported by Jonathan Patschke <jp@centtech.com>.
56742
56743 2008-07-31  Bruno Haible  <bruno@clisp.org>
56744
56745         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
56746         Reported by Paolo Bonzini <bonzini@gnu.org>.
56747
56748 2008-07-30  Eric Blake  <ebb9@byu.net>
56749
56750         test-strtod: allow compilation without -lm
56751         * tests/test-strtod.c (main): Avoid link dependence on fabs.
56752         Reported by Dennis Clarke <blastwave@gmail.com>.
56753
56754 2008-07-28  Jim Meyering  <meyering@redhat.com>
56755
56756         bootstrap: work also when there are no .po files in po/
56757         * build-aux/bootstrap (update_po_files): Complete the change
56758         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
56759
56760 2008-07-27  Jim Meyering  <meyering@redhat.com>
56761
56762         * users.txt: Add zile.
56763
56764 2008-07-26  Ben Pfaff  <blp@gnu.org>
56765
56766         Add missing dependencies on new m4/exponent[fdl].m4 files.
56767         * modules/isnanf-nolibm: Add m4/exponentf.m4.
56768         * modules/isnand-nolibm: Add m4/exponentd.m4.
56769         * modules/isnanl-nolibm: Add m4/exponentl.m4.
56770         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
56771         m4/isnan[fdl].m4, because the macros actually used moved.
56772         Reported by Jim Meyering.
56773
56774 2008-07-14  Ben Pfaff  <blp@gnu.org>
56775
56776         Add isinf module.
56777         * lib/isinf.c: New file.
56778         * lib/math.in.h: Define isinf macro if we have decided to replace
56779         it.
56780         * m4/isinf.m4: New file.
56781         * m4/math_h.m4: Initialize and substitute variables for isinf
56782         module.
56783         * modules/isinf: New file.
56784         * modules/isinf-tests: New file.
56785         * modules/math: Add substitutions for new module.
56786         * tests/test-isinf.c: New file.
56787         * doc/posix-functions/isinf.texi: Mention new module.
56788         * MODULES.html.sh: Mention new module.
56789
56790 2008-07-14  Ben Pfaff  <blp@gnu.org>
56791
56792         Factor out some macros for use by additional modules.
56793         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
56794         exponentf.m4.
56795         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
56796         exponentd.m4.
56797         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
56798         file exponentl.m4.
56799         * m4/exponentf.m4: New file.
56800         * m4/exponentd.m4: New file.
56801         * m4/exponentl.m4: New file.
56802         * modules/isnanf: Use new file m4/exponentf.m4.
56803         * modules/isnand: Use new file m4/exponentd.m4.
56804         * modules/isnanl: Use new file m4/exponentl.m4.
56805
56806 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
56807
56808         mktime.c: normalize tp->tm_isdst value to -1/0/1.
56809         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
56810         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
56811         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
56812
56813         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
56814         readlink on platforms without PATH_MAX.
56815
56816 2008-07-21  Eric Blake  <ebb9@byu.net>
56817
56818         Warn, not fail, on stale version.
56819         * top/GNUmakefile (_curr-ver): Tone down previous patch.
56820
56821         Don't allow installation with stale devel version number.
56822         * top/GNUmakefile (_is-install-target): New macro.
56823         (_curr-ver): Forbid installation with stale version number.
56824
56825 2008-07-20  Bruno Haible  <bruno@clisp.org>
56826
56827         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
56828         TESTS_ENVIRONMENT.
56829         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
56830
56831 2008-07-20  Bruno Haible  <bruno@clisp.org>
56832
56833         * lib/c-stack.h (c_stack_action): Add documentation.
56834         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
56835
56836 2008-07-20  Bruno Haible  <bruno@clisp.org>
56837
56838         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
56839         * modules/readlink (License): Likewise.
56840
56841 2008-07-17  Eric Blake  <ebb9@byu.net>
56842
56843         * modules/c-stack (Link): Fix typo.
56844
56845         Make c-stack use libsigsegv, when available.
56846         * modules/c-stack (Depends-on): Add libsigsegv.
56847         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
56848         needed.
56849         * lib/c-stack.c (SIGSTKSZ): Define fallback.
56850         (segv_handler, overflow_handler, c_stack_action)
56851         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
56852         implementation when libsigsegv is available, but only when using
56853         the library is necessary.
56854         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
56855         comment, explaining why XSI check fails on Linux.
56856         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
56857         * tests/test-c-stack2.sh: Tweak skip message.
56858         * NEWS: Document new link-time requirements.
56859
56860 2008-07-16  Eric Blake  <ebb9@byu.net>
56861
56862         c-stack: Expose false positives when not using libsigsegv.
56863         * modules/c-stack-tests (Files): Expand test.
56864         * tests/test-c-stack.c (main): Add means to conditionally trigger
56865         non-overflow SIGSEGV.
56866         * tests/test-c-stack2.sh: New file.
56867
56868 2008-07-14  Bruno Haible  <bruno@clisp.org>
56869
56870         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
56871         Reported by Eric Blake.
56872
56873 2008-07-14  Sam Steingold  <sds@gnu.org>
56874             Bruno Haible  <bruno@clisp.org>
56875
56876         New module libsigsegv.
56877         * modules/libsigsegv: New file.
56878         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
56879         modifications.
56880         * MODULES.html.sh (Signal handling): New section.
56881
56882 2008-07-14  Bruno Haible  <bruno@clisp.org>
56883
56884         * modules/unictype/ctype-* (Description): Add the word "function".
56885         Improves the resulting doc in MODULES.html.
56886
56887 2008-07-12  Ben Pfaff  <blp@gnu.org>
56888
56889         Add longlong module.
56890         * modules/longlong: New file.
56891
56892 2008-07-12  Bruno Haible  <bruno@clisp.org>
56893
56894         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
56895         to empty.
56896
56897 2008-07-10  Ben Pfaff  <blp@gnu.org>
56898
56899         Add isnan module.
56900         * doc/posix-functions/isnan.texi: Mention new module.
56901         * lib/math.in.h: Define isnan macro if we have decided to replace
56902         it.
56903         * m4/isnan.m4: New file.
56904         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
56905         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
56906         also.
56907         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
56908         redundancy.
56909         * m4/math_h.m4: Initialize and substitute variables for isnan
56910         module.
56911         * modules/isnan: New file.
56912         * modules/isnan-tests: New file.
56913         * modules/math: Add substitutions for new module.
56914         * tests/test-isnan.c: New file.
56915         * MODULES.html.sh: Mention new module.
56916
56917 2008-07-10  Ben Pfaff  <blp@gnu.org>
56918
56919         Add isnanf module.
56920         * lib/isnanf.m4: New file.
56921         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
56922         (gl_HAVE_ISNANF_IN_LIBM): New macro.
56923         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
56924         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
56925         * modules/isnanf: New file.
56926         * modules/isnanf-tests: New file.
56927         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
56928         files.
56929         * tests/test-isnanf-nolibm.c: factored most of its contents into
56930         new file tests/test-isnanf.h.
56931         * tests/test-isnanf.h: New file.
56932         * tests/test-isnanf.c: New file.
56933         * MODULES.html.sh: Mention new module.
56934         * doc/glibc-functions/isnanf.texi: Mention new module.
56935
56936 2008-07-10  Ben Pfaff  <blp@gnu.org>
56937
56938         Add isnand module.
56939         * lib/isnand.h: New file.
56940         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
56941         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
56942         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
56943         functionality also.
56944         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
56945         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
56946         (gl_HAVE_ISNAND_IN_LIBM): New macro.
56947         * modules/isnand: New file.
56948         * modules/isnand-tests: New file.
56949         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
56950         files.
56951         * tests/test-isnand-nolibm.c: factored most of its contents into
56952         new file tests/test-isnand.h.
56953         * tests/test-isnand.h: New file.
56954         * tests/test-isnand.c: New file.
56955         * MODULES.html.sh: Mention new module.
56956
56957 2008-07-10  Ben Pfaff  <blp@gnu.org>
56958
56959         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
56960         * lib/isnand.h: Rename lib/isnand-nolibm.h.
56961         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
56962         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
56963         * modules/isnanf-nolibm: Update references to renamed files.
56964         * modules/isnand-nolibm: Likewise.
56965         * modules/isnanf-nolibm-tests: Likewise.
56966         * modules/isnand-nolibm-tests: Likewise.
56967         * lib/frexp.c: Likewise.
56968         * lib/isfinite.c: Likewise.
56969         * lib/signbitd.c: Likewise.
56970         * lib/signbitf.c: Likewise.
56971         * lib/vasnprintf.c: Likewise.
56972         * tests/test-ceilf1.c: Likewise.
56973         * tests/test-ceilf2.c: Likewise.
56974         * tests/test-floorf1.c: Likewise.
56975         * tests/test-floorf2.c: Likewise.
56976         * tests/test-frexp.c: Likewise.
56977         * tests/test-round1.c: Likewise.
56978         * tests/test-round2.c: Likewise.
56979         * tests/test-roundf1.c: Likewise.
56980         * tests/test-strtod.c: Likewise.
56981         * tests/test-trunc1.c: Likewise.
56982         * tests/test-trunc2.c: Likewise.
56983         * tests/test-truncf1.c: Likewise.
56984         * tests/test-truncf2.c: Likewise.
56985         * NEWS: Mention the renamed header files.
56986
56987 2008-07-11  Jim Meyering  <meyering@redhat.com>
56988
56989         vc-list-files: make the last-resort awk code more portable
56990         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
56991         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
56992         does not support it.
56993
56994 2008-07-10  Eric Blake  <ebb9@byu.net>
56995
56996         Work with tar's bootstrap.
56997         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
56998         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
56999         an m4 comment.
57000
57001 2008-07-09  Jim Meyering  <meyering@redhat.com>
57002
57003         posix-shell.m4: fix typo that made this test malfunction
57004         * m4/posix-shell.m4: Remove capitalization in variable name.
57005
57006 2008-07-08  Bruno Haible  <bruno@clisp.org>
57007
57008         * m4/onceonly.m4: Update comments.
57009         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57010
57011 2008-07-04  Jim Meyering  <meyering@redhat.com>
57012
57013         * users.txt: Add vc-dwim.
57014         (bison, coreutils): Use the gitweb URL.
57015
57016 2008-07-03  Jim Meyering  <meyering@redhat.com>
57017
57018         * users.txt: Add libffcall.  From Sam Steingold.
57019
57020 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
57021
57022         getdate.y: do not ignore TZ with relative day, month or year offset
57023         * lib/getdate.y (get_date): Move the tz-handling block to follow the
57024         relative-date-handling, since otherwise, the latter would clobber the
57025         sole output (an updated Start value) of the tz-handling block.
57026         * tests/test-getdate.c: Tests for the fix
57027
57028 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57029
57030         Recognize 'foo_LIBRARIES += libgnu.a'.
57031         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
57032         makefile snippet has already specified an installation location,
57033         also using '+='.
57034
57035 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
57036
57037         getdate.y: factor out common actions
57038         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
57039         Use them in place of open-coded actions.
57040
57041 2008-07-01  Simon Josefsson  <simon@josefsson.org>
57042
57043         Add self-test for getdate module.
57044         * modules/getdate-tests: New file.
57045         * tests/test-getdate.c: New file.
57046
57047 2008-06-29  Bruno Haible  <bruno@clisp.org>
57048
57049         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
57050         .gitignore.
57051         Reported by Sylvain Beucler <beuc@beuc.net>.
57052
57053 2008-06-29  Bruno Haible  <bruno@clisp.org>
57054
57055         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
57056         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
57057
57058 2008-06-29  Bruno Haible  <bruno@clisp.org>
57059
57060         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
57061         EXTRA_DIST.
57062         Reported by Sylvain Beucler <beuc@beuc.net>.
57063
57064 2008-06-26  Jim Meyering  <meyering@redhat.com>
57065
57066         make several modules depend on the "open" module
57067         This provides slightly increased consistency when opening-for-write
57068         the name of a non-directory spelled with a trailing slash.
57069         * modules/chdir-safer: Likewise.
57070         * modules/chown: Likewise.
57071         * modules/clean-temp: Likewise.
57072         * modules/copy-file: Likewise.
57073         * modules/fchdir: Likewise.
57074         * modules/fcntl-safer: Likewise.
57075         * modules/pipe: Likewise.
57076         * modules/utime: Likewise.
57077         Prompted by Eric Blake and Bruno Haible.
57078
57079 2008-06-24  Andreas Schwab  <schwab@suse.de>
57080
57081         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
57082         literals can be used as initializers for global variables.
57083
57084 2008-06-23  Eric Blake  <ebb9@byu.net>
57085
57086         Make gnulib-cache.m4 easier to diff.
57087         * gnulib-tool (func_import): Allow newlines when reading cached
57088         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
57089
57090 2008-06-23  Bruno Haible  <bruno@clisp.org>
57091
57092         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
57093         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
57094         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
57095         m4/signalblocking.m4.
57096         (gl_PREREQ_SIGACTION): Don't invoke it.
57097         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
57098         gl_PREREQ_SIG_HANDLER_H.
57099         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
57100         Don't check for sigaction here.
57101
57102 2008-06-23  Bruno Haible  <bruno@clisp.org>
57103
57104         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
57105         (install_handlers): Don't set the SA_RESETHAND flag.
57106
57107 2008-06-23  Bruno Haible  <bruno@clisp.org>
57108
57109         * m4/sigaction.m4: Comment fixes.
57110         * lib/signal.in.h: Likewise.
57111
57112 2008-06-23  Eric Blake  <ebb9@byu.net>
57113
57114         Fix typo.
57115         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
57116
57117         Avoid SA_ namespace.
57118         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
57119         Reported by Ralf Wildenhues.
57120
57121         Avoid test failure due to SA_RESTORER.
57122         * tests/test-sigaction.c (SA_MASK): New macro.
57123         (main): Avoid failing due to extension flags being set.
57124         Reported by Jim Meyering.
57125
57126         Revert use of sig-handler.h in sigprocmask.c.
57127         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
57128         it requires the existence of struct sigaction.
57129         * lib/sigprocmask.c (handler_t): Restore typedef.
57130         (rpl_signal, old_handlers): Use local type.
57131
57132 2008-06-22  Bruno Haible  <bruno@clisp.org>
57133
57134         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
57135         conditionally.
57136         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
57137
57138 2008-06-22  Bruno Haible  <bruno@clisp.org>
57139
57140         * doc/posix-functions/siginterrupt.texi: Move note.
57141
57142         * lib/signal.in.h (SA_RESTART): New macro.
57143         * lib/sigaction.c: Update comment.
57144
57145         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
57146
57147         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
57148         (gl_PREREQ_SIGPROCMASK): Invoke it.
57149         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
57150
57151         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
57152
57153         * lib/sigprocmask.c: Update a comment.
57154
57155 2008-06-21  Eric Blake  <ebb9@byu.net>
57156
57157         Use sigaction module rather than signal().
57158         * modules/c-stack (Depends-on): Add sigaction.
57159         * modules/fatal-signal (Depends-on): Likewise.
57160         * modules/nanosleep (Depends-on): Likewise.
57161         * modules/sigprocmask (Files): Add sig-handler.h.
57162         * modules/sigaction (Files): Likewise.
57163         * lib/sig-handler.h (get_handler): New file, suggested by Paul
57164         Eggert.
57165         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
57166         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
57167         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
57168         (init_fatal_signals): Likewise.
57169         * lib/nanosleep.c (rpl_nanosleep): Likewise.
57170         (siginterrupt): Delete fallback.
57171         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
57172         instead.
57173         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
57174         siginterrupt.
57175
57176         New module sigaction, for mingw.
57177         * modules/sigaction: New module...
57178         * modules/sigaction-tests: ...and its test.
57179         * m4/sigaction.m4: New file.
57180         * lib/sigaction.c: Likewise.
57181         * tests/test-sigaction.c: Likewise.
57182         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
57183         * modules/signal (Makefile.am): Likewise.
57184         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
57185         needed.
57186         * doc/posix-headers/signal.texi (signal.h): Mention provided
57187         types.
57188         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
57189         that sigaction is preferable.
57190         * doc/posix-functions/sigaction.texi (sigaction): Mention new
57191         module.
57192         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
57193         sigaction.
57194
57195         Improve robustness of sigprocmask by overriding signal.
57196         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
57197         is in use.
57198         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
57199         (SIGKILL, SIGSTOP): Provide fallbacks.
57200         (rpl_signal): Implement.
57201         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
57202         signal can be called inside handlers.
57203
57204         Fix nanosleep module on mingw.
57205         * modules/nanosleep (Depends-on): Add sys_select.
57206         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
57207
57208         Fix licensing of sigprocmask.
57209         * modules/raise (License): Relicense as LGPL.
57210
57211 2008-06-21  Bruno Haible  <bruno@clisp.org>
57212
57213         * lib/propername.c (proper_name_utf8): Don't use the transliterated
57214         result if it contains question marks.
57215         Reported by Michael Geng <linux@michaelgeng.de>.
57216
57217 2008-06-19  Bruno Haible  <bruno@clisp.org>
57218
57219         Fix CVS-ism.
57220         * doc/gnulib.texi: Include updated-stamp.texi.
57221         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
57222         (updated-stamp.texi): New rule.
57223         (gnulib.info): Depend on it.
57224         * doc/.gitignore: Add updated-stamp.texi.
57225         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
57226
57227 2008-06-19  Bruno Haible  <bruno@clisp.org>
57228
57229         * doc/Makefile (gnulib.info): Update and simplify dependencies.
57230         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
57231
57232 2008-06-19  Eric Blake  <ebb9@byu.net>
57233
57234         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
57235         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
57236         Reported by Stepan Kasal.
57237
57238 2008-06-18  Bruno Haible  <bruno@clisp.org>
57239
57240         * lib/fatal-signal.c (init_fatal_signals): Add comment.
57241         Reported by Eric Blake.
57242
57243 2008-06-18  Eric Blake  <ebb9@byu.net>
57244
57245         Work around cygwin 1.5.25 strsignal bug.
57246         * tests/test-strsignal.c: Allow for const char *.
57247         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
57248
57249 2008-06-18  Simon Josefsson  <simon@josefsson.org>
57250
57251         * users.txt: Update URL to article and add author/date
57252         information.
57253
57254 2008-06-17  Bruno Haible  <bruno@clisp.org>
57255
57256         New macro gl_DISABLE_THREADS.
57257         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
57258         if the user did not pass --enable-threads or --disable-threads option.
57259         (gl_DISABLE_THREADS): New macro.
57260         Reported by Eric Blake <ebb9@byu.net>.
57261
57262 2008-06-17  Bruno Haible  <bruno@clisp.org>
57263
57264         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
57265         when the macro ignores it.
57266         Based on a patch by Eric Blake <ebb9@byu.net>.
57267
57268 2008-06-17  Bruno Haible  <bruno@clisp.org>
57269
57270         * modules/tls (License): Change to LGPLv2+.
57271         Reported by Eric Blake.
57272
57273 2008-06-17  Eric Blake  <ebb9@byu.net>
57274
57275         Simplify c-stack prerequisites.
57276         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
57277         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
57278         no longer requires <ucontext.h> to exist.  Optimize setrlimit
57279         check.
57280         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
57281         <sys/resource.h>.
57282
57283         Move c-stack test into testsuite.
57284         * modules/c-stack-tests: New file.
57285         * lib/c-stack.c [DEBUG]: Move test program...
57286         * tests/test-c-stack.c: ...into this new file.  Skip rather than
57287         fail test if sigaltstack is lacking.
57288         * tests/test-c-stack.sh: New driver file.
57289
57290 2008-06-16  Eric Blake  <ebb9@byu.net>
57291
57292         Use raise module consistently.
57293         * modules/fatal-signal (Depends-on): Add raise.
57294         * modules/sigprocmask (Depends-on): Likewise.
57295         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
57296         * lib/sigprocmask.c (sigprocmask): Likewise.
57297         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
57298         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
57299
57300         Fix compliance bug in sigpending.
57301         * lib/sigprocmask.c (sigpending): Return pending array via
57302         parameter, not return value.
57303
57304 2008-06-14  Eric Blake  <ebb9@byu.net>
57305
57306         Improve obstack-printf test code.
57307         * tests/test-obstack-printf.c (test_function): Fix comment, and
57308         simplify usage of obstack_* in macros.  Add a test for coverage.
57309         Reported by Bruno Haible.
57310
57311 2008-06-14  Bruno Haible  <bruno@clisp.org>
57312
57313         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
57314         array size as a constant, not as a const variable.
57315         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
57316         AC_USE_SYSTEM_EXTENSIONS.
57317         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
57318         Test whether the obstack_printf function actually exists.
57319         * modules/obstack-printf (Depends-on): Add extensions.
57320         (Include): Remove obstack.h.
57321         * modules/obstack-printf-posix (Depends-on): Add extensions.
57322         (Include): Remove obstack.h.
57323
57324 2008-06-13  Eric Blake  <ebb9@byu.net>
57325
57326         Add obstack-printf and obstack-printf-posix modules.
57327         * modules/obstack-printf: New file.
57328         * modules/obstack-printf-posix: Likewise.
57329         * MODULES.html.sh (Misc): Mention them.
57330         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
57331         Likewise.
57332         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
57333         Likewise.
57334         * modules/stdio (Makefile.am): Accomodate new modules.
57335         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
57336         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
57337         Declare.
57338         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
57339         functions.
57340         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
57341         (gl_REPLACE_OBSTACK_PRINTF): New macros
57342         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
57343         * tests/test-obstack-printf.c: New file.
57344         * modules/obstack-printf-tests: Likewise.
57345         * modules/obstack-printf-posix-tests: Likewise.
57346
57347 2008-06-11  Bruno Haible  <bruno@clisp.org>
57348
57349         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
57350         * lib/open.c: Include errno.h.
57351         (open): Fail when attempting to write to a file that has a trailing
57352         slash.
57353         * tests/test-open.c (main): Test against trailing slash bug.
57354         * doc/posix-functions/open.texi: Mention the trailing slash bug.
57355
57356 2008-06-10  Bruno Haible  <bruno@clisp.org>
57357
57358         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
57359         for $? to work inside the trap command, with various /bin/sh-s.
57360         * tests/test-vc-list-files-cvs.sh: Likewise.
57361
57362 2008-06-10  Bruno Haible  <bruno@clisp.org>
57363
57364         * lib/acl-internal.h: Don't include gettext.h here.
57365         * lib/set-mode-acl.c: Include gettext.h here.
57366         * lib/copy-acl.c: Likewise.
57367
57368 2008-06-10  Bruno Haible  <bruno@clisp.org>
57369
57370         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
57371         * lib/wait-process.c (wait_subprocess): Likewise.
57372         * lib/execute.h (execute): Add termsigp argument.
57373         * lib/execute.c (execute): Likewise.
57374         * lib/csharpcomp.c (compile_csharp_using_pnet,
57375         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
57376         * lib/csharpexec.c (execute_csharp_using_pnet,
57377         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
57378         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
57379         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
57380         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
57381         is_jikes_present): Update.
57382         * lib/javaexec.c (execute_java_class): Update.
57383         * lib/javaversion.c (execute_and_read_line): Update.
57384         * NEWS: Document the changes.
57385         Reported by Eric Blake.
57386
57387 2008-06-10  Eric Blake  <ebb9@byu.net>
57388
57389         Add missing include.
57390         * tests/test-strstr.c (includes): Add <signal.h>.
57391         * tests/test-strcasestr.c (includes): Likewise.
57392         * tests/test-memmem.c (includes): Likewise.
57393
57394 2008-06-10  Bruno Haible  <bruno@clisp.org>
57395
57396         * lib/wait-process.c (wait_subprocess): Add an assertion.
57397
57398 2008-06-10  Bruno Haible  <bruno@clisp.org>
57399
57400         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
57401
57402 2008-06-10  Bruno Haible  <bruno@clisp.org>
57403
57404         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
57405         using alarm().
57406         * tests/test-strcasestr.c (main): Likewise.
57407         * tests/test-strstr.c (main): Likewise.
57408
57409 2008-06-09  Bruno Haible  <bruno@clisp.org>
57410
57411         Work around the Solaris 10 ACE ACLs ABI change.
57412         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
57413         declare if ACL_NO_TRIVIAL is present.
57414         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
57415         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
57416         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
57417         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
57418         define if ACL_NO_TRIVIAL is present.
57419         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
57420         and use the current ABI.
57421         (file_has_acl): Use same #if condition as elsewhere.
57422         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
57423         in use, and use the current ABI.
57424         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
57425         Reported by Jim Meyering.
57426
57427 2008-06-09  Eric Blake  <ebb9@byu.net>
57428
57429         Work around environments that (stupidly) ignore SIGALRM.
57430         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
57431         before using alarm().
57432         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57433         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57434         Reported by Ian Beckwith <ianb@erislabs.net>.
57435
57436         Produce autobuild blurb earlier in log.
57437         * modules/autobuild (configure.ac-early): Move AB_INIT here.
57438
57439 2008-06-09  Jim Meyering  <meyering@redhat.com>
57440         and OndÅ™ej Vašík  <ovasik@redhat.com>
57441
57442         utimens.c: correct kernel bug work-around
57443         OndÅ™ej Vašík found that the invalid return value of 280 indicates
57444         failure, not success, and the kernel bug we're trying to work
57445         around affects not just the utimensat call, but also the fallback
57446         futimens call.
57447         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
57448         not success.
57449         [HAVE_FUTIMENS]: Use the same work-around, here.
57450
57451 2008-06-09  Jim Meyering  <meyering@redhat.com>
57452
57453         add more guards around definition of ACE_-related code
57454         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
57455         ALLOW and ACE_OWNER are also defined.
57456
57457 2008-06-08  Bruno Haible  <bruno@clisp.org>
57458
57459         * lib/acl-internal.h: Add me as co-author.
57460         * lib/file-has-acl.c: Likewise.
57461         * lib/set-mode-acl.c: Likewise.
57462         * lib/copy-acl.c: Likewise.
57463
57464 2008-06-08  Bruno Haible  <bruno@clisp.org>
57465
57466         Add support for AIX ACLs.
57467         * lib/acl-internal.h (acl_nontrivial): New declaration.
57468         * lib/file-has-acl.c (acl_nontrivial): New function.
57469         (file_has_acl): Add implementation using AIX 4 ACL API.
57470         * lib/set-mode-acl.c (qset_acl): Likewise.
57471         * lib/copy-acl.c (qcopy_acl): Likewise.
57472
57473 2008-06-08  Bruno Haible  <bruno@clisp.org>
57474
57475         Add support for HP-UX ACLs.
57476         * lib/acl-internal.h (acl_nontrivial): New declaration.
57477         * lib/file-has-acl.c (acl_nontrivial): New function.
57478         (file_has_acl): Add implementation using HP-UX 11 ACL API.
57479         * lib/set-mode-acl.c (qset_acl): Likewise.
57480         * lib/copy-acl.c (qcopy_acl): Likewise.
57481
57482 2008-06-08  Bruno Haible  <bruno@clisp.org>
57483
57484         Add support for Cygwin ACLs.
57485         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
57486         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
57487         the chmod_or_fchmod call.
57488         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
57489
57490 2008-06-08  Bruno Haible  <bruno@clisp.org>
57491
57492         Fix bug with setuid modes in Solaris 10+ code.
57493         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
57494         succeeded, when the mode contains some special bits.
57495
57496 2008-06-08  Bruno Haible  <bruno@clisp.org>
57497
57498         Add support for Solaris 7..10 ACLs.
57499         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
57500         declarations.
57501         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
57502         functions.
57503         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
57504         * lib/set-mode-acl.c (qset_acl): Likewise.
57505         * lib/copy-acl.c (qcopy_acl): Likewise.
57506
57507 2008-06-08  Bruno Haible  <bruno@clisp.org>
57508
57509         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
57510         declaration.
57511         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
57512         (acl_access_nontrivial): Remove MacOS X case.
57513         (file_has_acl): Use acl_extended_nontrivial.
57514         * lib/copy-acl.c (qcopy_acl): Likewise.
57515
57516 2008-06-08  Bruno Haible  <bruno@clisp.org>
57517
57518         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
57519
57520 2008-06-08  Jim Meyering  <meyering@redhat.com>
57521
57522         * modules/acl (Maintainer): Add Bruno Haible.
57523
57524 2008-06-07  Bruno Haible  <bruno@clisp.org>
57525
57526         Improve support for Tru64 ACLs.
57527         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
57528         ACL on OSF/1.
57529
57530 2008-06-07  Bruno Haible  <bruno@clisp.org>
57531
57532         Add support for MacOS X ACLs.
57533         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
57534         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
57535         * lib/set-mode-acl.c (qset_acl): Likewise.
57536         * lib/copy-acl.c (qcopy_acl): Likewise.
57537
57538 2008-06-07  Bruno Haible  <bruno@clisp.org>
57539
57540         Fix memory leak introduced on 2008-05-22.
57541         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
57542         use.
57543
57544 2008-06-07  Bruno Haible  <bruno@clisp.org>
57545
57546         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
57547         to construct an empty ACL.
57548
57549 2008-06-07  Bruno Haible  <bruno@clisp.org>
57550
57551         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
57552         precisely.
57553         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
57554
57555 2008-06-07  Bruno Haible  <bruno@clisp.org>
57556
57557         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
57558         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
57559
57560 2008-06-07  Bruno Haible  <bruno@clisp.org>
57561
57562         * doc/posix-functions/_setjmp.texi: Explain the use of this function
57563         regardless of POSIX.
57564         * doc/posix-functions/_longjmp.texi: Likewise.
57565         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
57566         SystemV platform in this case.
57567
57568 2008-06-06  Eric Blake  <ebb9@byu.net>
57569
57570         Document abort() bugs.
57571         * doc/posix-functions/abort.texi (abort): Mention anomalies.
57572
57573         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
57574         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
57575         sigsetjmp.
57576         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
57577         siglongjmp, but only as a macro.
57578         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
57579         is obsolete.
57580         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
57581
57582         Tweak documentation to cover cygwin argz bugs.
57583         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
57584         argz bug fix; no code change needed since no cygwin releases
57585         occurred between the last fix and the bug being tested.
57586         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
57587         module and recently fixed cygwin bugs.
57588         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
57589         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
57590         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
57591         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
57592         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
57593         Likewise.
57594         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
57595         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
57596         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
57597         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
57598         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
57599         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
57600         Likewise.
57601
57602         Avoid gcc warning on cygwin.
57603         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
57604         !ACL_NO_TRIVIAL]: Avoid unused variable.
57605
57606 2008-06-05  Eric Blake  <ebb9@byu.net>
57607
57608         Be tolerant of UNKNOWN version in gnulib-tool test dir.
57609         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
57610         git-version-gen fails to come up with a version.
57611         Reported by Simon Josefsson.
57612
57613 2008-06-05  Jim Meyering  <meyering@redhat.com>
57614             Paul Eggert  <eggert@cs.ucla.edu>
57615
57616         utimens.c: work around a probable Linux kernel bug
57617         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
57618         appears to be a kernel bug that causes utimensat to return 280
57619         instead of 0, indicating success.
57620
57621 2008-06-04  Bruno Haible  <bruno@clisp.org>
57622
57623         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
57624         2008-06-01 commit.
57625
57626 2008-06-04  Bruno Haible  <bruno@clisp.org>
57627
57628         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
57629         * lib/file-has-acl.c (acl_access_nontrivial): New function.
57630         (file_has_acl): Use it. Save errno afterwards.
57631         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
57632
57633 2008-06-03  Bruno Haible  <bruno@clisp.org>
57634
57635         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
57636         draft code. Simplify #ifs.
57637         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
57638         Put Solaris code after POSIX-draft code. Fix comments regarding
57639         Solaris 10, HP-UX. Mention Cygwin.
57640         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
57641
57642 2008-06-03  Eric Blake  <ebb9@byu.net>
57643
57644         Provide fallback for older kernels.
57645         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
57646         Provide runtime fallback if kernel lacks support.
57647         Reported by Mike Frysinger.
57648
57649 2008-06-02  Bruno Haible  <bruno@clisp.org>
57650
57651         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
57652         it exists.
57653
57654 2008-06-02  Bruno Haible  <bruno@clisp.org>
57655
57656         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
57657         * lib/copy-acl.c (qcopy_acl): Update comment.
57658
57659 2008-06-02  Bruno Haible  <bruno@clisp.org>
57660
57661         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
57662         like ACL APIs.
57663
57664 2008-06-02  Bruno Haible  <bruno@clisp.org>
57665
57666         * tests/test-file-has-acl.sh: Use different code for Cygwin.
57667         * tests/test-set-mode-acl.sh: Likewise.
57668         * tests/test-copy-acl.sh: Likewise.
57669         * tests/test-copy-file.sh: Likewise.
57670
57671 2008-06-02  Bruno Haible  <bruno@clisp.org>
57672
57673         * tests/test-file-has-acl.sh: Remove unused code.
57674
57675 2008-06-01  Bruno Haible  <bruno@clisp.org>
57676
57677         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
57678         (copy_acl): Just a wrapper around qcopy_acl that emits the error
57679         messages.
57680         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
57681
57682 2008-06-01  Bruno Haible  <bruno@clisp.org>
57683
57684         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
57685         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
57686         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
57687         APIs.
57688         * modules/acl-tests (configure.ac): Remove tests now contained in
57689         m4/acl.m4.
57690
57691 2008-06-02  Jim Meyering  <meyering@redhat.com>
57692
57693         announce-gen: use a better key-server host name
57694         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
57695         it may be more consistently reliable.  Suggested by Werner Koch
57696         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
57697
57698 2008-06-01  Bruno Haible  <bruno@clisp.org>
57699
57700         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
57701         Reported by Voroskoi Andras <voroskoi@gmail.com>.
57702
57703 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
57704
57705         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
57706
57707 2008-06-01  Bruno Haible  <bruno@clisp.org>
57708
57709         New ACL tests.
57710         * tests/test-file-has-acl.sh: New file.
57711         * tests/test-file-has-acl.c: New file.
57712         * tests/test-set-mode-acl.sh: New file.
57713         * tests/test-set-mode-acl.c: New file.
57714         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
57715         * tests/test-copy-acl.c: New file.
57716         * modules/acl-tests: New file, based on modules/copy-file-tests.
57717         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
57718         (Depends-on): Add acl-tests.
57719         (configure.ac): Remove checks.
57720         (Makefile.am): Don't create test-sameacls program here any more.
57721
57722 2008-06-01  Bruno Haible  <bruno@clisp.org>
57723
57724         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
57725         * tests/test-sameacls.c: Include progname.h.
57726         (main): Invoke set_program_name. Portability fixes for MacOS X,
57727         Solaris, HP-UX.
57728
57729 2008-06-01  Bruno Haible  <bruno@clisp.org>
57730
57731         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
57732         function.
57733         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
57734
57735 2008-06-01  Bruno Haible  <bruno@clisp.org>
57736
57737         * modules/rpmatch (Depends-on): Add strdup.
57738
57739 2008-06-01  Bruno Haible  <bruno@clisp.org>
57740
57741         * lib/pipe.c: Include unistd-safer.h.
57742         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
57743         * modules/pipe (Depends-on): Add unistd-safer.
57744
57745 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57746
57747         * modules/autobuild (configure.ac): Call AB_INIT.
57748
57749 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57750
57751         * tests/test-getaddrinfo.c: Don't print debug messages by default.
57752         Suggested by Bruno Haible <bruno@clisp.org>.
57753
57754 2008-05-30  Simon Josefsson  <simon@josefsson.org>
57755
57756         * tests/test-base64.c: Cast size_t to unsigned long when invoking
57757         printf.  Use %lu instead of %d.  Reported by Bruno Haible
57758         <bruno@clisp.org>.
57759
57760 2008-05-29  Eric Blake  <ebb9@byu.net>
57761
57762         Prefer new POSIX 200x interfaces over futimesat.
57763         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
57764         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
57765         when available.
57766         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
57767
57768 2008-05-28  Bruno Haible  <bruno@clisp.org>
57769
57770         * modules/stpcpy (License): Change to LGPLv2+.
57771         Requested by David Lutterkort <dlutter@redhat.com>.
57772
57773 2008-05-27  Bruno Haible  <bruno@clisp.org>
57774
57775         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
57776         current mingw.
57777         Reported by Jose E. Marchesi <jemarch@gnu.org>.
57778
57779 2008-05-27  Bruno Haible  <bruno@clisp.org>
57780
57781         * modules/iconv_open (Link): New section, from module 'iconv'.
57782         * modules/striconv (Link): Likewise.
57783         * modules/striconveh (Link): Likewise.
57784         * modules/xstriconv (Link): Likewise.
57785         * modules/unicodeio (Link): Likewise.
57786         * modules/propername (Link): Likewise.
57787         Reported by Jim Meyering.
57788
57789 2008-05-26  Jim Meyering  <meyering@redhat.com>
57790
57791         sha256: do not artificially restrict buffer length to be < 2^32
57792         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
57793         uint32_t to size_t.
57794         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
57795         to match.
57796
57797         avoid unaligned access errors, e.g., on sparc
57798         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
57799         direct access through a possibly-unaligned uint64* pointer.
57800         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
57801         direct access through a possibly-unaligned uint32* pointer.
57802         Prompted by this patch from Tom "spot" Callaway:
57803         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
57804
57805         sha512.c: fix typo in comment
57806         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
57807
57808 2008-05-25  Bruno Haible  <bruno@clisp.org>
57809
57810         * lib/set-mode-acl.c: Renamed from lib/acl.c.
57811         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
57812         (Makefile.am): Update lib_SOURCES.
57813
57814 2008-05-25  Bruno Haible  <bruno@clisp.org>
57815
57816         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
57817
57818 2008-05-25  Jim Meyering  <meyering@redhat.com>
57819
57820         useless-if-before-free: freed expr may have white-space differences
57821         * build-aux/useless-if-before-free: Recognize cases in which the
57822         freed expression differs from the tested one in embedded white
57823         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
57824         $1 was used, so we can't make any regexp shy.  Improved tests now
57825         detect this.
57826
57827         useless-if-before-free: accept white space in the expression.
57828         * build-aux/useless-if-before-free: For now, any white space
57829         in the expression must be identical in the free argument.
57830
57831         useless-if-before-free: efficiency tweak
57832         * build-aux/useless-if-before-free: Make the expression-matching
57833         regexp "shy".
57834         Make the *outer* regexp shy, not the expr-matching one.
57835
57836         update code-in-comment to accept cast of free arg
57837         * build-aux/useless-if-before-free: Update regexp.
57838
57839 2008-05-25  Bruno Haible  <bruno@clisp.org>
57840
57841         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
57842         * modules/copy-file-tests (Files, Makefile.am): Update.
57843         * tests/test-copy-file.c (func_test_copy): Update.
57844
57845 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
57846
57847         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
57848
57849 2008-05-23  Bruno Haible  <bruno@clisp.org>
57850
57851         Improve support for ACLs on OSF/1.
57852         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
57853         Remove fallback for unknown flavors of ACLs.
57854
57855 2008-05-22  Bruno Haible  <bruno@clisp.org>
57856
57857         Add support for ACLs on OSF/1.
57858         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
57859         replacements.
57860         (acl_free_text): New macro fallback.
57861         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
57862         acl_free.
57863         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
57864         acl_free_text function. Require AC_C_INLINE.
57865
57866 2008-05-22  Bruno Haible  <bruno@clisp.org>
57867
57868         Make copy_acl work on MacOS X 10.5.
57869         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
57870         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
57871         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
57872         If MODE_INSIDE_ACL, don't assume that every system has the same text
57873         representation for ACLs as FreeBSD.
57874         * lib/copy-acl.c (copy_acl): Add support for platforms with
57875         !MODE_INSIDE_ACL.
57876         * lib/file-has-acl.c (file_has_acl): Likewise.
57877         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
57878         FreeBSD, MacOS X, or IRIX, respectively.
57879
57880 2008-05-22  Bruno Haible  <bruno@clisp.org>
57881
57882         * lib/acl.h: Don't include <sys/acl.h>.
57883         (GETACLCNT): Move fallback to lib/acl-internal.h.
57884         * lib/acl-internal.h: Include <sys/acl.h> here.
57885         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
57886
57887 2008-05-22  Bruno Haible  <bruno@clisp.org>
57888
57889         Split off copy_acl function to separate file.
57890         * lib/copy-acl.c: New file, extracted from lib/acl.c.
57891         * lib/acl.c (copy_acl): Moved function to separate file.
57892         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
57893         * modules/acl (Files): Add lib/copy-acl.c.
57894         (Makefiles.am): Augment lib_SOURCES.
57895
57896 2008-05-22  Bruno Haible  <bruno@clisp.org>
57897
57898         * modules/copy-file-tests: New file.
57899         * tests/test-copy-file.sh: New file.
57900         * tests/test-copy-file.c: New file.
57901         * tests/test-copy-file-sameacls.c: New file.
57902
57903 2008-05-22  Eric Blake  <ebb9@byu.net>
57904
57905         Avoid gcc warning.
57906         * tests/test-memcmp.c (main): Pass NULL indirectly.
57907
57908 2008-05-21  Bruno Haible  <bruno@clisp.org>
57909
57910         Add reference doc about ACLs.
57911         * doc/acl-resources.txt: New file.
57912         * doc/acl-cygwin.txt: New file.
57913
57914 2008-05-21  Bruno Haible  <bruno@clisp.org>
57915
57916         Avoid one more warning from gcc.
57917         * lib/vasnprintf.c (IF_LINT): Update comments.
57918         (VASNPRINTF): Use it also for the 'prefix' array initializer.
57919
57920 2008-05-21  Jim Meyering  <meyering@redhat.com>
57921
57922         avoid a warning from gcc
57923         * lib/vasnprintf.c (IF_LINT): Define.
57924         (scale10_round_decimal_long_double):
57925         Use it to avoid a "may be used uninitialized" warning.
57926         (scale10_round_decimal_double): Likewise.
57927
57928 2008-05-21  Simon Josefsson  <simon@josefsson.org>
57929
57930         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
57931         declared.
57932
57933 2008-05-20  Bruno Haible  <bruno@clisp.org>
57934
57935         * tests/test-memcmp.c (main): Test also the sign of the result. Test
57936         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
57937
57938 2008-05-20  Simon Josefsson  <simon@josefsson.org>
57939
57940         * modules/memcmp-tests: New file.
57941         * tests/test-memcmp.c: New file.
57942
57943 2008-05-19  Bruno Haible  <bruno@clisp.org>
57944
57945         * modules/propername (Notice, configure.ac): Put quoted "..." into
57946         --keyword option.
57947         * lib/propername.h: Update comments accordingly.
57948         Reported by Eric Blake.
57949
57950 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
57951
57952         * modules/getpass-gnu (Depends-on): Add fseeko.
57953
57954 2008-05-19  Simon Josefsson  <simon@josefsson.org>
57955
57956         * modules/base64-tests: New file.
57957
57958 2008-05-19  Bo Borgerson <gigabo@gmail.com>
57959
57960         * lib/base64.c (base64_decode_ctx): If a decode context structure
57961         was passed in use it to ignore newlines.  If a context structure
57962         was _not_ passed in, continue to treat newlines as garbage (this
57963         is the historical behavior).  Formerly base64_decode.
57964         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
57965         takes a decode context structure.
57966         * lib/base64.h (base64_decode): Macro for four-argument calls.
57967         (base64_decode_alloc): Likewise.
57968         * lib/base64.c (base64_decode_ctx): If a decode context structure
57969         was passed in use it to ignore newlines.  If a context structure
57970         was _not_ passed in, continue to treat newlines as garbage (this
57971         is the historical behavior).  Formerly base64_decode.
57972         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
57973         takes a decode context structure.
57974         * lib/base64.h (base64_decode): Macro for four-argument calls.
57975         (base64_decode_alloc): Likewise.
57976
57977 2008-05-19  Jim Meyering  <meyering@redhat.com>
57978
57979         avoid a warning from gcc
57980         * lib/trim.c (IF_LINT): Define.
57981         (trim2): Use it to avoid a "may be used uninitialized" warning.
57982
57983         Fix doc typo.
57984         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
57985
57986 2008-05-19  Bruno Haible  <bruno@clisp.org>
57987
57988         * doc/glibc-functions/getpass.texi: Document limits of other
57989         implementations.
57990
57991 2008-05-19  Simon Josefsson  <simon@josefsson.org>
57992             Bruno Haible <bruno@clisp.org>
57993
57994         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
57995
57996 2008-05-18  Bruno Haible  <bruno@clisp.org>
57997
57998         * modules/propername: New file, from GNU gettext.
57999         * lib/propername.h: New file, from GNU gettext.
58000         * lib/propername.c: New file, from GNU gettext.
58001         * MODULES.html.sh (Internationalization functions): Add propername.
58002
58003 2008-05-16  Jim Meyering  <meyering@redhat.com>
58004             Bruno Haible  <bruno@clisp.org>
58005
58006         Avoid some warnings from "gcc -Wshadow".
58007         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
58008
58009 2008-05-15  Eric Blake  <ebb9@byu.net>
58010
58011         Extend previous patch to cygwin 1.7.0.
58012         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
58013         fast implementation in cygwin >= 1.7.0.
58014         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58015         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58016
58017 2008-05-15  Bruno Haible  <bruno@clisp.org>
58018
58019         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
58020         implementation in glibc >= 2.9.
58021         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
58022         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
58023
58024 2008-05-15  Bruno Haible  <bruno@clisp.org>
58025
58026         * MODULES.html.sh (Internationalization functions): Remove linebreak.
58027         (Unicode string functions): Add unilbrk/*.
58028         Reported by Karl Berry.
58029
58030 2008-05-15  Eric Blake  <ebb9@byu.net>
58031
58032         Fix violation of <stdbool.h> replacement in regex.
58033         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
58034         * lib/regexec.c (re_search_internal): Likewise.
58035         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
58036
58037 2008-05-15  Jim Meyering  <meyering@redhat.com>
58038
58039         avoid distracting test output when git or cvs is not found
58040         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
58041         * tests/test-vc-list-files-git.sh: Likewise.
58042
58043 2008-05-15  Eric Blake  <ebb9@byu.net>
58044
58045         Glibc finally accepted the memmem speedup code, bugzilla #5514.
58046         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
58047         glibc version.
58048         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
58049         * doc/posix-functions/strstr.texi (strstr): Likewise.
58050         * lib/str-two-way.h (MAX): Sychronize with glibc.
58051
58052 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
58053
58054         * lib/regcomp.c (optimize_utf8): Add a note on why we test
58055         opr.ctx_type.
58056         (calc_first): Initialize constraint field.
58057         (duplicate_node_closure): Use it instead of special casing ANCHORS.
58058         Fix grammar.
58059         (duplicate_node): Merge constraint field for all node types.
58060         (calc_eclosure_iter): Look at constraint field for all node types.
58061         * lib/regex_internal.c (create_cd_newstate): Don't look at
58062         opr.ctx_type.
58063
58064 2008-05-14  Bruno Haible  <bruno@clisp.org>
58065
58066         Help GCC to do better code generation.
58067         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
58068         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
58069         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
58070         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
58071         Declare with attribute 'malloc' if supported.
58072
58073 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
58074
58075         use "echo STR|wc -c" rather than unportable "expr length STR"
58076         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
58077         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
58078
58079 2008-05-14  Jim Meyering  <meyering@redhat.com>
58080
58081         use dd ibs=$n count=1 ... rather than less-portable head -c$n
58082         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
58083         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
58084         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
58085         via Collin Lasse.
58086
58087 2008-05-14  Eric Blake  <ebb9@byu.net>
58088
58089         Avoid quadratic growth in gl_LIBSOURCES.
58090         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
58091         Suggested by Bruno Haible.
58092
58093         Test xmemdup0.
58094         * modules/xmemdup0-tests: New file.
58095         * tests/test-xmemdup0.c: Likewise.
58096
58097 2008-05-13  Eric Blake  <ebb9@byu.net>
58098
58099         Split xmemdup0 into its own module.
58100         * modules/xmemdup0: New file.
58101         * lib/xmemdup0.h: Likewise.
58102         * lib/xmemdup0.c: Likewise.
58103         * MODULES.html.sh (Memory management functions): Add xmemdup0.
58104         * lib/xalloc.h (xmemdup0): Remove.
58105         * lib/xmalloc.c (xmemdup0): Likewise.
58106
58107 2008-05-13  Eric Blake  <ebb9@byu.net>
58108             Bruno Haible  <bruno@clisp.org>
58109
58110         Reduce number of forks required during autoconf.
58111         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
58112         and gl_LIBSOURCES_DIR.
58113         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
58114         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
58115         m4_syscmd per file.
58116         <m4_foreach_w>: Move...
58117         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
58118
58119 2008-05-13  Eric Blake  <ebb9@byu.net>
58120
58121         * gnulib-tool: Fix various comment typos.
58122
58123 2008-05-12  Bruno Haible  <bruno@clisp.org>
58124
58125         Tailor the linebreaking algorithm.
58126         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
58127
58128 2008-05-12  Bruno Haible  <bruno@clisp.org>
58129
58130         Update to Unicode 5.0.0.
58131         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
58132         LBP_JV, LBP_JT. Redistribute values.
58133         (unilbrk_table): Change size.
58134         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
58135         Unicode TR#14 rev. 22.
58136         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
58137         LBP_JV, LBP_JT. Redistribute values.
58138         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
58139         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
58140         Update.
58141         * lib/unilbrk/lbrkprop1.h: Regenerated.
58142         * lib/unilbrk/lbrkprop2.h: Regenerated.
58143         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
58144         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
58145         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
58146         Likewise.
58147         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
58148         Likewise.
58149         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
58150         result.
58151         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
58152         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
58153         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
58154         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
58155         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
58156         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
58157
58158 2008-05-11  Bruno Haible  <bruno@clisp.org>
58159
58160         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
58161
58162 2008-05-11  Bruno Haible  <bruno@clisp.org>
58163
58164         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
58165         * modules/unilbrk/gen-lbrk: New file.
58166
58167 2008-05-11  Bruno Haible  <bruno@clisp.org>
58168
58169         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
58170         * m4/sha512.m4 (gl_SHA512): Likewise.
58171
58172 2008-05-11  Jim Meyering  <meyering@redhat.com>
58173
58174         New modules: crypto/sha256, crypto/sha512 (from coreutils)
58175         * modules/crypto/sha256: New file.
58176         * modules/crypto/sha512: Likewise.
58177         * lib/sha256.c: Likewise.
58178         * lib/sha256.h: Likewise.
58179         * lib/sha512.c: Likewise.
58180         * lib/sha512.h: Likewise.
58181         * lib/u64.h: Likewise.
58182         * m4/sha256.m4: Likewise.
58183         * m4/sha512.m4: Likewise.
58184         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
58185
58186 2008-05-10  Bruno Haible  <bruno@clisp.org>
58187
58188         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
58189         (Input/Output <stdio.h>): Add xprintf.
58190         (Signal handling <signal.h>): Add strsignal.
58191         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
58192         (Core language properties): Add func.
58193         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
58194         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
58195         strings.
58196         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
58197         (Input/output): New section.
58198         (File system functions): Add openat-die, stat-macros.
58199         (Networking functions): Add sockets.
58200         (Unicode string functions): Add unictype/*.
58201         (Support for building libraries and executables): Add gperf.
58202         (Support for building documentation): Add agpl-3.0.
58203         (Misc): Add nocrash.
58204
58205 2008-05-10  Bruno Haible  <bruno@clisp.org>
58206
58207         * modules/unictype/gen-ctype: New file.
58208
58209 2008-05-10  Jim Meyering  <meyering@redhat.com>
58210
58211         Make chdir-safer.c more efficient on a system with no symlinks.
58212         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
58213         also if ELOOP is zero.  Suggested by Bruno Haible.
58214
58215         Make chdir-safer.c slightly safer.
58216         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
58217         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
58218
58219         Avoid compile failure on systems without ELOOP (like mingw).
58220         * lib/chdir-safer.c (ELOOP): Define if not already defined.
58221         Reported by Bruno Haible.
58222
58223 2008-05-10  Bruno Haible  <bruno@clisp.org>
58224
58225         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
58226         (is_utf8_encoding): Use a case-insensitive comparison.
58227         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
58228         streq.
58229
58230 2008-05-10  Bruno Haible  <bruno@clisp.org>
58231
58232         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
58233         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
58234         * lib/unilbrk/ulc-common.h (iconv_string_length,
58235         iconv_string_keeping_offsets): Remove declarations.
58236         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
58237         Don't include <iconv.h>, streq.h, xsize.h.
58238         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
58239         conversion.
58240         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
58241         <iconv.h>, streq.h, xsize.h.
58242         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
58243         conversion.
58244         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
58245         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
58246         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
58247         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
58248
58249 2008-05-10  Bruno Haible  <bruno@clisp.org>
58250
58251         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
58252         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
58253
58254         * modules/unilbrk/u32-width-linebreaks-tests: New file.
58255         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
58256
58257         * modules/unilbrk/u16-width-linebreaks-tests: New file.
58258         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
58259
58260         * modules/unilbrk/u8-width-linebreaks-tests: New file.
58261         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
58262
58263         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
58264         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
58265
58266         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
58267         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
58268
58269         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
58270         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
58271
58272         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
58273         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
58274
58275 2008-05-10  Bruno Haible  <bruno@clisp.org>
58276
58277         Split up 'linebreak' module.
58278         * lib/unilbrk.h: New file, based on lib/linebreak.h.
58279         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
58280         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
58281         modifications.
58282         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
58283         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
58284         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
58285         lib/linebreak.c.
58286         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
58287         lib/linebreak.c.
58288         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
58289         lib/linebreak.c.
58290         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
58291         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
58292         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
58293         lib/linebreak.c.
58294         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
58295         lib/linebreak.c.
58296         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
58297         lib/linebreak.c.
58298         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
58299         lib/linebreak.c.
58300         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
58301         lib/linebreak.c.
58302         * modules/unilbrk/base: New file.
58303         * modules/unilbrk/tables: New file.
58304         * modules/unilbrk/u8-possible-linebreaks: New file.
58305         * modules/unilbrk/u16-possible-linebreaks: New file.
58306         * modules/unilbrk/u32-possible-linebreaks: New file.
58307         * modules/unilbrk/ulc-common: New file.
58308         * modules/unilbrk/ulc-possible-linebreaks: New file.
58309         * modules/unilbrk/u8-width-linebreaks: New file.
58310         * modules/unilbrk/u16-width-linebreaks: New file.
58311         * modules/unilbrk/u32-width-linebreaks: New file.
58312         * modules/unilbrk/ulc-width-linebreaks: New file.
58313         * lib/linebreak.h: Remove file.
58314         * lib/linebreak.c: Remove file.
58315         * m4/linebreak.m4: Remove file.
58316         * modules/linebreak: Remove file.
58317         * NEWS: Mention the changes.
58318
58319 2008-05-09  Eric Blake  <ebb9@byu.net>
58320
58321         Add xmemdup0.
58322         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
58323         implementation.
58324         * lib/xmalloc.c (xmemdup0): New C implementation.
58325
58326 2008-05-08  Bruno Haible  <bruno@clisp.org>
58327
58328         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
58329
58330 2008-05-07  Eric Blake  <ebb9@byu.net>
58331
58332         Support cross-compilation of <wctype.h>.
58333         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
58334         AC_CACHE_CHECK.
58335
58336 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
58337
58338         * build-aux/vc-list-files: Add support for bzr.
58339
58340 2008-05-03  Jim Meyering  <meyering@redhat.com>
58341
58342         avoid failed assertion with tight malloc
58343         * tests/test-getndelim2.c: Correct an off-by-one assertion.
58344
58345 2008-05-03  Simon Josefsson  <simon@josefsson.org>
58346
58347         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
58348         are needed from arpa/inet.h.
58349         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
58350         Reported by Bruno Haible.
58351
58352 2008-05-02  Jim Meyering  <meyering@redhat.com>
58353
58354         avoid compilation error on FreeBSD 6
58355         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
58356
58357 2008-05-01  Jim Meyering  <meyering@redhat.com>
58358
58359         useless-if-before-free: correct --help's exit status description
58360         * build-aux/useless-if-before-free (usage): Like grep, exit 0
58361         for one or more matches, etc.  Reported by Bruno Haible.
58362
58363         vc-list-files: make the stand-alone gnulib test work
58364         * modules/vc-list-files-tests (configure.ac):
58365         Define and AC_SUBST abs_aux_dir.
58366         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
58367         $(abs_top_srcdir) to each script and having each of them
58368         duplicate the work of setting PATH, set PATH here, using
58369         the new variable, abs_aux_dir instead.
58370         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
58371         * tests/test-vc-list-files-git.sh: Likewise.
58372         Reported by Bruno Haible.
58373
58374 2008-05-01  Bruno Haible  <bruno@clisp.org>
58375
58376         * lib/getndelim2.c (getndelim2): Fix newsize computation during
58377         reallocation. Rename 'done' to 'found_delimiter'.
58378
58379 2008-05-01  Jim Meyering  <meyering@redhat.com>
58380
58381         vc-list-files: accommodate /bin/sh like the one from Solaris 10
58382         * build-aux/vc-list-files: Use `...`, not $(...).
58383
58384 2008-04-30  Jim Meyering  <meyering@redhat.com>
58385
58386         add tests for vc-list-files
58387         * modules/vc-list-files-tests: New module.
58388         * tests/test-vc-list-files-cvs.sh: New file.
58389         * tests/test-vc-list-files-git.sh: New file.
58390
58391         avoid a warning from gcc
58392         * lib/getndelim2.c (IF_LINT): Define.
58393         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
58394
58395         vc-list-files: work properly with build-aux/cvsu, too
58396         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
58397         to all cvs-based clauses.
58398
58399         vc-list-files: work properly in the CVS+awk case, too
58400         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
58401
58402         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
58403         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
58404         take more than one file argument, so .  Add quotes, just in case $dir
58405         ever contains a shell meta-character.  Prompted by Soren Hansen in
58406         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
58407
58408 2008-04-29  Eric Blake  <ebb9@byu.net>
58409
58410         Optimize getndelim2 to use block operations when possible.
58411         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
58412         freadseek, and memchr2.
58413         * lib/getndelim2.c (getndelim2): Use them for block reads.
58414
58415 2008-04-29  Bruno Haible  <bruno@clisp.org>
58416
58417         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
58418         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
58419         * modules/inet_ntop (Depends-on): Add extensions.
58420         * modules/inet_pton (Depends-on): Likewise.
58421         Reported by Simon Josefsson.
58422
58423 2008-04-29  Jim Meyering  <meyering@redhat.com>
58424
58425         When the is more than one match in a block, match all of them.
58426         * build-aux/useless-if-before-free: Iterate through each block
58427         until there are no more matches.
58428
58429         Fix broken useless-if-before-free script.
58430         * build-aux/useless-if-before-free: Fix typo: missing "?" after
58431         the expression to match cast of argument to free-like function.
58432
58433 2008-04-29  Eric Blake  <ebb9@byu.net>
58434
58435         Use new header.
58436         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
58437
58438 2008-04-29  Jim Meyering  <meyering@redhat.com>
58439
58440         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
58441         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
58442         by gnulib to exist and to declare e.g., inet_ntop.
58443         Don't include "inet_ntop.h", now removed.
58444
58445         * m4/arpa_inet_h.m4: Remove trailing blanks.
58446
58447 2008-04-29  Eric Blake  <ebb9@byu.net>
58448
58449         Silence valgrind on safe reads beyond potential array bounds.
58450         * lib/rawmemchr.valgrind: New file.
58451         * lib/strchrnul.valgrind: Likewise.
58452         * modules/rawmemchr (Files): Distribute new file.
58453         * modules/strchrnul (Files): Likewise.
58454         Suggested by Bruno Haible.
58455
58456 2008-04-29  Bruno Haible  <bruno@clisp.org>
58457
58458         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
58459         (inet_ntop, inet_pton): Change portability warning's wording.
58460         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
58461         Invoke gl_CHECK_NEXT_HEADERS.
58462         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
58463         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
58464         set ARPA_INET_H.
58465         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
58466         * modules/arpa_inet (Description): No longer only for systems that
58467         lack it.
58468         (Depends-on): Add include_next.
58469         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
58470         HAVE_ARPA_INET_H.
58471
58472 2008-04-29  Jim Meyering  <meyering@redhat.com>
58473
58474         * modules/mkdir (License): Re-license as LGPLv2+.
58475
58476 2008-04-29  Bruno Haible  <bruno@clisp.org>
58477
58478         * modules/rawmemchr (Maintainer): Set to Eric.
58479         * modules/strchrnul (Maintainer): Likewise.
58480
58481 2008-04-29  Simon Josefsson  <simon@josefsson.org>
58482
58483         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
58484         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
58485
58486         * modules/arpa_inet (arpa/inet.h): Use them.
58487
58488 2008-04-28  Eric Blake  <ebb9@byu.net>
58489
58490         Test getndelim2.
58491         * modules/getndelim2-tests: New file.
58492         * tests/test-getndelim2.c: Likewise.
58493         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
58494         stream.
58495         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
58496
58497         * MODULES.html.sh: Document new module.
58498
58499 2008-04-20  Bruno Haible  <bruno@clisp.org>
58500
58501         * lib/c-stack.c (die): Use raise.
58502         * modules/c-stack (Depends-on): Add raise.
58503
58504 2008-04-28  Bruno Haible  <bruno@clisp.org>
58505
58506         Expect rpmatch to be declared.
58507         * lib/yesno.c (rpmatch): Remove declaration.
58508
58509         Declare rpmatch.
58510         * lib/stdlib.in.h (rpmatch): New declaration.
58511         * lib/rpmatch.c: Include <stdlib.h> first.
58512         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
58513         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
58514         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
58515         HAVE_RPMATCH.
58516         * modules/rpmatch (Depends-on): Add stdlib, extensions.
58517         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
58518         (Include): Set to <stdlib.h>.
58519         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
58520         HAVE_RPMATCH.
58521         * NEWS: Document the change.
58522
58523 2008-04-28  Bruno Haible  <bruno@clisp.org>
58524
58525         Change rpmatch to use nl_langinfo when appropriate.
58526         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
58527         (N_): New macro.
58528         (localized_pattern): New function/macro.
58529         (try): Remove match, nomatch arguments. Copy the pattern into safe
58530         memory before caching it.
58531         (rpmatch): Use localized_pattern. Add translator comments.
58532         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
58533         Suggested by Eric Blake.
58534         * modules/rpmatch (Depends-on): Add stdbool.
58535
58536 2008-04-28  Eric Blake  <ebb9@byu.net>
58537
58538         Add rawmemchr module, matching glibc.
58539         * modules/string (Makefile.am): New indicator.
58540         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
58541         * lib/string.in.h (rawmemchr): Declare when appropriate.
58542         * modules/rawmemchr: New file.
58543         * m4/rawmemchr.m4: Likewise.
58544         * lib/rawmemchr.c: Likewise.
58545         * modules/rawmemchr-tests: Likewise.
58546         * tests/test-rawmemchr.c: Likewise.
58547         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
58548         module.
58549         * modules/strchrnul (Depends-on): Add rawmemchr.
58550         * lib/strchrnul.c (strchrnul): Optimize a corner case.
58551
58552         Whitespace cleanup.
58553         * tests/test-strchrnul.c: Reindent.
58554         * lib/strchrnul.c: Likewise.
58555
58556         Optimize and test strchrnul.
58557         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
58558         * modules/strchrnul-tests: New file.
58559         * tests/test-strchrnul.c: Likewise.
58560
58561         Remove intprops dependency.
58562         * modules/memchr (Depends-on): Remove intprops.
58563         * modules/memrchr (Depends-on): Likewise.
58564         * modules/memchr2 (Depends-on): Likewise.
58565         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
58566         * lib/memrchr.c (__memrchr): Likewise.
58567         * lib/memrchr2.c (memchr2): Likewise.
58568         Reported by Simon Josefsson.
58569
58570 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58571
58572         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
58573         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58574
58575 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58576
58577         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
58578
58579         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
58580
58581         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
58582
58583         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
58584         declarations.
58585         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
58586
58587         * m4/inet_pton.m4: Don't check for header files.
58588
58589         * m4/inet_ntop.m4: Don't check for header files.
58590
58591 2008-04-28  Simon Josefsson  <simon@josefsson.org>
58592
58593         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
58594         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
58595         trigger for cygwin).
58596         Reported by Bruno Haible  <bruno@clisp.org>.
58597
58598 2008-04-28  Bruno Haible  <bruno@clisp.org>
58599
58600         * doc/posix-functions/strdup.texi: Mention mingw problem.
58601
58602 2008-04-27  Bruno Haible  <bruno@clisp.org>
58603
58604         * modules/stat-time-tests (Depends-on): Add sleep.
58605         * tests/test-stat-time.c (force_unlink): New function.
58606         (cleanup): Use it.
58607         (test_mtime): Remove the ctime related tests.
58608         (test_ctime): New function, containing the ctime related tests.
58609         (main): Call test_ctime, except on native Windows platforms.
58610
58611 2008-04-27  Bruno Haible  <bruno@clisp.org>
58612
58613         * lib/rpmatch.c (rpmatch): Add some comments.
58614         Reported by James Youngman <jay@gnu.org>.
58615
58616 2008-04-27  Bruno Haible  <bruno@clisp.org>
58617
58618         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
58619         quiet NaNs.
58620
58621 2008-04-27  Bruno Haible  <bruno@clisp.org>
58622
58623         Make test-yesno.sh work on mingw.
58624         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
58625         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
58626         (main): Set stdin to binary mode.
58627         * modules/yesno-tests (Depends-on): Add binary-io.
58628
58629 2008-04-27  Bruno Haible  <bruno@clisp.org>
58630
58631         Fix 'isfinite' on x86, x86_64, ia64 platforms.
58632         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
58633         argument that lie outside the IEEE 854 domain.
58634         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
58635         (gl_ISFINITE): Use it.
58636         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
58637
58638 2008-04-27  Bruno Haible  <bruno@clisp.org>
58639
58640         Allow local renaming in config.h.
58641         * lib/memrchr.c (memrchr): Don't undefine outside libc.
58642
58643 2008-04-27  Bruno Haible  <bruno@clisp.org>
58644
58645         * lib/memchr.c (__memchr): Change type of 'i'.
58646         * lib/memchr2.c (memchr2): Likewise.
58647
58648 2008-04-26  Eric Blake  <ebb9@byu.net>
58649         and Bruno Haible  <bruno@clisp.org>
58650
58651         Optimize and test memrchr.
58652         * modules/memrchr (Depends-on): Add intprops.
58653         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
58654         * modules/memrchr-tests: New file.
58655         * tests/test-memrchr.c: New file.
58656
58657 2008-04-26  Bruno Haible  <bruno@clisp.org>
58658
58659         Add tentative support for DragonFly BSD.
58660         * lib/stdio-impl.h: Add macros for DragonFly BSD.
58661         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
58662         fp.
58663         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
58664         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
58665         * lib/fpurge.c (fpurge): Likewise.
58666         * lib/freadable.c (freaadable): Likewise.
58667         * lib/freadahead.c (freadahead): Likewise.
58668         * lib/freading.c (freading): Likewise.
58669         * lib/freadptr.c (freadptr): Likewise.
58670         * lib/freadseek.c (freadptrinc): Likewise.
58671         * lib/fseeko.c (fseeko): Likewise.
58672         * lib/fseterr.c (fseterr): Likewise.
58673         * lib/fwritable.c (fwritable): Likewise.
58674         * lib/fwriting.c (fwriting): Likewise.
58675
58676 2008-04-26  Bruno Haible  <bruno@clisp.org>
58677
58678         * lib/stdio-impl.h: New file.
58679         * lib/fbufmode.c: Include stdio-impl.h.
58680         (fbufmode): Use fp_, remove redundant #defines.
58681         * lib/fflush.c: Include stdio-impl.h.
58682         (clear_ungetc_buffer): Remove redundant #defines.
58683         * lib/fpurge.c: Include stdio-impl.h.
58684         (fpurge): Remove redundant #defines.
58685         * lib/freadable.c: Include stdio-impl.h.
58686         (freadable): Remove redundant #defines.
58687         * lib/freadahead.c: Include stdio-impl.h.
58688         (freadahead): Remove redundant #defines.
58689         * lib/freading.c: Include stdio-impl.h.
58690         (freading): Remove redundant #defines.
58691         * lib/freadptr.c: Include stdio-impl.h.
58692         (freadptr): Remove redundant #defines.
58693         * lib/freadseek.c: Include stdio-impl.h.
58694         (freadptrinc): Remove redundant #defines.
58695         * lib/fseeko.c: Include stdio-impl.h.
58696         (rpl_fseeko): Remove redundant #defines.
58697         * lib/fseterr.c: Include stdio-impl.h.
58698         (fseterr): Remove redundant #defines.
58699         * lib/fwritable.c: Include stdio-impl.h.
58700         (fwritable: Remove redundant #defines.
58701         * lib/fwriting.c: Include stdio-impl.h.
58702         (fwriting): Remove redundant #defines.
58703         * modules/fbufmode (Files): Add lib/stdio-impl.h.
58704         * modules/fflush (Files): Likewise.
58705         * modules/fpurge (Files): Likewise.
58706         * modules/freadable (Files): Likewise.
58707         * modules/freadahead (Files): Likewise.
58708         * modules/freading (Files): Likewise.
58709         * modules/freadptr (Files): Likewise.
58710         * modules/freadseek (Files): Likewise.
58711         * modules/fseeko (Files): Likewise.
58712         * modules/fseterr (Files): Likewise.
58713         * modules/fwritable (Files): Likewise.
58714         * modules/fwriting (Files): Likewise.
58715
58716 2008-04-26  Bruno Haible  <bruno@clisp.org>
58717
58718         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
58719         restore_seek_optimization, update_fpos_cache): New functions, extracted
58720         from rpl_fflush.
58721         (rpl_fflush): Use them.
58722         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
58723         (gl_REPLACE_FFLUSH): Use it.
58724
58725 2008-04-26  Bruno Haible  <bruno@clisp.org>
58726
58727         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
58728         on Solaris.
58729         * tests/test-xstrtoimax.sh: Likewise.
58730         * tests/test-xstrtoumax.sh: Likewise.
58731         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
58732
58733 2008-04-26  Bruno Haible  <bruno@clisp.org>
58734
58735         * modules/memchr-tests: New file.
58736         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
58737
58738 2008-04-26  Eric Blake  <ebb9@byu.net>
58739             Bruno Haible  <bruno@clisp.org>
58740
58741         * lib/memchr.c: Include intprops.h.
58742         (__memchr): Optimize parallel detection of matching bytes. Rename local
58743         variables. Add explanatory comments.
58744
58745 2008-04-26  Bruno Haible  <bruno@clisp.org>
58746
58747         Fix module 'memchr', broken since 2000-10-28.
58748         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
58749
58750 2008-04-26  Bruno Haible  <bruno@clisp.org>
58751
58752         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
58753         comments.
58754
58755 2008-04-25  Eric Blake  <ebb9@byu.net>
58756
58757         Use native fstatat on cygwin 1.7.0.
58758         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
58759         first.
58760
58761 2008-04-23  Eric Blake  <ebb9@byu.net>
58762
58763         Improve memchr2 performance.
58764         * lib/memchr2.c (memchr2): Further optimize parallel detection of
58765         NUL bytes.
58766         * modules/memchr2 (Depends-on): Use intprops.h.
58767
58768 2008-04-23  Simon Josefsson  <simon@josefsson.org>
58769
58770         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
58771         an inline function instead of a CPP macro.  Patch by Ben Pfaff
58772         <blp@cs.stanford.edu>.
58773
58774 2008-04-23  Simon Josefsson  <simon@josefsson.org>
58775
58776         * lib/arpa_inet.in.h: New file.
58777
58778         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
58779         (Makefile.am): Sed in substitute header file.
58780
58781         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
58782         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
58783
58784         * modules/inet_ntop (configure.ac): Use
58785         gl_ARPA_INET_MODULE_INDICATOR.
58786
58787         * modules/inet_pton (configure.ac): Use
58788         gl_ARPA_INET_MODULE_INDICATOR.
58789
58790 2008-04-22  Jim Meyering  <meyering@redhat.com>
58791
58792         * modules/verify (License): Re-license as LGPLv2+.
58793
58794 2008-04-22  Simon Josefsson  <simon@josefsson.org>
58795
58796         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
58797         parameter to void* as per POSIX standard (MinGW uses char*).
58798
58799 2008-04-21  Bruno Haible  <bruno@clisp.org>
58800
58801         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
58802         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
58803         Define to replacements if REPLACE_ISWCNTRL is 1.
58804         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
58805         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
58806         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
58807         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
58808         what it fixes.
58809         * doc/posix-functions/iswalpha.texi: Likewise.
58810         * doc/posix-functions/iswblank.texi: Likewise.
58811         * doc/posix-functions/iswcntrl.texi: Likewise.
58812         * doc/posix-functions/iswdigit.texi: Likewise.
58813         * doc/posix-functions/iswgraph.texi: Likewise.
58814         * doc/posix-functions/iswlower.texi: Likewise.
58815         * doc/posix-functions/iswprint.texi: Likewise.
58816         * doc/posix-functions/iswpunct.texi: Likewise.
58817         * doc/posix-functions/iswspace.texi: Likewise.
58818         * doc/posix-functions/iswupper.texi: Likewise.
58819         * doc/posix-functions/iswxdigit.texi: Likewise.
58820         Reported by Alain Guibert.
58821
58822 2008-04-21  Bruno Haible  <bruno@clisp.org>
58823
58824         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
58825         Patch by Alain Guibert.
58826
58827 2008-04-21  Bruno Haible  <bruno@clisp.org>
58828
58829         Fix test failures on mingw.
58830         * tests/test-xstrtol.c (print_no_progname): New function.
58831         (main): Install it in error_print_progname hook.
58832         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
58833         * tests/test-xstrtoimax.sh: Likewise.
58834         * tests/test-xstrtoumax.sh: Likewise.
58835
58836 2008-04-21  Bruno Haible  <bruno@clisp.org>
58837
58838         Fix test failure on mingw.
58839         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
58840
58841 2008-04-21  Bruno Haible  <bruno@clisp.org>
58842
58843         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
58844         Actually assign a value.
58845
58846 2008-04-20  Bruno Haible  <bruno@clisp.org>
58847
58848         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
58849         take 2.
58850         * lib/canonicalize.c (canonicalize_file_name): Elide if the
58851         'canonicalize-lgpl' module is also used.
58852         * lib/canonicalize-lgpl.c: Undo last change.
58853         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
58854
58855 2008-04-20  Bruno Haible  <bruno@clisp.org>
58856
58857         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
58858         config.h. Provide _mkdir based fallback for mingw.
58859         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
58860         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
58861         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
58862         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
58863         rather than defining mkdir in config.h.
58864         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
58865         (gl_SYS_STAT_H_DEFAULTS): New macro.
58866         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
58867         HAVE_IO_H any more.
58868         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
58869         HAVE_DECL_MKDIR and HAVE_IO_H.
58870
58871 2008-04-20  Bruno Haible  <bruno@clisp.org>
58872
58873         * lib/isapipe.c: Port to native Windows platforms.
58874
58875 2008-04-20  Bruno Haible  <bruno@clisp.org>
58876
58877         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
58878
58879 2008-04-21  Eric Blake  <ebb9@byu.net>
58880
58881         Work around preprocessors that don't handle UINTMAX_MAX.
58882         * lib/memchr2.c (memchr2): Avoid embedded #if.
58883         Reported by Alain Guibert, fix suggested by Bruno Haible.
58884
58885 2008-04-21  Simon Josefsson  <simon@josefsson.org>
58886
58887         * doc/posix-functions/strftime.texi (strftime): Explain better
58888         Windows incompatibility.  Suggested by Micah Cowan
58889         <micah@cowan.name>.
58890
58891 2008-04-20  Bruno Haible  <bruno@clisp.org>
58892
58893         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
58894         unistr/u8-mblen.
58895
58896 2008-04-20  Bruno Haible  <bruno@clisp.org>
58897
58898         Fix test failure on platforms with non-GNU iconv.
58899         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
58900         (U_TO_U8): Use it, rather than u16_to_u8.
58901         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
58902         units at the end of the input string.
58903         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
58904
58905 2008-04-20  Bruno Haible  <bruno@clisp.org>
58906
58907         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
58908         when the resulting length is 0.
58909         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
58910
58911 2008-04-20  Bruno Haible  <bruno@clisp.org>
58912
58913         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
58914         works.
58915         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
58916
58917 2008-04-20  Bruno Haible  <bruno@clisp.org>
58918
58919         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
58920         * modules/tsearch-tests (configure.ac): Test for initstate function.
58921
58922 2008-04-20  Bruno Haible  <bruno@clisp.org>
58923
58924         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
58925         for nlink_t if missing.
58926         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
58927
58928 2008-04-19  Bruno Haible  <bruno@clisp.org>
58929
58930         Work around snprintf bug on Linux libc5.
58931         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
58932         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
58933         gl_SNPRINTF_SIZE1.
58934         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
58935         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
58936         that test failed.
58937         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
58938         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
58939         * modules/snprintf (Files): Add m4/printf.m4.
58940         * modules/vsnprintf (Files): Likewise.
58941         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
58942         * doc/posix-functions/vsnprintf.texi: Likewise.
58943
58944 2008-04-19  Bruno Haible  <bruno@clisp.org>
58945
58946         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
58947         from 0.0058 to less than 10^-7.
58948
58949 2008-04-19  Bruno Haible  <bruno@clisp.org>
58950
58951         Fix rounding when a precision is given.
58952         * lib/vasnprintf.c (is_borderline): New function.
58953         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
58954         9...9x.
58955         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
58956         %e, %g.
58957         * tests/test-vasprintf-posix.c (test_function): Likewise.
58958         * tests/test-snprintf-posix.h (test_function): Likewise.
58959         * tests/test-sprintf-posix.h (test_function): Likewise.
58960         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
58961         * tests/test-printf-posix.h (test_function): Likewise.
58962         * tests/test-printf-posix.output: Update.
58963         Reported by John Darrington <john@darrington.wattle.id.au> via
58964         Ben Pfaff <blp@cs.stanford.edu>.
58965
58966 2008-04-18  Simon Josefsson  <simon@josefsson.org>
58967
58968         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
58969         Suggested by Bruno Haible <bruno@clisp.org>.
58970
58971 2008-04-17  Bruno Haible  <bruno@clisp.org>
58972
58973         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
58974         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
58975         implementation.
58976         Patch by Bruce Merry <bmerry@gmail.com>.
58977
58978 2008-04-17  Simon Josefsson  <simon@josefsson.org>
58979
58980         * doc/posix-functions/strftime.texi (strftime): Mention that %e
58981         doesn't work under Windows.
58982
58983 2008-04-16  Bruno Haible  <bruno@clisp.org>
58984
58985         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
58986         New macros.
58987         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
58988         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
58989         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
58990         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
58991         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
58992         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
58993         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
58994         macros.
58995         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
58996         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
58997         Northern Sotho, Uighur.
58998
58999 2008-04-16  Bruno Haible  <bruno@clisp.org>
59000
59001         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
59002         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
59003         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
59004         Reported by Daniel Bergström <daniel@octocode.com>.
59005
59006 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
59007             Bruno Haible  <bruno@clisp.org>
59008
59009         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
59010         function.
59011         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
59012         New functions, mostly extracted from gl_locale_name_default.
59013         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
59014
59015 2008-04-16  Eric Blake  <ebb9@byu.net>
59016
59017         Adjust strtod detection to catch glibc 2.7 bug.
59018         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
59019         Reported by John Gatewood Ham.
59020
59021 2008-04-16  Bruno Haible  <bruno@clisp.org>
59022
59023         Add tentative support for Linux libc5.
59024         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
59025         * lib/fpurge.c (fpurge): Likewise.
59026         * lib/freadable.c (freadable): Likewise.
59027         * lib/freadahead.c (freadahead): Likewise.
59028         * lib/freading.c (freading): Likewise.
59029         * lib/freadptr.c (freadptr): Likewise.
59030         * lib/freadseek.c (freadptrinc): Likewise.
59031         * lib/fseeko.c (rpl_fseeko): Likewise.
59032         * lib/fseterr.c (fseterr): Likewise.
59033         * lib/fwritable.c (fwritable): Likewise.
59034         * lib/fwriting.c (fwriting): Likewise.
59035         Reported by Alain Guibert <alguibert+bts@free.fr>.
59036
59037 2008-04-15  Bruno Haible  <bruno@clisp.org>
59038
59039         * modules/mathl (configure.ac): Define module indicator.
59040
59041 2008-04-15  Bruno Haible  <bruno@clisp.org>
59042
59043         * lib/logl.c (logl): Remove unused variables.
59044
59045 2008-04-15  Bruno Haible  <bruno@clisp.org>
59046
59047         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
59048         fails.
59049
59050 2008-04-15  Bruno Haible  <bruno@clisp.org>
59051
59052         * lib/trim.c (trim2): Fix argument of isspace() macro.
59053
59054 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
59055
59056         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
59057         to 0.
59058         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
59059
59060 2008-04-14  Bruno Haible  <bruno@clisp.org>
59061
59062         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
59063         AC_LANG_PROGRAM argument.
59064         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
59065         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
59066         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
59067         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
59068         * m4/math_h.m4 (gl_MATH_H): Likewise.
59069         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
59070         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59071         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
59072         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
59073         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
59074         * m4/regex.m4 (gl_REGEX): Likewise.
59075         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
59076         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
59077         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
59078         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
59079         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
59080         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
59081         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
59082         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
59083
59084 2008-04-14  Jim Meyering  <meyering@redhat.com>
59085
59086         test-strtod: fix typos: s/abs/fabs/
59087         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
59088
59089 2008-04-13  Bruno Haible  <bruno@clisp.org>
59090
59091         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
59092         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
59093         module is also used and while not building the reloc-wrapper.
59094
59095 2008-04-13  Bruno Haible  <bruno@clisp.org>
59096
59097         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
59098
59099 2008-04-13  Bruno Haible  <bruno@clisp.org>
59100
59101         Fix AIX compilation failure introduced on 2008-04-02.
59102         * tests/test-frexp.c (exp): Undefine before redefining.
59103         * tests/test-frexpl.c (exp): Likewise.
59104
59105 2008-04-13  Bruno Haible  <bruno@clisp.org>
59106
59107         Work around a HP-UX stdio bug.
59108         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
59109         * tests/test-ftello.c (main): Likewise.
59110         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
59111         * doc/posix-functions/ftello.texi: Likewise.
59112
59113 2008-04-13  Bruno Haible  <bruno@clisp.org>
59114
59115         Make test-signbit pass on HP-UX/hppa.
59116         * tests/test-signbit.c (minus_zerol): New variable.
59117         (test_signbitl): Use it.
59118
59119 2008-04-13  Bruno Haible  <bruno@clisp.org>
59120
59121         Make truncl work on OSF/1 4.0.
59122         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
59123         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
59124         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
59125         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
59126         HAVE_DECL_TRUNCL.
59127         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
59128         HAVE_DECL_TRUNCL.
59129         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
59130
59131 2008-04-13  Bruno Haible  <bruno@clisp.org>
59132
59133         * lib/unictype.h: Remove trailing comma from enumeration definitions.
59134
59135 2008-04-13  Bruno Haible  <bruno@clisp.org>
59136
59137         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
59138         expression, so as to avoid HP-UX 11 cc compiler bug.
59139
59140 2008-04-13  Bruno Haible  <bruno@clisp.org>
59141
59142         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
59143
59144 2008-04-13  Bruno Haible  <bruno@clisp.org>
59145
59146         * lib/git-merge-changelog.c: Remove empty declaration outside of
59147         functions.
59148
59149 2008-04-13  Bruno Haible  <bruno@clisp.org>
59150
59151         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
59152
59153 2008-04-13  Bruno Haible  <bruno@clisp.org>
59154
59155         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
59156         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
59157         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
59158         also if it exists but lacks definitions of the SHUT_* macros.
59159         * modules/sys_socket (Description): Update.
59160         Reported by Elbert Pol <e.pol@chello.nl>.
59161
59162 2008-04-13  Bruno Haible  <bruno@clisp.org>
59163
59164         * lib/localcharset.c (OS2): Don't redefine if already defined.
59165         Reported by Elbert Pol <e.pol@chello.nl>.
59166
59167 2008-04-13  Bruno Haible  <bruno@clisp.org>
59168
59169         * lib/binary-io.h [__EMX__]: Include <io.h>.
59170         Reported by Elbert Pol <e.pol@chello.nl>.
59171
59172 2008-04-12  Bruno Haible  <bruno@clisp.org>
59173
59174         * lib/fpucw.h: Enable the definitions also for x86_64.
59175         Needed for NetBSD/x86_64.
59176         Reported by Thomas Klausner <tk@giga.or.at>.
59177
59178 2008-04-12  Bruno Haible  <bruno@clisp.org>
59179
59180         * tests/test-strtod.c: Include isnand.h.
59181         (main): Use isnand instead of isnan.
59182         Reported by Jim Meyering.
59183
59184 2008-04-12  Bruno Haible  <bruno@clisp.org>
59185
59186         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
59187         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
59188
59189 2008-04-12  Jim Meyering  <meyering@redhat.com>
59190
59191         * m4/math_h.m4 (gl_MATH_H): Fix typos.
59192
59193 2008-04-12  Bruno Haible  <bruno@clisp.org>
59194
59195         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
59196         Reported by Elbert Pol <e.pol@chello.nl>.
59197
59198 2008-04-12  Eric Blake  <ebb9@byu.net>
59199
59200         Work around Solaris 10 math.h bug.
59201         * m4/math_h.m4 (gl_MATH_H): Check for bug.
59202         (gl_MATH_H_DEFAULTS): Set up default.
59203         * modules/math (Makefile.am): Replace new indicators.
59204         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
59205         * tests/test-math.c (main): Test this.
59206         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
59207         * doc/posix-headers/math.texi (math.h): Mention bug.
59208         Reported by Nelson H. F. Beebe and Jim Meyering.
59209
59210 2008-04-11  Bruno Haible  <bruno@clisp.org>
59211
59212         Adapt to future versions of Apple GCC.
59213         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
59214         Reported by Peter O'Gorman <peter@pogma.com>.
59215
59216 2008-04-11  Bruno Haible  <bruno@clisp.org>
59217
59218         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
59219
59220 2008-04-11  Bruno Haible  <bruno@clisp.org>
59221
59222         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
59223
59224         * modules/getaddrinfo-tests (Makefile.am): Define
59225         test_getaddrinfo_LDADD.
59226
59227 2008-04-11  Bruno Haible  <bruno@clisp.org>
59228
59229         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
59230         (init): Fix syntax error.
59231         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
59232         is declared.
59233
59234 2008-04-11  Bruno Haible  <bruno@clisp.org>
59235
59236         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
59237         * modules/glob (Depends-on): Add stdbool.
59238
59239 2008-04-11  Bruno Haible  <bruno@clisp.org>
59240
59241         * lib/trim.c: Include <string.h>.
59242
59243 2008-04-11  Eric Blake  <ebb9@byu.net>
59244
59245         Avoid compile failure on OS/2.
59246         * lib/regex_internal.h (internal_function): Disable optimization
59247         on OS/2 (__EMX__), where it caused compiler error.
59248         Reported by Elbert Pol.
59249
59250 2008-04-11  Bruno Haible  <bruno@clisp.org>
59251
59252         Flush the standard error stream before aborting. Needed on mingw.
59253         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
59254         * tests/test-array_list.c (ASSERT): Likewise.
59255         * tests/test-array_oset.c (ASSERT): Likewise.
59256         * tests/test-avltree_list.c (ASSERT): Likewise.
59257         * tests/test-avltree_oset.c (ASSERT): Likewise.
59258         * tests/test-avltreehash_list.c (ASSERT): Likewise.
59259         * tests/test-binary-io.c (ASSERT): Likewise.
59260         * tests/test-byteswap.c (ASSERT): Likewise.
59261         * tests/test-c-ctype.c (ASSERT): Likewise.
59262         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
59263         * tests/test-c-strcasestr.c (ASSERT): Likewise.
59264         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
59265         * tests/test-c-strstr.c (ASSERT): Likewise.
59266         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
59267         * tests/test-canonicalize.c (ASSERT): Likewise.
59268         * tests/test-carray_list.c (ASSERT): Likewise.
59269         * tests/test-ceilf1.c (ASSERT): Likewise.
59270         * tests/test-ceilf2.c (ASSERT): Likewise.
59271         * tests/test-ceill.c (ASSERT): Likewise.
59272         * tests/test-count-one-bits.c (ASSERT): Likewise.
59273         * tests/test-fbufmode.c (ASSERT): Likewise.
59274         * tests/test-fflush2.c (ASSERT): Likewise.
59275         * tests/test-floorf1.c (ASSERT): Likewise.
59276         * tests/test-floorf2.c (ASSERT): Likewise.
59277         * tests/test-floorl.c (ASSERT): Likewise.
59278         * tests/test-fopen.c (ASSERT): Likewise.
59279         * tests/test-fpending.c (ASSERT): Likewise.
59280         * tests/test-fprintf-posix.c (ASSERT): Likewise.
59281         * tests/test-fpurge.c (ASSERT): Likewise.
59282         * tests/test-freadable.c (ASSERT): Likewise.
59283         * tests/test-freadahead.c (ASSERT): Likewise.
59284         * tests/test-freading.c (ASSERT): Likewise.
59285         * tests/test-freadptr.c (ASSERT): Likewise.
59286         * tests/test-freadptr2.c (ASSERT): Likewise.
59287         * tests/test-freadseek.c (ASSERT): Likewise.
59288         * tests/test-freopen.c (ASSERT): Likewise.
59289         * tests/test-frexp.c (ASSERT): Likewise.
59290         * tests/test-frexpl.c (ASSERT): Likewise.
59291         * tests/test-fseek.c (ASSERT): Likewise.
59292         * tests/test-fseeko.c (ASSERT): Likewise.
59293         * tests/test-fstrcmp.c (ASSERT): Likewise.
59294         * tests/test-ftell.c (ASSERT): Likewise.
59295         * tests/test-ftello.c (ASSERT): Likewise.
59296         * tests/test-func.c (ASSERT): Likewise.
59297         * tests/test-fwritable.c (ASSERT): Likewise.
59298         * tests/test-fwriting.c (ASSERT): Likewise.
59299         * tests/test-getdelim.c (ASSERT): Likewise.
59300         * tests/test-getline.c (ASSERT): Likewise.
59301         * tests/test-i-ring.c (ASSERT): Likewise.
59302         * tests/test-iconv-utf.c (ASSERT): Likewise.
59303         * tests/test-iconv.c (ASSERT): Likewise.
59304         * tests/test-isfinite.c (ASSERT): Likewise.
59305         * tests/test-isnand.c (ASSERT): Likewise.
59306         * tests/test-isnanf.c (ASSERT): Likewise.
59307         * tests/test-isnanl.h (ASSERT): Likewise.
59308         * tests/test-ldexpl.c (ASSERT): Likewise.
59309         * tests/test-linked_list.c (ASSERT): Likewise.
59310         * tests/test-linkedhash_list.c (ASSERT): Likewise.
59311         * tests/test-localename.c (ASSERT): Likewise.
59312         * tests/test-lseek.c (ASSERT): Likewise.
59313         * tests/test-mbscasecmp.c (ASSERT): Likewise.
59314         * tests/test-mbscasestr1.c (ASSERT): Likewise.
59315         * tests/test-mbscasestr2.c (ASSERT): Likewise.
59316         * tests/test-mbscasestr3.c (ASSERT): Likewise.
59317         * tests/test-mbscasestr4.c (ASSERT): Likewise.
59318         * tests/test-mbschr.c (ASSERT): Likewise.
59319         * tests/test-mbscspn.c (ASSERT): Likewise.
59320         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
59321         * tests/test-mbspbrk.c (ASSERT): Likewise.
59322         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
59323         * tests/test-mbsrchr.c (ASSERT): Likewise.
59324         * tests/test-mbsspn.c (ASSERT): Likewise.
59325         * tests/test-mbsstr1.c (ASSERT): Likewise.
59326         * tests/test-mbsstr2.c (ASSERT): Likewise.
59327         * tests/test-mbsstr3.c (ASSERT): Likewise.
59328         * tests/test-memchr2.c (ASSERT): Likewise.
59329         * tests/test-memmem.c (ASSERT): Likewise.
59330         * tests/test-open.c (ASSERT): Likewise.
59331         * tests/test-printf-frexp.c (ASSERT): Likewise.
59332         * tests/test-printf-frexpl.c (ASSERT): Likewise.
59333         * tests/test-printf-posix.c (ASSERT): Likewise.
59334         * tests/test-quotearg.c (ASSERT): Likewise.
59335         * tests/test-rbtree_list.c (ASSERT): Likewise.
59336         * tests/test-rbtree_oset.c (ASSERT): Likewise.
59337         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
59338         * tests/test-round1.c (ASSERT): Likewise.
59339         * tests/test-roundf1.c (ASSERT): Likewise.
59340         * tests/test-roundl.c (ASSERT): Likewise.
59341         * tests/test-signbit.c (ASSERT): Likewise.
59342         * tests/test-sleep.c (ASSERT): Likewise.
59343         * tests/test-snprintf-posix.c (ASSERT): Likewise.
59344         * tests/test-snprintf.c (ASSERT): Likewise.
59345         * tests/test-sprintf-posix.c (ASSERT): Likewise.
59346         * tests/test-stat-time.c (ASSERT): Likewise.
59347         * tests/test-strcasestr.c (ASSERT): Likewise.
59348         * tests/test-strerror.c (ASSERT): Likewise.
59349         * tests/test-striconv.c (ASSERT): Likewise.
59350         * tests/test-striconveh.c (ASSERT): Likewise.
59351         * tests/test-striconveha.c (ASSERT): Likewise.
59352         * tests/test-strsignal.c (ASSERT): Likewise.
59353         * tests/test-strstr.c (ASSERT): Likewise.
59354         * tests/test-strtod.c (ASSERT): Likewise.
59355         * tests/test-trunc1.c (ASSERT): Likewise.
59356         * tests/test-trunc2.c (ASSERT): Likewise.
59357         * tests/test-truncf1.c (ASSERT): Likewise.
59358         * tests/test-truncf2.c (ASSERT): Likewise.
59359         * tests/test-truncl.c (ASSERT): Likewise.
59360         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
59361         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
59362         * tests/test-vasnprintf.c (ASSERT): Likewise.
59363         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
59364         * tests/test-vasprintf.c (ASSERT): Likewise.
59365         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
59366         * tests/test-vprintf-posix.c (ASSERT): Likewise.
59367         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
59368         * tests/test-vsnprintf.c (ASSERT): Likewise.
59369         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
59370         * tests/test-wcwidth.c (ASSERT): Likewise.
59371         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
59372         * tests/test-xprintf-posix.c (ASSERT): Likewise.
59373         * tests/test-xvasprintf.c (ASSERT): Likewise.
59374         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
59375         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
59376         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
59377         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
59378         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
59379         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
59380         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
59381         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
59382         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
59383         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
59384         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
59385         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
59386         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
59387         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
59388         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
59389         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
59390         * tests/unictype/test-block_list.c (ASSERT): Likewise.
59391         * tests/unictype/test-block_of.c (ASSERT): Likewise.
59392         * tests/unictype/test-block_test.c (ASSERT): Likewise.
59393         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
59394         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
59395         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
59396         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
59397         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
59398         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
59399         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
59400         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
59401         * tests/unictype/test-combining.c (ASSERT): Likewise.
59402         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
59403         * tests/unictype/test-digit.c (ASSERT): Likewise.
59404         * tests/unictype/test-mirror.c (ASSERT): Likewise.
59405         * tests/unictype/test-numeric.c (ASSERT): Likewise.
59406         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
59407         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
59408         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
59409         * tests/unictype/test-scripts.c (ASSERT): Likewise.
59410         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
59411         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
59412         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
59413         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
59414         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
59415         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
59416         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
59417         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
59418         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
59419         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
59420         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
59421         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
59422         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
59423         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
59424         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
59425         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
59426         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
59427         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
59428         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
59429         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
59430         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
59431         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
59432         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
59433         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
59434         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
59435         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
59436         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
59437         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
59438         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
59439         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
59440         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
59441         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
59442         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
59443         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
59444         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
59445         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
59446         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
59447         Reported by Eric Blake.
59448
59449 2008-04-11  Bruno Haible  <bruno@clisp.org>
59450
59451         * lib/wchar.in.h: Tweak comment.
59452
59453 2008-04-11  Bruno Haible  <bruno@clisp.org>
59454
59455         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
59456         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
59457         gl_COMMON.
59458         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
59459
59460 2008-04-11  Bruno Haible  <bruno@clisp.org>
59461
59462         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
59463
59464 2008-04-11  Simon Josefsson  <simon@josefsson.org>
59465
59466         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
59467         of attempting to use non-existing /dev/*random.  Based on patch
59468         from Adam Strzelecki <ono@java.pl> in
59469         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
59470
59471 2008-04-08  Bruno Haible  <bruno@clisp.org>
59472
59473         Add tentative support for emx+gcc.
59474         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
59475         * lib/fpurge.c (fpurge): Likewise.
59476         * lib/freadable.c (freadable): Likewise.
59477         * lib/freadahead.c (freadahead): Likewise.
59478         * lib/freading.c (freading): Likewise.
59479         * lib/freadptr.c (freadptr): Likewise.
59480         * lib/freadseek.c (freadptrinc): Likewise.
59481         * lib/fseeko.c (rpl_fseeko): Likewise.
59482         * lib/fseterr.c (fseterr): Likewise.
59483         * lib/fwritable.c (fwritable): Likewise.
59484         * lib/fwriting.c (fwriting): Likewise.
59485         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
59486
59487 2008-04-09  Eric Blake  <ebb9@byu.net>
59488
59489         Avoid some autoconf warnings.
59490         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
59491         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
59492         * m4/afs.m4 (gl_AFS): Likewise.
59493         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
59494         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
59495         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
59496         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
59497         (gl_INTEGER_TYPE_SUFFIX): Likewise.
59498         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
59499         (AC_CHECK_DECLS_ONCE): Likewise.
59500         Rename file...
59501         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
59502         gnulib-tool requires autoconf 2.59 or better.
59503         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
59504
59505 2008-04-08  Eric Blake  <ebb9@byu.net>
59506
59507         Use 'git describe --match' if present (added in git 1.5.5).
59508         * build-aux/git-version-gen: Limit result to tags that match 'v*'
59509         if possible.
59510
59511 2008-04-08  Bruno Haible  <bruno@clisp.org>
59512
59513         Add tentative support for OpenServer.
59514         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
59515         _ptr, _cnt.
59516         * lib/fpurge.c (fpurge): Likewise.
59517         * lib/freadable.c (freadable): Likewise.
59518         * lib/freadahead.c (freadahead): Likewise.
59519         * lib/freading.c (freading): Likewise.
59520         * lib/freadptr.c (freadptr): Likewise.
59521         * lib/freadseek.c (freadptrinc): Likewise.
59522         * lib/fseeko.c (rpl_fseeko): Likewise.
59523         * lib/fseterr.c (fseterr): Likewise.
59524         * lib/fwritable.c (fwritable): Likewise.
59525         * lib/fwriting.c (fwriting): Likewise.
59526         Reported by Roger Cornelius <rac@tenzing.org> and
59527         Brian K. White <brian@aljex.com>.
59528
59529 2008-04-06  Jim Meyering  <meyering@redhat.com>
59530
59531         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
59532
59533 2008-04-06  Bruno Haible  <bruno@clisp.org>
59534
59535         Avoid possible error with non-ASCII bytes in UTF-8 locales.
59536         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
59537         * tests/test-printf-posix.sh: Likewise.
59538         * tests/test-vfprintf-posix.sh: Likewise.
59539         * tests/test-vprintf-posix.sh: Likewise.
59540         * tests/test-xprintf-posix.sh: Likewise.
59541
59542 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59543
59544         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
59545         hide error from 'ls', needed on OS/2.
59546         Report by Elbert Pol <elbert.pol@gmail.com>.
59547
59548 2008-04-04  Eric Blake  <ebb9@byu.net>
59549
59550         Make test-fseeko.c failures meaningful.
59551         * tests/test-fseeko.c: Print line number on failure.
59552         * tests/test-fseek.c: Likewise.
59553         Reported by Nelson H. F. Beebe.
59554
59555         Improve strtod bug detection check.
59556         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
59557         required for Solaris 10.
59558         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
59559
59560 2008-04-04  Bruno Haible  <bruno@clisp.org>
59561
59562         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
59563         by m4/setenv.m4.
59564
59565 2008-04-03  Eric Blake  <ebb9@byu.net>
59566
59567         Ensure sane .version contents.
59568         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
59569         version string.
59570         * build-aux/git-version-gen: Improve documentation.
59571
59572         Make GNU make output nicer.
59573         * top/GNUmakefile [!_have-Makefile]: Add dependency on
59574         MAKECMDGOALS to enforce message for all command line targets.  Set
59575         srcdir for use in maint.mk.
59576
59577         Another maintainer tweak.
59578         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
59579         a target that regenerates version.
59580
59581 2008-04-03  Jim Meyering  <meyering@redhat.com>
59582
59583         vc-list-files: don't cause coreutils "make po-check" failure
59584         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
59585
59586 2008-04-03  Eric Blake  <ebb9@byu.net>
59587
59588         Allow VPATH usage of vc-list-files.
59589         * build-aux/vc-list-files (scriptversion): Add timestamp.
59590         (options): Add --help, --version, -C.
59591         (CVS): Support installed cvsu.
59592
59593 2008-04-02  Bruno Haible  <bruno@clisp.org>
59594
59595         Avoid some "statement with no effect" warnings from gcc.
59596         * tests/test-wctype.c (main): Explicitly ignore unused values.
59597         Reported by Jim Meyering.
59598
59599 2008-04-02  Jim Meyering  <meyering@redhat.com>
59600
59601         Avoid some warnings from "gcc -Wshadow".
59602         * tests/test-frexp.c (exp): Define to a different identifier.
59603         * tests/test-frexpl.c (exp): Likewise.
59604
59605 2008-04-03  Jim Meyering  <meyering@redhat.com>
59606
59607         bootstrap: remove dangling *.[ch] symlinks from lib
59608         * build-aux/bootstrap [dangling symlink removal]: Move find's
59609         -depth option to precede all others, to avoid a warning.
59610         Remove *.[ch] files too, and from "$source_base" (usually lib/).
59611
59612 2008-04-02  Bruno Haible  <bruno@clisp.org>
59613
59614         Avoid some warnings from "gcc -Wshadow".
59615         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
59616         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
59617         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
59618         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
59619         Reported by Jim Meyering.
59620
59621 2008-04-01  Bruno Haible  <bruno@clisp.org>
59622
59623         Fix test to work on IRIX 6.5 with cc.
59624         * tests/test-math.c (numeric_equal): New function.
59625         (main): Use it.
59626
59627 2008-04-01  Bruno Haible  <bruno@clisp.org>
59628
59629         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
59630
59631 2008-04-01  Bruno Haible  <bruno@clisp.org>
59632
59633         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
59634         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59635         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
59636         (Depends-on): Remove math.
59637
59638         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
59639         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59640         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
59641         (Depends-on): Remove math.
59642
59643         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
59644         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59645         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
59646         (Depends-on): Remove math.
59647         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
59648         (Depends-on): Remove math.
59649
59650         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
59651         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
59652         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
59653         (Depends-on): Remove math.
59654         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
59655         (Depends-on): Remove math.
59656
59657         * tests/test-round1.c: Include nan.h.
59658         (main): Use NaNd instead of NAN.
59659         * modules/round-tests (Files): Add tests/nan.h.
59660
59661         * tests/test-trunc1.c: Include nan.h.
59662         (main): Use NaNd instead of NAN.
59663         * modules/trunc-tests (Files): Add tests/nan.h.
59664
59665         * tests/test-roundf1.c: Include nan.h.
59666         (main): Use NaNf instead of NAN.
59667         * modules/roundf-tests (Files): Add tests/nan.h.
59668
59669         * tests/test-truncf1.c: Include nan.h.
59670         (main): Use NaNf instead of NAN.
59671         * modules/truncf-tests (Files): Add tests/nan.h.
59672
59673         * tests/test-ceilf1.c: Include nan.h.
59674         (main): Use NaNf instead of NAN.
59675         * modules/ceilf-tests (Files): Add tests/nan.h.
59676
59677         * tests/test-floorf1.c: Include nan.h.
59678         (main): Use NaNf instead of NAN.
59679         * modules/floorf-tests (Files): Add tests/nan.h.
59680
59681         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
59682         (main): Use NaNf instead of NAN.
59683         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
59684
59685         * tests/test-isnand.c: Include nan.h instead of <math.h>.
59686         (main): Use NaNd instead of NAN.
59687         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
59688
59689         * tests/test-frexp.c: Include nan.h.
59690         (main): Use NaNd instead of NAN.
59691         * modules/frexp-tests (Files): Add tests/nan.h.
59692
59693         * lib/isnan.c: Don't include <math.h>.
59694         (FUNC): Don't use NAN macro.
59695         * modules/isnand-nolibm (Depends-on): Remove math.
59696         * modules/isnanf-nolibm (Depends-on): Remove math.
59697         * modules/isnanl (Depends-on): Remove math.
59698         * modules/isnanl-nolibm (Depends-on): Remove math.
59699
59700         * tests/nan.h: New file.
59701
59702 2008-04-01  Eric Blake  <ebb9@byu.net>
59703
59704         Fix typos.
59705         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
59706         values to be the right type.
59707
59708         For now, cater to gnulib strtod inaccuracies.
59709         * tests/test-strtod.c (main): Allow 1-ulp error on expected
59710         fractional results.  While not as nice from a QoI perspective, it
59711         is a quicker patch than correctly implementing decimal to binary
59712         rounding.
59713
59714 2008-03-31  Eric Blake  <ebb9@byu.net>
59715
59716         Guarantee a definition of NAN.
59717         * lib/math.in.h (NAN): Define if missing.
59718         * tests/test-math.c (main): Test it.
59719         * doc/posix-headers/math.texi (math.h): Document this.
59720         * lib/isnan.c (rpl_isnand): Use it.
59721         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
59722         * tests/test-floorf1.c (NaN): Likewise.
59723         * tests/test-frexp.c (NaN): Likewise.
59724         * tests/test-isnand.c (NaN): Likewise.
59725         * tests/test-isnanf.c (NaN): Likewise.
59726         * tests/test-round1.c (NaN): Likewise.
59727         * tests/test-roundf1.c (NaN): Likewise.
59728         * tests/test-snprintf-posix.h (NaN): Likewise.
59729         * tests/test-sprintf-posix.h (NaN): Likewise.
59730         * tests/test-trunc1.c (NaN): Likewise.
59731         * tests/test-truncf1.c (NaN): Likewise.
59732         * tests/test-vasnprintf-posix.c (NaN): Likewise.
59733         * tests/test-vasprintf-posix.c (NaN): Likewise.
59734         * modules/isnand-nolibm (Depends-on): Add math.
59735         * modules/isnanf-nolibm (Depends-on): Likewise.
59736         * modules/isnanl (Depends-on): Likewise.
59737         * modules/isnanl-nolibm (Depends-on): Likewise.
59738         * modules/snprintf-posix-tests (Depends-on): Likewise.
59739         * modules/sprintf-posix-tests (Depends-on): Likewise.
59740         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
59741         * modules/vsprintf-posix-tests (Depends-on): Likewise.
59742         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
59743         * modules/vasprintf-posix-tests (Depends-on): Likewise.
59744
59745 2008-03-31  Bruno Haible  <bruno@clisp.org>
59746
59747         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
59748         * doc/posix-functions/strtod.texi: Likewise.
59749
59750 2008-03-31  Bruno Haible  <bruno@clisp.org>
59751
59752         * tests/test-strtod.c (main): Don't use C99 syntax.
59753
59754 2008-03-31  Bruno Haible  <bruno@clisp.org>
59755
59756         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
59757         Reported by Eric Blake.
59758
59759 2008-03-31  Jim Meyering  <meyering@redhat.com>
59760
59761         Don't compare actual signbit return values.
59762         * tests/test-strtod.c (main): Rather, compare only their
59763         zero/non-zero nature.
59764
59765 2008-03-31  Eric Blake  <ebb9@byu.net>
59766
59767         More strtod documentation.
59768         * doc/posix-functions/strtod.texi (strtod): Interpret more test
59769         failures as distinct bugs.
59770
59771 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
59772
59773         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
59774         Problem reported by Erik Benada in
59775         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
59776
59777 2008-03-30  Bruno Haible  <bruno@clisp.org>
59778
59779         * tests/test-strtod.c: Add comments about which assertion fails on which
59780         platform.
59781         * doc/posix-functions/strtod.texi: Add info about many more platforms.
59782
59783 2008-03-30  Eric Blake  <ebb9@byu.net>
59784
59785         Test signbit behavior on zeros.
59786         * tests/test-signbit.c (test_signbitf): Add tests for zero.
59787         (test_signbitd, test_signbitl): Likewise.
59788
59789         More strtod touchups.
59790         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
59791         sign of negative underflow, for now.  Use .5, not .1.
59792         * doc/posix-functions/strtod.texi (strtod): Mention these
59793         limitations.
59794         Reported by Jim Meyering.
59795
59796 2008-03-30  Bruno Haible  <bruno@clisp.org>
59797
59798         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
59799         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
59800
59801 2008-03-30  Bruno Haible  <bruno@clisp.org>
59802
59803         Avoid failure when attempting to return empty iconv results on some
59804         platforms.
59805         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
59806         allocation, don't report ENOMEM when the resulting string is empty.
59807
59808 2008-03-30  Bruno Haible  <bruno@clisp.org>
59809
59810         Fix buffer overrun.
59811         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
59812         Don't consider the width for tmp_length. Check count against tmp_length
59813         before doing the padding. Ensure enough allocation during padding.
59814
59815 2008-03-30  Eric Blake  <ebb9@byu.net>
59816
59817         strtod touchups.
59818         * lib/strtod.c (strtod): Avoid compiler warnings.
59819         Reported by Jim Meyering.
59820
59821 2008-03-30  Bruno Haible  <bruno@clisp.org>
59822
59823         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
59824         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
59825         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
59826         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
59827         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
59828         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
59829         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
59830         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
59831
59832         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
59833         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
59834         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
59835         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
59836         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
59837         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
59838         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
59839         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
59840
59841         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
59842         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
59843         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
59844         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
59845         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
59846         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
59847         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
59848         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
59849
59850         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
59851         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
59852
59853         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
59854         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
59855
59856         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
59857         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
59858
59859         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
59860         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
59861         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
59862
59863         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
59864         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
59865         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
59866
59867         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
59868         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
59869         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
59870
59871         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
59872         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
59873         * modules/vasprintf (Depends-on): Add EOVERFLOW.
59874
59875         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
59876         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
59877         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
59878         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
59879         (Depends-on): Add EOVERFLOW.
59880         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
59881         (Depends-on): Add EOVERFLOW.
59882         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
59883         (Depends-on): Add EOVERFLOW.
59884         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
59885         (Depends-on): Add EOVERFLOW.
59886         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
59887         (Depends-on): Add EOVERFLOW.
59888         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
59889         (Depends-on): Add EOVERFLOW.
59890         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
59891         (Depends-on): Add EOVERFLOW.
59892         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
59893         (Depends-on): Add EOVERFLOW.
59894
59895         * lib/sprintf.c (EOVERFLOW): Remove fallback.
59896         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
59897         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
59898
59899         * lib/snprintf.c (EOVERFLOW): Remove fallback.
59900         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
59901         * modules/snprintf (Depends-on): Add EOVERFLOW.
59902
59903         * lib/poll.c (EOVERFLOW): Remove fallback.
59904         * modules/poll (Depends-on): Add EOVERFLOW.
59905
59906         * lib/getugroups.c (EOVERFLOW): Remove fallback.
59907         * modules/getugroups (Depends-on): Add EOVERFLOW.
59908
59909         * lib/getdelim.c (EOVERFLOW): Remove fallback.
59910         * modules/getdelim (Depends-on): Add EOVERFLOW.
59911
59912         * lib/ftell.c (EOVERFLOW): Remove fallback.
59913         * modules/ftell (Depends-on): Add EOVERFLOW.
59914
59915         * lib/fprintf.c (EOVERFLOW): Remove fallback.
59916         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
59917         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
59918
59919         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
59920
59921         * modules/EOVERFLOW-tests: New file.
59922         * tests/test-EOVERFLOW.c: New file.
59923
59924         * modules/EOVERFLOW: New file.
59925         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
59926
59927 2008-03-30  Bruno Haible  <bruno@clisp.org>
59928
59929         Fix bug introduced on 2007-06-10.
59930         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
59931         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
59932
59933 2008-03-30  Bruno Haible  <bruno@clisp.org>
59934
59935         Improve freadseek's efficiency after ungetc.
59936         * lib/freadseek.c: Include freadahead.h.
59937         (freadptrinc): New function, extracted from freadseek.
59938         (freadseek): Use it in a loop. Use freadahead to determine the number
59939         of loop iterations.
59940         * modules/freadseek (Depends-on): Add freadahead.
59941         (configure.ac): Require AC_C_INLINE.
59942
59943 2008-03-30  Bruno Haible  <bruno@clisp.org>
59944
59945         * lib/freadseek.c (freadseek): Don't ignore the return value of
59946         freadptr.
59947
59948 2008-03-29  Eric Blake  <ebb9@byu.net>
59949
59950         Add hex float support.
59951         * modules/strtod (Depends-on): Add c-ctype.
59952         (Link): Mention POW_LIB.
59953         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
59954         whitespace between 'e' and exponent.
59955         * tests/test-strtod.c (main): Enable hex float tests.
59956         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
59957         now provides.
59958
59959         Document various strtod bugs, with some fixes.
59960         * doc/posix-functions/strtod.texi (strtod): Document bugs with
59961         "-0x", "inf", "nan", and hex constants.
59962         * doc/posix-functions/atof.texi (atof): Likewise.
59963         * modules/stdlib (Makefile.am): Support strtod.
59964         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
59965         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
59966         detect additional strtod bugs.
59967         * lib/stdlib.in.h (rpl_strtod): Add declarations.
59968         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
59969         bool where appropriate.  Parse 'inf' and 'nan'.
59970         * tests/test-strtod.c: New file.
59971         * modules/strtod (Depends-on): Add stdbool, stdlib.
59972         (configure.ac): Turn on module indicator.
59973         * modules/strtod-tests: New module.
59974
59975 2008-03-29  Eric Blake  <ebb9@byu.net>
59976
59977         Fix ftell on mingw.
59978         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
59979         * modules/ftell-tests (Depends-on): Add binary-io.
59980         * modules/ftello-tests (Depends-on): Likewise.
59981         * tests/test-ftell.c (main): Enhance test to cover behavior after
59982         ungetc.  Enforce binary mode.
59983         * tests/test-ftello.c (main): Likewise.
59984
59985         Pass test-freadseek on cygwin.
59986         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
59987         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
59988         ungetc buffer.
59989
59990         * tests/test-fflush2.c (main): Fix typo.
59991
59992 2008-03-29  Bruno Haible  <bruno@clisp.org>
59993
59994         * tests/test-fflush2.c (main): Temporarily disable the contents of
59995         this test.
59996         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
59997         Reported by Eric Blake.
59998
59999 2008-03-28  Simon Josefsson  <simon@josefsson.org>
60000
60001         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
60002         (GC_SHA224_DIGEST_SIZE): Add.
60003
60004         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
60005         (gc_hash_digest_length): Likewise.
60006         (gc_hash_buffer): Likewise.
60007
60008 2008-03-25  Bruno Haible  <bruno@clisp.org>
60009
60010         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
60011         detail which gettext release to use.
60012         Reported by Simon Josefsson.
60013
60014 2008-03-26  Jim Meyering  <meyering@redhat.com>
60015
60016         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
60017         * modules/gnumakefile (clean-GNUmakefile): Also, use
60018         test ... && ... || : syntax rather than if-then ... fi.
60019
60020         gnumakefile: Don't double-quote-expand $(VPATH) value.
60021         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
60022
60023 2008-03-24  Eric Blake  <ebb9@byu.net>
60024
60025         Alter GNUmakefile to install into top directory.
60026         * modules/maintainer-makefile: Split, and add dependency...
60027         * modules/gnumakefile: to this new module.
60028         * build-aux/GNUmakefile: Move...
60029         * top/GNUmakefile: ...here.
60030         * build-aux/maint.mk: Move...
60031         * top/maint.mk: ...here.
60032         * MODULES.html.sh (Support for maintaining...): Document new
60033         module.
60034
60035 2008-03-23  Bruno Haible  <bruno@clisp.org>
60036
60037         * gnulib-tool: New options --vc-files, --no-vc-files.
60038         (func_usage): Document them.
60039         (vc_files): New variable.
60040         (func_import): Consider vc_files.
60041         (func_create_testdir): Set vc_files to empty.
60042         Suggested by Jim Meyering and Karl Berry.
60043
60044 2008-03-23  Bruno Haible  <bruno@clisp.org>
60045
60046         Fix regex compilation error on HP-UX 11.
60047         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
60048         * modules/regex (Files): Add m4/mbstate_t.m4.
60049         Reported by Ton Voon <ton.voon@altinity.com>.
60050
60051 2008-03-23  Bruno Haible  <bruno@clisp.org>
60052
60053         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
60054
60055 2008-03-23  Eric Blake  <ebb9@byu.net>
60056             Bruno Haible  <bruno@clisp.org>
60057
60058         Install files from top/ in the destination directory.
60059         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
60060         augmentation also for the files from top/.
60061         (func_import, func_create_testdir): Rewrite file names:
60062         top/filename -> filename.
60063
60064 2008-03-23  Bruno Haible  <bruno@clisp.org>
60065
60066         Tweak "gnulib --version" output.
60067         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
60068
60069 2008-03-23  Bruno Haible  <bruno@clisp.org>
60070
60071         Tweak "gnulib --version" output.
60072         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
60073         rather than contents of ChangeLog, when possible.
60074
60075 2008-03-21  Eric Blake  <ebb9@byu.net>
60076
60077         More --version tweaks.
60078         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
60079         date of last ChangeLog entry.
60080
60081 2008-03-21  Jim Meyering  <meyering@redhat.com>
60082
60083         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
60084
60085 2008-03-20  Eric Blake  <ebb9@byu.net>
60086
60087         VPATH fix.
60088         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
60089
60090 2008-03-20  Simon Josefsson  <simon@josefsson.org>
60091
60092         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
60093         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
60094
60095 2008-03-20  Eric Blake  <ebb9@byu.net>
60096
60097         Sync GNUmakefile with coreutils.
60098         * build-aux/GNUmakefile (have-Makefile): Rename...
60099         (_have-Makefile): ...to this, for namespace consideration.
60100         (GNUmakefile.cfg): Include, if present.
60101         (_autoreconf): Define a default.
60102         (_is-dist-target): New rule for rebuilds to pick up intra-release
60103         version.
60104         (maint-cfg.mk): Rename...
60105         (cfg.mk): ...to this.
60106
60107 2008-03-18  Jim Meyering  <meyering@redhat.com>
60108
60109         New script and module: mktempd
60110         * MODULES.html.sh (maint+release support): Add mktempd.
60111         * build-aux/mktempd: New file.
60112         * modules/mktempd: New file.
60113
60114 2008-03-15  Jim Meyering  <meyering@redhat.com>
60115
60116         Undo last change.
60117         * lib/sha1.c, lib/md5.c: 63 != ~63.
60118         Reported by Andreas Schwab.
60119
60120         sha1.c, md5.c: Hoist a redundant expression.
60121         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
60122         "ctx->buflen" only once, before calling *_process_block.
60123         * lib/md5.c (md5_process_bytes): Likewise.
60124
60125 2008-03-14  Eric Blake  <ebb9@byu.net>
60126
60127         Bump copyright year in files generated by gnulib-tool.
60128         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
60129         gnulib-tool, rather than hard-coding it.
60130
60131         Fix 'gnulib-tool --version' output to work with git.
60132         * gnulib-tool (func_gnulib_dir): New function, extracted from...
60133         (startup): ...here.
60134         (func_version): Use it to invoke git-version-gen, rather than
60135         relying on CVS keyword expansion.  Modernize wording.
60136         (cvsdatestamp, last_checkin_date, version): Kill unused
60137         variables.
60138
60139 2008-03-12  Jim Meyering  <meyering@redhat.com>
60140
60141         Recognize optional cast of the argument to free.
60142         * build-aux/useless-if-before-free: Update regexps.
60143
60144         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
60145
60146 2008-03-11  Bruno Haible  <bruno@clisp.org>
60147
60148         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
60149         by a single package.
60150         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
60151         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
60152         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
60153         Reported by Sam Steingold <sds@gnu.org>.
60154
60155 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
60156
60157         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
60158         repositories.
60159
60160 2008-03-11  Bruno Haible  <bruno@clisp.org>
60161
60162         Avoid conflicts between local macro definitions.
60163         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
60164         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
60165
60166 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
60167             Bruno Haible  <bruno@clisp.org>
60168
60169         Make va_copy work with some version of xlc on AIX 5.1.
60170         * lib/stdarg.in.h: New file.
60171         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
60172         On AIX, use a <stdarg.h> file substitute.
60173         * modules/stdarg (Files): Add lib/stdarg.in.h.
60174         (Depends-on): Add include_next.
60175         (Makefile.am): Build a stdarg.h substitute if requested.
60176         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
60177
60178 2008-03-10  Bruno Haible  <bruno@clisp.org>
60179
60180         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
60181         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
60182         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
60183
60184 2008-03-10  Bruno Haible  <bruno@clisp.org>
60185
60186         * modules/stdlib (Depends-on): Add include_next, remove
60187         absolute-header.
60188
60189 2008-03-09  Bruno Haible  <bruno@clisp.org>
60190
60191         * lib/freadahead.h (freadahead): Document more precisely.
60192         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
60193         the sum of both buffer sizes.
60194         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
60195         * NEWS: Document the change.
60196
60197 2008-03-09  Bruno Haible  <bruno@clisp.org>
60198
60199         Extend freadptr to return also the buffer size.
60200         * lib/freadptr.h (freadptr): Add sizep argument.
60201         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
60202         (freadptr): Add sizep argument. Determine buffer size like freadahead
60203         does.
60204         * tests/test-freadptr.c: Don't include freadahead.h.
60205         (main): Adapt for new calling convention of freadptr.
60206         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
60207         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
60208         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
60209         tests/test-freadptr2.sh.
60210         (Depends): Remove freadahead.
60211         (TESTS): Add test-freadptr2.sh.
60212         (check_PROGRAMS): Add test-freadptr2.
60213
60214 2008-03-09  Bruno Haible  <bruno@clisp.org>
60215
60216         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
60217         Report and solution by Simon Josefsson.
60218
60219 2008-03-06  Bruno Haible  <bruno@clisp.org>
60220
60221         Make fflush after ungetc work on BSD platforms.
60222         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
60223         * tests/test-fflush2.c: New file.
60224         * tests/test-fflush2.sh: New file.
60225         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
60226         tests/test-fflush2.c.
60227         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
60228         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
60229
60230 2008-03-06  Eric Blake  <ebb9@byu.net>
60231
60232         Likewise for ftello.
60233         * modules/ftello (Dependencies): Add extensions.
60234         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
60235
60236 2008-03-06  Bruno Haible  <bruno@clisp.org>
60237
60238         * modules/fseeko (Dependencies): Add extensions.
60239         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
60240         Needed on glibc systems.
60241
60242 2008-03-06  Bruno Haible  <bruno@clisp.org>
60243
60244         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
60245         email address.
60246         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
60247
60248 2008-03-06  Bruno Haible  <bruno@clisp.org>
60249
60250         * users.txt: Add libgnupdf.
60251
60252 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
60253
60254         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
60255         (Header File Substitutes, Function Substitutes,
60256         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
60257         (Build robot for gnulib): Fix typo.
60258
60259 2008-03-06  Bruno Haible  <bruno@clisp.org>
60260
60261         * doc/gnulib-tool.texi (VCS Issues): Small updates.
60262         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
60263
60264 2008-03-06  Bruno Haible  <bruno@clisp.org>
60265
60266         * doc/func.texi: New file, extracted from doc/gnulib.texi.
60267         * doc/gnulib.texi: Include it.
60268
60269 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60270
60271         * modules/func (License): Change license to unlimited; there was
60272         no LGPL parts in the module anyway.
60273
60274 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60275
60276         * modules/__func__: Renamed to modules/func.
60277         * modules/__func__-tests: Renamed to modules/func-tests.
60278         * tests/test-__func__.c: Renamed to tests/test-func.c.
60279         * m4/__func__.m4: Renamed to m4/func.m4.
60280         * doc/gnulib.texi (__func__): Section renamed to func.
60281         Suggested by Eric Blake <ebb9@byu.net>.
60282
60283 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60284
60285         * doc/gnulib.texi (__func__): Use C99 terminology when talking
60286         about __func__.  Make example self-contained.  Suggested by Eric
60287         Blake <ebb9@byu.net>.
60288
60289         * tests/test-__func__.c (main): Avoid extraneous () around __func.
60290         Suggested by Eric Blake <ebb9@byu.net>.
60291
60292 2008-03-06  Simon Josefsson  <simon@josefsson.org>
60293
60294         * modules/__func__: New file.
60295         * modules/__func__-tests: New file.
60296         * tests/test-__func__.c: New file.
60297         * m4/__func__.m4: New file.
60298         * doc/gnulib.texi (__func__): Document __func__ module.
60299
60300 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60301
60302         * modules/byteswap (License): Re-license as LGPLv2+.
60303
60304 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60305
60306         * doc/Makefile: Add pdf target.
60307
60308 2008-03-05  Simon Josefsson  <simon@josefsson.org>
60309
60310         * modules/inline (License): Use 'unlimited', since there are only
60311         *.m4 files in this module.
60312
60313 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
60314             Bruno Haible  <bruno@clisp.org>
60315
60316         Add support for HP C 7.1 on OpenVMS 8.3.
60317         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
60318
60319 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
60320
60321         Update VMS specifics.
60322         * lib/getopt.c [VMS]: Remove include of unixlib.h.
60323
60324 2008-03-02  Jim Meyering  <meyering@redhat.com>
60325
60326         Remove the last dependency on the "free" module.
60327         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
60328         Reported by Bob Proulx.
60329
60330         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
60331
60332         Remove useless "if" tests before free.  Deprecate "free" module.
60333         * doc/posix-functions/free.texi: Mention that this
60334         module is no longer useful.
60335         * modules/free (Notice): Say this module is obsolete.
60336         * modules/readutmp (Depends-on): Remove free.
60337         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
60338         * lib/putenv.c (putenv): Likewise.
60339         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
60340         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
60341         * tests/test-c-strcasestr.c (main): Likewise.
60342         * tests/test-c-strstr.c (main): Likewise.
60343         * tests/test-mbscasestr1.c (main): Likewise.
60344         * tests/test-mbscasestr2.c (main): Likewise.
60345         * tests/test-mbsstr1.c (main): Likewise.
60346         * tests/test-mbsstr2.c (main): Likewise.
60347         * tests/test-memmem.c (main): Likewise.
60348         * tests/test-strcasestr.c (main): Likewise.
60349         * tests/test-striconv.c (main): Likewise.
60350         * tests/test-striconveh.c (main): Likewise.
60351         * tests/test-striconveha.c (main): Likewise.
60352         * tests/test-strstr.c (main): Likewise.
60353
60354         * build-aux/git-version-gen: Adjust a comment and the Usage string.
60355
60356         bootstrap: sync from coreutils again
60357         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
60358
60359 2008-03-01  Jim Meyering  <meyering@redhat.com>
60360
60361         bootstrap: sync from coreutils
60362         * build-aux/bootstrap (update_po_files): Copy a .po file into place
60363         also when the target doesn't exist.
60364
60365 2008-03-01  Eric Blake  <ebb9@byu.net>
60366
60367         Fix bugs in last patch.
60368         * lib/memchr2.c (memchr2): Fix typo.
60369         * tests/test-memchr2.c: Test previous bug, and don't use GNU
60370         extension.
60371         Reported by Bruce Korb.
60372
60373         New module 'memchr2'.
60374         * modules/memchr2: New file.
60375         * modules/memchr2-tests: Likewise.
60376         * lib/memchr2.h: Likewise.
60377         * lib/memchr2.c: Likewise, based on memchr.c.
60378         * tests/test-memchr2.c: New test.
60379         * MODULES.html.sh (String handling): Add memchr2.
60380
60381 2008-02-29  Bruno Haible  <bruno@clisp.org>
60382
60383         * modules/freadseek-tests: New file.
60384         * tests/test-freadseek.sh: New file.
60385         * tests/test-freadseek.c: New file.
60386
60387         New module 'freadseek'.
60388         * modules/freadseek: New file.
60389         * lib/freadseek.h: New file.
60390         * lib/freadseek.c: New file.
60391         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
60392
60393 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
60394
60395         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
60396         wydawca.
60397
60398         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
60399         program_invocation_name and program_invocation_short_name are
60400         present.
60401
60402 2008-02-28  Bruno Haible  <bruno@clisp.org>
60403
60404         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
60405         * tests/test-freadptr.sh: Also test non-seekable stdin.
60406
60407 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
60408
60409         * build-aux/bootstrap (source_base, m4_base)
60410         (doc_base, tests_base): New variables.
60411         (gnulib_tool_options): Do not hardcode base directories, use
60412         the above variables instead.
60413
60414 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
60415
60416         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
60417
60418 2008-02-28  Bruno Haible  <bruno@clisp.org>
60419
60420         * modules/freadptr-tests: New file.
60421         * tests/test-freadptr.sh: New file.
60422         * tests/test-freadptr.c: New file.
60423
60424         New module 'freadptr'.
60425         * modules/freadptr: New file.
60426         * lib/freadptr.h: New file.
60427         * lib/freadptr.c: New file.
60428         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
60429
60430 2008-02-26  Karl Berry  <karl@freefriends.org>
60431
60432         Sync from Libtool:
60433         * libltdl/argz.c (argz_add, argz_count): New functions.
60434         * libltdl/argz.in.h: Declare them.
60435         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
60436
60437 2008-02-22  Bruno Haible  <bruno@clisp.org>
60438
60439         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
60440         is a pointer type.  Needed for HP-UX 10.
60441         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
60442         * doc/posix-functions/gmtime_r.texi: Likewise.
60443         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
60444
60445 2008-02-24  Bruno Haible  <bruno@clisp.org>
60446
60447         * modules/environ-tests: New file.
60448         * tests/test-environ.c: New file.
60449
60450         New module 'environ'.
60451         * modules/environ: New file.
60452         * lib/unistd.in.h (environ): New declaration.
60453         * m4/environ.m4: New file.
60454         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
60455         after use.
60456         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
60457         HAVE_DECL_ENVIRON.
60458         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
60459         HAVE_DECL_ENVIRON.
60460         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
60461         wrong claim that 'environ' is missing on some systems.
60462         * modules/execute (Depends-on): Add environ.
60463         * lib/execute.c (environ): Remove fallback declaration.
60464         * modules/pipe (Depends-on): Add environ.
60465         * lib/pipe.c (environ): Remove fallback declaration.
60466         * modules/setenv (Depends-on): Add environ.
60467         * lib/setenv.c (environ): Remove fallback declaration.
60468         * modules/unsetenv (Depends-on): Add environ.
60469         * lib/unsetenv.c (environ): Remove fallback declaration.
60470         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
60471         m4/environ.m4.
60472         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
60473         (gl_PREREQ_UNSETENV): Likewise.
60474
60475 2008-02-24  Bruno Haible  <bruno@clisp.org>
60476
60477         * doc/posix-functions/environ.texi: Document the MacOS X problem.
60478
60479 2008-02-20  Bob Proulx  <bob@proulx.com>
60480
60481         Enable use of older two part flavor 'git describe'.
60482         * build-aux/git-version-gen: If using the older two part flavor of
60483         git version then recreate the third part now present in the
60484         newer three part flavor of git describe.
60485
60486 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
60487
60488         * lib/fts.c (fts_build): Typo correction to comment.
60489
60490 2008-02-17  Bruno Haible  <bruno@clisp.org>
60491
60492         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
60493         generating no-op conflicts.
60494
60495 2008-02-17  Bruno Haible  <bruno@clisp.org>
60496
60497         Speed up by 10%.
60498         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
60499         result_entries, rather than an index-based loop.
60500
60501 2008-02-17  Bruno Haible  <bruno@clisp.org>
60502
60503         Speed up by 25%.
60504         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
60505         'hashcode_cached'.
60506         (entry_create): New function.
60507         (entry_hashcode): Use the cached hashcode if possible.
60508         (read_changelog_file, try_split_merged_entry): Use entry_create.
60509
60510 2008-02-17  Bruno Haible  <bruno@clisp.org>
60511
60512         Speed up from O(n^2) to O(n) for long ChangeLog files.
60513         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
60514         (read_changelog_file): Change implementation of entries_reversed list
60515         to rbtreehash.
60516         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
60517
60518 2008-02-17  Bruno Haible  <bruno@clisp.org>
60519
60520         New option --split-merged-entry.
60521         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
60522         (find_paragraph_end, try_split_merged_entry): New functions.
60523         (long_options): Add option --split-merged-entry.
60524         (usage): Document option --split-merged-entry.
60525         (main): Implement option --split-merged-entry.
60526         Reported by Eric Blake.
60527
60528 2008-02-17  Bruno Haible  <bruno@clisp.org>
60529
60530         * lib/git-merge-changelog.c: Include c-strstr.h.
60531         (main): Support the "git pull --rebase" situation.
60532         * modules/git-merge-changelog (Depends-on): Add c-strstr.
60533         Reported by Eric Blake.
60534
60535 2008-02-16  Eric Blake  <ebb9@byu.net>
60536
60537         Avoid doubling \ in common case of "c-maybe" quoting style.
60538         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
60539         eliding outer quotes.
60540         * lib/quotearg.h: Document this.
60541         * tests/test-quotearg.c (result_strings, inputs, results_g)
60542         (flag_results, locale_results): Test it by adding a new string to
60543         each test group.
60544         (compare_strings): Test new string.
60545
60546 2008-02-13  Eric Blake  <ebb9@byu.net>
60547
60548         Avoid trigraph quoting in default output.
60549         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
60550         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
60551         unless explicitly requested.
60552         * tests/test-quotearg.c (flag_results, main): Add additional tests.
60553
60554 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
60555
60556         Don't rely on signed integer overflowing to negative value.
60557         * lib/getugroups.c (getugroups): Include <limits.h>.
60558         Instead, compare against INT_MAX, and increment only if the test passes.
60559
60560 2008-02-13  Jim Meyering  <meyering@redhat.com>
60561         and Eric Blake  <ebb9@byu.net>
60562
60563         Avoid shadowing warning and compile errors on Linux.
60564         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
60565         forwarding macros on Linux.
60566         (dcgettext): Define a stub, for Linux.
60567         (results_g, main): Avoid warnings.
60568
60569 2008-02-12  Eric Blake  <ebb9@byu.net>
60570
60571         Silence warning in last patch.
60572         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
60573
60574         Quotearg part 4: add tests, fix c-maybe colon quoting.
60575         * lib/quotearg.h: Improve documentation.
60576         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
60577         escapes when adding outer quotes.  When quoting trigraphs, use
60578         valid C notation.  When quoting NUL, omit extra characters if next
60579         character is not digit.  Alter prototype.
60580         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
60581         callers.
60582         * modules/quotearg-tests: New module.
60583         * tests/test-quotearg.c: New test.
60584
60585 2008-02-07  Eric Blake  <ebb9@byu.net>
60586
60587         Quotearg part 3: add flag to control outer quote elision.
60588         * lib/quotearg.h (c_maybe_quoting_style): New style.
60589         (enum quoting_flags): Better documentation of flags.
60590         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
60591         c-maybe style.
60592         (quotearg_buffer_restyled): Handle new flag to elide outer
60593         quotes.
60594
60595         Quotearg part 2: add flag that can control NUL elision.
60596         * lib/quotearg.h (set_quoting_flags): New prototype.
60597         * lib/quotearg.c (struct quoting_options): Add flag field.
60598         (set_quoting_flags): New function.
60599         (quotearg_buffer_restyled): Add flags parameter.
60600         (quotearg_alloc_mem): Set the flag if length cannot be returned.
60601         (quotearg_n_options): Set the flag, since length cannot be
60602         returned.
60603         (quoting_options_from_style): Default flags correctly.
60604
60605         Quotearg part 1: more wrappers, restore quotearg_char state.
60606         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
60607         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
60608         (quotearg_colon_mem): New wrappers.
60609         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
60610         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
60611         functions.
60612         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
60613         (quotearg_colon_mem): New functions.
60614
60615 2008-02-11  Bruno Haible  <bruno@clisp.org>
60616
60617         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
60618         library in the current directory: it does not work with parallel make.
60619         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
60620
60621 2008-02-11  Bruno Haible  <bruno@clisp.org>
60622
60623         * .gitattributes: New file.
60624
60625 2008-02-11  Jim Meyering  <meyering@redhat.com>
60626
60627         useless-if-before-free: Fix reversed exit values.
60628         * build-aux/useless-if-before-free: Use correct values
60629         for EXIT_MATCH and EXIT_NO_MATCH.
60630
60631         * build-aux/useless-if-before-free: Close stdout carefully.
60632
60633 2008-02-10  Bruno Haible  <bruno@clisp.org>
60634
60635         New module 'git-merge-changelog'.
60636         * modules/git-merge-changelog: New file.
60637         * lib/git-merge-changelog.c: New file.
60638
60639 2008-02-10  Jim Meyering  <meyering@redhat.com>
60640
60641         useless-if-before-free: New option: --list (-l).
60642
60643         useless-if-before-free: Don't exit immediately upon open failure.
60644         * build-aux/useless-if-before-free: Exit 2 for errors.
60645         Upon failure to open a file, don't exit immediately.
60646         Rather, just warn and continue with any remaining files.
60647
60648 2008-02-10  Bruno Haible  <bruno@clisp.org>
60649
60650         New abstract list operation 'node_set_value'.
60651         * lib/gl_list.h (gl_list_node_set_value): New function.
60652         (struct gl_list_implementation): New field node_set_value.
60653         * lib/gl_list.c (gl_list_node_set_value): New function.
60654         * lib/gl_array_list.c (gl_array_node_set_value): New function.
60655         (gl_array_list_implementation): Update.
60656         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
60657         (gl_carray_list_implementation): Update.
60658         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
60659         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
60660         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
60661         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
60662         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
60663         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
60664         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
60665         Update.
60666         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
60667         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
60668         (gl_sublist_list_implementation): Update.
60669
60670 2008-02-10  Bruno Haible  <bruno@clisp.org>
60671
60672         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
60673         Needed when ELEMENT is #defined to 'some_type *'.
60674
60675 2008-02-10  Jim Meyering  <meyering@redhat.com>
60676
60677         New script and module: useless-if-before-free
60678         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
60679         * build-aux/useless-if-before-free: New file.
60680         * modules/useless-if-before-free: New file.
60681
60682         * build-aux/gitlog-to-changelog: Use committer date, not author date.
60683
60684         xstrtol_error: Fix typo.
60685         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
60686         s/exit_failure/exit_status/.
60687
60688 2008-02-09  Jim Meyering  <meyering@redhat.com>
60689
60690         New script and module: gitlog-to-changelog
60691         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
60692         * modules/gitlog-to-changelog: New file.
60693         * build-aux/gitlog-to-changelog: New file.
60694
60695 2008-02-08  Jim Meyering  <meyering@redhat.com>
60696
60697         Avoid two "parameter unused" warnings.
60698         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
60699         Mark "st" as used.
60700
60701         Use "git COMMAND", not "git-COMMAND".
60702         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
60703         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
60704         * build-aux/git-version-gen: Use "git status", not "git-status".
60705
60706 2008-02-07  Bruno Haible  <bruno@clisp.org>
60707
60708         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
60709         Avoids a crash on Windows Vista.
60710         Reported by Adam Strzelecki <ono@java.pl> via
60711         Simon Josefsson <simon@josefsson.org>.
60712
60713 2008-02-06  Bruno Haible  <bruno@clisp.org>
60714
60715         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
60716         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
60717         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
60718         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
60719         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
60720         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
60721         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
60722         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
60723         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
60724         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
60725         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
60726         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
60727         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
60728         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
60729         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
60730         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
60731         left-adjust flag.
60732         * tests/test-snprintf-posix.h (test_function): Likewise.
60733         * tests/test-sprintf-posix.h (test_function): Likewise.
60734         * tests/test-vasprintf-posix.c (test_function): Likewise.
60735         * doc/posix-functions/fprintf.texi: Update.
60736         * doc/posix-functions/printf.texi: Update.
60737         * doc/posix-functions/snprintf.texi: Update.
60738         * doc/posix-functions/sprintf.texi: Update.
60739         * doc/posix-functions/vfprintf.texi: Update.
60740         * doc/posix-functions/vprintf.texi: Update.
60741         * doc/posix-functions/vsnprintf.texi: Update.
60742         * doc/posix-functions/vsprintf.texi: Update.
60743         Reported by Peter Fales <psfales@alcatel-lucent.com>.
60744
60745 2008-02-06  Bruno Haible  <bruno@clisp.org>
60746
60747         Fix bug introduced on 2008-01-26.
60748         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
60749
60750 2008-02-06  Bruno Haible  <bruno@clisp.org>
60751
60752         Fix bug introduced on 2007-06-10.
60753         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
60754         !NEED_PRINTF_FLAG_ZERO.
60755
60756 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
60757
60758         getloadavg: use libperfstat on AIX5
60759         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
60760
60761 2008-02-03  Bruno Haible  <bruno@clisp.org>
60762
60763         * lib/diffseq.h: Add comments about required #includes.
60764         Reported by Michael Biggs <gnulib@doubleplum.net>.
60765
60766 2008-02-01  Bruno Haible  <bruno@clisp.org>
60767
60768         * users.txt: Add gnuit.
60769
60770 2008-01-31  Bruno Haible  <bruno@clisp.org>
60771
60772         * lib/md4.c (set_uint32): Mark as inline.
60773         * lib/md5.c (set_uint32): Likewise.
60774         * lib/sha1.c (set_uint32): Likewise.
60775         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
60776         * m4/md5.m4 (gl_MD5): Likewise.
60777         * m4/sha1.m4 (gl_SHA1): Likewise.
60778
60779 2008-01-31  Jim Meyering  <meyering@redhat.com>
60780
60781         Use "sizeof VAR", rather than a literal "4".
60782         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
60783         * lib/md4.c (md4_read_ctx): Likewise.
60784         * lib/sha1.c (sha1_read_ctx): Likewise.
60785
60786 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60787
60788         * tests/test-sha1.c: New file, based on test-md5.c.
60789
60790         * modules/crypto/sha1-tests: New file.
60791
60792 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60793
60794         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
60795
60796 2008-01-31  Jim Meyering  <meyering@redhat.com>
60797
60798         Prefer "sizeof v" over the equivalent "4".
60799         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
60800         * lib/md5.c (set_uint32): Likewise.
60801         * lib/sha1.c (set_uint32): Likewise.
60802
60803 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60804
60805         * lib/sha1.c (set_uint32): Mark function as static.
60806
60807 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60808
60809         md2: clarify comments to say that alignment is not required.
60810         * lib/md2.h: Remove warning about alignment in comment.
60811         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
60812         never been required.
60813
60814 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60815
60816         md4: adapt alignment constraint fix from sha1.
60817         * lib/md4.c (set_uint32): New function, from sha1.c
60818         (md4_read_ctx): Use it.
60819         (md4_finish_ctx): Doc fix.
60820         * lib/md4.h: Doc fix.
60821
60822 2008-01-31  Simon Josefsson  <simon@josefsson.org>
60823
60824         md5: adapt alignment constraint fix from sha1.
60825         * lib/md5.c (set_uint32): New function, from sha1.c
60826         (md5_read_ctx): Use it.
60827         (md5_finish_ctx): Doc fix.
60828         * lib/md5.h: Doc fix.
60829
60830 2008-01-30  Peter Palfrader  <weasel@debian.org>
60831
60832         sha1: remove the result buffer alignment constraint
60833         * lib/sha1.c (set_uint32): New function.
60834         (sha1_read_ctx): Rewrite to remove the result buffer alignment
60835         constraint.
60836         (sha1_finish_ctx): Remove comment warning about alignment constraint.
60837         * lib/sha1.h: Likewise.
60838
60839 2008-01-30  Andreas Schwab  <schwab@suse.de>
60840             Bruno Haible  <bruno@clisp.org>
60841
60842         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
60843         correct definition of LDBL_MIN_EXP.
60844
60845 2008-01-30  Karl Berry  <karl@gnu.org>
60846
60847         * config/srclist-update: try to preserve x bit on updates.
60848         * config/srclistvars.sh: update for karl.
60849
60850 2008-01-29  Jim Meyering  <meyering@redhat.com>
60851
60852         vasnprintf.c: Avoid warning about unused label
60853         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
60854         "overflow" label definition and associated code with the
60855         same cpp condition that guards the sole use of that label.
60856
60857 2008-01-26  Bruno Haible  <bruno@clisp.org>
60858
60859         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
60860         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
60861         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
60862         * lib/isnanl-nolibm.h (isnanl): Likewise.
60863         Reported by Paul Eggert <eggert@cs.ucla.edu>.
60864
60865 2008-01-26  Bruno Haible  <bruno@clisp.org>
60866
60867         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
60868         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
60869
60870 2008-01-26  Bruno Haible  <bruno@clisp.org>
60871
60872         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
60873         GCC >= 4.0 built-in.
60874         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
60875
60876 2008-01-26  Bruno Haible  <bruno@clisp.org>
60877
60878         Rename isnan, applicable to 'double' only, to isnand.
60879         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
60880         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
60881         (configure.ac): Update.
60882         (Include): Replace "isnan.h" with "isnand.h".
60883         * m4/isnand.m4: Renamed from m4/isnan.m4.
60884         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
60885         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
60886         instead of isnan.c.
60887         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
60888         instead of HAVE_ISNAN_IN_LIBC.
60889         (isnand): Renamed from isnan.
60890         * lib/isnand.c: New file.
60891         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
60892         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
60893         (Makefile.am): Update.
60894         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
60895         Include isnand.h instead of isnan.h.
60896         (main): Test isnand instead of isnan.
60897         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
60898         isnan-nolibm.
60899         * modules/frexp (Depends-on): Likewise.
60900         * modules/frexp-tests (Depends-on): Likewise.
60901         * modules/frexp-nolibm (Depends-on): Likewise.
60902         * modules/frexp-nolibm-tests (Depends-on): Likewise.
60903         * modules/isfinite (Depends-on): Likewise.
60904         * modules/round-tests (Depends-on): Likewise.
60905         * modules/signbit (Depends-on): Likewise.
60906         * modules/signbit-tests (Depends-on): Likewise.
60907         * modules/snprintf-posix (Depends-on): Likewise.
60908         * modules/sprintf-posix (Depends-on): Likewise.
60909         * modules/trunc-tests (Depends-on): Likewise.
60910         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
60911         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
60912         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
60913         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
60914         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
60915         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
60916         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
60917         * modules/vasnprintf-posix (Depends-on): Likewise.
60918         * modules/vasprintf-posix (Depends-on): Likewise.
60919         * modules/vfprintf-posix (Depends-on): Likewise.
60920         * modules/vsnprintf-posix (Depends-on): Likewise.
60921         * modules/vsprintf-posix (Depends-on): Likewise.
60922         * lib/frexp.c: Include isnand.h instead of isnan.h.
60923         (ISNAN): Set to isnand instead of isnan.
60924         * lib/isfinite.c: Include isnand.h instead of isnan.h.
60925         (gl_isfinited): Use isnand instead of isnan.
60926         * lib/signbitd.c: Include isnand.h instead of isnan.h.
60927         (gl_signbitd): Use isnand instead of isnan.
60928         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
60929         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
60930         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
60931         (main): Use isnand instead of isnan.
60932         * tests/test-round1.c: Include isnand.h.
60933         (main): Use isnand instead of isnan.
60934         * tests/test-round2.c: Include isnand.h instead of isnan.h.
60935         (ISNAN): Set to isnand instead of isnan.
60936         * tests/test-trunc1.c: Include isnand.h.
60937         (main): Use isnand instead of isnan.
60938         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
60939         (equal): Use isnand instead of isnan.
60940         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
60941         isnand-nolibm.
60942         * NEWS: Mention the change.
60943
60944 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
60945             Bruno Haible  <bruno@clisp.org>
60946
60947         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
60948         the GCC builtins for signbits are present and set
60949         REPLACE_SIGNBIT_USING_GCC if so.
60950         * lib/math.in.h (signbit): Define using GCC builtins if
60951         REPLACE_SIGNBIT_USING_GCC is set.
60952         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
60953         REPLACE_SIGNBIT_USING_GCC.
60954         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
60955
60956 2008-01-25  Jim Meyering  <meyering@redhat.com>
60957
60958         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
60959         * lib/poll.c: Include <config.h>, not "config.h".
60960         * tests/test-getaddrinfo.c: Likewise.
60961
60962 2008-01-25  Simon Josefsson  <simon@josefsson.org>
60963
60964         * modules/sockets-tests: New file.
60965
60966 2008-01-24  Simon Josefsson  <simon@josefsson.org>
60967
60968         * modules/sockets: New module, can be used to call WSA_Startup and
60969         WSA_Cleanup when needed.
60970
60971         * lib/sockets.h, lib/sockets.c: New files.
60972
60973         * m4/sockets.m4: New file.
60974
60975         * tests/test-sockets.c: New file.
60976
60977 2008-01-19  Bruno Haible  <bruno@clisp.org>
60978
60979         * doc/posix-headers: Renamed from doc/headers.
60980         * doc/posix-functions: Renamed from doc/functions.
60981         * doc/gnulib.texi: Update.
60982
60983 2008-01-19  Bruno Haible  <bruno@clisp.org>
60984
60985         * doc/glibc-functions/strcasestr.texi: Include contents of
60986         doc/functions/strcasestr.texi, fixing the list of platforms.
60987         * doc/functions/strcasestr.texi: Remove file.
60988
60989 2008-01-19  Bruno Haible  <bruno@clisp.org>
60990
60991         * doc/glibc-functions/memmem.texi: Include contents of
60992         doc/functions/memmem.texi.
60993         * doc/functions/memmem.texi: Remove file.
60994
60995 2008-01-18  Bruno Haible  <bruno@clisp.org>
60996
60997         * doc/glibc-functions/*.texi: New files.
60998         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
60999         to use the new files.
61000
61001 2008-01-17  Bruno Haible  <bruno@clisp.org>
61002
61003         * tests/test-gethostname.c (main): Fix printf statement.
61004
61005 2008-01-17  Simon Josefsson  <simon@josefsson.org>
61006
61007         * modules/gethostname-tests: New file.
61008
61009         * tests/test-gethostname.c: New file.
61010
61011 2008-01-17  Simon Josefsson  <simon@josefsson.org>
61012
61013         * lib/gethostname.c: Include string.h unconditionally, strncpy is
61014         used by the UNAME case.  Reported by Bruno Haible
61015         <bruno@clisp.org>.
61016
61017 2008-01-17  Eric Blake  <ebb9@byu.net>
61018
61019         Convert c-strcasestr to be more efficient.
61020         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
61021         (Depends-on): Add c-strcase, remove malloca, strnlen.
61022         * tests/test-c-strcasestr.c (main): Enhance test.
61023         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
61024
61025 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
61026
61027         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
61028         Use it in creating po/Makevars.
61029
61030 2008-01-15  Simon Josefsson  <simon@josefsson.org>
61031
61032         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
61033         Applications that requires it should initialize libgcrypt
61034         manually.
61035
61036 2008-01-16  Simon Josefsson  <simon@josefsson.org>
61037
61038         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
61039
61040 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
61041
61042         Fix problem with getdate on mingw32 reported by Simon Josefsson
61043         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
61044         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
61045         tzname", when deciding whether to declare tzname.
61046         * lib/strftime.c (tzname): Likewise.
61047
61048 2008-01-15  Bruno Haible  <bruno@clisp.org>
61049
61050         Work around a MacOS X 10.5 bug in frexpl().
61051         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
61052         * doc/functions/frexpl.texi: Document the bug.
61053         Reported by Elias Pipping <pipping@gentoo.org>.
61054
61055 2008-01-14  Eric Blake  <ebb9@byu.net>
61056
61057         Touch up previous patch.
61058         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
61059         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
61060
61061         Convert strcasestr module to use Two-Way algorithm.
61062         * modules/strcasestr-simple: New module, based on the old
61063         strcasestr, but with Two-Way rather than KMP.
61064         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
61065         * lib/string.in.h (rpl_strcasestr): Declare.
61066         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
61067         performance.
61068         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
61069         * modules/string (Makefile.am): Support strcasestr.
61070         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
61071         * modules/strcasestr-tests (Depends-on): Check for alarm.
61072         * tests/test-strcasestr.c: Augment test.
61073         * lib/str-two-way.h: Clean up stray macro.
61074         * NEWS: Document new module.
61075         * MODULES.html.sh (string handling): Likewise.
61076         * doc/functions/strcasestr.texi: New file.
61077         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
61078         here, since it is not a POSIX function.
61079
61080 2008-01-14  Colin Watson  <cjwatson@debian.org>
61081             Bruno Haible  <bruno@clisp.org>
61082
61083         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
61084         works fine; if not, set REPLACE_STRSIGNAL.
61085         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
61086         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61087         REPLACE_STRSIGNAL.
61088         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
61089         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
61090         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
61091
61092 2008-01-14  Bruno Haible  <bruno@clisp.org>
61093
61094         * modules/strsignal (Include): Change to <string.h>.
61095
61096 2008-01-14  Colin Watson  <cjwatson@debian.org>
61097
61098         * modules/argp (Notice): Add a notice recommending to change
61099         XGETTEXT_OPTIONS.
61100         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
61101
61102 2008-01-13  Colin Watson  <cjwatson@debian.org>
61103
61104         * modules/strsignal-tests: New file.
61105         * tests/test-strsignal.c: New file.
61106
61107         * lib/strsignal.c: New file, from glibc with modifications.
61108         * lib/siglist.h: New file, from glibc with modifications.
61109         * lib/string.in.h (strsignal): New declaration.
61110         * m4/strsignal.m4: New file.
61111         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
61112         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
61113         * modules/strsignal: New file.
61114         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
61115         HAVE_DECL_STRSIGNAL.
61116
61117 2008-01-13  Bruno Haible  <bruno@clisp.org>
61118
61119         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
61120         locale encoding is not ASCII. Needed for OpenBSD 4.0.
61121         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
61122         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
61123
61124 2008-01-13  Bruno Haible  <bruno@clisp.org>
61125
61126         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
61127         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
61128         * lib/argp.h (__attribute__): Likewise.
61129         * lib/c-stack.c (__attribute__): Likewise.
61130         * lib/error.h (__attribute__): Likewise.
61131         * lib/fts.c (__attribute__): Likewise.
61132         * lib/openat.h (__attribute__): Likewise.
61133         * lib/stdio.in.h (__attribute__): Likewise.
61134         * lib/string.in.h (__attribute__): Likewise.
61135         * lib/utimens.c (__attribute__): Likewise.
61136         * lib/vasnprintf.h (__attribute__): Likewise.
61137         * lib/xalloc.h (__attribute__): Likewise.
61138         * lib/xprintf.h (__attribute__): Likewise.
61139         * lib/xstrtol.h (__attribute__): Likewise.
61140         * lib/xvasprintf.h (__attribute__): Likewise.
61141
61142 2008-01-12  Bruno Haible  <bruno@clisp.org>
61143
61144         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
61145         * doc/glibc-headers/a.out.texi: New file.
61146         * doc/glibc-headers/aliases.texi: New file.
61147         * doc/glibc-headers/alloca.texi: New file.
61148         * doc/glibc-headers/ar.texi: New file.
61149         * doc/glibc-headers/argp.texi: New file.
61150         * doc/glibc-headers/argz.texi: New file.
61151         * doc/glibc-headers/byteswap.texi: New file.
61152         * doc/glibc-headers/crypt.texi: New file.
61153         * doc/glibc-headers/endian.texi: New file.
61154         * doc/glibc-headers/envz.texi: New file.
61155         * doc/glibc-headers/err.texi: New file.
61156         * doc/glibc-headers/error.texi: New file.
61157         * doc/glibc-headers/execinfo.texi: New file.
61158         * doc/glibc-headers/fpu_control.texi: New file.
61159         * doc/glibc-headers/fstab.texi: New file.
61160         * doc/glibc-headers/fts.texi: New file.
61161         * doc/glibc-headers/getopt.texi: New file.
61162         * doc/glibc-headers/ieee754.texi: New file.
61163         * doc/glibc-headers/ifaddrs.texi: New file.
61164         * doc/glibc-headers/libintl.texi: New file.
61165         * doc/glibc-headers/mcheck.texi: New file.
61166         * doc/glibc-headers/mntent.texi: New file.
61167         * doc/glibc-headers/obstack.texi: New file.
61168         * doc/glibc-headers/paths.texi: New file.
61169         * doc/glibc-headers/printf.texi: New file.
61170         * doc/glibc-headers/pty.texi: New file.
61171         * doc/glibc-headers/resolv.texi: New file.
61172         * doc/glibc-headers/shadow.texi: New file.
61173         * doc/glibc-headers/sysexits.texi: New file.
61174         * doc/glibc-headers/ttyent.texi: New file.
61175
61176 2008-01-12  Jim Meyering  <meyering@redhat.com>
61177
61178         announce-gen: emit Gnulib's git-based version string.
61179         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
61180         New option --gnulib-version=V, where V is expected to be
61181         the output of running git describe in the gnulib directory.
61182         (get_tool_versions): Request feedback on xdelta.  I suspect it's
61183         not useful, and plan to stop publishing an xdelta file with each
61184         coreutils release.
61185
61186         * build-aux/announce-gen: Also check for lzma-compressed files.
61187
61188 2008-01-11  Bruno Haible  <bruno@clisp.org>
61189
61190         * tests/test-memmem.c (main): Increase maximum allowed time.
61191         * tests/test-strstr.c (main): Likewise.
61192
61193 2008-01-11  Bruno Haible  <bruno@clisp.org>
61194
61195         * doc/functions/memmem.texi: Add more precisions about platforms.
61196         * doc/functions/strstr.texi: Likewise.
61197
61198 2008-01-10  Eric Blake  <ebb9@byu.net>
61199
61200         * m4/strstr.m4: Delete cruft from copy-n-paste.
61201         Reported by Bruno Haible.
61202
61203 2008-01-10  Bruno Haible  <bruno@clisp.org>
61204
61205         Make c-strstr rely on strstr.
61206         * lib/c-strstr.c: Don't include str-kmp.h.
61207         (c_strstr): Define in terms of strstr.
61208         * modules/c-strstr (Files): Remove lib/str-kmp.h.
61209         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
61210
61211 2008-01-10  Bruno Haible  <bruno@clisp.org>
61212
61213         * doc/gnulib.texi (String Functions in C Locale): New section.
61214         * doc/c-ctype.texi: New file.
61215         * doc/c-strcase.texi: New file.
61216         * doc/c-strcaseeq.texi: New file.
61217         * doc/c-strcasestr.texi: New file.
61218         * doc/c-strstr.texi: New file.
61219         * doc/c-strtod.texi: New file.
61220         * doc/c-strtold.texi: New file.
61221
61222 2008-01-10  Eric Blake  <ebb9@byu.net>
61223
61224         * lib/relocatable.h: Fix a comment.
61225
61226 2008-01-10  Eric Blake  <ebb9@byu.net>
61227
61228         Share two-way algorithm.
61229         * lib/str-two-way.h: New file, merged from...
61230         * lib/memmem.c: ...here...
61231         * lib/strstr.c: ...and here.
61232         * modules/memmem (Files): Use it.
61233         * modules/strstr (Files): Likewise.
61234
61235         Avoid quadratic strstr implementations.
61236         * lib/strstr.c: New file.
61237         * m4/strstr.m4: Likewise.
61238         * modules/strstr: Likewise.
61239         * modules/strstr-tests: Likewise.
61240         * tests/test-strstr.c: Likewise.
61241         * lib/string.in.h (rpl_strstr): Declare.
61242         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
61243         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
61244         * modules/string (Makefile.am): Likewise.
61245         * MODULES.html.sh (string handling): Mention new module.
61246         * doc/functions/strstr.texi (strstr): Document the bug.
61247
61248 2008-01-10  Bruno Haible  <bruno@clisp.org>
61249
61250         * lib/relocatable.h (relocate): State whether result is freshly
61251         allocated or not.
61252         * lib/relocatable.c (relocate): Return a freshly allocated string
61253         instead of a pointer to a privately held string.
61254         Reported by Sylvain Beucler <beuc@gnu.org>.
61255
61256 2008-01-10  Colin Watson  <cjwatson@debian.org>
61257
61258         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
61259         s/S_ISNLK/S_ISLNK/.
61260
61261 2008-01-09  Bruno Haible  <bruno@clisp.org>
61262
61263         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
61264         and other files.
61265         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
61266         if it's only a guess.
61267         * modules/memmem: Simplify by depending on memmem-simple.
61268
61269 2008-01-09  Bruno Haible  <bruno@clisp.org>
61270
61271         Work around OpenBSD 4.0 tdelete() bug.
61272         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
61273         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
61274         macros and don't redefine the enum values.
61275         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
61276         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
61277         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
61278
61279 2008-01-09  Bruno Haible  <bruno@clisp.org>
61280
61281         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
61282         (main): Don't perform the tests if setlocale did not install a UTF-8
61283         locale. Needed on OpenBSD 4.0.
61284         * modules/wcwidth-tests (Depends-on): Add localcharset.
61285
61286 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
61287
61288         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
61289         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
61290         * NEWS: announce this.
61291         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
61292
61293 2008-01-09  Simon Josefsson  <simon@josefsson.org>
61294         and Eric Blake  <ebb9@byu.net>
61295
61296         Add memmem-simple module.
61297         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
61298         (gl_FUNC_MEMMEM): Separate performance from presence checks.
61299         * modules/memmem-simple: New file.
61300         * modules/memmem (Description): Tweak.
61301         * MODULES.html.sh (string handling): Mention new module.
61302         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
61303         addressed by memmem-simple.
61304         * NEWS: Document the difference.
61305
61306 2008-01-09  Eric Blake  <ebb9@byu.net>
61307
61308         Give gcc some memmem optimization hints.
61309         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
61310         (strcasestr): Declare as pure.
61311         * modules/memmem (Maintainer): Claim my implementation.
61312
61313 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61314
61315         Support AIX 6.1 and higher.
61316         * build-aux/config.libpath: Likewise.
61317         * build-aux/config.rpath: Likewise.
61318
61319 2008-01-08  Jim Meyering  <meyering@redhat.com>
61320             Bruno Haible  <bruno@clisp.org>
61321
61322         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
61323         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
61324         Reported by Peter Fales in
61325         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
61326
61327 2008-01-08  Bruno Haible  <bruno@clisp.org>
61328
61329         * modules/unictype/category-of (Depends-on): Add
61330         unictype/category-none.
61331         * modules/unictype/category-and-tests (Depends-on): Add
61332         unictype/category-{L,N,Lu,Nd}.
61333         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
61334         * modules/unictype/category-or-tests (Depends-on): Add
61335         unictype/category-{L,N}.
61336         * modules/unictype/category-name-tests (Depends-on): Add
61337         unictype/category-{Z,Nl}.
61338         Reported by Simon Josefsson.
61339
61340 2008-01-08  Bruno Haible  <bruno@clisp.org>
61341
61342         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
61343         convention better.
61344         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
61345         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
61346         Reported by Peter Miller <millerp@canb.auug.org.au>.
61347
61348 2008-01-08  Eric Blake  <ebb9@byu.net>
61349
61350         Rewrite memmem to guarantee linear complexity without malloc.
61351         * lib/memmem.c (memmem): Use Two-Way rather than
61352         Knuth-Morris-Pratt, to allow O(1) space usage.
61353         (critical_factorization, two_way_short_needle)
61354         (two_way_long_needle): New functions.
61355         (knuth_morris_pratt): Delete.
61356         * modules/memmem (Depends-on): No longer need malloca or stdbool.
61357         Add stdint.
61358         * tests/test-memmem.c (main): Add tests for periodic needle and
61359         sublinear performance.
61360         * doc/functions/memmem.texi (memmem): Document other deficiencies
61361         in cygwin and older glibc.
61362
61363 2008-01-08  Bruno Haible  <bruno@clisp.org>
61364
61365         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
61366         augmentation.
61367
61368 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
61369
61370         Add a configure time option: --disable-acl.
61371         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
61372         AC_ARG_ENABLE(acl).
61373
61374 2008-01-06  Simon Josefsson  <simon@josefsson.org>
61375
61376         * tests/test-localename.c: Don't include obsolete "setenv.h".
61377
61378         * modules/localename-tests (Depends-on): Need unsetenv.
61379
61380 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61381
61382         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
61383
61384 2008-01-06  Colin Watson  <cjwatson@debian.org>
61385
61386         * users.txt: Add man-db.
61387
61388 2008-01-07  Bruno Haible  <bruno@clisp.org>
61389
61390         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
61391         previous section name.
61392
61393 2008-01-07  Bruno Haible  <bruno@clisp.org>
61394
61395         * lib/progname.c (set_program_name): Don't strip off a leading
61396         "lt-" prefix outside a .libs directory.
61397         Suggested by Paul Eggert.
61398
61399 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
61400             Bruno Haible  <bruno@clisp.org>
61401
61402         Improve memory cleanup in 'relocatable' module.
61403         * lib/relocatable.h (compute_curr_prefix): Change return type to
61404         'char *'.
61405         * lib/relocatable.c (compute_curr_prefix): Change return type to
61406         'char *'. Free curr_installdir after use.
61407         (relocate): Free curr_prefix_better after use.
61408         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
61409
61410 2008-01-01  Bruno Haible  <bruno@clisp.org>
61411
61412         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
61413         failure on older glibc systems.
61414         Reported by Peter Fales <psfales@alcatel-lucent.com>.
61415
61416 2008-01-05  Eric Blake  <ebb9@byu.net>
61417
61418         Avoid quadratic system memmem.
61419         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
61420         Reported by Ralf Wildenhues.
61421
61422         Fix memmem test for mingw.
61423         * modules/memmem-tests (configure.ac): Check for alarm.
61424         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
61425         it.
61426         * doc/functions/memmem.texi: New file.
61427         * doc/gnulib.texi (Function Substitutes): Add memmem.
61428         Reported by Bruno Haible.
61429
61430 2008-01-04  Bruno Haible  <bruno@clisp.org>
61431
61432         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
61433         Require gl_HEADER_STRINGS_H_DEFAULTS, not
61434         gl_HEADER_STRING_H_DEFAULTS.
61435
61436 2008-01-04  Eric Blake  <ebb9@byu.net>
61437
61438         Shorten duration of memmem test.
61439         * tests/test-memmem.c (main): Use alarm to declare failure if test
61440         is taking too long.
61441         Reported by Ralf Wildenhues.
61442
61443 2007-12-21  Simon Josefsson  <simon@josefsson.org>
61444
61445         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
61446         string, needed by strerror.
61447
61448 2008-01-03  Colin Watson  <cjwatson@debian.org>
61449             Bruno Haible  <bruno@clisp.org>
61450
61451         * doc/gnulib-tool.texi (Localization): New section.
61452
61453 2008-01-02  Bruno Haible  <bruno@clisp.org>
61454
61455         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
61456         variables to 'unsigned char *' type.
61457         Reported by Paul Eggert.
61458
61459 2008-01-02  Jim Meyering  <jim@meyering.net>
61460
61461         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
61462
61463 2007-12-31  Jim Meyering  <jim@meyering.net>
61464
61465         Avoid use of private FTS type name.
61466         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
61467
61468 2007-12-30  Karl Berry  <karl@gnu.org>
61469
61470         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
61471         work around defect in Texinfo and/or the standalone Info browser.
61472
61473 2007-12-30  Bruno Haible  <bruno@clisp.org>
61474
61475         Unify 5 copies of the KMP code.
61476         * lib/str-kmp.h: New file.
61477         * lib/c-strcasestr.c: Include str-kmp.h.
61478         (knuth_morris_pratt): Remove function.
61479         (c_strcasestr): Update.
61480         * lib/c-strstr.c: Include str-kmp.h.
61481         (knuth_morris_pratt): Remove function.
61482         (c_strcasestr): Update.
61483         * lib/mbscasestr.c: Include str-kmp.h.
61484         (knuth_morris_pratt_unibyte): Remove function.
61485         * lib/mbsstr.c: Include str-kmp.h.
61486         (knuth_morris_pratt_unibyte): Remove function.
61487         * lib/strcasestr.c: Include str-kmp.h.
61488         (knuth_morris_pratt): Remove function.
61489         (strcasestr): Update.
61490         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
61491         * modules/c-strstr (Files): Likewise.
61492         * modules/mbscasestr (Files): Likewise.
61493         * modules/mbsstr (Files): Likewise.
61494         * modules/strcasestr (Files): Likewise.
61495         Suggested by Paul Eggert.
61496
61497 2007-12-30  Bruno Haible  <bruno@clisp.org>
61498
61499         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
61500         defined.
61501
61502 2007-12-30  Bruno Haible  <bruno@clisp.org>
61503
61504         * lib/xmalloca.h: Include xalloc.h.
61505         (xnmalloca): New macro.
61506
61507 2007-12-30  Bruno Haible  <bruno@clisp.org>
61508
61509         * lib/malloca.h (nmalloca): New macro.
61510         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
61511         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
61512         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
61513         knuth_morris_pratt_multibyte): Likewise.
61514         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
61515         knuth_morris_pratt_multibyte): Likewise.
61516         * lib/memmem.c (knuth_morris_pratt): Likewise.
61517         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
61518
61519 2007-12-25  Bruno Haible  <bruno@clisp.org>
61520
61521         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
61522         * lib/glob.c: Don't include openat.h.
61523         (link_exists2_p): Add back the code that deals with the
61524         !GLOB_ALTDIRFUNC case.
61525         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
61526         let it do the filename concatenation.
61527         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
61528         * modules/glob (Depends-on): Remove openat.
61529
61530 2007-12-31  Bruno Haible  <bruno@clisp.org>
61531
61532         * modules/dirfd (License): Change to LGPLv2+.
61533         Approved by Jim Meyering.
61534
61535 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
61536
61537         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
61538         when multiplying M by sizeof (size_t).
61539
61540 2007-12-10  Martin Lambers  <marlam@marlam.de>
61541
61542         Override getpagesize on mingw.
61543         * lib/getpagesize.c: New file.
61544         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
61545         * modules/getpagesize (Files): Add lib/getpagesize.c.
61546         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
61547         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
61548         REPLACE_GETPAGESIZE.
61549         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
61550
61551 2007-12-25  Bruno Haible  <bruno@clisp.org>
61552
61553         * modules/localcharset (Notice): New field.
61554         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
61555         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
61556
61557 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
61558             Bruno Haible  <bruno@clisp.org>
61559
61560         Avoid using the syntax symbol() in formatted documentation.
61561         * MODULES.html.sh (func_module): When replacing symbol() with a
61562         hyperlink, remove the parentheses. Show an error if some remain.
61563         Recognize and render the '...' syntax.
61564         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
61565         Rework. Add paragraph about GCC's inlining.
61566         * doc/alloca.texi: Likewise.
61567         * doc/error.texi: Remove parentheses from symbol reference.
61568         * doc/gnulib-intro.texi: Likewise.
61569         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
61570         * modules/fnmatch (Description): Reword to say "the ... function".
61571         * modules/full-read (Description): Likewise.
61572         * modules/full-write (Description): Likewise.
61573         * modules/safe-read (Description): Likewise.
61574         * modules/safe-write (Description): Likewise.
61575         * modules/strchrnul (Description): Likewise.
61576         * modules/trim (Description): Likewise.
61577         * modules/error (Description): Remove parentheses from symbol
61578         references.
61579         * modules/verror (Description): Likewise.
61580         Reported by Karl Berry.
61581
61582 2007-12-25  Bruno Haible  <bruno@clisp.org>
61583
61584         Fixup after 2007-10-16 commit.
61585         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
61586
61587 2007-12-24  Bruno Haible  <bruno@clisp.org>
61588
61589         Make --enable-relocatable work with DESTDIR.
61590         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
61591         to compute installdir from destprog.
61592         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
61593         also set the RELOC_DESTDIR variable.
61594         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
61595
61596 2007-12-24  Bruno Haible  <bruno@clisp.org>
61597
61598         Fix link error due to xalloc_die().
61599         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
61600         of xreadlink.
61601         * lib/relocwrapper.c: Update comments.
61602         * build-aux/install-reloc: Remove xreadlink.c from file list.
61603         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
61604         xreadlink.c.
61605         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
61606
61607 2007-12-24  Bruno Haible  <bruno@clisp.org>
61608
61609         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
61610         * lib/setenv.h: Remove file.
61611         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
61612         lib/setenv.h.
61613         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
61614         (Depends-on): Add stdlib.
61615         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
61616         gl_FUNC_UNSETENV.
61617         (Include): Replace setenv.h with <stdlib.h>.
61618         * modules/unsetenv: New file.
61619         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
61620         * lib/unsetenv.c: Include <stdlib.h> first.
61621         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
61622         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
61623         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
61624         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
61625         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
61626         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
61627         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
61628         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
61629         * doc/functions/unsetenv.texi: Update.
61630         * modules/xsetenv (Depends-on): Add unsetenv.
61631         * modules/getdate (Depends-on): Likewise.
61632         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
61633         * lib/xsetenv.c: Don't include setenv.h.
61634         * lib/getdate.y: Likewise.
61635         * lib/relocwrapper.c: Likewise.
61636         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
61637         (Depends-on): Add stdlib.
61638         * NEWS: Mention the changes.
61639         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
61640
61641 2007-12-23  Bruno Haible  <bruno@clisp.org>
61642
61643         * lib/memmem.c (memmem): Use lowercase variable names. Tab
61644         indentation.
61645
61646 2007-12-23  Bruno Haible  <bruno@clisp.org>
61647
61648         * lib/c-strcasestr.c: Add more comments.
61649         * lib/c-strstr.c: Likewise.
61650         * lib/mbscasestr.c: Likewise.
61651         * lib/mbsstr.c: Likewise.
61652         * lib/strcasestr.c: Likewise.
61653         * lib/memmem.c: Likewise.
61654
61655 2007-12-23  Bruno Haible  <bruno@clisp.org>
61656
61657         * tests/test-memmem.c: Include <string.h> first.
61658
61659 2007-12-22  Bruno Haible  <bruno@clisp.org>
61660
61661         * gnulib-tool (func_create_testdir): Change $auxdir while generating
61662         the contents of $testsbase.
61663         Reported by Ralf Wildenhues.
61664
61665 2007-12-22  Bruno Haible  <bruno@clisp.org>
61666
61667         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
61668         two variables local_ldadd_before, local_ldadd_last.
61669
61670 2007-12-20  Eric Blake  <ebb9@byu.net>
61671
61672         Work around circular library issue when cross-compiling.
61673         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
61674         that progname.o does not need to pull in rpl_memcmp.
61675
61676 2007-12-19  Eric Blake  <ebb9@byu.net>
61677
61678         Fix memmem to avoid O(n^2) worst-case complexity.
61679         * lib/memmem.c (knuth_morris_pratt): New function.
61680         (memmem): Use it if first few naive iterations fail.
61681         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
61682         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
61683         * modules/memchr (License): Likewise.
61684         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
61685         malloca.
61686         * tests/test-memmem.c: Rewrite, borrowing ideas from
61687         test-mbsstr1.c; the old version wouldn't even compile!
61688         * modules/memmem-tests: New file.
61689         * lib/string.in.h (rpl_memmem): Add declaration.
61690         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
61691         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
61692         REPLACE_MEMMEM.
61693
61694 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
61695
61696         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
61697         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
61698         before any system include files, and undef after them all.  This
61699         should fix a problem on VMS reported by John E. Malmberg in
61700         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
61701
61702 2007-12-17  Eric Blake  <ebb9@byu.net>
61703
61704         Revert addition of verify, for BSD/OS.
61705         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
61706         can't handle large files, for the sake of obsolete platforms.
61707         * modules/fseeko (Depends-on): Remove verify.
61708         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
61709         * doc/functions/ftello.texi (ftello): Likewise.
61710         * doc/functions/fgetpos.texi (fgetpos): Likewise.
61711         Reported by Larry Jones.
61712
61713 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
61714
61715         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
61716         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
61717
61718 2007-12-17  Jim Meyering  <meyering@redhat.com>
61719
61720         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
61721         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
61722         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
61723         * modules/getcwd (Depends-on): Add openat.
61724         Reported by Petr Salinger.
61725
61726 2007-12-17  Bruno Haible  <bruno@clisp.org>
61727
61728         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
61729         avoid a segmentation fault of the configure test on x86_64 systems.
61730
61731 2007-12-15  Jim Meyering  <meyering@redhat.com>
61732
61733         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
61734
61735 2007-12-13  Eric Blake  <ebb9@byu.net>
61736
61737         Another fseek test.
61738         * tests/test-fseek.c (main): Also test ungetc handling.
61739         * tests/test-fseeko.c (main): Likewise.
61740         * modules/fseeko (Depends-on): Add verify.
61741         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
61742         large.
61743         Reported by Larry Jones.
61744
61745         Fix fseeko on mingw.
61746         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
61747         seek.
61748
61749         Beef up fseek tests.
61750         * tests/test-fseek.c (main): Also test eof handling.
61751         * tests/test-fseeko.c (main): Likewise.
61752         Reported by Larry Jones.
61753
61754 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
61755
61756         Fix fseeko on BSD-based platforms.
61757         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
61758         successful seek.
61759
61760 2007-12-12  Eric Blake  <ebb9@byu.net>
61761
61762         Allow circular dependency of separate libtests.a
61763         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
61764         when use_libtests.
61765
61766 2007-12-11  Eric Blake  <ebb9@byu.net>
61767
61768         Fix bug with -0.0L in previous patch.
61769         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
61770         * tests/test-isnan.c (main): Also test on zeroes.
61771         * tests/test-isnanf.c (main): Likewise.
61772         * tests/test-isnanl.h (main): Likewise.
61773
61774         Detect pseudo-denormals on x86 even when cross-compiling.
61775         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
61776         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
61777         invalid bit patterns that happen to satisfy ==.
61778
61779         Avoid link failures with separate libtests.a.
61780         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
61781         last, to satisfy circular dependencies.
61782
61783 2007-12-11  Eric Blake  <ebb9@byu.net>
61784         and Bruno Haible  <bruno@clisp.org>
61785
61786         Fix OpenBSD 4.0 <float.h> handling of long double.
61787         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
61788         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
61789         * doc/headers/float.texi (float.h): Document OpenBSD bug.
61790
61791 2007-12-11  Jim Meyering  <meyering@redhat.com>
61792
61793         * users.txt: Add libvirt.
61794
61795         Support versions of autoconf prior to 2.59c.
61796         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
61797         if it is not already defined.
61798
61799 2007-12-09  Bruno Haible  <bruno@clisp.org>
61800
61801         Let 'gnulib-tool --import' collect sources needed for the tests in
61802         tests/ rather than in lib/.
61803         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
61804         argument. If true, add rules to generate libtests.a, and put libtests.a
61805         into $(LDADD). Consider source files in subdirectories and set
61806         uses_subdirs.
61807         (func_emit_initmacro_start, func_emit_initmacro_end,
61808         func_emit_initmacro_done): Pass all arguments explicitly.
61809         (func_import): Determine two module lists main_modules,
61810         testsrelated_modules. Determine use_libtests. Determine two variables
61811         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
61812         instead of just sed_transform_lib_file. Determine two variables
61813         main_files and testsrelated_files. Compute 'files' as the union of
61814         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
61815         func_add_or_update. In the generated gnulib-comp.m4, collect the
61816         object files for tests/ in different variables than those for lib/.
61817         Substitute LIBTESTS_LIBDEPS.
61818         (func_create_testdir): Combine the uses_subdirs results from
61819         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
61820
61821 2007-12-09  Bruno Haible  <bruno@clisp.org>
61822
61823         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
61824         the build-aux directory.
61825
61826 2007-12-09  Bruno Haible  <bruno@clisp.org>
61827
61828         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
61829         introduced on 2006-09-09.
61830
61831 2007-12-07  Jim Meyering  <meyering@redhat.com>
61832
61833         Let these macros work also with autoconf-2.59.
61834         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
61835         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
61836         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
61837
61838 2007-12-06  Jim Meyering  <meyering@redhat.com>
61839
61840         Avoid a configure-time syntax error in gl_FUNC_ACL.
61841         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
61842         function in each branch, before testing the cache variable.
61843
61844 2007-12-04  Eric Blake  <ebb9@byu.net>
61845
61846         Make scripts executable.
61847         * build-aux/config.guess: Add execute permissions.
61848         * build-aux/config.sub: Likewise.
61849         * build-aux/gendocs.sh: Likewise.
61850
61851         Fix frexp on mingw.
61852         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
61853         cross-compiling.
61854         * doc/functions/frexp.texi (frexp): Document the bug.
61855
61856         Make cygwin fseeko check more reliable.
61857         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
61858         version numbers, rather than unrelated feature check.
61859         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
61860         * doc/functions/ftello.texi (ftello): Likewise.
61861         Reported by Bruno Haible.
61862
61863         * m4/strerror.m4: Bump version number.
61864
61865 2007-12-03  Bruno Haible  <bruno@clisp.org>
61866
61867         * doc/functions/mprotect.texi: Mention the mingw problem.
61868
61869 2007-12-03  Eric Blake  <ebb9@byu.net>
61870
61871         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
61872         REPLACE_STRERROR is initialized before this macro.
61873
61874 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
61875
61876         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
61877         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
61878         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
61879         put -lsec in even for programs other than 'ls'.  This fixes a problem
61880         for gettext reported by Bruno Haible in
61881         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
61882         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
61883         Add support for Solaris 10.  This isn't efficient, but should get the
61884         job done for now.
61885
61886 2007-12-03  James Youngman  <jay@gnu.org>
61887
61888         * doc/regexprops-generic.texi: change "an close-group" to "a
61889         close-group" and "illegal" to "not allowed".
61890
61891 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61892
61893         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
61894         pr_byname.h. Needed for the rare case when the maintainer has done
61895         "make maintainer-clean" in the source directory and then attempts a
61896         build outside the source directory.
61897         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
61898         scripts_byname.h.
61899
61900 2007-12-02  Martin Lambers <marlam@marlam.de>
61901             Bruno Haible  <bruno@clisp.org>
61902
61903         * lib/getpagesize.h: Remove file.
61904         * lib/unistd.in.h: Include declaration of getpagesize here.
61905         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
61906         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
61907         HAVE_SYS_PARAM_H.
61908         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
61909         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
61910         * modules/getpagesize (Files): Remove lib/getpagesize.h.
61911         (Depends-on): Add unistd.
61912         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
61913         (Include): Use <unistd.h> instead of getpagesize.h.
61914         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
61915         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
61916         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
61917         gl_GETPAGESIZE invocation, already handled by module dependency.
61918         * lib/pagealign_alloc.c: Don't include getpagesize.h.
61919
61920 2007-12-02  Bruno Haible  <bruno@clisp.org>
61921
61922         * modules/strings-tests: New file.
61923         * tests/test-strings.c: New file.
61924
61925         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
61926         * lib/strings.in.h: New file.
61927         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
61928         * m4/strings_h.m4: New file.
61929         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
61930         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
61931         * modules/strings: New file.
61932         * modules/string (Makefile.am): Update.
61933         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
61934         Reported by Karl Berry.
61935
61936 2007-12-01  Eric Blake  <ebb9@byu.net>
61937
61938         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
61939         accommodate fix in cygwin 1.5.25.
61940
61941 2007-12-01  Jim Meyering  <meyering@redhat.com>
61942
61943         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
61944         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
61945         that would inhibit utf8-optimization of a regexp containing line-
61946         or buffer-anchors, e.g., `^', `$'.
61947
61948 2007-11-30  Bruno Haible  <bruno@clisp.org>
61949
61950         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
61951         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
61952         glthread_recursive_lock_init.
61953         * lib/lock.c (glthread_recursive_lock_init)
61954         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
61955         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
61956
61957 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
61958
61959         New function qset_acl, like set_acl but with syscall semantics.
61960         * lib/acl.h (qset_acl): New decl.
61961         * lib/acl.c (qset_acl): New function.
61962         (set_acl): Use new function.  Use more-consistent diagnostics.
61963
61964 2007-11-28  Jim Meyering  <meyering@redhat.com>
61965
61966         * modules/physmem (License): Change from GPL to LGPLv2+.
61967
61968 2007-11-26  Bruno Haible  <bruno@clisp.org>
61969
61970         * lib/vasnprintf.c (decode_long_double): Don't abort if the
61971         'long double' type has excess precision.
61972         Reported by Jim Meyering in
61973         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
61974
61975 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61976
61977         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
61978         Sync from <http://gnu.org/licenses>.
61979         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
61980         with license text from same location.
61981         * doc/maintain.texi, doc/standards.texi:  Sync from
61982         <http://savannah.gnu.org/projects/gnustandards>.
61983
61984 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
61985         and Jim Meyering  <meyering@redhat.com>
61986
61987         Adjust getdate' grammar to accept a slightly more regular language.
61988         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
61989         Before, the former was rejected.
61990         * lib/getdate.y (digits_to_date_time): New function, factored
61991         out of ...
61992         (number): ...here.  Just call digits_to_date_time.
61993         (hybrid): New non-terminal to handle an <unsigned number,
61994         signed relative offset> sequence consistently.
61995
61996 2007-11-18  Jim Meyering  <meyering@redhat.com>
61997
61998         Pull my changes from coreutils:
61999         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
62000         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
62001         use of $gnulib_tool_option_extras, so that it's separated from the
62002         preceding argument.
62003
62004         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
62005         * build-aux/bootstrap (cp_mark_as_generated): Create any required
62006         parent destination directories before copying a file into place.
62007
62008 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
62009
62010         bootstrap: work also with 4-argument variant of AC_INIT
62011         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
62012
62013 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
62014
62015         Port test-getaddrinfo to Solaris.
62016         Problem reported by Bruno Haible in
62017         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
62018         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
62019         explanation of setting 'hints'.
62020         Don't reject an implementation merely because it returns EAI_SERVICE.
62021         (EAI_SERVICE): Define to 0 if not defined.
62022
62023 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
62024
62025         The license of gnu-make and posix-shell is now "GPLed build tool".
62026         * modules/gnu-make (License): Likewise.
62027         * modules/posix-shell (License): Likewise.
62028
62029         New module posix-shell, for determining a POSIX shell
62030         or perhaps something that is close enough to a POSIX shell.
62031         * m4/posix-shell.m4: New file.
62032         * modules/posix-shell: New file.
62033
62034         * MODULES.html.sh: Mention new module.
62035
62036         New module gnu-make, for determining whether we're using GNU Make.
62037         * m4/gnu-make.m4: New file.
62038         * modules/gnu-make: New file.
62039         * MODULES.html.sh: Mention new module.
62040
62041 2007-11-14  Jim Meyering  <meyering@redhat.com>
62042
62043         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
62044         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
62045         use this macro to create a function _definition_.
62046         Remove useless "#undef ARGMATCH_DIE".
62047
62048 2007-11-14  Bruno Haible  <bruno@clisp.org>
62049
62050         * lib/config.charset: Update for OpenBSD 4.1.
62051         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
62052
62053 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
62054
62055         Document 64-bit #if problems in stdint.texi.
62056         * doc/headers/stdint.texi (stdint.h): Mention problems with
62057         64-bit-#if, and how to work around them.
62058
62059         Don't insist on 'long long int' support in the preprocessor.  It
62060         breaks too many things.  For example, PRIdMAX still uses a 'long
62061         long int' format with the latest Sun compiler, even though
62062         HAVE_LONG_LONG_INT isn't defined due to that compiler's
62063         preprocessor problem.  This causes the latest coreutils to dump
62064         core on Solaris 10 sparc with the Sun C compiler.
62065         Instead, fix the 2007-10-16 problem in a different way, by evaluating
62066         the troublesome expressions at configure-time, not at #if-time.
62067         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
62068         preprocessor.
62069         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
62070         compile-time C checks, done at 'configure'-time.
62071         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
62072         * modules/inttypes (Makefile): Substitute the new symbols that
62073         gl_INTTYPES_H now generates.
62074         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
62075
62076 2007-11-12  Bruno Haible  <bruno@clisp.org>
62077
62078         Tests for Unicode character classification functions.
62079
62080         * modules/unictype/bidicategory-byname-tests: New file.
62081         * modules/unictype/bidicategory-name-tests: New file.
62082         * modules/unictype/bidicategory-of-tests: New file.
62083         * modules/unictype/bidicategory-test-tests: New file.
62084         * modules/unictype/block-list-tests: New file.
62085         * modules/unictype/block-of-tests: New file.
62086         * modules/unictype/block-test-tests: New file.
62087         * modules/unictype/category-C-tests: New file.
62088         * modules/unictype/category-Cc-tests: New file.
62089         * modules/unictype/category-Cf-tests: New file.
62090         * modules/unictype/category-Cn-tests: New file.
62091         * modules/unictype/category-Co-tests: New file.
62092         * modules/unictype/category-Cs-tests: New file.
62093         * modules/unictype/category-L-tests: New file.
62094         * modules/unictype/category-Ll-tests: New file.
62095         * modules/unictype/category-Lm-tests: New file.
62096         * modules/unictype/category-Lo-tests: New file.
62097         * modules/unictype/category-Lt-tests: New file.
62098         * modules/unictype/category-Lu-tests: New file.
62099         * modules/unictype/category-M-tests: New file.
62100         * modules/unictype/category-Mc-tests: New file.
62101         * modules/unictype/category-Me-tests: New file.
62102         * modules/unictype/category-Mn-tests: New file.
62103         * modules/unictype/category-N-tests: New file.
62104         * modules/unictype/category-Nd-tests: New file.
62105         * modules/unictype/category-Nl-tests: New file.
62106         * modules/unictype/category-No-tests: New file.
62107         * modules/unictype/category-P-tests: New file.
62108         * modules/unictype/category-Pc-tests: New file.
62109         * modules/unictype/category-Pd-tests: New file.
62110         * modules/unictype/category-Pe-tests: New file.
62111         * modules/unictype/category-Pf-tests: New file.
62112         * modules/unictype/category-Pi-tests: New file.
62113         * modules/unictype/category-Po-tests: New file.
62114         * modules/unictype/category-Ps-tests: New file.
62115         * modules/unictype/category-S-tests: New file.
62116         * modules/unictype/category-Sc-tests: New file.
62117         * modules/unictype/category-Sk-tests: New file.
62118         * modules/unictype/category-Sm-tests: New file.
62119         * modules/unictype/category-So-tests: New file.
62120         * modules/unictype/category-Z-tests: New file.
62121         * modules/unictype/category-Zl-tests: New file.
62122         * modules/unictype/category-Zp-tests: New file.
62123         * modules/unictype/category-Zs-tests: New file.
62124         * modules/unictype/category-and-not-tests: New file.
62125         * modules/unictype/category-and-tests: New file.
62126         * modules/unictype/category-byname-tests: New file.
62127         * modules/unictype/category-name-tests: New file.
62128         * modules/unictype/category-none-tests: New file.
62129         * modules/unictype/category-of-tests: New file.
62130         * modules/unictype/category-or-tests: New file.
62131         * modules/unictype/category-test-withtable-tests: New file.
62132         * modules/unictype/combining-class-tests: New file.
62133         * modules/unictype/ctype-alnum-tests: New file.
62134         * modules/unictype/ctype-alpha-tests: New file.
62135         * modules/unictype/ctype-blank-tests: New file.
62136         * modules/unictype/ctype-cntrl-tests: New file.
62137         * modules/unictype/ctype-digit-tests: New file.
62138         * modules/unictype/ctype-graph-tests: New file.
62139         * modules/unictype/ctype-lower-tests: New file.
62140         * modules/unictype/ctype-print-tests: New file.
62141         * modules/unictype/ctype-punct-tests: New file.
62142         * modules/unictype/ctype-space-tests: New file.
62143         * modules/unictype/ctype-upper-tests: New file.
62144         * modules/unictype/ctype-xdigit-tests: New file.
62145         * modules/unictype/decimal-digit-tests: New file.
62146         * modules/unictype/digit-tests: New file.
62147         * modules/unictype/mirror-tests: New file.
62148         * modules/unictype/numeric-tests: New file.
62149         * modules/unictype/property-alphabetic-tests: New file.
62150         * modules/unictype/property-ascii-hex-digit-tests: New file.
62151         * modules/unictype/property-bidi-arabic-digit-tests: New file.
62152         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
62153         * modules/unictype/property-bidi-block-separator-tests: New file.
62154         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
62155         * modules/unictype/property-bidi-common-separator-tests: New file.
62156         * modules/unictype/property-bidi-control-tests: New file.
62157         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
62158         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
62159         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
62160         * modules/unictype/property-bidi-european-digit-tests: New file.
62161         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
62162         * modules/unictype/property-bidi-left-to-right-tests: New file.
62163         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
62164         * modules/unictype/property-bidi-other-neutral-tests: New file.
62165         * modules/unictype/property-bidi-pdf-tests: New file.
62166         * modules/unictype/property-bidi-segment-separator-tests: New file.
62167         * modules/unictype/property-bidi-whitespace-tests: New file.
62168         * modules/unictype/property-byname-tests: New file.
62169         * modules/unictype/property-combining-tests: New file.
62170         * modules/unictype/property-composite-tests: New file.
62171         * modules/unictype/property-currency-symbol-tests: New file.
62172         * modules/unictype/property-dash-tests: New file.
62173         * modules/unictype/property-decimal-digit-tests: New file.
62174         * modules/unictype/property-default-ignorable-code-point-tests: New file.
62175         * modules/unictype/property-deprecated-tests: New file.
62176         * modules/unictype/property-diacritic-tests: New file.
62177         * modules/unictype/property-extender-tests: New file.
62178         * modules/unictype/property-format-control-tests: New file.
62179         * modules/unictype/property-grapheme-base-tests: New file.
62180         * modules/unictype/property-grapheme-extend-tests: New file.
62181         * modules/unictype/property-grapheme-link-tests: New file.
62182         * modules/unictype/property-hex-digit-tests: New file.
62183         * modules/unictype/property-hyphen-tests: New file.
62184         * modules/unictype/property-id-continue-tests: New file.
62185         * modules/unictype/property-id-start-tests: New file.
62186         * modules/unictype/property-ideographic-tests: New file.
62187         * modules/unictype/property-ids-binary-operator-tests: New file.
62188         * modules/unictype/property-ids-trinary-operator-tests: New file.
62189         * modules/unictype/property-ignorable-control-tests: New file.
62190         * modules/unictype/property-iso-control-tests: New file.
62191         * modules/unictype/property-join-control-tests: New file.
62192         * modules/unictype/property-left-of-pair-tests: New file.
62193         * modules/unictype/property-line-separator-tests: New file.
62194         * modules/unictype/property-logical-order-exception-tests: New file.
62195         * modules/unictype/property-lowercase-tests: New file.
62196         * modules/unictype/property-math-tests: New file.
62197         * modules/unictype/property-non-break-tests: New file.
62198         * modules/unictype/property-not-a-character-tests: New file.
62199         * modules/unictype/property-numeric-tests: New file.
62200         * modules/unictype/property-other-alphabetic-tests: New file.
62201         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
62202         * modules/unictype/property-other-grapheme-extend-tests: New file.
62203         * modules/unictype/property-other-id-continue-tests: New file.
62204         * modules/unictype/property-other-id-start-tests: New file.
62205         * modules/unictype/property-other-lowercase-tests: New file.
62206         * modules/unictype/property-other-math-tests: New file.
62207         * modules/unictype/property-other-uppercase-tests: New file.
62208         * modules/unictype/property-paired-punctuation-tests: New file.
62209         * modules/unictype/property-paragraph-separator-tests: New file.
62210         * modules/unictype/property-pattern-syntax-tests: New file.
62211         * modules/unictype/property-pattern-white-space-tests: New file.
62212         * modules/unictype/property-private-use-tests: New file.
62213         * modules/unictype/property-punctuation-tests: New file.
62214         * modules/unictype/property-quotation-mark-tests: New file.
62215         * modules/unictype/property-radical-tests: New file.
62216         * modules/unictype/property-sentence-terminal-tests: New file.
62217         * modules/unictype/property-soft-dotted-tests: New file.
62218         * modules/unictype/property-space-tests: New file.
62219         * modules/unictype/property-terminal-punctuation-tests: New file.
62220         * modules/unictype/property-test-tests: New file.
62221         * modules/unictype/property-titlecase-tests: New file.
62222         * modules/unictype/property-unassigned-code-value-tests: New file.
62223         * modules/unictype/property-unified-ideograph-tests: New file.
62224         * modules/unictype/property-uppercase-tests: New file.
62225         * modules/unictype/property-variation-selector-tests: New file.
62226         * modules/unictype/property-white-space-tests: New file.
62227         * modules/unictype/property-xid-continue-tests: New file.
62228         * modules/unictype/property-xid-start-tests: New file.
62229         * modules/unictype/property-zero-width-tests: New file.
62230         * modules/unictype/scripts-tests: New file.
62231         * modules/unictype/syntax-c-ident-tests: New file.
62232         * modules/unictype/syntax-c-whitespace-tests: New file.
62233         * modules/unictype/syntax-java-ident-tests: New file.
62234         * modules/unictype/syntax-java-whitespace-tests: New file.
62235         * tests/unictype/test-bidi_byname.c: New file.
62236         * tests/unictype/test-bidi_name.c: New file.
62237         * tests/unictype/test-bidi_of.c: New file.
62238         * tests/unictype/test-bidi_test.c: New file.
62239         * tests/unictype/test-block_list.c: New file.
62240         * tests/unictype/test-block_of.c: New file.
62241         * tests/unictype/test-block_test.c: New file.
62242         * tests/unictype/test-categ_and.c: New file.
62243         * tests/unictype/test-categ_and_not.c: New file.
62244         * tests/unictype/test-categ_byname.c: New file.
62245         * tests/unictype/test-categ_name.c: New file.
62246         * tests/unictype/test-categ_none.c: New file.
62247         * tests/unictype/test-categ_of.c: New file.
62248         * tests/unictype/test-categ_or.c: New file.
62249         * tests/unictype/test-categ_test_withtable.c: New file.
62250         * tests/unictype/test-combining.c: New file.
62251         * tests/unictype/test-decdigit.c: New file.
62252         * tests/unictype/test-digit.c: New file.
62253         * tests/unictype/test-mirror.c: New file.
62254         * tests/unictype/test-numeric.c: New file.
62255         * tests/unictype/test-pr_byname.c: New file.
62256         * tests/unictype/test-pr_test.c: New file.
62257         * tests/unictype/test-predicate-part1.h: New file.
62258         * tests/unictype/test-predicate-part2.h: New file.
62259         * tests/unictype/test-scripts.c: New file.
62260         * tests/unictype/test-sy_c_ident.c: New file.
62261         * tests/unictype/test-sy_java_ident.c: New file.
62262
62263         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
62264         for Unicode 5.0.0.
62265         * tests/unictype/test-categ_Cc.c: Likewise.
62266         * tests/unictype/test-categ_Cf.c: Likewise.
62267         * tests/unictype/test-categ_Cn.c: Likewise.
62268         * tests/unictype/test-categ_Co.c: Likewise.
62269         * tests/unictype/test-categ_Cs.c: Likewise.
62270         * tests/unictype/test-categ_L.c: Likewise.
62271         * tests/unictype/test-categ_Ll.c: Likewise.
62272         * tests/unictype/test-categ_Lm.c: Likewise.
62273         * tests/unictype/test-categ_Lo.c: Likewise.
62274         * tests/unictype/test-categ_Lt.c: Likewise.
62275         * tests/unictype/test-categ_Lu.c: Likewise.
62276         * tests/unictype/test-categ_M.c: Likewise.
62277         * tests/unictype/test-categ_Mc.c: Likewise.
62278         * tests/unictype/test-categ_Me.c: Likewise.
62279         * tests/unictype/test-categ_Mn.c: Likewise.
62280         * tests/unictype/test-categ_N.c: Likewise.
62281         * tests/unictype/test-categ_Nd.c: Likewise.
62282         * tests/unictype/test-categ_Nl.c: Likewise.
62283         * tests/unictype/test-categ_No.c: Likewise.
62284         * tests/unictype/test-categ_P.c: Likewise.
62285         * tests/unictype/test-categ_Pc.c: Likewise.
62286         * tests/unictype/test-categ_Pd.c: Likewise.
62287         * tests/unictype/test-categ_Pe.c: Likewise.
62288         * tests/unictype/test-categ_Pf.c: Likewise.
62289         * tests/unictype/test-categ_Pi.c: Likewise.
62290         * tests/unictype/test-categ_Po.c: Likewise.
62291         * tests/unictype/test-categ_Ps.c: Likewise.
62292         * tests/unictype/test-categ_S.c: Likewise.
62293         * tests/unictype/test-categ_Sc.c: Likewise.
62294         * tests/unictype/test-categ_Sk.c: Likewise.
62295         * tests/unictype/test-categ_Sm.c: Likewise.
62296         * tests/unictype/test-categ_So.c: Likewise.
62297         * tests/unictype/test-categ_Z.c: Likewise.
62298         * tests/unictype/test-categ_Zl.c: Likewise.
62299         * tests/unictype/test-categ_Zp.c: Likewise.
62300         * tests/unictype/test-categ_Zs.c: Likewise.
62301         * tests/unictype/test-ctype_alnum.c: Likewise.
62302         * tests/unictype/test-ctype_alpha.c: Likewise.
62303         * tests/unictype/test-ctype_blank.c: Likewise.
62304         * tests/unictype/test-ctype_cntrl.c: Likewise.
62305         * tests/unictype/test-ctype_digit.c: Likewise.
62306         * tests/unictype/test-ctype_graph.c: Likewise.
62307         * tests/unictype/test-ctype_lower.c: Likewise.
62308         * tests/unictype/test-ctype_print.c: Likewise.
62309         * tests/unictype/test-ctype_punct.c: Likewise.
62310         * tests/unictype/test-ctype_space.c: Likewise.
62311         * tests/unictype/test-ctype_upper.c: Likewise.
62312         * tests/unictype/test-ctype_xdigit.c: Likewise.
62313         * tests/unictype/test-decdigit.h: Likewise.
62314         * tests/unictype/test-digit.h: Likewise.
62315         * tests/unictype/test-numeric.h: Likewise.
62316         * tests/unictype/test-pr_alphabetic.c: Likewise.
62317         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
62318         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
62319         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
62320         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
62321         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
62322         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
62323         * tests/unictype/test-pr_bidi_control.c: Likewise.
62324         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
62325         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
62326         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
62327         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
62328         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
62329         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
62330         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
62331         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
62332         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
62333         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
62334         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
62335         * tests/unictype/test-pr_combining.c: Likewise.
62336         * tests/unictype/test-pr_composite.c: Likewise.
62337         * tests/unictype/test-pr_currency_symbol.c: Likewise.
62338         * tests/unictype/test-pr_dash.c: Likewise.
62339         * tests/unictype/test-pr_decimal_digit.c: Likewise.
62340         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
62341         * tests/unictype/test-pr_deprecated.c: Likewise.
62342         * tests/unictype/test-pr_diacritic.c: Likewise.
62343         * tests/unictype/test-pr_extender.c: Likewise.
62344         * tests/unictype/test-pr_format_control.c: Likewise.
62345         * tests/unictype/test-pr_grapheme_base.c: Likewise.
62346         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
62347         * tests/unictype/test-pr_grapheme_link.c: Likewise.
62348         * tests/unictype/test-pr_hex_digit.c: Likewise.
62349         * tests/unictype/test-pr_hyphen.c: Likewise.
62350         * tests/unictype/test-pr_id_continue.c: Likewise.
62351         * tests/unictype/test-pr_id_start.c: Likewise.
62352         * tests/unictype/test-pr_ideographic.c: Likewise.
62353         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
62354         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
62355         * tests/unictype/test-pr_ignorable_control.c: Likewise.
62356         * tests/unictype/test-pr_iso_control.c: Likewise.
62357         * tests/unictype/test-pr_join_control.c: Likewise.
62358         * tests/unictype/test-pr_left_of_pair.c: Likewise.
62359         * tests/unictype/test-pr_line_separator.c: Likewise.
62360         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
62361         * tests/unictype/test-pr_lowercase.c: Likewise.
62362         * tests/unictype/test-pr_math.c: Likewise.
62363         * tests/unictype/test-pr_non_break.c: Likewise.
62364         * tests/unictype/test-pr_not_a_character.c: Likewise.
62365         * tests/unictype/test-pr_numeric.c: Likewise.
62366         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
62367         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
62368         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
62369         * tests/unictype/test-pr_other_id_continue.c: Likewise.
62370         * tests/unictype/test-pr_other_id_start.c: Likewise.
62371         * tests/unictype/test-pr_other_lowercase.c: Likewise.
62372         * tests/unictype/test-pr_other_math.c: Likewise.
62373         * tests/unictype/test-pr_other_uppercase.c: Likewise.
62374         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
62375         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
62376         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
62377         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
62378         * tests/unictype/test-pr_private_use.c: Likewise.
62379         * tests/unictype/test-pr_punctuation.c: Likewise.
62380         * tests/unictype/test-pr_quotation_mark.c: Likewise.
62381         * tests/unictype/test-pr_radical.c: Likewise.
62382         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
62383         * tests/unictype/test-pr_soft_dotted.c: Likewise.
62384         * tests/unictype/test-pr_space.c: Likewise.
62385         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
62386         * tests/unictype/test-pr_titlecase.c: Likewise.
62387         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
62388         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
62389         * tests/unictype/test-pr_uppercase.c: Likewise.
62390         * tests/unictype/test-pr_variation_selector.c: Likewise.
62391         * tests/unictype/test-pr_white_space.c: Likewise.
62392         * tests/unictype/test-pr_xid_continue.c: Likewise.
62393         * tests/unictype/test-pr_xid_start.c: Likewise.
62394         * tests/unictype/test-pr_zero_width.c: Likewise.
62395         * tests/unictype/test-sy_c_whitespace.c: Likewise.
62396         * tests/unictype/test-sy_java_whitespace.c: Likewise.
62397
62398 2007-11-12  Bruno Haible  <bruno@clisp.org>
62399
62400         Unicode character classification functions.
62401         * lib/unictype.h: New file.
62402         * modules/unictype/base: New file.
62403         * modules/unictype/category-L: New file.
62404         * modules/unictype/category-Lu: New file.
62405         * modules/unictype/category-Ll: New file.
62406         * modules/unictype/category-Lt: New file.
62407         * modules/unictype/category-Lm: New file.
62408         * modules/unictype/category-Lo: New file.
62409         * modules/unictype/category-M: New file.
62410         * modules/unictype/category-Mn: New file.
62411         * modules/unictype/category-Mc: New file.
62412         * modules/unictype/category-Me: New file.
62413         * modules/unictype/category-N: New file.
62414         * modules/unictype/category-Nd: New file.
62415         * modules/unictype/category-Nl: New file.
62416         * modules/unictype/category-No: New file.
62417         * modules/unictype/category-P: New file.
62418         * modules/unictype/category-Pc: New file.
62419         * modules/unictype/category-Pd: New file.
62420         * modules/unictype/category-Ps: New file.
62421         * modules/unictype/category-Pe: New file.
62422         * modules/unictype/category-Pi: New file.
62423         * modules/unictype/category-Pf: New file.
62424         * modules/unictype/category-Po: New file.
62425         * modules/unictype/category-S: New file.
62426         * modules/unictype/category-Sm: New file.
62427         * modules/unictype/category-Sc: New file.
62428         * modules/unictype/category-Sk: New file.
62429         * modules/unictype/category-So: New file.
62430         * modules/unictype/category-Z: New file.
62431         * modules/unictype/category-Zs: New file.
62432         * modules/unictype/category-Zl: New file.
62433         * modules/unictype/category-Zp: New file.
62434         * modules/unictype/category-C: New file.
62435         * modules/unictype/category-Cc: New file.
62436         * modules/unictype/category-Cf: New file.
62437         * modules/unictype/category-Cs: New file.
62438         * modules/unictype/category-Co: New file.
62439         * modules/unictype/category-Cn: New file.
62440         * modules/unictype/category-or: New file.
62441         * modules/unictype/category-of: New file.
62442         * modules/unictype/category-test: New file.
62443         * modules/unictype/category-test-withtable: New file.
62444         * modules/unictype/category-byname: New file.
62445         * modules/unictype/category-none: New file.
62446         * modules/unictype/category-and: New file.
62447         * modules/unictype/category-and-not: New file.
62448         * modules/unictype/category-name: New file.
62449         * modules/unictype/combining-class: New file.
62450         * modules/unictype/category-all: New file.
62451         * modules/unictype/bidicategory-all: New file.
62452         * modules/unictype/bidicategory-byname: New file.
62453         * modules/unictype/bidicategory-name: New file.
62454         * modules/unictype/bidicategory-of: New file.
62455         * modules/unictype/bidicategory-test: New file.
62456         * modules/unictype/decimal-digit: New file.
62457         * modules/unictype/digit: New file.
62458         * modules/unictype/numeric: New file.
62459         * modules/unictype/mirror: New file.
62460         * modules/unictype/property-white-space: New file.
62461         * modules/unictype/property-alphabetic: New file.
62462         * modules/unictype/property-other-alphabetic: New file.
62463         * modules/unictype/property-not-a-character: New file.
62464         * modules/unictype/property-default-ignorable-code-point: New file.
62465         * modules/unictype/property-other-default-ignorable-code-point: New
62466         file.
62467         * modules/unictype/property-deprecated: New file.
62468         * modules/unictype/property-logical-order-exception: New file.
62469         * modules/unictype/property-variation-selector: New file.
62470         * modules/unictype/property-private-use: New file.
62471         * modules/unictype/property-unassigned-code-value: New file.
62472         * modules/unictype/property-uppercase: New file.
62473         * modules/unictype/property-other-uppercase: New file.
62474         * modules/unictype/property-lowercase: New file.
62475         * modules/unictype/property-other-lowercase: New file.
62476         * modules/unictype/property-titlecase: New file.
62477         * modules/unictype/property-soft-dotted: New file.
62478         * modules/unictype/property-id-start: New file.
62479         * modules/unictype/property-other-id-start: New file.
62480         * modules/unictype/property-id-continue: New file.
62481         * modules/unictype/property-other-id-continue: New file.
62482         * modules/unictype/property-xid-start: New file.
62483         * modules/unictype/property-xid-continue: New file.
62484         * modules/unictype/property-pattern-white-space: New file.
62485         * modules/unictype/property-pattern-syntax: New file.
62486         * modules/unictype/property-join-control: New file.
62487         * modules/unictype/property-grapheme-base: New file.
62488         * modules/unictype/property-grapheme-extend: New file.
62489         * modules/unictype/property-other-grapheme-extend: New file.
62490         * modules/unictype/property-grapheme-link: New file.
62491         * modules/unictype/property-bidi-control: New file.
62492         * modules/unictype/property-bidi-left-to-right: New file.
62493         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
62494         * modules/unictype/property-bidi-arabic-right-to-left: New file.
62495         * modules/unictype/property-bidi-european-digit: New file.
62496         * modules/unictype/property-bidi-eur-num-separator: New file.
62497         * modules/unictype/property-bidi-eur-num-terminator: New file.
62498         * modules/unictype/property-bidi-arabic-digit: New file.
62499         * modules/unictype/property-bidi-common-separator: New file.
62500         * modules/unictype/property-bidi-block-separator: New file.
62501         * modules/unictype/property-bidi-segment-separator: New file.
62502         * modules/unictype/property-bidi-whitespace: New file.
62503         * modules/unictype/property-bidi-non-spacing-mark: New file.
62504         * modules/unictype/property-bidi-boundary-neutral: New file.
62505         * modules/unictype/property-bidi-pdf: New file.
62506         * modules/unictype/property-bidi-embedding-or-override: New file.
62507         * modules/unictype/property-bidi-other-neutral: New file.
62508         * modules/unictype/property-hex-digit: New file.
62509         * modules/unictype/property-ascii-hex-digit: New file.
62510         * modules/unictype/property-ideographic: New file.
62511         * modules/unictype/property-unified-ideograph: New file.
62512         * modules/unictype/property-radical: New file.
62513         * modules/unictype/property-ids-binary-operator: New file.
62514         * modules/unictype/property-ids-trinary-operator: New file.
62515         * modules/unictype/property-zero-width: New file.
62516         * modules/unictype/property-space: New file.
62517         * modules/unictype/property-non-break: New file.
62518         * modules/unictype/property-iso-control: New file.
62519         * modules/unictype/property-format-control: New file.
62520         * modules/unictype/property-dash: New file.
62521         * modules/unictype/property-hyphen: New file.
62522         * modules/unictype/property-punctuation: New file.
62523         * modules/unictype/property-line-separator: New file.
62524         * modules/unictype/property-paragraph-separator: New file.
62525         * modules/unictype/property-quotation-mark: New file.
62526         * modules/unictype/property-sentence-terminal: New file.
62527         * modules/unictype/property-terminal-punctuation: New file.
62528         * modules/unictype/property-currency-symbol: New file.
62529         * modules/unictype/property-math: New file.
62530         * modules/unictype/property-other-math: New file.
62531         * modules/unictype/property-paired-punctuation: New file.
62532         * modules/unictype/property-left-of-pair: New file.
62533         * modules/unictype/property-combining: New file.
62534         * modules/unictype/property-composite: New file.
62535         * modules/unictype/property-decimal-digit: New file.
62536         * modules/unictype/property-numeric: New file.
62537         * modules/unictype/property-diacritic: New file.
62538         * modules/unictype/property-extender: New file.
62539         * modules/unictype/property-ignorable-control: New file.
62540         * modules/unictype/property-test: New file.
62541         * modules/unictype/property-byname: New file.
62542         * modules/unictype/property-all: New file.
62543         * modules/unictype/scripts: New file.
62544         * modules/unictype/scripts-all: New file.
62545         * modules/unictype/block-of: New file.
62546         * modules/unictype/block-test: New file.
62547         * modules/unictype/block-list: New file.
62548         * modules/unictype/block-all: New file.
62549         * modules/unictype/syntax-c-whitespace: New file.
62550         * modules/unictype/syntax-java-whitespace: New file.
62551         * modules/unictype/syntax-c-ident: New file.
62552         * modules/unictype/syntax-java-ident: New file.
62553         * modules/unictype/ctype-alnum: New file.
62554         * modules/unictype/ctype-alpha: New file.
62555         * modules/unictype/ctype-cntrl: New file.
62556         * modules/unictype/ctype-digit: New file.
62557         * modules/unictype/ctype-graph: New file.
62558         * modules/unictype/ctype-lower: New file.
62559         * modules/unictype/ctype-print: New file.
62560         * modules/unictype/ctype-punct: New file.
62561         * modules/unictype/ctype-space: New file.
62562         * modules/unictype/ctype-upper: New file.
62563         * modules/unictype/ctype-xdigit: New file.
62564         * modules/unictype/ctype-blank: New file.
62565         * lib/unictype/bidi_byname.c: New file.
62566         * lib/unictype/bidi_name.c: New file.
62567         * lib/unictype/bidi_of.c: New file.
62568         * lib/unictype/bidi_test.c: New file.
62569         * lib/unictype/bitmap.h: New file.
62570         * lib/unictype/block_test.c: New file.
62571         * lib/unictype/blocks.c: New file.
62572         * lib/unictype/categ_C.c: New file.
62573         * lib/unictype/categ_Cc.c: New file.
62574         * lib/unictype/categ_Cf.c: New file.
62575         * lib/unictype/categ_Cn.c: New file.
62576         * lib/unictype/categ_Co.c: New file.
62577         * lib/unictype/categ_Cs.c: New file.
62578         * lib/unictype/categ_L.c: New file.
62579         * lib/unictype/categ_Ll.c: New file.
62580         * lib/unictype/categ_Lm.c: New file.
62581         * lib/unictype/categ_Lo.c: New file.
62582         * lib/unictype/categ_Lt.c: New file.
62583         * lib/unictype/categ_Lu.c: New file.
62584         * lib/unictype/categ_M.c: New file.
62585         * lib/unictype/categ_Mc.c: New file.
62586         * lib/unictype/categ_Me.c: New file.
62587         * lib/unictype/categ_Mn.c: New file.
62588         * lib/unictype/categ_N.c: New file.
62589         * lib/unictype/categ_Nd.c: New file.
62590         * lib/unictype/categ_Nl.c: New file.
62591         * lib/unictype/categ_No.c: New file.
62592         * lib/unictype/categ_P.c: New file.
62593         * lib/unictype/categ_Pc.c: New file.
62594         * lib/unictype/categ_Pd.c: New file.
62595         * lib/unictype/categ_Pe.c: New file.
62596         * lib/unictype/categ_Pf.c: New file.
62597         * lib/unictype/categ_Pi.c: New file.
62598         * lib/unictype/categ_Po.c: New file.
62599         * lib/unictype/categ_Ps.c: New file.
62600         * lib/unictype/categ_S.c: New file.
62601         * lib/unictype/categ_Sc.c: New file.
62602         * lib/unictype/categ_Sk.c: New file.
62603         * lib/unictype/categ_Sm.c: New file.
62604         * lib/unictype/categ_So.c: New file.
62605         * lib/unictype/categ_Z.c: New file.
62606         * lib/unictype/categ_Zl.c: New file.
62607         * lib/unictype/categ_Zp.c: New file.
62608         * lib/unictype/categ_Zs.c: New file.
62609         * lib/unictype/categ_and.c: New file.
62610         * lib/unictype/categ_and_not.c: New file.
62611         * lib/unictype/categ_byname.c: New file.
62612         * lib/unictype/categ_name.c: New file.
62613         * lib/unictype/categ_none.c: New file.
62614         * lib/unictype/categ_of.c: New file.
62615         * lib/unictype/categ_or.c: New file.
62616         * lib/unictype/categ_test.c: New file.
62617         * lib/unictype/combining.c: New file.
62618         * lib/unictype/ctype_alnum.c: New file.
62619         * lib/unictype/ctype_alpha.c: New file.
62620         * lib/unictype/ctype_blank.c: New file.
62621         * lib/unictype/ctype_cntrl.c: New file.
62622         * lib/unictype/ctype_digit.c: New file.
62623         * lib/unictype/ctype_graph.c: New file.
62624         * lib/unictype/ctype_lower.c: New file.
62625         * lib/unictype/ctype_print.c: New file.
62626         * lib/unictype/ctype_punct.c: New file.
62627         * lib/unictype/ctype_space.c: New file.
62628         * lib/unictype/ctype_upper.c: New file.
62629         * lib/unictype/ctype_xdigit.c: New file.
62630         * lib/unictype/decdigit.c: New file.
62631         * lib/unictype/digit.c: New file.
62632         * lib/unictype/identsyntaxmap.h: New file.
62633         * lib/unictype/mirror.c: New file.
62634         * lib/unictype/numeric.c: New file.
62635         * lib/unictype/pr_alphabetic.c: New file.
62636         * lib/unictype/pr_ascii_hex_digit.c: New file.
62637         * lib/unictype/pr_bidi_arabic_digit.c: New file.
62638         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
62639         * lib/unictype/pr_bidi_block_separator.c: New file.
62640         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
62641         * lib/unictype/pr_bidi_common_separator.c: New file.
62642         * lib/unictype/pr_bidi_control.c: New file.
62643         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
62644         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
62645         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
62646         * lib/unictype/pr_bidi_european_digit.c: New file.
62647         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
62648         * lib/unictype/pr_bidi_left_to_right.c: New file.
62649         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
62650         * lib/unictype/pr_bidi_other_neutral.c: New file.
62651         * lib/unictype/pr_bidi_pdf.c: New file.
62652         * lib/unictype/pr_bidi_segment_separator.c: New file.
62653         * lib/unictype/pr_bidi_whitespace.c: New file.
62654         * lib/unictype/pr_byname.c: New file.
62655         * lib/unictype/pr_byname.gperf: New file.
62656         * lib/unictype/pr_combining.c: New file.
62657         * lib/unictype/pr_composite.c: New file.
62658         * lib/unictype/pr_currency_symbol.c: New file.
62659         * lib/unictype/pr_dash.c: New file.
62660         * lib/unictype/pr_decimal_digit.c: New file.
62661         * lib/unictype/pr_default_ignorable_code_point.c: New file.
62662         * lib/unictype/pr_deprecated.c: New file.
62663         * lib/unictype/pr_diacritic.c: New file.
62664         * lib/unictype/pr_extender.c: New file.
62665         * lib/unictype/pr_format_control.c: New file.
62666         * lib/unictype/pr_grapheme_base.c: New file.
62667         * lib/unictype/pr_grapheme_extend.c: New file.
62668         * lib/unictype/pr_grapheme_link.c: New file.
62669         * lib/unictype/pr_hex_digit.c: New file.
62670         * lib/unictype/pr_hyphen.c: New file.
62671         * lib/unictype/pr_id_continue.c: New file.
62672         * lib/unictype/pr_id_start.c: New file.
62673         * lib/unictype/pr_ideographic.c: New file.
62674         * lib/unictype/pr_ids_binary_operator.c: New file.
62675         * lib/unictype/pr_ids_trinary_operator.c: New file.
62676         * lib/unictype/pr_ignorable_control.c: New file.
62677         * lib/unictype/pr_iso_control.c: New file.
62678         * lib/unictype/pr_join_control.c: New file.
62679         * lib/unictype/pr_left_of_pair.c: New file.
62680         * lib/unictype/pr_line_separator.c: New file.
62681         * lib/unictype/pr_logical_order_exception.c: New file.
62682         * lib/unictype/pr_lowercase.c: New file.
62683         * lib/unictype/pr_math.c: New file.
62684         * lib/unictype/pr_non_break.c: New file.
62685         * lib/unictype/pr_not_a_character.c: New file.
62686         * lib/unictype/pr_numeric.c: New file.
62687         * lib/unictype/pr_other_alphabetic.c: New file.
62688         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
62689         * lib/unictype/pr_other_grapheme_extend.c: New file.
62690         * lib/unictype/pr_other_id_continue.c: New file.
62691         * lib/unictype/pr_other_id_start.c: New file.
62692         * lib/unictype/pr_other_lowercase.c: New file.
62693         * lib/unictype/pr_other_math.c: New file.
62694         * lib/unictype/pr_other_uppercase.c: New file.
62695         * lib/unictype/pr_paired_punctuation.c: New file.
62696         * lib/unictype/pr_paragraph_separator.c: New file.
62697         * lib/unictype/pr_pattern_syntax.c: New file.
62698         * lib/unictype/pr_pattern_white_space.c: New file.
62699         * lib/unictype/pr_private_use.c: New file.
62700         * lib/unictype/pr_punctuation.c: New file.
62701         * lib/unictype/pr_quotation_mark.c: New file.
62702         * lib/unictype/pr_radical.c: New file.
62703         * lib/unictype/pr_sentence_terminal.c: New file.
62704         * lib/unictype/pr_soft_dotted.c: New file.
62705         * lib/unictype/pr_space.c: New file.
62706         * lib/unictype/pr_terminal_punctuation.c: New file.
62707         * lib/unictype/pr_test.c: New file.
62708         * lib/unictype/pr_titlecase.c: New file.
62709         * lib/unictype/pr_unassigned_code_value.c: New file.
62710         * lib/unictype/pr_unified_ideograph.c: New file.
62711         * lib/unictype/pr_uppercase.c: New file.
62712         * lib/unictype/pr_variation_selector.c: New file.
62713         * lib/unictype/pr_white_space.c: New file.
62714         * lib/unictype/pr_xid_continue.c: New file.
62715         * lib/unictype/pr_xid_start.c: New file.
62716         * lib/unictype/pr_zero_width.c: New file.
62717         * lib/unictype/scripts.c: New file.
62718         * lib/unictype/sy_c_ident.c: New file.
62719         * lib/unictype/sy_c_whitespace.c: New file.
62720         * lib/unictype/sy_java_ident.c: New file.
62721         * lib/unictype/sy_java_whitespace.c: New file.
62722
62723         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
62724         Unicode 5.0.0.
62725         * lib/unictype/blocks.h: Likewise.
62726         * lib/unictype/categ_C.h: Likewise.
62727         * lib/unictype/categ_Cc.h: Likewise.
62728         * lib/unictype/categ_Cf.h: Likewise.
62729         * lib/unictype/categ_Cn.h: Likewise.
62730         * lib/unictype/categ_Co.h: Likewise.
62731         * lib/unictype/categ_Cs.h: Likewise.
62732         * lib/unictype/categ_L.h: Likewise.
62733         * lib/unictype/categ_Ll.h: Likewise.
62734         * lib/unictype/categ_Lm.h: Likewise.
62735         * lib/unictype/categ_Lo.h: Likewise.
62736         * lib/unictype/categ_Lt.h: Likewise.
62737         * lib/unictype/categ_Lu.h: Likewise.
62738         * lib/unictype/categ_M.h: Likewise.
62739         * lib/unictype/categ_Mc.h: Likewise.
62740         * lib/unictype/categ_Me.h: Likewise.
62741         * lib/unictype/categ_Mn.h: Likewise.
62742         * lib/unictype/categ_N.h: Likewise.
62743         * lib/unictype/categ_Nd.h: Likewise.
62744         * lib/unictype/categ_Nl.h: Likewise.
62745         * lib/unictype/categ_No.h: Likewise.
62746         * lib/unictype/categ_P.h: Likewise.
62747         * lib/unictype/categ_Pc.h: Likewise.
62748         * lib/unictype/categ_Pd.h: Likewise.
62749         * lib/unictype/categ_Pe.h: Likewise.
62750         * lib/unictype/categ_Pf.h: Likewise.
62751         * lib/unictype/categ_Pi.h: Likewise.
62752         * lib/unictype/categ_Po.h: Likewise.
62753         * lib/unictype/categ_Ps.h: Likewise.
62754         * lib/unictype/categ_S.h: Likewise.
62755         * lib/unictype/categ_Sc.h: Likewise.
62756         * lib/unictype/categ_Sk.h: Likewise.
62757         * lib/unictype/categ_Sm.h: Likewise.
62758         * lib/unictype/categ_So.h: Likewise.
62759         * lib/unictype/categ_Z.h: Likewise.
62760         * lib/unictype/categ_Zl.h: Likewise.
62761         * lib/unictype/categ_Zp.h: Likewise.
62762         * lib/unictype/categ_Zs.h: Likewise.
62763         * lib/unictype/categ_of.h: Likewise.
62764         * lib/unictype/combining.h: Likewise.
62765         * lib/unictype/ctype_alnum.h: Likewise.
62766         * lib/unictype/ctype_alpha.h: Likewise.
62767         * lib/unictype/ctype_blank.h: Likewise.
62768         * lib/unictype/ctype_cntrl.h: Likewise.
62769         * lib/unictype/ctype_digit.h: Likewise.
62770         * lib/unictype/ctype_graph.h: Likewise.
62771         * lib/unictype/ctype_lower.h: Likewise.
62772         * lib/unictype/ctype_print.h: Likewise.
62773         * lib/unictype/ctype_punct.h: Likewise.
62774         * lib/unictype/ctype_space.h: Likewise.
62775         * lib/unictype/ctype_upper.h: Likewise.
62776         * lib/unictype/ctype_xdigit.h: Likewise.
62777         * lib/unictype/decdigit.h: Likewise.
62778         * lib/unictype/digit.h: Likewise.
62779         * lib/unictype/mirror.h: Likewise.
62780         * lib/unictype/numeric.h: Likewise.
62781         * lib/unictype/pr_alphabetic.h: Likewise.
62782         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
62783         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
62784         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
62785         * lib/unictype/pr_bidi_block_separator.h: Likewise.
62786         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
62787         * lib/unictype/pr_bidi_common_separator.h: Likewise.
62788         * lib/unictype/pr_bidi_control.h: Likewise.
62789         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
62790         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
62791         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
62792         * lib/unictype/pr_bidi_european_digit.h: Likewise.
62793         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
62794         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
62795         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
62796         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
62797         * lib/unictype/pr_bidi_pdf.h: Likewise.
62798         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
62799         * lib/unictype/pr_bidi_whitespace.h: Likewise.
62800         * lib/unictype/pr_combining.h: Likewise.
62801         * lib/unictype/pr_composite.h: Likewise.
62802         * lib/unictype/pr_currency_symbol.h: Likewise.
62803         * lib/unictype/pr_dash.h: Likewise.
62804         * lib/unictype/pr_decimal_digit.h: Likewise.
62805         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
62806         * lib/unictype/pr_deprecated.h: Likewise.
62807         * lib/unictype/pr_diacritic.h: Likewise.
62808         * lib/unictype/pr_extender.h: Likewise.
62809         * lib/unictype/pr_format_control.h: Likewise.
62810         * lib/unictype/pr_grapheme_base.h: Likewise.
62811         * lib/unictype/pr_grapheme_extend.h: Likewise.
62812         * lib/unictype/pr_grapheme_link.h: Likewise.
62813         * lib/unictype/pr_hex_digit.h: Likewise.
62814         * lib/unictype/pr_hyphen.h: Likewise.
62815         * lib/unictype/pr_id_continue.h: Likewise.
62816         * lib/unictype/pr_id_start.h: Likewise.
62817         * lib/unictype/pr_ideographic.h: Likewise.
62818         * lib/unictype/pr_ids_binary_operator.h: Likewise.
62819         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
62820         * lib/unictype/pr_ignorable_control.h: Likewise.
62821         * lib/unictype/pr_iso_control.h: Likewise.
62822         * lib/unictype/pr_join_control.h: Likewise.
62823         * lib/unictype/pr_left_of_pair.h: Likewise.
62824         * lib/unictype/pr_line_separator.h: Likewise.
62825         * lib/unictype/pr_logical_order_exception.h: Likewise.
62826         * lib/unictype/pr_lowercase.h: Likewise.
62827         * lib/unictype/pr_math.h: Likewise.
62828         * lib/unictype/pr_non_break.h: Likewise.
62829         * lib/unictype/pr_not_a_character.h: Likewise.
62830         * lib/unictype/pr_numeric.h: Likewise.
62831         * lib/unictype/pr_other_alphabetic.h: Likewise.
62832         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
62833         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
62834         * lib/unictype/pr_other_id_continue.h: Likewise.
62835         * lib/unictype/pr_other_id_start.h: Likewise.
62836         * lib/unictype/pr_other_lowercase.h: Likewise.
62837         * lib/unictype/pr_other_math.h: Likewise.
62838         * lib/unictype/pr_other_uppercase.h: Likewise.
62839         * lib/unictype/pr_paired_punctuation.h: Likewise.
62840         * lib/unictype/pr_paragraph_separator.h: Likewise.
62841         * lib/unictype/pr_pattern_syntax.h: Likewise.
62842         * lib/unictype/pr_pattern_white_space.h: Likewise.
62843         * lib/unictype/pr_private_use.h: Likewise.
62844         * lib/unictype/pr_punctuation.h: Likewise.
62845         * lib/unictype/pr_quotation_mark.h: Likewise.
62846         * lib/unictype/pr_radical.h: Likewise.
62847         * lib/unictype/pr_sentence_terminal.h: Likewise.
62848         * lib/unictype/pr_soft_dotted.h: Likewise.
62849         * lib/unictype/pr_space.h: Likewise.
62850         * lib/unictype/pr_terminal_punctuation.h: Likewise.
62851         * lib/unictype/pr_titlecase.h: Likewise.
62852         * lib/unictype/pr_unassigned_code_value.h: Likewise.
62853         * lib/unictype/pr_unified_ideograph.h: Likewise.
62854         * lib/unictype/pr_uppercase.h: Likewise.
62855         * lib/unictype/pr_variation_selector.h: Likewise.
62856         * lib/unictype/pr_white_space.h: Likewise.
62857         * lib/unictype/pr_xid_continue.h: Likewise.
62858         * lib/unictype/pr_xid_start.h: Likewise.
62859         * lib/unictype/pr_zero_width.h: Likewise.
62860         * lib/unictype/scripts.h: Likewise.
62861         * lib/unictype/scripts_byname.gperf: Likewise.
62862         * lib/unictype/sy_c_ident.h: Likewise.
62863         * lib/unictype/sy_c_whitespace.h: Likewise.
62864         * lib/unictype/sy_java_ident.h: Likewise.
62865         * lib/unictype/sy_java_whitespace.h: Likewise.
62866
62867         * lib/unictype/Makefile: New file.
62868         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
62869         glibc.
62870         * lib/unictype/3level.h: New file, copied from glibc.
62871         * lib/unictype/3levelbit.h: New file.
62872
62873 2007-11-11  Bruno Haible  <bruno@clisp.org>
62874
62875         * modules/gperf: New file.
62876         * modules/iconv_open (Depends-on): Add it.
62877         (Makefile.am): Remove the GPERF definition.
62878
62879 2007-11-11  Bruno Haible  <bruno@clisp.org>
62880
62881         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
62882         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
62883
62884 2007-11-11  Bruno Haible  <bruno@clisp.org>
62885
62886         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
62887         (usage): Remove function.
62888
62889 2007-11-11  Bruno Haible  <bruno@clisp.org>
62890
62891         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
62892         gl_FUNC_CEILF_LIBS.
62893         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
62894         gl_FUNC_CEIL_LIBS.
62895         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
62896         gl_FUNC_CEILL_LIBS.
62897         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
62898         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
62899         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
62900
62901 2007-11-11  Bruno Haible  <bruno@clisp.org>
62902
62903         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
62904         roundf were declared but do not exist on functions.
62905         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
62906         roundl were declared but do not exist on functions.
62907         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
62908         HAVE_FLOORL_AND_CEILL, respectively.
62909         Needed for Sun C on Solaris 10.
62910
62911 2007-11-11  Bruno Haible  <bruno@clisp.org>
62912
62913         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
62914         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
62915         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
62916         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
62917         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
62918         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
62919         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
62920         HAVE_DECL_ROUNDF.
62921         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
62922         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
62923         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
62924         of HAVE_DECL_ROUND*.
62925         * modules/math (Makefile.am): Update.
62926
62927 2007-11-10  Bruno Haible  <bruno@clisp.org>
62928
62929         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
62930         ptrdiff_t as m4/intl.m4.
62931
62932 2007-11-10  Jim Meyering  <meyering@redhat.com>
62933
62934         Avoid link failure for the argmatch test.
62935         * tests/test-argmatch.c (usage): Define function to avoid a link
62936         failure: argmatch_die requires a usage function.
62937
62938 2007-11-09  Bruno Haible  <bruno@clisp.org>
62939
62940         * doc/functions/snprintf.texi: Mention BeOS deficiency.
62941         * doc/functions/vsnprintf.texi: Likewise.
62942         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
62943         with a size argument < 2.
62944
62945 2007-11-09  Bruno Haible  <bruno@clisp.org>
62946
62947         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
62948         buffer. Fixes an inefficiency introduced on 2007-11-03.
62949
62950 2007-11-09  Bruno Haible  <bruno@clisp.org>
62951
62952         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
62953         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
62954
62955 2007-11-08  Jim Meyering  <meyering@redhat.com>
62956
62957         Change cache variable name prefix "jm_" to "gl_" everywhere.
62958         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
62959         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
62960         * m4/uptime.m4: s/gl_/jm_/
62961
62962 2007-11-07  Bruno Haible  <bruno@clisp.org>
62963
62964         Update to GNU gettext 0.17.
62965         * m4/intl.m4: Update to GNU gettext 0.17.
62966         * m4/po.m4: Likewise.
62967         * modules/gettext (Files): Remove m4/ulonglong.m4.
62968         (configure.ac): Require gettext infrastructure from version 0.17.
62969
62970 2007-11-06  Bruno Haible  <bruno@clisp.org>
62971
62972         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
62973         symbolic values are not defined in a public header.
62974         * lib/freadable.c (freadable) [QNX]: Likewise.
62975         * lib/freadahead.c (freadahead) [QNX]: Likewise.
62976         * lib/freading.c (freading) [QNX]: Likewise.
62977         * lib/fseterr.c (fseterr) [QNX]: Likewise.
62978         * lib/fwritable.c (fwritable) [QNX]: Likewise.
62979         * lib/fwriting.c (fwriting) [QNX]: Likewise.
62980         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
62981         Reported by Alain Magloire.
62982
62983         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
62984
62985 2007-11-05  Bruno Haible  <bruno@clisp.org>
62986
62987         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
62988         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
62989         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
62990         Reported by Eric Blake.
62991
62992 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62993             Bruno Haible  <bruno@clisp.org>
62994
62995         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
62996         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
62997         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
62998         (malloc): Undefine also before including <stdlib.h>.
62999         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
63000         Needed on OSF/1 4.0.
63001
63002 2007-11-05  Jim Meyering  <meyering@redhat.com>
63003
63004         git-version-gen: sync from coreutils.
63005         * build-aux/git-version-gen: Add comments.
63006         Change the first '-' to '.' in the snapshot version string,
63007         e.g., 6.9-377-08144 -> 6.9.377-08144
63008         Remove first parameter.
63009         Don't declare a version "-dirty" merely because a time
63010         stamp has changed.
63011
63012 2007-11-04  Bruno Haible  <bruno@clisp.org>
63013
63014         * lib/lock.h: Protect all macro definitions containing an 'if'
63015         statement through a "do { ... } while (0)".
63016         * lib/tls.h: Likewise.
63017
63018 2007-11-04  Bruno Haible  <bruno@clisp.org>
63019
63020         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
63021
63022 2007-11-04  Bruno Haible  <bruno@clisp.org>
63023
63024         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
63025         * modules/fprintf-posix (Depends-on): Add nocrash.
63026         * modules/snprintf-posix (Depends-on): Likewise.
63027         * modules/sprintf-posix (Depends-on): Likewise.
63028         * modules/vasnprintf-posix (Depends-on): Likewise.
63029         * modules/vasprintf-posix (Depends-on): Likewise.
63030         * modules/vfprintf-posix (Depends-on): Likewise.
63031         * modules/vsnprintf-posix (Depends-on): Likewise.
63032         * modules/vsprintf-posix (Depends-on): Likewise.
63033         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
63034         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
63035         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
63036         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
63037         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
63038         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
63039         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
63040
63041 2007-11-04  Bruno Haible  <bruno@clisp.org>
63042
63043         * modules/nocrash: New file.
63044         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
63045         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
63046
63047 2007-11-04  Bruno Haible  <bruno@clisp.org>
63048
63049         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
63050         precision handling.
63051         * tests/test-vasprintf-posix.c (test_function): Likewise.
63052         * tests/test-snprintf-posix.h (test_function): Likewise.
63053         * tests/test-sprintf-posix.h (test_function): Likewise.
63054
63055         Fix *printf behaviour for large precisions on mingw and BeOS.
63056         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
63057         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
63058         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
63059         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63060         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63061         gl_PRINTF_PRECISION and test its result. Invoke
63062         gl_PREREQ_VASNPRINTF_PRECISION.
63063         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63064         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63065         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63066         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63067         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63068         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63069         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63070         * doc/functions/fprintf.texi: Update.
63071         * doc/functions/printf.texi: Update.
63072         * doc/functions/snprintf.texi: Update.
63073         * doc/functions/sprintf.texi: Update.
63074         * doc/functions/vfprintf.texi: Update.
63075         * doc/functions/vprintf.texi: Update.
63076         * doc/functions/vsnprintf.texi: Update.
63077         * doc/functions/vsprintf.texi: Update.
63078
63079 2007-11-04  Bruno Haible  <bruno@clisp.org>
63080
63081         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
63082
63083 2007-11-04  Bruno Haible  <bruno@clisp.org>
63084
63085         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
63086         Reported by Sylvain Beucler <beuc@gnu.org>.
63087
63088 2007-11-03  Bruno Haible  <bruno@clisp.org>
63089
63090         * tests/test-fprintf-posix2.sh: New file.
63091         * tests/test-fprintf-posix2.c: New file.
63092         * modules/fprintf-posix-tests (Files): Add them.
63093         (TESTS): Add test-fprintf-posix2.sh.
63094         (configure.ac): Check for getrlimit and setrlimit.
63095         (check_PROGRAMS): Add test-fprintf-posix2.
63096
63097         * tests/test-printf-posix2.sh: New file.
63098         * tests/test-printf-posix2.c: New file.
63099         * modules/printf-posix-tests (Files): Add them.
63100         (TESTS): Add test-printf-posix2.sh.
63101         (configure.ac): Check for getrlimit and setrlimit.
63102         (check_PROGRAMS): Add test-printf-posix2.
63103
63104         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
63105         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
63106         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
63107         (decode_double): New function, copied from decode_long_double.
63108         (scale10_round_decimal_decoded): New function, extracted from
63109         scale10_round_decimal_long_double.
63110         (scale10_round_decimal_long_double): Use it.
63111         (scale10_round_decimal_double): New function.
63112         (floorlog10): New function.
63113         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
63114         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
63115         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
63116         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
63117         gl_PRINTF_ENOMEM and test its result. Invoke
63118         gl_PREREQ_VASNPRINTF_ENOMEM.
63119         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63120         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63121         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63122         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63123         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63124         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
63125         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63126         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
63127         * modules/snprintf-posix (Depends-on): Likewise.
63128         * modules/sprintf-posix (Depends-on): Likewise.
63129         * modules/vasnprintf-posix (Depends-on): Likewise.
63130         * modules/vasprintf-posix (Depends-on): Likewise.
63131         * modules/vfprintf-posix (Depends-on): Likewise.
63132         * modules/vsnprintf-posix (Depends-on): Likewise.
63133         * modules/vsprintf-posix (Depends-on): Likewise.
63134         * doc/functions/fprintf.texi: Update.
63135         * doc/functions/printf.texi: Update.
63136         * doc/functions/snprintf.texi: Update.
63137         * doc/functions/sprintf.texi: Update.
63138         * doc/functions/vfprintf.texi: Update.
63139         * doc/functions/vprintf.texi: Update.
63140         * doc/functions/vsnprintf.texi: Update.
63141         * doc/functions/vsprintf.texi: Update.
63142
63143 2007-11-03  Bruno Haible  <bruno@clisp.org>
63144
63145         * modules/frexp-nolibm-tests: New file.
63146
63147         * modules/frexp-nolibm: New file.
63148         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
63149
63150 2007-11-03  Bruno Haible  <bruno@clisp.org>
63151
63152         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
63153         value is C99 compliant.
63154         Needed for OSF/1 5.1.
63155
63156 2007-11-03  Bruno Haible  <bruno@clisp.org>
63157
63158         Fix out-of-memory handling of vasnprintf.
63159         * lib/printf-parse.c: Include <errno.h>.
63160         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
63161         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
63162         is already set.
63163
63164 2007-11-02  Eric Blake  <ebb9@byu.net>
63165
63166         Fix tests on cygwin.
63167         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
63168
63169 2007-11-01  Bruno Haible  <bruno@clisp.org>
63170
63171         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
63172         warning.
63173         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
63174         needed for POSIX compatibility.
63175
63176 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
63177
63178         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
63179         for compatibility with GNU.
63180
63181 2007-11-01  Bruno Haible  <bruno@clisp.org>
63182
63183         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
63184         (putenv): Renamed from rpl_putenv. Change argument type from
63185         'const char *' to 'char *'.
63186         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
63187         of defining putenv in config.h, just set REPLACE_PUTENV.
63188         * modules/putenv (Depends-on): Add stdlib.
63189         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
63190         (Include): Use <stdlib.h>.
63191         * lib/stdlib.in.h (putenv): New declaration.
63192         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
63193         REPLACE_PUTENV.
63194         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
63195         REPLACE_PUTENV.
63196         Needed for MacOS X 10.5.0.
63197         Reported by Peter O'Gorman <peter@pogma.com>.
63198
63199 2007-11-01  Jim Meyering  <meyering@redhat.com>
63200
63201         Treat an empty date string exactly like "0".
63202         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
63203         if the remaining date string (to be parsed) is empty, use "0".
63204         Reported by Mischa Molhoek and discussed in this thread:
63205         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
63206
63207 2007-10-31  Bruno Haible  <bruno@clisp.org>
63208
63209         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
63210         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
63211         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
63212         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
63213         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
63214         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
63215
63216 2007-10-31  Bruno Haible  <bruno@clisp.org>
63217
63218         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
63219         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
63220         (AC_TYPE_LONG_LONG_INT): Use it.
63221         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
63222         it as well.
63223         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
63224         to m4/longlong.m4.
63225         * modules/stdint (Files): Remove m4/ulonglong.m4.
63226         * modules/strtoull (Files): Use m4/longlong.m4 instead of
63227         m4/ulonglong.m4.
63228         * modules/strtoumax (Files): Likewise.
63229
63230 2007-10-30  Bruno Haible  <bruno@clisp.org>
63231
63232         * modules/xvasprintf-posix: New file.
63233         Suggested by Eric Blake.
63234
63235 2007-10-30  Bruno Haible  <bruno@clisp.org>
63236
63237         * modules/xprintf-posix-tests: New file.
63238         * tests/test-xprintf-posix.sh: New file.
63239         * tests/test-xprintf-posix.c: New file.
63240         * tests/test-xfprintf-posix.c: New file.
63241
63242         * modules/xprintf-posix: New file.
63243
63244 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63245
63246         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
63247         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
63248         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
63249
63250 2007-10-29  Bruno Haible  <bruno@clisp.org>
63251
63252         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
63253         contain the special marker '_cv_'.
63254         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
63255         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
63256         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
63257         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
63258         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
63259         Reported by Ralf Wildenhues.
63260
63261 2007-10-29  Bruno Haible  <bruno@clisp.org>
63262
63263         * gnulib-tool (func_import): When --lgpl is not specified, set
63264         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
63265         GPLv3.
63266         Reported by Simon Josefsson.
63267
63268 2007-10-28  Bruno Haible  <bruno@clisp.org>
63269
63270         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
63271         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
63272         HAVE_DECL_ISFINITE.
63273         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
63274         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
63275         HAVE_DECL_ISFINITE.
63276
63277 2007-10-28  Bruno Haible  <bruno@clisp.org>
63278
63279         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
63280         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
63281
63282 2007-10-28  Bruno Haible  <bruno@clisp.org>
63283
63284         Fix link errors with Sun C 5.0 on Solaris 10.
63285         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
63286         function is declared but not present in the compiler's libm.
63287         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
63288         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
63289         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
63290         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
63291         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
63292         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
63293         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
63294         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
63295         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
63296         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
63297         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
63298         HAVE_DECL_FLOORL.
63299
63300 2007-10-28  Bruno Haible  <bruno@clisp.org>
63301
63302         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
63303         gl_FUNC_FLOORL. Cache the result.
63304         (gl_FUNC_FLOORL): Use it.
63305         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
63306         gl_FUNC_CEILL. Cache the result.
63307         (gl_FUNC_CEILL): Use it.
63308
63309         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
63310         gl_FUNC_FLOOR. Cache the result.
63311         (gl_FUNC_FLOOR): Use it.
63312         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
63313         gl_FUNC_CEIL. Cache the result.
63314         (gl_FUNC_CEIL): Use it.
63315
63316         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
63317         gl_FUNC_FLOORF. Cache the result.
63318         (gl_FUNC_FLOORF): Use it.
63319         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
63320         gl_FUNC_CEILF. Cache the result.
63321         (gl_FUNC_CEILF): Use it.
63322
63323 2007-10-28  Bruno Haible  <bruno@clisp.org>
63324
63325         * gnulib-tool: Allow specifying the LGPL version number through
63326         --lgpl=2 or --lgpl=3.
63327         (func_usage): Document --lgpl with argument.
63328         Handle --lgpl=... arguments.
63329         (func_import): Recognize also gl_LGPL calls with an argument. When
63330         --lgpl=2 is used and the module's license is just LGPL, report an
63331         error. Set sed_transform_lib_file according to the lgpl variable. In
63332         the generated files, use --lgpl or gl_LGPL invocations with argument,
63333         if necessary.
63334         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
63335         an LGPv2+ license.
63336         * doc/gnulib-tool.texi (Modified imports): Update explanation of
63337         gl_LGPL macro.
63338
63339 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63340             Bruno Haible  <bruno@clisp.org>
63341
63342         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
63343         (u16_uctomb_aux): Likewise.
63344         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
63345         !HAVE_INLINE.
63346         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
63347
63348 2007-10-28  Bruno Haible  <bruno@clisp.org>
63349
63350         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
63351         Invoke AM_GETTEXT_OPTION if it exists.
63352         * modules/vasprintf: Likewise.
63353         * modules/verror: Likewise.
63354         * modules/xprintf: Likewise.
63355         * modules/xvasprintf: Likewise.
63356
63357 2007-10-27  Ben Pfaff  <blp@gnu.org>
63358
63359         * lib/math.in.h: Define isfinite macro and prototypes for
63360         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
63361         implementations.
63362         * m4/math_h.m4: New substitutions for isfinite module.
63363         * lib/isfinite.c: New file.
63364         * m4/isfinite.m4: New file.
63365         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
63366         * modules/isfinite: New file.
63367         * modules/isfinite-tests: New file.
63368         * tests/tests-isfinite.c: New file.
63369         * doc/functions/isfinite.texi: Mention isfinite module.
63370         * MODULES.html.sh: Mention new module.
63371
63372 2007-10-27  Ben Pfaff  <blp@gnu.org>
63373
63374         Ralf Wildenhues reported that Tru64 4.0D declares the round
63375         functions but does not have definitions.
63376         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
63377         cannot be found in any library, set the output variable to
63378         "missing" instead of "".
63379         * m4/round.m4: Also use our substitute if we cannot find round in
63380         any library, even if it is declared.
63381         * m4/roundf.m4: Likewise for roundf.
63382         * m4/roundl.m4: Likewise for roundl.
63383         * lib/math.in.h: Undefine roundf, round, roundl before defining
63384         their replacements, to allow for hypothetical systems where these
63385         may be defined as macros but not available in libraries.
63386
63387 2007-10-27  Bruno Haible  <bruno@clisp.org>
63388
63389         * doc/gnulib.texi: Invoke @firstparagraphindent.
63390         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
63391         changes in gnulib.
63392         (Source changes): New section.
63393
63394 2007-10-26  Bruno Haible  <bruno@clisp.org>
63395
63396         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
63397         borrowed from autoconf.
63398
63399 2007-10-26  Bruno Haible  <bruno@clisp.org>
63400
63401         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
63402         strerror returned the empty string. Needed on HP-UX 11.00.
63403
63404 2007-10-24  Micah Cowan  <micah@cowan.name>
63405
63406         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
63407         * build-aux/bootstrap: Remove support for now-unnecessary option,
63408         --cvs-user, and envvars CVS_USER, CVS_RSH.
63409
63410 2007-10-24  Jim Meyering  <meyering@redhat.com>
63411
63412         Avoid diagnostics from sha1sum when there is no cached checksum.
63413         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
63414         if the po.s1 file hasn't been created yet.
63415
63416         * build-aux/bootstrap: Sync from coreutils:
63417         2007-10-24  Jim Meyering  <meyering@redhat.com>
63418         Get gnulib from the git repository, not from an obsolete cvs one.
63419         * build-aux/bootstrap: Suggestion from Micah Cowan.
63420         2007-10-04  Jim Meyering  <jim@meyering.net>
63421         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
63422         (update_po_files): Work also when there are no .po files in po/.
63423
63424 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
63425
63426         * README: Append ".git" to git and cg examples.
63427         Problem reported by Benoit Sigoure.
63428
63429 2007-10-23  Micah Cowan  <micah@cowan.name>
63430
63431         * users.txt: Add wget.
63432
63433 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63434
63435         Fix linking of some unistdio tests on FreeBSD.
63436         * modules/unistdio/u16-vsnprintf-tests
63437         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
63438         * modules/unistdio/u16-vsprintf-tests
63439         (test_u16_vsnprintf1_LDADD): Likewise.
63440         * modules/unistdio/u32-vsnprintf-tests
63441         (test_u32_vsnprintf1_LDADD): Likewise.
63442         * modules/unistdio/u32-vsprintf-tests
63443         (test_u32_vsprintf1_LDADD): Likewise.
63444         * modules/unistdio/u8-vsnprintf-tests
63445         (test_u8_vsnprintf1_LDADD): Likewise.
63446         * modules/unistdio/u8-vsprintf-tests
63447         (test_u8_vsprintf1_LDADD): Likewise.
63448         * modules/unistdio/ulc-vsnprintf-tests
63449         (test_ulc_vsnprintf1_LDADD): Likewise.
63450         * modules/unistdio/ulc-vsprintf-tests
63451         (test_ulc_vsprintf1_LDADD): Likewise.
63452
63453         Fix linking of some uniconv tests on FreeBSD.
63454         * modules/uniconv/u16-conv-from-enc-tests
63455         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
63456         * modules/uniconv/u16-conv-to-enc-tests
63457         (test_u16_conv_to_enc_LDADD): Likewise.
63458         * modules/uniconv/u16-strconv-from-enc-tests
63459         (test_u16_strconv_from_enc_LDADD): Likewise.
63460         * modules/uniconv/u16-strconv-to-enc-tests
63461         (test_u16_strconv_to_enc_LDADD): Likewise.
63462         * modules/uniconv/u32-conv-from-enc-tests
63463         (test_u32_conv_from_enc_LDADD): Likewise.
63464         * modules/uniconv/u32-conv-to-enc-tests
63465         (test_u32_conv_to_enc_LDADD): Likewise.
63466         * modules/uniconv/u32-strconv-from-enc-tests
63467         (test_u32_strconv_from_enc_LDADD): Likewise.
63468         * modules/uniconv/u32-strconv-to-enc-tests
63469         (test_u32_strconv_to_enc_LDADD): Likewise.
63470         * modules/uniconv/u8-conv-from-enc-tests
63471         (test_u8_conv_from_enc_LDADD): Likewise.
63472         * modules/uniconv/u8-conv-to-enc-tests
63473         (test_u8_conv_to_enc_LDADD): Likewise.
63474         * modules/uniconv/u8-strconv-from-enc-tests
63475         (test_u8_strconv_from_enc_LDADD): Likewise.
63476         * modules/uniconv/u8-strconv-to-enc-tests
63477         (test_u8_strconv_to_enc_LDADD): Likewise.
63478
63479 2007-10-22  Bruno Haible  <bruno@clisp.org>
63480
63481         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
63482         size.
63483
63484 2007-10-22  Eric Blake  <ebb9@byu.net>
63485
63486         Tweak x*printf documentation.
63487         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
63488         variable name and comments.
63489         Suggested by Bruno Haible.
63490
63491 2007-10-22  Bruno Haible  <bruno@clisp.org>
63492
63493         * lib/acl.c (copy_acl): Fix file name in comment.
63494
63495 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63496
63497         Fix Tru64 problem with stdbool.h.
63498         * lib/stdbool.in.h (false, true):
63499         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
63500         Don't declare as an enum in this situation; it runs afoul of Tru64.
63501         Problem reported by Steven M. Schweda in
63502         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
63503
63504 2007-10-22  Eric Blake  <ebb9@byu.net>
63505
63506         Also wrap vf?printf.
63507         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
63508         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
63509         (xvprintf, xvfprintf): New functions.
63510
63511 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63512
63513         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
63514         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
63515
63516         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
63517         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
63518
63519 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
63520
63521         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
63522         by Bruno Haible.
63523
63524 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63525
63526         * lib/getloadavg.c
63527         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
63528         Undef `sys' after including sys/table.h, for Tru64 4.0D.
63529
63530         * tests/test-i-ring.c: Work for C89.
63531
63532 2007-10-22  Bruno Haible  <bruno@clisp.org>
63533
63534         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
63535         -1u, in preprocessor expression, so that we don't test for the bug
63536         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
63537         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
63538
63539 2007-10-22  Eric Blake  <ebb9@byu.net>
63540
63541         * tests/test-yesno.sh: Silence stderr during test.
63542
63543 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63544
63545         * modules/crypto/gc-camellia: New file.
63546
63547         * m4/gc-camellia.m4: New file.
63548
63549         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
63550
63551         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
63552
63553 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63554
63555         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
63556         --help to stdout.  Reported by sms@antinode.org (Steven
63557         M. Schweda).
63558
63559 2007-10-22  Simon Josefsson  <simon@josefsson.org>
63560
63561         * users.txt: Fix link to libksba.
63562
63563 2007-10-21  Ben Pfaff  <blp@gnu.org>
63564
63565         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
63566         round.c roundf implementation that depends on floorf and ceilf to
63567         be tested unconditionally.
63568
63569 2007-10-21  Ben Pfaff  <blp@gnu.org>
63570
63571         * m4/check-libm-func.m4: Removed.
63572         * m4/check-math-lib.m4: New file.
63573         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
63574         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
63575         definition and lack of AC_LIBOBJ([roundf]).
63576         * m4/roundl.m4: Ditto, and similarly for roundl.
63577         * modules/round: Reference new m4 file.
63578         * modules/roundf: Ditto.
63579         * modules/roundl: Ditto.
63580         * tests/test-round2.c (main): Use ROUND instead of round.
63581         Bug report from Bruno Haible.
63582
63583 2007-10-21  Bruno Haible  <bruno@clisp.org>
63584
63585         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
63586         context.
63587
63588 2007-10-21  Bruno Haible  <bruno@clisp.org>
63589
63590         * tests/test-wcwidth.c (main): Allow negative result for some control
63591         characters.
63592
63593         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
63594         Needed on OSF/1 5.1.
63595
63596 2007-10-21  Bruno Haible  <bruno@clisp.org>
63597
63598         * tests/test-floorf1.c: Include isnanf.h.
63599         (main): Use isnanf() instead of isnan().
63600         * tests/test-ceilf1.c: Include isnanf.h.
63601         (main): Use isnanf() instead of isnan().
63602         * tests/test-truncf1.c: Include isnanf.h.
63603         (main): Use isnanf() instead of isnan().
63604         * tests/test-roundf1.c: Include isnanf.h.
63605         (main): Use isnanf() instead of isnan().
63606
63607 2007-10-21  Eric Blake  <ebb9@byu.net>
63608
63609         * users.txt: Update URL for m4.
63610
63611 2007-10-21  Bruno Haible  <bruno@clisp.org>
63612
63613         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
63614
63615 2007-10-21  Bruno Haible  <bruno@clisp.org>
63616
63617         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
63618         Git's management files if the CVS files are not present.
63619
63620 2007-10-20  Bruno Haible  <bruno@clisp.org>
63621
63622         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
63623         gcc-3.4.x.
63624
63625 2007-10-20  Ben Pfaff  <blp@gnu.org>
63626
63627         * lib/math.in.h: Declare round, roundf, roundl if we are providing
63628         implementations.
63629         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
63630         * lib/round.c: New file.
63631         * lib/roundf.c: New file.
63632         * lib/roundl.c: New file.
63633         * m4/round.m4: New file.
63634         * m4/roundf.m4: New file.
63635         * m4/roundl.m4: New file.
63636         * m4/check-libm-func-m4: New file.
63637         * modules/math: Replace round, roundf, roundl related @VARS@ in
63638         math.in.h.
63639         * modules/round: New file.
63640         * modules/round-tests: New file.
63641         * modules/roundf: New file.
63642         * modules/roundf-tests: New file.
63643         * modules/roundl: New file.
63644         * modules/roundl-tests: New file.
63645         * tests/test-round1.c: New file.
63646         * tests/test-round2.c: New file.
63647         * tests/test-roundf1.c: New file.
63648         * tests/test-roundf2.c: New file.
63649         * tests/test-roundl.c: New file.
63650         * doc/functions/round.texi: Mention round module.
63651         * doc/functions/roundf.texi: Mention roundf module.
63652         * doc/functions/roundl.texi: Mention roundl module.
63653         * MODULES.html.sh: Mention new modules.
63654         Thanks to Bruno Haible for suggestions.
63655
63656 2007-10-20  Jim Meyering  <meyering@redhat.com>
63657
63658         * lib/xprintf.c: Include <config.h> unconditionally.
63659
63660         Change xprintf's license to GPL.
63661         * modules/xprintf (License): s/LGPL/GPL/, since this module
63662         depends on modules (exit and exitfail) which are GPL.
63663         Suggestion from Bruno Haible.
63664
63665         xprintf fixes.
63666         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
63667         Use a clearer diagnostic.
63668         Patch from Bruno Haible.
63669
63670 2007-10-20  Bruno Haible  <bruno@clisp.org>
63671
63672         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
63673         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
63674         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63675
63676 2007-10-20  Bruno Haible  <bruno@clisp.org>
63677
63678         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
63679         precision in the comparison result > x - 1 or similar.
63680         * tests/test-ceilf2.c (correct_result_p): Likewise.
63681         * tests/test-truncf2.c (correct_result_p): Likewise.
63682         * tests/test-trunc2.c (correct_result_p): Likewise.
63683         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
63684
63685 2007-10-20  Bruno Haible  <bruno@clisp.org>
63686
63687         * modules/ceil: New file.
63688         * m4/ceil.m4: New file.
63689         * doc/functions/ceil.texi: Mention the 'ceil' module.
63690
63691 2007-10-20  Bruno Haible  <bruno@clisp.org>
63692
63693         * modules/floor: New file.
63694         * m4/floor.m4: New file.
63695         * doc/functions/floor.texi: Mention the 'floor' module.
63696
63697 2007-10-20  Bruno Haible  <bruno@clisp.org>
63698
63699         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
63700         of %a.
63701         * modules/floorf-tests (Depends-on): Likewise.
63702         * modules/truncf-tests (Depends-on): Likewise.
63703         * modules/trunc-tests (Depends-on): Likewise.
63704         Reported by Ben Pfaff.
63705
63706 2007-10-19  Jim Meyering  <meyering@redhat.com>
63707
63708         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
63709         Don't bother testing specific errno values.  Just test ferror.
63710
63711         New module: xprintf
63712         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
63713
63714 2007-10-19  Bruno Haible  <bruno@clisp.org>
63715
63716         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
63717         syntax.
63718         * modules/javaexec (Makefile.am): Likewise.
63719         * modules/relocatable-prog (Makefile.am): Likewise.
63720         Suggested by Jim Meyering.
63721
63722 2007-10-18  Bruno Haible  <bruno@clisp.org>
63723
63724         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
63725         Reported by Jim Meyering.
63726
63727 2007-10-18  Eric Blake  <ebb9@byu.net>
63728
63729         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
63730
63731 2007-10-18  Bruno Haible  <bruno@clisp.org>
63732
63733         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
63734         the format string into writable memory. Needed in Fortify conditions.
63735
63736 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
63737             Bruno Haible  <bruno@clisp.org>
63738
63739         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
63740         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
63741         * modules/trim (Depends-on): Add mbchar.
63742         (configure.ac): Add gl_FUNC_MBRTOWC.
63743         (Makefile.am): Augment lib_SOURCES.
63744
63745 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
63746
63747         Modify glob.c to use fstatat and dirfd, to simplify it.
63748         Suggested by Eric Blake.
63749         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
63750         Don't include <stdbool.h>; not used.
63751         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
63752         (link_exists_p): Simplify implementation, since we can now assume
63753         dirfd and fstatat.
63754         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
63755
63756 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63757
63758         * gnulib-tool (func_get_dependencies): Fix sed script to
63759         match only tests.
63760
63761 2007-10-17  Bruno Haible  <bruno@clisp.org>
63762
63763         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
63764         allow locale names without encoding suffix.
63765         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
63766         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
63767
63768 2007-10-16  Bruno Haible  <bruno@clisp.org>
63769
63770         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
63771         * lib/getgroups.c (getgroups): Likewise.
63772         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
63773
63774 2007-10-16  Bruno Haible  <bruno@clisp.org>
63775
63776         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
63777         * modules/malloc-posix (License): Likewise.
63778         * modules/realloc-posix (License): Likewise.
63779         * modules/calloc-posix (License): Likewise.
63780         * modules/intprops (License): Change from GPL to LGPL, with
63781         Paul Eggert's approval.
63782
63783 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63784
63785         Merge glibc changes into lib/glob.c.
63786
63787         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
63788         2007-10-15 04:59:03 UTC.  Here are the changes:
63789
63790         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
63791
63792         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
63793
63794         * lib/glob.c: Add some branch prediction throughout.
63795
63796         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
63797
63798         [BZ #5103]
63799         * lib/glob.c (glob): Recognize patterns starting \/.
63800
63801         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
63802
63803         [BZ #3996]
63804         * lib/glob.c (attribute_hidden): Define if not defined.
63805         (glob): Unescape dirname, filename or username when needed and not
63806         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
63807         is NULL.  Handle unescaped [ in pattern without closing ].
63808         Don't pass GLOB_CHECK down to recursive glob for directories.
63809         (__glob_pattern_type): New function.
63810         (__glob_pattern_p): Implement using __glob_pattern_type.
63811         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
63812         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
63813         Remove unreachable code.
63814
63815         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
63816
63817         * lib/glob.c (glob_in_dir): Add some comments and asserts to
63818         explain why there are no leaks.
63819
63820         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
63821
63822         [BZ #3253]
63823         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
63824         time, rather allocate increasingly bigger arrays of pointers, if
63825         possible with alloca, if too large with malloc.
63826
63827 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
63828
63829         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
63830         Problem reported by H.Merijn Brand in
63831         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
63832         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
63833         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
63834
63835 2007-10-15  Bruno Haible  <bruno@clisp.org>
63836
63837         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
63838         with explicit rpl_ prefix.
63839         * lib/fopen.c (fopen): Likewise.
63840         * lib/freopen.c (freopen): Likewise.
63841         * lib/iconv.c (iconv): Likewise.
63842         * lib/iconv_close.c (iconv_close): Likewise.
63843
63844 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
63845
63846         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
63847
63848 2007-10-15  Bruno Haible  <bruno@clisp.org>
63849
63850         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
63851         <stddef.h> instead of <stdlib.h> since we only need NULL.
63852         Reported by Ben Pfaff <blp@cs.stanford.edu>.
63853
63854 2007-10-15  Bruno Haible  <bruno@clisp.org>
63855
63856         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
63857         Replace paragraph talking about LIBOBJS.
63858         Reported by Colin Watson <cjwatson@debian.org>.
63859
63860 2007-10-15  Bruno Haible  <bruno@clisp.org>
63861
63862         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
63863         <stdlib.h> before using NULL.
63864
63865 2007-10-15  Simon Josefsson  <simon@josefsson.org>
63866
63867         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
63868         Reported by Albert Chin <china@thewrittenword.com>.
63869
63870 2007-10-14  Bruno Haible  <bruno@clisp.org>
63871
63872         * modules/iconv_open-utf-tests: New file.
63873         * tests/test-iconv-utf.c: New file.
63874
63875         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
63876         * modules/iconv_open-utf: New file.
63877         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
63878         (iconv, iconv_close): New declarations.
63879         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
63880         be defined.
63881         (iconv_open): Add special handling of conversion between UTF-8 and
63882         UTF-{16,32}{BE,LE}.
63883         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
63884         * lib/iconv_close.c: New file.
63885         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
63886         gl_FUNC_ICONV_OPEN.
63887         (gl_FUNC_ICONV_OPEN): Use it.
63888         (gl_FUNC_ICONV_OPEN_UTF): New macro.
63889         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
63890         and REPLACE_ICONV_UTF.
63891         * modules/iconv_open (Depends-on): Add c-strcase.
63892         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
63893         ICONV_CONST.
63894         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
63895
63896 2007-10-13  Albert Chin  <china@thewrittenword.com>
63897             Bruno Haible  <bruno@clisp.org>
63898
63899         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
63900         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
63901
63902 2007-10-13  Bruno Haible  <bruno@clisp.org>
63903
63904         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
63905         defined, use the ISO C99 inline semantics.
63906         * lib/argp.h (ARGP_EI): Likewise.
63907
63908 2007-10-13  Bruno Haible  <bruno@clisp.org>
63909
63910         Handle 'inline' change in gcc 4.3.0.
63911         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
63912         argp_fmtstream_write, argp_fmtstream_set_lmargin,
63913         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
63914         argp_fmtstream_point): Disable 'extern' declaration if the function
63915         definition is going to be provided inline.
63916         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
63917         semantics, not the ISO C99 inline semantics.
63918         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
63919         'extern' declaration if the function definition is going to be provided
63920         inline.
63921         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
63922         the GNU C inline semantics, not the ISO C99 inline semantics. With
63923         GCC 4.2, avoid a warning.
63924
63925 2007-10-13  Bruno Haible  <bruno@clisp.org>
63926
63927         * lib/freading.h (freading): Enable the use of __freading for
63928         glibc >= 2.7.
63929         * lib/freading.c (freading): Likewise.
63930
63931 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
63932
63933         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
63934         "warning: C99 inline functions are not supported; using GNU89".
63935
63936 2007-10-12  Bruno Haible  <bruno@clisp.org>
63937
63938         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
63939         of 2.
63940         * tests/test-ceilf2.c: New file.
63941         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
63942
63943         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
63944         * modules/ceilf-tests: Update.
63945
63946 2007-10-12  Bruno Haible  <bruno@clisp.org>
63947
63948         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
63949         of 2.
63950         * tests/test-floorf2.c: New file.
63951         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
63952
63953         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
63954         * modules/floorf-tests: Update.
63955
63956 2007-10-12  Bruno Haible  <bruno@clisp.org>
63957
63958         * tests/test-trunc2.c: New file.
63959         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
63960
63961         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
63962         * modules/trunc-tests: Update.
63963
63964 2007-10-12  Bruno Haible  <bruno@clisp.org>
63965
63966         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
63967         of 2.
63968         * tests/test-truncf2.c: New file.
63969         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
63970
63971         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
63972         * modules/truncf-tests: Update.
63973
63974 2007-10-11  Eric Blake  <ebb9@byu.net>
63975
63976         Don't claim strerror is broken on Interix.
63977         * doc/functions/strerror.texi (strerror): Known broken systems are
63978         now Solaris 8, and not Interix.
63979         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
63980         Interix on cross-compile.
63981         Reported by Martin Koeppe in
63982         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
63983
63984 2007-10-11  Bruno Haible  <bruno@clisp.org>
63985
63986         * modules/i-ring-tests: New file.
63987         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
63988         instead of assert.
63989
63990 2007-10-11  Bruno Haible  <bruno@clisp.org>
63991
63992         * modules/filenamecat-tests: New file.
63993         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
63994         * lib/filenamecat.c: Remove test code.
63995
63996 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
63997
63998         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
63999
64000         * lib/strerror.c: Include <string.h> always, to test interface,
64001         and to remove the need for the dummy.
64002         Include intprops.h to compute width instead of doing it ourselves
64003         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
64004         (strerror): Define it to return NULL if there's no system strerror.
64005         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
64006         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
64007         ancient pre-strerror Unix systems well any more.  Saying "unknown
64008         system error" is enough.
64009         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
64010         simpler strerror.c implementation.
64011         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
64012         Simplify the tests to reflect the simpler strerror implementation.
64013         * modules/strerror (Depends-on): Add intprops.
64014
64015 2007-10-09  Eric Blake  <ebb9@byu.net>
64016
64017         Silence test-fpending.
64018         * modules/fpending-tests (Files): Add wrapper script.
64019         * tests/test-fpending.sh: New file.
64020
64021 2007-10-09  Bruno Haible  <bruno@clisp.org>
64022
64023         * MODULES.html.sh (func_module): Don't create a hyperlink for
64024         function names like 'printf_frexp'.
64025         (Misc): Add crc, memxor.
64026         (Characteristics of floating types): New section.
64027         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
64028         isnanf-nolibm, signbit, trunc, truncf, truncl.
64029         (Enhancements for ISO C 99 functions): New subsection Input/output.
64030         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
64031         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
64032         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
64033         (Compatibility checks for POSIX:2001 functions): Add clock-time.
64034         (Enhancements for POSIX:2001 functions): Add chdir-long.
64035         (File system functions): Add areadlink, chdir-safer, read-file.
64036         Remove cycle-check.
64037         (File system as inode set): New section.
64038         (Date and time): Add gethrxtime.
64039         (Multithreading): Add openmp.
64040         (Internationalization functions): Add localename.
64041         (Unicode string functions): Add unistr/u*-mbsnlen.
64042         (Support for maintaining and releasing projects): Add git-version-gen.
64043         (Lone files): Remove directories.
64044
64045 2007-10-08  Ben Pfaff  <blp@gnu.org>
64046
64047         * lib/xmalloca.h: Fix typo in comment.
64048
64049 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64050
64051         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
64052         when avoiding problems with integer overflow.  Use a portable test
64053         instead.
64054
64055 2007-10-08  Simon Josefsson  <simon@josefsson.org>
64056
64057         * modules/dummy (License): Change to LGPLv2+.
64058         * modules/float (License): Likewise
64059         * modules/realloc (License): Likewise
64060         * modules/stdlib (License): Likewise
64061
64062 2007-10-07  Bruno Haible  <bruno@clisp.org>
64063
64064         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
64065         * floor.c (TWO_MANT_DIG): Likewise.
64066         * ceil.c (TWO_MANT_DIG): Likewise.
64067         Reported by Ben Pfaff.
64068
64069 2007-10-07  Bruno Haible  <bruno@clisp.org>
64070
64071         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
64072         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
64073         * lib/frexp.c (FUNC): Likewise.
64074         * lib/printf-frexp.h (printf_frexp): Likewise.
64075         * lib/printf-frexpl.h (printf_frexpl): Likewise.
64076         * lib/printf-frexp.c (FUNC): Likewise.
64077         Suggested by Jim Meyering.
64078
64079 2007-10-07  Jim Meyering  <meyering@redhat.com>
64080
64081         Make xnanosleep's integer overflow test more robust.
64082         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
64083         so that gcc-4.3.0 doesn't optimize away this test for overflow.
64084
64085 2007-10-07  Bruno Haible  <bruno@clisp.org>
64086
64087         * NEWS: Mention the license change.
64088
64089         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
64090         abbreviations in the modules files.
64091
64092         Change copyright notice from GPLv2+ to GPLv3+.
64093         * README: Change copyright notice.
64094         * MODULES.html.sh: Likewise.
64095         * build-aux/bootstrap.conf: Likewise.
64096         * build-aux/config.libpath: Likewise.
64097         * build-aux/csharpcomp.sh.in: Likewise.
64098         * build-aux/csharpexec.sh.in: Likewise.
64099         * build-aux/install-reloc: Likewise.
64100         * build-aux/javacomp.sh.in: Likewise.
64101         * build-aux/javaexec.sh.in: Likewise.
64102         * build-aux/ldd.sh.in: Likewise.
64103         * build-aux/reloc-ldflags: Likewise.
64104         * build-aux/relocatable.sh.in: Likewise.
64105         * build-aux/x-to-1.in: Likewise.
64106         * check-module: Likewise.
64107         * config/srclistvars.sh: Likewise.
64108         * gnulib-tool: Likewise.
64109         * lib/acl-internal.h: Likewise.
64110         * lib/acl.c: Likewise.
64111         * lib/acl.h: Likewise.
64112         * lib/acl_entries.c: Likewise.
64113         * lib/areadlink-with-size.c: Likewise.
64114         * lib/areadlink.c: Likewise.
64115         * lib/areadlink.h: Likewise.
64116         * lib/argmatch.c: Likewise.
64117         * lib/argmatch.h: Likewise.
64118         * lib/argp-ba.c: Likewise.
64119         * lib/argp-eexst.c: Likewise.
64120         * lib/argp-fmtstream.c: Likewise.
64121         * lib/argp-fmtstream.h: Likewise.
64122         * lib/argp-fs-xinl.c: Likewise.
64123         * lib/argp-help.c: Likewise.
64124         * lib/argp-namefrob.h: Likewise.
64125         * lib/argp-parse.c: Likewise.
64126         * lib/argp-pin.c: Likewise.
64127         * lib/argp-pv.c: Likewise.
64128         * lib/argp-pvh.c: Likewise.
64129         * lib/argp-xinl.c: Likewise.
64130         * lib/argp.h: Likewise.
64131         * lib/at-func.c: Likewise.
64132         * lib/atanl.c: Likewise.
64133         * lib/backupfile.c: Likewise.
64134         * lib/backupfile.h: Likewise.
64135         * lib/basename.c: Likewise.
64136         * lib/binary-io.h: Likewise.
64137         * lib/byteswap.in.h: Likewise.
64138         * lib/c-stack.c: Likewise.
64139         * lib/c-stack.h: Likewise.
64140         * lib/c-strcasestr.c: Likewise.
64141         * lib/c-strcasestr.h: Likewise.
64142         * lib/c-strstr.c: Likewise.
64143         * lib/c-strstr.h: Likewise.
64144         * lib/c-strtod.c: Likewise.
64145         * lib/calloc.c: Likewise.
64146         * lib/canon-host.c: Likewise.
64147         * lib/canon-host.h: Likewise.
64148         * lib/canonicalize-lgpl.c: Likewise.
64149         * lib/canonicalize.c: Likewise.
64150         * lib/canonicalize.h: Likewise.
64151         * lib/ceil.c: Likewise.
64152         * lib/ceilf.c: Likewise.
64153         * lib/ceill.c: Likewise.
64154         * lib/chdir-long.c: Likewise.
64155         * lib/chdir-long.h: Likewise.
64156         * lib/chdir-safer.c: Likewise.
64157         * lib/chdir-safer.h: Likewise.
64158         * lib/chown.c: Likewise.
64159         * lib/classpath.c: Likewise.
64160         * lib/classpath.h: Likewise.
64161         * lib/clean-temp.c: Likewise.
64162         * lib/clean-temp.h: Likewise.
64163         * lib/cloexec.c: Likewise.
64164         * lib/close-stream.c: Likewise.
64165         * lib/closein.c: Likewise.
64166         * lib/closein.h: Likewise.
64167         * lib/closeout.c: Likewise.
64168         * lib/closeout.h: Likewise.
64169         * lib/concat-filename.c: Likewise.
64170         * lib/copy-file.c: Likewise.
64171         * lib/copy-file.h: Likewise.
64172         * lib/count-one-bits.h: Likewise.
64173         * lib/crc.c: Likewise.
64174         * lib/crc.h: Likewise.
64175         * lib/creat-safer.c: Likewise.
64176         * lib/csharpcomp.c: Likewise.
64177         * lib/csharpcomp.h: Likewise.
64178         * lib/csharpexec.c: Likewise.
64179         * lib/csharpexec.h: Likewise.
64180         * lib/cycle-check.c: Likewise.
64181         * lib/cycle-check.h: Likewise.
64182         * lib/diacrit.c: Likewise.
64183         * lib/diacrit.h: Likewise.
64184         * lib/diffseq.h: Likewise.
64185         * lib/dirchownmod.c: Likewise.
64186         * lib/dirent.in.h: Likewise.
64187         * lib/dirfd.c: Likewise.
64188         * lib/dirfd.h: Likewise.
64189         * lib/dirname.c: Likewise.
64190         * lib/dirname.h: Likewise.
64191         * lib/dummy.c: Likewise.
64192         * lib/dup-safer.c: Likewise.
64193         * lib/dup2.c: Likewise.
64194         * lib/eealloc.h: Likewise.
64195         * lib/error.c: Likewise.
64196         * lib/error.h: Likewise.
64197         * lib/euidaccess.c: Likewise.
64198         * lib/exclude.c: Likewise.
64199         * lib/exclude.h: Likewise.
64200         * lib/execute.c: Likewise.
64201         * lib/execute.h: Likewise.
64202         * lib/exitfail.c: Likewise.
64203         * lib/exitfail.h: Likewise.
64204         * lib/expl.c: Likewise.
64205         * lib/fatal-signal.c: Likewise.
64206         * lib/fatal-signal.h: Likewise.
64207         * lib/fbufmode.c: Likewise.
64208         * lib/fbufmode.h: Likewise.
64209         * lib/fchdir.c: Likewise.
64210         * lib/fchmodat.c: Likewise.
64211         * lib/fchownat.c: Likewise.
64212         * lib/fcntl--.h: Likewise.
64213         * lib/fcntl-safer.h: Likewise.
64214         * lib/fcntl.in.h: Likewise.
64215         * lib/fd-safer.c: Likewise.
64216         * lib/fflush.c: Likewise.
64217         * lib/file-has-acl.c: Likewise.
64218         * lib/file-set.c: Likewise.
64219         * lib/file-type.c: Likewise.
64220         * lib/file-type.h: Likewise.
64221         * lib/fileblocks.c: Likewise.
64222         * lib/filemode.c: Likewise.
64223         * lib/filemode.h: Likewise.
64224         * lib/filename.h: Likewise.
64225         * lib/filenamecat.c: Likewise.
64226         * lib/filenamecat.h: Likewise.
64227         * lib/findprog.c: Likewise.
64228         * lib/findprog.h: Likewise.
64229         * lib/float.in.h: Likewise.
64230         * lib/floor.c: Likewise.
64231         * lib/floorf.c: Likewise.
64232         * lib/floorl.c: Likewise.
64233         * lib/fopen-safer.c: Likewise.
64234         * lib/fopen.c: Likewise.
64235         * lib/fpending.c: Likewise.
64236         * lib/fpending.h: Likewise.
64237         * lib/fprintf.c: Likewise.
64238         * lib/fprintftime.h: Likewise.
64239         * lib/fpucw.h: Likewise.
64240         * lib/fpurge.c: Likewise.
64241         * lib/fpurge.h: Likewise.
64242         * lib/freadable.c: Likewise.
64243         * lib/freadable.h: Likewise.
64244         * lib/freadahead.c: Likewise.
64245         * lib/freadahead.h: Likewise.
64246         * lib/freading.c: Likewise.
64247         * lib/freading.h: Likewise.
64248         * lib/free.c: Likewise.
64249         * lib/freopen.c: Likewise.
64250         * lib/frexp.c: Likewise.
64251         * lib/frexpl.c: Likewise.
64252         * lib/fseek.c: Likewise.
64253         * lib/fseterr.c: Likewise.
64254         * lib/fseterr.h: Likewise.
64255         * lib/fstatat.c: Likewise.
64256         * lib/fstrcmp.c: Likewise.
64257         * lib/fstrcmp.h: Likewise.
64258         * lib/fsusage.c: Likewise.
64259         * lib/fsusage.h: Likewise.
64260         * lib/ftell.c: Likewise.
64261         * lib/ftello.c: Likewise.
64262         * lib/fts-cycle.c: Likewise.
64263         * lib/fts.c: Likewise.
64264         * lib/fts_.h: Likewise.
64265         * lib/full-read.c: Likewise.
64266         * lib/full-read.h: Likewise.
64267         * lib/full-write.c: Likewise.
64268         * lib/full-write.h: Likewise.
64269         * lib/fwritable.c: Likewise.
64270         * lib/fwritable.h: Likewise.
64271         * lib/fwriteerror.c: Likewise.
64272         * lib/fwriteerror.h: Likewise.
64273         * lib/fwriting.c: Likewise.
64274         * lib/fwriting.h: Likewise.
64275         * lib/gcd.c: Likewise.
64276         * lib/gcd.h: Likewise.
64277         * lib/getcwd.c: Likewise.
64278         * lib/getdate.h: Likewise.
64279         * lib/getdate.y: Likewise.
64280         * lib/getdomainname.c: Likewise.
64281         * lib/getdomainname.h: Likewise.
64282         * lib/getgroups.c: Likewise.
64283         * lib/gethostname.c: Likewise.
64284         * lib/gethrxtime.c: Likewise.
64285         * lib/gethrxtime.h: Likewise.
64286         * lib/getloadavg.c: Likewise.
64287         * lib/getndelim2.c: Likewise.
64288         * lib/getndelim2.h: Likewise.
64289         * lib/getnline.c: Likewise.
64290         * lib/getnline.h: Likewise.
64291         * lib/getopt.c: Likewise.
64292         * lib/getopt.in.h: Likewise.
64293         * lib/getopt1.c: Likewise.
64294         * lib/getopt_int.h: Likewise.
64295         * lib/getpagesize.h: Likewise.
64296         * lib/getsubopt.c: Likewise.
64297         * lib/gettime.c: Likewise.
64298         * lib/getugroups.c: Likewise.
64299         * lib/getugroups.h: Likewise.
64300         * lib/getusershell.c: Likewise.
64301         * lib/gl_anyavltree_list1.h: Likewise.
64302         * lib/gl_anyavltree_list2.h: Likewise.
64303         * lib/gl_anyhash_list1.h: Likewise.
64304         * lib/gl_anyhash_list2.h: Likewise.
64305         * lib/gl_anylinked_list1.h: Likewise.
64306         * lib/gl_anylinked_list2.h: Likewise.
64307         * lib/gl_anyrbtree_list1.h: Likewise.
64308         * lib/gl_anyrbtree_list2.h: Likewise.
64309         * lib/gl_anytree_list1.h: Likewise.
64310         * lib/gl_anytree_list2.h: Likewise.
64311         * lib/gl_anytree_oset.h: Likewise.
64312         * lib/gl_anytreehash_list1.h: Likewise.
64313         * lib/gl_anytreehash_list2.h: Likewise.
64314         * lib/gl_array_list.c: Likewise.
64315         * lib/gl_array_list.h: Likewise.
64316         * lib/gl_array_oset.c: Likewise.
64317         * lib/gl_array_oset.h: Likewise.
64318         * lib/gl_avltree_list.c: Likewise.
64319         * lib/gl_avltree_list.h: Likewise.
64320         * lib/gl_avltree_oset.c: Likewise.
64321         * lib/gl_avltree_oset.h: Likewise.
64322         * lib/gl_avltreehash_list.c: Likewise.
64323         * lib/gl_avltreehash_list.h: Likewise.
64324         * lib/gl_carray_list.c: Likewise.
64325         * lib/gl_carray_list.h: Likewise.
64326         * lib/gl_linked_list.c: Likewise.
64327         * lib/gl_linked_list.h: Likewise.
64328         * lib/gl_linkedhash_list.c: Likewise.
64329         * lib/gl_linkedhash_list.h: Likewise.
64330         * lib/gl_list.c: Likewise.
64331         * lib/gl_list.h: Likewise.
64332         * lib/gl_oset.c: Likewise.
64333         * lib/gl_oset.h: Likewise.
64334         * lib/gl_rbtree_list.c: Likewise.
64335         * lib/gl_rbtree_list.h: Likewise.
64336         * lib/gl_rbtree_oset.c: Likewise.
64337         * lib/gl_rbtree_oset.h: Likewise.
64338         * lib/gl_rbtreehash_list.c: Likewise.
64339         * lib/gl_rbtreehash_list.h: Likewise.
64340         * lib/gl_sublist.c: Likewise.
64341         * lib/gl_sublist.h: Likewise.
64342         * lib/group-member.c: Likewise.
64343         * lib/group-member.h: Likewise.
64344         * lib/hard-locale.c: Likewise.
64345         * lib/hard-locale.h: Likewise.
64346         * lib/hash-pjw.c: Likewise.
64347         * lib/hash-pjw.h: Likewise.
64348         * lib/hash-triple.c: Likewise.
64349         * lib/hash.c: Likewise.
64350         * lib/hash.h: Likewise.
64351         * lib/human.c: Likewise.
64352         * lib/human.h: Likewise.
64353         * lib/i-ring.c: Likewise.
64354         * lib/i-ring.h: Likewise.
64355         * lib/idcache.c: Likewise.
64356         * lib/imaxabs.c: Likewise.
64357         * lib/imaxdiv.c: Likewise.
64358         * lib/inet_pton.c: Likewise.
64359         * lib/inet_pton.h: Likewise.
64360         * lib/intprops.h: Likewise.
64361         * lib/inttostr.c: Likewise.
64362         * lib/inttostr.h: Likewise.
64363         * lib/inttypes.in.h: Likewise.
64364         * lib/isapipe.c: Likewise.
64365         * lib/isdir.c: Likewise.
64366         * lib/isnan.c: Likewise.
64367         * lib/isnan.h: Likewise.
64368         * lib/isnanf.c: Likewise.
64369         * lib/isnanf.h: Likewise.
64370         * lib/isnanl-nolibm.h: Likewise.
64371         * lib/isnanl.c: Likewise.
64372         * lib/isnanl.h: Likewise.
64373         * lib/javacomp.c: Likewise.
64374         * lib/javacomp.h: Likewise.
64375         * lib/javaexec.c: Likewise.
64376         * lib/javaexec.h: Likewise.
64377         * lib/javaversion.c: Likewise.
64378         * lib/javaversion.h: Likewise.
64379         * lib/javaversion.java: Likewise.
64380         * lib/lbrkprop.h: Likewise.
64381         * lib/lchmod.h: Likewise.
64382         * lib/lchown.c: Likewise.
64383         * lib/ldexpl.c: Likewise.
64384         * lib/linebreak.c: Likewise.
64385         * lib/linebreak.h: Likewise.
64386         * lib/linebuffer.c: Likewise.
64387         * lib/linebuffer.h: Likewise.
64388         * lib/locale.in.h: Likewise.
64389         * lib/logl.c: Likewise.
64390         * lib/long-options.c: Likewise.
64391         * lib/long-options.h: Likewise.
64392         * lib/lstat.c: Likewise.
64393         * lib/lstat.h: Likewise.
64394         * lib/math.in.h: Likewise.
64395         * lib/mbchar.c: Likewise.
64396         * lib/mbchar.h: Likewise.
64397         * lib/mbfile.h: Likewise.
64398         * lib/mbiter.h: Likewise.
64399         * lib/mbscasecmp.c: Likewise.
64400         * lib/mbscasestr.c: Likewise.
64401         * lib/mbschr.c: Likewise.
64402         * lib/mbscspn.c: Likewise.
64403         * lib/mbslen.c: Likewise.
64404         * lib/mbsncasecmp.c: Likewise.
64405         * lib/mbsnlen.c: Likewise.
64406         * lib/mbspbrk.c: Likewise.
64407         * lib/mbspcasecmp.c: Likewise.
64408         * lib/mbsrchr.c: Likewise.
64409         * lib/mbssep.c: Likewise.
64410         * lib/mbsspn.c: Likewise.
64411         * lib/mbsstr.c: Likewise.
64412         * lib/mbstok_r.c: Likewise.
64413         * lib/mbswidth.c: Likewise.
64414         * lib/mbswidth.h: Likewise.
64415         * lib/mbuiter.h: Likewise.
64416         * lib/memcasecmp.c: Likewise.
64417         * lib/memcasecmp.h: Likewise.
64418         * lib/memchr.c: Likewise.
64419         * lib/memcmp.c: Likewise.
64420         * lib/memcoll.c: Likewise.
64421         * lib/memcoll.h: Likewise.
64422         * lib/memcpy.c: Likewise.
64423         * lib/memrchr.c: Likewise.
64424         * lib/mkancesdirs.c: Likewise.
64425         * lib/mkdir-p.c: Likewise.
64426         * lib/mkdir-p.h: Likewise.
64427         * lib/mkdir.c: Likewise.
64428         * lib/mkdirat.c: Likewise.
64429         * lib/mkdtemp.c: Likewise.
64430         * lib/mkstemp-safer.c: Likewise.
64431         * lib/mkstemp.c: Likewise.
64432         * lib/modechange.c: Likewise.
64433         * lib/modechange.h: Likewise.
64434         * lib/mountlist.c: Likewise.
64435         * lib/mountlist.h: Likewise.
64436         * lib/mpsort.c: Likewise.
64437         * lib/nanosleep.c: Likewise.
64438         * lib/obstack.c: Likewise.
64439         * lib/obstack.h: Likewise.
64440         * lib/open-safer.c: Likewise.
64441         * lib/open.c: Likewise.
64442         * lib/openat-die.c: Likewise.
64443         * lib/openat-priv.h: Likewise.
64444         * lib/openat-proc.c: Likewise.
64445         * lib/openat.c: Likewise.
64446         * lib/openat.h: Likewise.
64447         * lib/pagealign_alloc.c: Likewise.
64448         * lib/pagealign_alloc.h: Likewise.
64449         * lib/physmem.c: Likewise.
64450         * lib/physmem.h: Likewise.
64451         * lib/pipe-safer.c: Likewise.
64452         * lib/pipe.c: Likewise.
64453         * lib/pipe.h: Likewise.
64454         * lib/posixtm.c: Likewise.
64455         * lib/posixtm.h: Likewise.
64456         * lib/posixver.c: Likewise.
64457         * lib/printf-frexp.c: Likewise.
64458         * lib/printf-frexp.h: Likewise.
64459         * lib/printf-frexpl.c: Likewise.
64460         * lib/printf-frexpl.h: Likewise.
64461         * lib/printf.c: Likewise.
64462         * lib/progname.c: Likewise.
64463         * lib/progname.h: Likewise.
64464         * lib/progreloc.c: Likewise.
64465         * lib/putenv.c: Likewise.
64466         * lib/quote.c: Likewise.
64467         * lib/quote.h: Likewise.
64468         * lib/quotearg.c: Likewise.
64469         * lib/quotearg.h: Likewise.
64470         * lib/raise.c: Likewise.
64471         * lib/readline.c: Likewise.
64472         * lib/readline.h: Likewise.
64473         * lib/readlink.c: Likewise.
64474         * lib/readtokens.c: Likewise.
64475         * lib/readtokens.h: Likewise.
64476         * lib/readtokens0.c: Likewise.
64477         * lib/readtokens0.h: Likewise.
64478         * lib/readutmp.c: Likewise.
64479         * lib/readutmp.h: Likewise.
64480         * lib/realloc.c: Likewise.
64481         * lib/relocwrapper.c: Likewise.
64482         * lib/rename-dest-slash.c: Likewise.
64483         * lib/rename.c: Likewise.
64484         * lib/rmdir.c: Likewise.
64485         * lib/rpmatch.c: Likewise.
64486         * lib/safe-read.c: Likewise.
64487         * lib/safe-read.h: Likewise.
64488         * lib/safe-write.c: Likewise.
64489         * lib/safe-write.h: Likewise.
64490         * lib/same-inode.h: Likewise.
64491         * lib/same.c: Likewise.
64492         * lib/same.h: Likewise.
64493         * lib/save-cwd.c: Likewise.
64494         * lib/save-cwd.h: Likewise.
64495         * lib/savedir.c: Likewise.
64496         * lib/savedir.h: Likewise.
64497         * lib/savewd.c: Likewise.
64498         * lib/savewd.h: Likewise.
64499         * lib/search.in.h: Likewise.
64500         * lib/setenv.c: Likewise.
64501         * lib/setenv.h: Likewise.
64502         * lib/settime.c: Likewise.
64503         * lib/sh-quote.c: Likewise.
64504         * lib/sh-quote.h: Likewise.
64505         * lib/sig2str.c: Likewise.
64506         * lib/sig2str.h: Likewise.
64507         * lib/signal.in.h: Likewise.
64508         * lib/signbitd.c: Likewise.
64509         * lib/signbitf.c: Likewise.
64510         * lib/signbitl.c: Likewise.
64511         * lib/sigprocmask.c: Likewise.
64512         * lib/sincosl.c: Likewise.
64513         * lib/sleep.c: Likewise.
64514         * lib/sprintf.c: Likewise.
64515         * lib/sqrtl.c: Likewise.
64516         * lib/stat-time.h: Likewise.
64517         * lib/stdio--.h: Likewise.
64518         * lib/stdio-safer.h: Likewise.
64519         * lib/stdlib--.h: Likewise.
64520         * lib/stdlib-safer.h: Likewise.
64521         * lib/stdlib.in.h: Likewise.
64522         * lib/stpcpy.c: Likewise.
64523         * lib/stpncpy.c: Likewise.
64524         * lib/strchrnul.c: Likewise.
64525         * lib/strcspn.c: Likewise.
64526         * lib/strerror.c: Likewise.
64527         * lib/strftime.c: Likewise.
64528         * lib/strftime.h: Likewise.
64529         * lib/striconveh.c: Likewise.
64530         * lib/striconveh.h: Likewise.
64531         * lib/striconveha.c: Likewise.
64532         * lib/striconveha.h: Likewise.
64533         * lib/stripslash.c: Likewise.
64534         * lib/strnlen1.c: Likewise.
64535         * lib/strnlen1.h: Likewise.
64536         * lib/strtod.c: Likewise.
64537         * lib/strtoimax.c: Likewise.
64538         * lib/strtok_r.c: Likewise.
64539         * lib/strtol.c: Likewise.
64540         * lib/strtoll.c: Likewise.
64541         * lib/strtoul.c: Likewise.
64542         * lib/strtoull.c: Likewise.
64543         * lib/sysexits.in.h: Likewise.
64544         * lib/tempname.c: Likewise.
64545         * lib/tempname.h: Likewise.
64546         * lib/timespec.h: Likewise.
64547         * lib/tls.c: Likewise.
64548         * lib/tls.h: Likewise.
64549         * lib/tmpdir.c: Likewise.
64550         * lib/tmpdir.h: Likewise.
64551         * lib/tmpfile-safer.c: Likewise.
64552         * lib/tmpfile.c: Likewise.
64553         * lib/trigl.c: Likewise.
64554         * lib/trigl.h: Likewise.
64555         * lib/trim.c: Likewise.
64556         * lib/trim.h: Likewise.
64557         * lib/trunc.c: Likewise.
64558         * lib/truncf.c: Likewise.
64559         * lib/truncl.c: Likewise.
64560         * lib/tsearch.c: Likewise.
64561         * lib/unicodeio.c: Likewise.
64562         * lib/unicodeio.h: Likewise.
64563         * lib/unistd--.h: Likewise.
64564         * lib/unistd-safer.h: Likewise.
64565         * lib/unistdio/ulc-fprintf.c: Likewise.
64566         * lib/unistdio/ulc-vfprintf.c: Likewise.
64567         * lib/unlinkdir.c: Likewise.
64568         * lib/unlinkdir.h: Likewise.
64569         * lib/unlocked-io.h: Likewise.
64570         * lib/unsetenv.c: Likewise.
64571         * lib/userspec.c: Likewise.
64572         * lib/utime.c: Likewise.
64573         * lib/utimecmp.c: Likewise.
64574         * lib/utimecmp.h: Likewise.
64575         * lib/utimens.c: Likewise.
64576         * lib/verify.h: Likewise.
64577         * lib/verror.c: Likewise.
64578         * lib/verror.h: Likewise.
64579         * lib/version-etc-fsf.c: Likewise.
64580         * lib/version-etc.c: Likewise.
64581         * lib/version-etc.h: Likewise.
64582         * lib/vfprintf.c: Likewise.
64583         * lib/vprintf.c: Likewise.
64584         * lib/vsprintf.c: Likewise.
64585         * lib/w32spawn.h: Likewise.
64586         * lib/wait-process.c: Likewise.
64587         * lib/wait-process.h: Likewise.
64588         * lib/wcwidth.c: Likewise.
64589         * lib/write-any-file.c: Likewise.
64590         * lib/xalloc-die.c: Likewise.
64591         * lib/xalloc.h: Likewise.
64592         * lib/xasprintf.c: Likewise.
64593         * lib/xgetcwd.c: Likewise.
64594         * lib/xgetcwd.h: Likewise.
64595         * lib/xgetdomainname.c: Likewise.
64596         * lib/xgetdomainname.h: Likewise.
64597         * lib/xgethostname.c: Likewise.
64598         * lib/xmalloc.c: Likewise.
64599         * lib/xmalloca.c: Likewise.
64600         * lib/xmalloca.h: Likewise.
64601         * lib/xmemcoll.c: Likewise.
64602         * lib/xnanosleep.c: Likewise.
64603         * lib/xreadlink.c: Likewise.
64604         * lib/xreadlink.h: Likewise.
64605         * lib/xsetenv.c: Likewise.
64606         * lib/xsetenv.h: Likewise.
64607         * lib/xstriconv.c: Likewise.
64608         * lib/xstriconv.h: Likewise.
64609         * lib/xstrndup.c: Likewise.
64610         * lib/xstrndup.h: Likewise.
64611         * lib/xstrtod.c: Likewise.
64612         * lib/xstrtod.h: Likewise.
64613         * lib/xstrtol-error.c: Likewise.
64614         * lib/xstrtol.c: Likewise.
64615         * lib/xstrtol.h: Likewise.
64616         * lib/xtime.h: Likewise.
64617         * lib/xvasprintf.c: Likewise.
64618         * lib/xvasprintf.h: Likewise.
64619         * lib/yesno.c: Likewise.
64620         * lib/yesno.h: Likewise.
64621         * posix-modules: Likewise.
64622         * tests/test-alloca-opt.c: Likewise.
64623         * tests/test-arcfour.c: Likewise.
64624         * tests/test-arctwo.c: Likewise.
64625         * tests/test-argmatch.c: Likewise.
64626         * tests/test-argp-2.sh: Likewise.
64627         * tests/test-argp.c: Likewise.
64628         * tests/test-arpa_inet.c: Likewise.
64629         * tests/test-array_list.c: Likewise.
64630         * tests/test-array_oset.c: Likewise.
64631         * tests/test-atexit.c: Likewise.
64632         * tests/test-avltree_list.c: Likewise.
64633         * tests/test-avltree_oset.c: Likewise.
64634         * tests/test-avltreehash_list.c: Likewise.
64635         * tests/test-base64.c: Likewise.
64636         * tests/test-binary-io.c: Likewise.
64637         * tests/test-byteswap.c: Likewise.
64638         * tests/test-c-ctype.c: Likewise.
64639         * tests/test-c-strcasecmp.c: Likewise.
64640         * tests/test-c-strcasestr.c: Likewise.
64641         * tests/test-c-strncasecmp.c: Likewise.
64642         * tests/test-c-strstr.c: Likewise.
64643         * tests/test-canonicalize-lgpl.c: Likewise.
64644         * tests/test-canonicalize.c: Likewise.
64645         * tests/test-carray_list.c: Likewise.
64646         * tests/test-ceilf.c: Likewise.
64647         * tests/test-ceill.c: Likewise.
64648         * tests/test-count-one-bits.c: Likewise.
64649         * tests/test-crc.c: Likewise.
64650         * tests/test-dirname.c: Likewise.
64651         * tests/test-fbufmode.c: Likewise.
64652         * tests/test-fcntl.c: Likewise.
64653         * tests/test-fflush.c: Likewise.
64654         * tests/test-floorf.c: Likewise.
64655         * tests/test-floorl.c: Likewise.
64656         * tests/test-fopen.c: Likewise.
64657         * tests/test-fprintf-posix.c: Likewise.
64658         * tests/test-fprintf-posix.h: Likewise.
64659         * tests/test-fpurge.c: Likewise.
64660         * tests/test-freadable.c: Likewise.
64661         * tests/test-freadahead.c: Likewise.
64662         * tests/test-freading.c: Likewise.
64663         * tests/test-freopen.c: Likewise.
64664         * tests/test-frexp.c: Likewise.
64665         * tests/test-frexpl.c: Likewise.
64666         * tests/test-fseek.c: Likewise.
64667         * tests/test-fseeko.c: Likewise.
64668         * tests/test-fseterr.c: Likewise.
64669         * tests/test-fstrcmp.c: Likewise.
64670         * tests/test-ftell.c: Likewise.
64671         * tests/test-ftello.c: Likewise.
64672         * tests/test-fwritable.c: Likewise.
64673         * tests/test-fwriting.c: Likewise.
64674         * tests/test-getaddrinfo.c: Likewise.
64675         * tests/test-getpass.c: Likewise.
64676         * tests/test-gettimeofday.c: Likewise.
64677         * tests/test-hmac-md5.c: Likewise.
64678         * tests/test-hmac-sha1.c: Likewise.
64679         * tests/test-iconv.c: Likewise.
64680         * tests/test-iconvme.c: Likewise.
64681         * tests/test-inttypes.c: Likewise.
64682         * tests/test-isnan.c: Likewise.
64683         * tests/test-isnanf.c: Likewise.
64684         * tests/test-isnanl-nolibm.c: Likewise.
64685         * tests/test-isnanl.c: Likewise.
64686         * tests/test-isnanl.h: Likewise.
64687         * tests/test-ldexpl.c: Likewise.
64688         * tests/test-linked_list.c: Likewise.
64689         * tests/test-linkedhash_list.c: Likewise.
64690         * tests/test-locale.c: Likewise.
64691         * tests/test-localename.c: Likewise.
64692         * tests/test-lock.c: Likewise.
64693         * tests/test-lseek.c: Likewise.
64694         * tests/test-malloca.c: Likewise.
64695         * tests/test-math.c: Likewise.
64696         * tests/test-mbscasecmp.c: Likewise.
64697         * tests/test-mbscasestr1.c: Likewise.
64698         * tests/test-mbscasestr2.c: Likewise.
64699         * tests/test-mbscasestr3.c: Likewise.
64700         * tests/test-mbscasestr4.c: Likewise.
64701         * tests/test-mbschr.c: Likewise.
64702         * tests/test-mbscspn.c: Likewise.
64703         * tests/test-mbsncasecmp.c: Likewise.
64704         * tests/test-mbspbrk.c: Likewise.
64705         * tests/test-mbspcasecmp.c: Likewise.
64706         * tests/test-mbsrchr.c: Likewise.
64707         * tests/test-mbsspn.c: Likewise.
64708         * tests/test-mbsstr1.c: Likewise.
64709         * tests/test-mbsstr2.c: Likewise.
64710         * tests/test-mbsstr3.c: Likewise.
64711         * tests/test-md5.c: Likewise.
64712         * tests/test-memmem.c: Likewise.
64713         * tests/test-netinet_in.c: Likewise.
64714         * tests/test-open.c: Likewise.
64715         * tests/test-printf-frexp.c: Likewise.
64716         * tests/test-printf-frexpl.c: Likewise.
64717         * tests/test-printf-posix.c: Likewise.
64718         * tests/test-printf-posix.h: Likewise.
64719         * tests/test-rbtree_list.c: Likewise.
64720         * tests/test-rbtree_oset.c: Likewise.
64721         * tests/test-rbtreehash_list.c: Likewise.
64722         * tests/test-read-file.c: Likewise.
64723         * tests/test-rijndael.c: Likewise.
64724         * tests/test-search.c: Likewise.
64725         * tests/test-signbit.c: Likewise.
64726         * tests/test-sleep.c: Likewise.
64727         * tests/test-snprintf-posix.c: Likewise.
64728         * tests/test-snprintf-posix.h: Likewise.
64729         * tests/test-snprintf.c: Likewise.
64730         * tests/test-sprintf-posix.c: Likewise.
64731         * tests/test-sprintf-posix.h: Likewise.
64732         * tests/test-stat-time.c: Likewise.
64733         * tests/test-stdbool.c: Likewise.
64734         * tests/test-stdint.c: Likewise.
64735         * tests/test-stdio.c: Likewise.
64736         * tests/test-stdlib.c: Likewise.
64737         * tests/test-stpncpy.c: Likewise.
64738         * tests/test-strcasestr.c: Likewise.
64739         * tests/test-striconv.c: Likewise.
64740         * tests/test-striconveh.c: Likewise.
64741         * tests/test-striconveha.c: Likewise.
64742         * tests/test-string.c: Likewise.
64743         * tests/test-sys_select.c: Likewise.
64744         * tests/test-sys_socket.c: Likewise.
64745         * tests/test-sys_stat.c: Likewise.
64746         * tests/test-sys_time.c: Likewise.
64747         * tests/test-sysexits.c: Likewise.
64748         * tests/test-time.c: Likewise.
64749         * tests/test-tls.c: Likewise.
64750         * tests/test-trunc.c: Likewise.
64751         * tests/test-truncf.c: Likewise.
64752         * tests/test-truncl.c: Likewise.
64753         * tests/test-unistd.c: Likewise.
64754         * tests/test-vasnprintf-posix.c: Likewise.
64755         * tests/test-vasnprintf-posix2.c: Likewise.
64756         * tests/test-vasnprintf.c: Likewise.
64757         * tests/test-vasprintf-posix.c: Likewise.
64758         * tests/test-vasprintf.c: Likewise.
64759         * tests/test-verify.c: Likewise.
64760         * tests/test-vfprintf-posix.c: Likewise.
64761         * tests/test-vprintf-posix.c: Likewise.
64762         * tests/test-vsnprintf-posix.c: Likewise.
64763         * tests/test-vsnprintf.c: Likewise.
64764         * tests/test-vsprintf-posix.c: Likewise.
64765         * tests/test-wchar.c: Likewise.
64766         * tests/test-wctype.c: Likewise.
64767         * tests/test-wcwidth.c: Likewise.
64768         * tests/test-xstrtol.c: Likewise.
64769         * tests/test-xvasprintf.c: Likewise.
64770         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
64771         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
64772         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
64773         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
64774         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
64775         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
64776         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
64777         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
64778         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
64779         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
64780         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
64781         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
64782         * tests/uniname/test-uninames.c: Likewise.
64783         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
64784         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
64785         * tests/unistdio/test-u16-printf1.h: Likewise.
64786         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
64787         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
64788         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
64789         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
64790         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
64791         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
64792         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
64793         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
64794         * tests/unistdio/test-u32-printf1.h: Likewise.
64795         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
64796         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
64797         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
64798         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
64799         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
64800         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
64801         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
64802         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
64803         * tests/unistdio/test-u8-printf1.h: Likewise.
64804         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
64805         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
64806         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
64807         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
64808         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
64809         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
64810         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
64811         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
64812         * tests/unistdio/test-ulc-printf1.h: Likewise.
64813         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
64814         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
64815         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
64816         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
64817         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
64818         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
64819         * tests/uniwidth/test-u16-strwidth.c: Likewise.
64820         * tests/uniwidth/test-u16-width.c: Likewise.
64821         * tests/uniwidth/test-u32-strwidth.c: Likewise.
64822         * tests/uniwidth/test-u32-width.c: Likewise.
64823         * tests/uniwidth/test-u8-strwidth.c: Likewise.
64824         * tests/uniwidth/test-u8-width.c: Likewise.
64825         * tests/uniwidth/test-uc_width.c: Likewise.
64826         * config/srclist-update: Likewise.
64827         (fixlicense): Update to GPLv3+.
64828
64829         Change copyright notice from LGPLv2.1+ to LGPLv3+.
64830         * tests/test-tsearch.c: Change copyright notice.
64831
64832         Change copyright notice from LGPLv2.0+ to LGPLv3+.
64833         * lib/c-strcaseeq.h: Change copyright notice.
64834         * lib/streq.h: Likewise.
64835         * lib/uniconv.h: Likewise.
64836         * lib/uniconv/u-conv-from-enc.h: Likewise.
64837         * lib/uniconv/u-conv-to-enc.h: Likewise.
64838         * lib/uniconv/u-strconv-from-enc.h: Likewise.
64839         * lib/uniconv/u-strconv-to-enc.h: Likewise.
64840         * lib/uniconv/u16-conv-from-enc.c: Likewise.
64841         * lib/uniconv/u16-conv-to-enc.c: Likewise.
64842         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
64843         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
64844         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
64845         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
64846         * lib/uniconv/u32-conv-from-enc.c: Likewise.
64847         * lib/uniconv/u32-conv-to-enc.c: Likewise.
64848         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
64849         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
64850         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
64851         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
64852         * lib/uniconv/u8-conv-from-enc.c: Likewise.
64853         * lib/uniconv/u8-conv-to-enc.c: Likewise.
64854         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
64855         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
64856         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
64857         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
64858         * lib/uniname.h: Likewise.
64859         * lib/uniname/uniname.c: Likewise.
64860         * lib/unistdio.h: Likewise.
64861         * lib/unistdio/u-asnprintf.h: Likewise.
64862         * lib/unistdio/u-asprintf.h: Likewise.
64863         * lib/unistdio/u-printf-args.c: Likewise.
64864         * lib/unistdio/u-printf-args.h: Likewise.
64865         * lib/unistdio/u-printf-parse.h: Likewise.
64866         * lib/unistdio/u-snprintf.h: Likewise.
64867         * lib/unistdio/u-sprintf.h: Likewise.
64868         * lib/unistdio/u-vasprintf.h: Likewise.
64869         * lib/unistdio/u-vsnprintf.h: Likewise.
64870         * lib/unistdio/u-vsprintf.h: Likewise.
64871         * lib/unistdio/u16-asnprintf.c: Likewise.
64872         * lib/unistdio/u16-asprintf.c: Likewise.
64873         * lib/unistdio/u16-printf-parse.c: Likewise.
64874         * lib/unistdio/u16-snprintf.c: Likewise.
64875         * lib/unistdio/u16-sprintf.c: Likewise.
64876         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
64877         * lib/unistdio/u16-u16-asprintf.c: Likewise.
64878         * lib/unistdio/u16-u16-snprintf.c: Likewise.
64879         * lib/unistdio/u16-u16-sprintf.c: Likewise.
64880         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
64881         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
64882         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
64883         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
64884         * lib/unistdio/u16-vasnprintf.c: Likewise.
64885         * lib/unistdio/u16-vasprintf.c: Likewise.
64886         * lib/unistdio/u16-vsnprintf.c: Likewise.
64887         * lib/unistdio/u16-vsprintf.c: Likewise.
64888         * lib/unistdio/u32-asnprintf.c: Likewise.
64889         * lib/unistdio/u32-asprintf.c: Likewise.
64890         * lib/unistdio/u32-printf-parse.c: Likewise.
64891         * lib/unistdio/u32-snprintf.c: Likewise.
64892         * lib/unistdio/u32-sprintf.c: Likewise.
64893         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
64894         * lib/unistdio/u32-u32-asprintf.c: Likewise.
64895         * lib/unistdio/u32-u32-snprintf.c: Likewise.
64896         * lib/unistdio/u32-u32-sprintf.c: Likewise.
64897         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
64898         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
64899         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
64900         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
64901         * lib/unistdio/u32-vasnprintf.c: Likewise.
64902         * lib/unistdio/u32-vasprintf.c: Likewise.
64903         * lib/unistdio/u32-vsnprintf.c: Likewise.
64904         * lib/unistdio/u32-vsprintf.c: Likewise.
64905         * lib/unistdio/u8-asnprintf.c: Likewise.
64906         * lib/unistdio/u8-asprintf.c: Likewise.
64907         * lib/unistdio/u8-printf-parse.c: Likewise.
64908         * lib/unistdio/u8-snprintf.c: Likewise.
64909         * lib/unistdio/u8-sprintf.c: Likewise.
64910         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
64911         * lib/unistdio/u8-u8-asprintf.c: Likewise.
64912         * lib/unistdio/u8-u8-snprintf.c: Likewise.
64913         * lib/unistdio/u8-u8-sprintf.c: Likewise.
64914         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
64915         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
64916         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
64917         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
64918         * lib/unistdio/u8-vasnprintf.c: Likewise.
64919         * lib/unistdio/u8-vasprintf.c: Likewise.
64920         * lib/unistdio/u8-vsnprintf.c: Likewise.
64921         * lib/unistdio/u8-vsprintf.c: Likewise.
64922         * lib/unistdio/ulc-asnprintf.c: Likewise.
64923         * lib/unistdio/ulc-asprintf.c: Likewise.
64924         * lib/unistdio/ulc-printf-parse.c: Likewise.
64925         * lib/unistdio/ulc-snprintf.c: Likewise.
64926         * lib/unistdio/ulc-sprintf.c: Likewise.
64927         * lib/unistdio/ulc-vasnprintf.c: Likewise.
64928         * lib/unistdio/ulc-vasprintf.c: Likewise.
64929         * lib/unistdio/ulc-vsnprintf.c: Likewise.
64930         * lib/unistdio/ulc-vsprintf.c: Likewise.
64931         * lib/unistr.h: Likewise.
64932         * lib/unistr/u-cpy-alloc.h: Likewise.
64933         * lib/unistr/u-cpy.h: Likewise.
64934         * lib/unistr/u-endswith.h: Likewise.
64935         * lib/unistr/u-move.h: Likewise.
64936         * lib/unistr/u-set.h: Likewise.
64937         * lib/unistr/u-startswith.h: Likewise.
64938         * lib/unistr/u-stpcpy.h: Likewise.
64939         * lib/unistr/u-stpncpy.h: Likewise.
64940         * lib/unistr/u-strcat.h: Likewise.
64941         * lib/unistr/u-strcpy.h: Likewise.
64942         * lib/unistr/u-strcspn.h: Likewise.
64943         * lib/unistr/u-strdup.h: Likewise.
64944         * lib/unistr/u-strlen.h: Likewise.
64945         * lib/unistr/u-strncat.h: Likewise.
64946         * lib/unistr/u-strncpy.h: Likewise.
64947         * lib/unistr/u-strnlen.h: Likewise.
64948         * lib/unistr/u-strpbrk.h: Likewise.
64949         * lib/unistr/u-strspn.h: Likewise.
64950         * lib/unistr/u-strstr.h: Likewise.
64951         * lib/unistr/u-strtok.h: Likewise.
64952         * lib/unistr/u16-check.c: Likewise.
64953         * lib/unistr/u16-chr.c: Likewise.
64954         * lib/unistr/u16-cmp.c: Likewise.
64955         * lib/unistr/u16-cpy-alloc.c: Likewise.
64956         * lib/unistr/u16-cpy.c: Likewise.
64957         * lib/unistr/u16-endswith.c: Likewise.
64958         * lib/unistr/u16-mblen.c: Likewise.
64959         * lib/unistr/u16-mbsnlen.c: Likewise.
64960         * lib/unistr/u16-mbtouc-aux.c: Likewise.
64961         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
64962         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
64963         * lib/unistr/u16-mbtouc.c: Likewise.
64964         * lib/unistr/u16-mbtoucr.c: Likewise.
64965         * lib/unistr/u16-move.c: Likewise.
64966         * lib/unistr/u16-next.c: Likewise.
64967         * lib/unistr/u16-prev.c: Likewise.
64968         * lib/unistr/u16-set.c: Likewise.
64969         * lib/unistr/u16-startswith.c: Likewise.
64970         * lib/unistr/u16-stpcpy.c: Likewise.
64971         * lib/unistr/u16-stpncpy.c: Likewise.
64972         * lib/unistr/u16-strcat.c: Likewise.
64973         * lib/unistr/u16-strchr.c: Likewise.
64974         * lib/unistr/u16-strcmp.c: Likewise.
64975         * lib/unistr/u16-strcpy.c: Likewise.
64976         * lib/unistr/u16-strcspn.c: Likewise.
64977         * lib/unistr/u16-strdup.c: Likewise.
64978         * lib/unistr/u16-strlen.c: Likewise.
64979         * lib/unistr/u16-strmblen.c: Likewise.
64980         * lib/unistr/u16-strmbtouc.c: Likewise.
64981         * lib/unistr/u16-strncat.c: Likewise.
64982         * lib/unistr/u16-strncmp.c: Likewise.
64983         * lib/unistr/u16-strncpy.c: Likewise.
64984         * lib/unistr/u16-strnlen.c: Likewise.
64985         * lib/unistr/u16-strpbrk.c: Likewise.
64986         * lib/unistr/u16-strrchr.c: Likewise.
64987         * lib/unistr/u16-strspn.c: Likewise.
64988         * lib/unistr/u16-strstr.c: Likewise.
64989         * lib/unistr/u16-strtok.c: Likewise.
64990         * lib/unistr/u16-to-u32.c: Likewise.
64991         * lib/unistr/u16-to-u8.c: Likewise.
64992         * lib/unistr/u16-uctomb-aux.c: Likewise.
64993         * lib/unistr/u16-uctomb.c: Likewise.
64994         * lib/unistr/u32-check.c: Likewise.
64995         * lib/unistr/u32-chr.c: Likewise.
64996         * lib/unistr/u32-cmp.c: Likewise.
64997         * lib/unistr/u32-cpy-alloc.c: Likewise.
64998         * lib/unistr/u32-cpy.c: Likewise.
64999         * lib/unistr/u32-endswith.c: Likewise.
65000         * lib/unistr/u32-mblen.c: Likewise.
65001         * lib/unistr/u32-mbsnlen.c: Likewise.
65002         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
65003         * lib/unistr/u32-mbtouc.c: Likewise.
65004         * lib/unistr/u32-mbtoucr.c: Likewise.
65005         * lib/unistr/u32-move.c: Likewise.
65006         * lib/unistr/u32-next.c: Likewise.
65007         * lib/unistr/u32-prev.c: Likewise.
65008         * lib/unistr/u32-set.c: Likewise.
65009         * lib/unistr/u32-startswith.c: Likewise.
65010         * lib/unistr/u32-stpcpy.c: Likewise.
65011         * lib/unistr/u32-stpncpy.c: Likewise.
65012         * lib/unistr/u32-strcat.c: Likewise.
65013         * lib/unistr/u32-strchr.c: Likewise.
65014         * lib/unistr/u32-strcmp.c: Likewise.
65015         * lib/unistr/u32-strcpy.c: Likewise.
65016         * lib/unistr/u32-strcspn.c: Likewise.
65017         * lib/unistr/u32-strdup.c: Likewise.
65018         * lib/unistr/u32-strlen.c: Likewise.
65019         * lib/unistr/u32-strmblen.c: Likewise.
65020         * lib/unistr/u32-strmbtouc.c: Likewise.
65021         * lib/unistr/u32-strncat.c: Likewise.
65022         * lib/unistr/u32-strncmp.c: Likewise.
65023         * lib/unistr/u32-strncpy.c: Likewise.
65024         * lib/unistr/u32-strnlen.c: Likewise.
65025         * lib/unistr/u32-strpbrk.c: Likewise.
65026         * lib/unistr/u32-strrchr.c: Likewise.
65027         * lib/unistr/u32-strspn.c: Likewise.
65028         * lib/unistr/u32-strstr.c: Likewise.
65029         * lib/unistr/u32-strtok.c: Likewise.
65030         * lib/unistr/u32-to-u16.c: Likewise.
65031         * lib/unistr/u32-to-u8.c: Likewise.
65032         * lib/unistr/u32-uctomb.c: Likewise.
65033         * lib/unistr/u8-check.c: Likewise.
65034         * lib/unistr/u8-chr.c: Likewise.
65035         * lib/unistr/u8-cmp.c: Likewise.
65036         * lib/unistr/u8-cpy-alloc.c: Likewise.
65037         * lib/unistr/u8-cpy.c: Likewise.
65038         * lib/unistr/u8-endswith.c: Likewise.
65039         * lib/unistr/u8-mblen.c: Likewise.
65040         * lib/unistr/u8-mbsnlen.c: Likewise.
65041         * lib/unistr/u8-mbtouc-aux.c: Likewise.
65042         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
65043         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
65044         * lib/unistr/u8-mbtouc.c: Likewise.
65045         * lib/unistr/u8-mbtoucr.c: Likewise.
65046         * lib/unistr/u8-move.c: Likewise.
65047         * lib/unistr/u8-next.c: Likewise.
65048         * lib/unistr/u8-prev.c: Likewise.
65049         * lib/unistr/u8-set.c: Likewise.
65050         * lib/unistr/u8-startswith.c: Likewise.
65051         * lib/unistr/u8-stpcpy.c: Likewise.
65052         * lib/unistr/u8-stpncpy.c: Likewise.
65053         * lib/unistr/u8-strcat.c: Likewise.
65054         * lib/unistr/u8-strchr.c: Likewise.
65055         * lib/unistr/u8-strcmp.c: Likewise.
65056         * lib/unistr/u8-strcpy.c: Likewise.
65057         * lib/unistr/u8-strcspn.c: Likewise.
65058         * lib/unistr/u8-strdup.c: Likewise.
65059         * lib/unistr/u8-strlen.c: Likewise.
65060         * lib/unistr/u8-strmblen.c: Likewise.
65061         * lib/unistr/u8-strmbtouc.c: Likewise.
65062         * lib/unistr/u8-strncat.c: Likewise.
65063         * lib/unistr/u8-strncmp.c: Likewise.
65064         * lib/unistr/u8-strncpy.c: Likewise.
65065         * lib/unistr/u8-strnlen.c: Likewise.
65066         * lib/unistr/u8-strpbrk.c: Likewise.
65067         * lib/unistr/u8-strrchr.c: Likewise.
65068         * lib/unistr/u8-strspn.c: Likewise.
65069         * lib/unistr/u8-strstr.c: Likewise.
65070         * lib/unistr/u8-strtok.c: Likewise.
65071         * lib/unistr/u8-to-u16.c: Likewise.
65072         * lib/unistr/u8-to-u32.c: Likewise.
65073         * lib/unistr/u8-uctomb-aux.c: Likewise.
65074         * lib/unistr/u8-uctomb.c: Likewise.
65075         * lib/unitypes.h: Likewise.
65076         * lib/uniwidth.h: Likewise.
65077         * lib/uniwidth/cjk.h: Likewise.
65078         * lib/uniwidth/u16-strwidth.c: Likewise.
65079         * lib/uniwidth/u16-width.c: Likewise.
65080         * lib/uniwidth/u32-strwidth.c: Likewise.
65081         * lib/uniwidth/u32-width.c: Likewise.
65082         * lib/uniwidth/u8-strwidth.c: Likewise.
65083         * lib/uniwidth/u8-width.c: Likewise.
65084         * lib/uniwidth/width.c: Likewise.
65085
65086 2007-10-07  Bruno Haible  <bruno@clisp.org>
65087
65088         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
65089         The file is still under LGPL (see modules/inttypes).
65090
65091 2007-10-06  Bruno Haible  <bruno@clisp.org>
65092
65093         * modules/trunc (Dependencies): Add 'extensions'.
65094         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
65095         Reported by Ben Pfaff <blp@gnu.org>.
65096
65097 2007-10-06  Bruno Haible  <bruno@clisp.org>
65098
65099         * modules/freopen-tests: New file.
65100         * tests/test-freopen.c: New file.
65101
65102         * modules/fopen-tests: New file.
65103         * tests/test-fopen.c: New file.
65104
65105         * modules/fopen: New file.
65106         * lib/fopen.c: New file.
65107         * m4/fopen.m4: New file.
65108         * modules/freopen: New file.
65109         * lib/freopen.c: New file.
65110         * m4/freopen.m4: New file.
65111         * lib/stdio.in.h (fopen, freopen): New declarations.
65112         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
65113         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
65114         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
65115         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
65116         * doc/functions/fopen.texi: Mention the 'fopen' module.
65117         * doc/functions/freopen.texi: Mention the 'freopen' module.
65118
65119 2007-10-06  Bruno Haible  <bruno@clisp.org>
65120
65121         * modules/open-tests: New file.
65122         * tests/test-open.c: New file.
65123
65124         * modules/open: New file.
65125         * lib/open.c: New file.
65126         * m4/open.m4: New file.
65127         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
65128         lib/open.c does.
65129         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
65130         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
65131         macros.
65132         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
65133         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
65134         REPLACE_OPEN.
65135         * doc/functions/open.texi: Mention the 'open' module.
65136
65137 2007-10-04  Bruno Haible  <bruno@clisp.org>
65138
65139         * modules/ceill-tests: New file.
65140         * tests/test-ceill.c: New file.
65141
65142         * modules/ceill: New file.
65143         * lib/ceill.c: Replace entire file.
65144         * m4/ceill.m4: New file.
65145         * lib/math.in.h (ceill): Replace declaration.
65146         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
65147         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
65148         * doc/functions/ceill.texi: Mention the 'ceill' module.
65149         * modules/mathl (Files): Remove lib/ceill.c.
65150         (Depends-on): Add ceill.
65151
65152 2007-10-04  Bruno Haible  <bruno@clisp.org>
65153
65154         * modules/ceilf-tests: New file.
65155         * tests/test-ceilf.c: New file.
65156
65157         * modules/ceilf: New file.
65158         * lib/ceil.c: New file.
65159         * lib/ceilf.c: New file.
65160         * m4/ceilf.m4: New file.
65161         * lib/math.in.h (ceilf): New declaration.
65162         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
65163         HAVE_DECL_CEILF.
65164         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
65165         HAVE_DECL_CEILF.
65166         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
65167
65168 2007-10-04  Bruno Haible  <bruno@clisp.org>
65169
65170         * modules/floorl-tests: New file.
65171         * tests/test-floorl.c: New file.
65172
65173         * modules/floorl: New file.
65174         * lib/floorl.c: Replace entire file.
65175         * m4/floorl.m4: New file.
65176         * lib/math.in.h (floorl): Replace declaration.
65177         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
65178         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
65179         * doc/functions/floorl.texi: Mention the 'floorl' module.
65180         * modules/mathl (Files): Remove lib/floorl.c.
65181         (Depends-on): Add floorl.
65182
65183 2007-10-04  Bruno Haible  <bruno@clisp.org>
65184
65185         * modules/floorf-tests: New file.
65186         * tests/test-floorf.c: New file.
65187
65188         * modules/floorf: New file.
65189         * lib/floor.c: New file.
65190         * lib/floorf.c: New file.
65191         * m4/floorf.m4: New file.
65192         * lib/math.in.h (floorf): New declaration.
65193         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
65194         HAVE_DECL_FLOORF.
65195         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
65196         HAVE_DECL_FLOORF.
65197         * doc/functions/floorf.texi: Mention the 'floorf' module.
65198
65199 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
65200             Bruno Haible  <bruno@clisp.org>
65201
65202         Advertise for the Git server instead of the CVS server.
65203         * doc/gnulib-intro.texi (Steady Development): Mention the Git
65204         repository instead of the CVS one.
65205         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
65206         about all VCS systems generically.
65207         * doc/gnulib.texi (Introduction): Capitalize `Git'.
65208
65209 2007-10-04  Bruno Haible  <bruno@clisp.org>
65210
65211         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
65212         means.
65213         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
65214
65215 2007-10-04  Bruno Haible  <bruno@clisp.org>
65216
65217         * modules/truncl-tests: New file.
65218         * tests/test-truncl.c: New file.
65219
65220         * modules/truncl: New file.
65221         * lib/truncl.c: New file.
65222         * m4/truncl.m4: New file.
65223         * lib/math.in.h (truncl): New declaration.
65224         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
65225         HAVE_DECL_TRUNCL.
65226         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
65227         HAVE_DECL_TRUNCL.
65228         * doc/functions/truncl.texi: Mention the 'truncl' module.
65229
65230 2007-10-04  Bruno Haible  <bruno@clisp.org>
65231
65232         * modules/truncf-tests: New file.
65233         * tests/test-truncf.c: New file.
65234
65235         * modules/truncf: New file.
65236         * lib/trunc.c: Make paramerizable through USE_* macros.
65237         * lib/truncf.c: New file.
65238         * m4/truncf.m4: New file.
65239         * lib/math.in.h (truncf): New declaration.
65240         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
65241         HAVE_DECL_TRUNCF.
65242         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
65243         HAVE_DECL_TRUNCF.
65244         * doc/functions/truncf.texi: Mention the 'truncf' module.
65245
65246 2007-10-03  Bruno Haible  <bruno@clisp.org>
65247
65248         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
65249         augmentation also for tests modules.
65250         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
65251         * modules/atexit-tests (Makefile.am): Likewise.
65252         * modules/binary-io-tests (Makefile.am): Likewise.
65253         * modules/c-strcase-tests (Makefile.am): Likewise.
65254         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
65255         * modules/canonicalize-tests (Makefile.am): Likewise.
65256         * modules/closein-tests (Makefile.am): Likewise.
65257         * modules/fprintf-posix-tests (Makefile.am): Likewise.
65258         * modules/freadahead-tests (Makefile.am): Likewise.
65259         * modules/fseek-tests (Makefile.am): Likewise.
65260         * modules/fseeko-tests (Makefile.am): Likewise.
65261         * modules/ftell-tests (Makefile.am): Likewise.
65262         * modules/ftello-tests (Makefile.am): Likewise.
65263         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
65264         * modules/isnanl-tests (Makefile.am): Likewise.
65265         * modules/lseek-tests (Makefile.am): Likewise.
65266         * modules/mbscasecmp-tests (Makefile.am): Likewise.
65267         * modules/mbscasestr-tests (Makefile.am): Likewise.
65268         * modules/mbschr-tests (Makefile.am): Likewise.
65269         * modules/mbscspn-tests (Makefile.am): Likewise.
65270         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
65271         * modules/mbspbrk-tests (Makefile.am): Likewise.
65272         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
65273         * modules/mbsrchr-tests (Makefile.am): Likewise.
65274         * modules/mbsspn-tests (Makefile.am): Likewise.
65275         * modules/mbsstr-tests (Makefile.am): Likewise.
65276         * modules/printf-posix-tests (Makefile.am): Likewise.
65277         * modules/snprintf-posix-tests (Makefile.am): Likewise.
65278         * modules/sprintf-posix-tests (Makefile.am): Likewise.
65279         * modules/tsearch-tests (Makefile.am): Likewise.
65280         * modules/uniname/uniname-tests (Makefile.am): Likewise.
65281         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
65282         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
65283         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
65284         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
65285         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
65286         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
65287         * modules/vprintf-posix-tests (Makefile.am): Likewise.
65288         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
65289         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
65290         * modules/xstrtoimax-tests (Makefile.am): Likewise.
65291         * modules/xstrtol-tests (Makefile.am): Likewise.
65292         * modules/xstrtoumax-tests (Makefile.am): Likewise.
65293         * modules/yesno-tests (Makefile.am): Likewise.
65294
65295 2007-10-03  Bruno Haible  <bruno@clisp.org>
65296
65297         * modules/trunc-tests: New file.
65298         * tests/test-trunc.c: New file.
65299
65300         * modules/trunc: New file.
65301         * lib/trunc.c: New file.
65302         * m4/trunc.m4: New file.
65303         * lib/math.in.h (trunc): New declaration.
65304         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
65305         HAVE_DECL_TRUNC.
65306         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
65307         HAVE_DECL_TRUNC.
65308         * doc/functions/trunc.texi: Mention the 'trunc' module.
65309
65310 2007-10-03  Bruno Haible  <bruno@clisp.org>
65311
65312         * tests/test-fpending.c: New file, mostly copied
65313         from coreutils/lib/t-fpending.c.
65314         * modules/fpending-tests: New file.
65315
65316 2007-10-03  Bruno Haible  <bruno@clisp.org>
65317
65318         Port the stdio extensions to QNX (untested).
65319         * lib/fseterr.c (fseterr): Add support for QNX.
65320         * lib/fbufmode.c (fbufmode): Likewise.
65321         * lib/freadable.c (freadable): Likewise.
65322         * lib/fwritable.c (fwritable): Likewise.
65323         * lib/freading.c (freading): Likewise.
65324         * lib/fwriting.c (fwriting): Likewise.
65325         * lib/freadahead.c (freadahed): Likewise.
65326         * lib/fpurge.c (fpurge): Likewise.
65327         * lib/fseeko.c (rpl_fseeko): Likewise.
65328
65329 2007-10-03  Bruno Haible  <bruno@clisp.org>
65330             Jim Meyering  <jim@meyering.net>
65331             Eric Blake  <ebb9@byu.net>
65332
65333         * doc/relocatable.texi: Use @command instead of @program.
65334
65335 2007-10-02  Jim Meyering  <jim@meyering.net>
65336
65337         Perform one more "_.h" -> ".in.h" substitution.
65338         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
65339         instead of unistd_.h here, too.
65340
65341 2007-10-01  Bruno Haible  <bruno@clisp.org>
65342
65343         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
65344         Needed for the alloca-opt module.
65345
65346 2007-09-30  Bruno Haible  <bruno@clisp.org>
65347
65348         * lib/alloca.in.h: Renamed from lib/alloca_.h.
65349         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
65350         alloca_.h.
65351         * lib/argz.in.h: Renamed from lib/argz_.h.
65352         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
65353         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
65354         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
65355         byteswap_.h.
65356         * lib/dirent.in.h: Renamed from lib/dirent_.h.
65357         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
65358         dirent_.h.
65359         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
65360         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
65361         fcntl_.h.
65362         * lib/float.in.h: Renamed from lib/float_.h.
65363         * modules/float (Files, Makefile.am): Use float.in.h instead of
65364         float_.h.
65365         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
65366         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
65367         fnmatch_.h.
65368         * lib/getopt.in.h: Renamed from lib/getopt_.h.
65369         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
65370         getopt_.h.
65371         * lib/glob.in.h: Renamed from lib/glob_.h.
65372         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
65373         * lib/iconv.in.h: Renamed from lib/iconv_.h.
65374         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
65375         iconv_.h.
65376         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
65377         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
65378         inttypes_.h.
65379         * lib/locale.in.h: Renamed from lib/locale_.h.
65380         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
65381         locale_.h.
65382         * lib/math.in.h: Renamed from lib/math_.h.
65383         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
65384         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
65385         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
65386         of netinet_in_.h. Add dependency.
65387         * lib/poll.in.h: Renamed from lib/poll_.h.
65388         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
65389         * lib/search.in.h: Renamed from lib/search_.h.
65390         * modules/search (Files, Makefile.am): Use search.in.h instead of
65391         search_.h.
65392         * lib/signal.in.h: Renamed from lib/signal_.h.
65393         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
65394         _signal.h.
65395         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
65396         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
65397         stdbool_.h.
65398         * lib/stdint.in.h: Renamed from lib/stdint_.h.
65399         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
65400         stdint_.h.
65401         * lib/stdio.in.h: Renamed from lib/stdio_.h.
65402         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
65403         stdio_.h.
65404         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
65405         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
65406         stdlib_.h.
65407         * lib/string.in.h: Renamed from lib/string_.h.
65408         * modules/string (Files, Makefile.am): Use string.in.h instead of
65409         string_.h.
65410         * doc/gnulib-tool.texi (Initial import): Update.
65411         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
65412         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
65413         of sys_select_.h. Add dependency.
65414         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
65415         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
65416         of sys_socket_.h.
65417         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
65418         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
65419         sys_stat_.h.
65420         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
65421         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
65422         sys_time_.h.
65423         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
65424         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
65425         sysexits_.h.
65426         * lib/time.in.h: Renamed from lib/time_.h.
65427         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
65428         * lib/unistd.in.h: Renamed from lib/unistd_.h.
65429         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
65430         unistd_.h.
65431         * lib/wchar.in.h: Renamed from lib/wchar_.h.
65432         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
65433         wchar_.h.
65434         * lib/wctype.in.h: Renamed from lib/wctype_.h.
65435         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
65436         wctype_.h.
65437         * build-aux/bootstrap (slurp): Update.
65438         * lib/.cppi-disable: Update.
65439
65440 2007-09-30  Bruno Haible  <bruno@clisp.org>
65441
65442         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
65443         Needed on BeOS.
65444
65445 2007-09-30  Bruno Haible  <bruno@clisp.org>
65446
65447         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
65448
65449 2007-09-29  Bruno Haible  <bruno@clisp.org>
65450
65451         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
65452
65453 2007-09-29  Bruno Haible  <bruno@clisp.org>
65454
65455         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
65456         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
65457         * build-aux/install-reloc: Compile also areadlink.c.
65458         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
65459
65460 2007-09-29  Bruno Haible  <bruno@clisp.org>
65461
65462         * gnulib-tool (func_emit_initmacro_done): Indentation.
65463
65464 2007-09-29  Bruno Haible  <bruno@clisp.org>
65465
65466         * README: Add CVS checkout update instructions.
65467         Info from Bob Proulx <bob@proulx.com>.
65468
65469 2007-09-28  Eric Blake  <ebb9@byu.net>
65470
65471         Provide move-if-change.
65472         * build-aux/move-if-change: New file, based on best practice
65473         rather than any canonical upstream location.
65474
65475 2007-09-28  Jim Meyering  <jim@meyering.net>
65476
65477         Fix canonicalize loop-detection corner case.
65478         Do not attempt to stat the symlink values stored via seen_triple.
65479         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
65480         on linux-2.6.18, (but not 2.6.22).
65481         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
65482         triple_compare.  The former compares dev,ino,filename, while the latter
65483         would actually stat dirname(filename) when dev and ino were equal.
65484         * lib/hash-triple.c: Install <string.h>.
65485         (STREQ): Define.
65486         (triple_compare_ino_str): New function.
65487         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
65488
65489 2007-09-28  Eric Blake  <ebb9@byu.net>
65490
65491         Enforce that AC_REPLACE_FUNCS files exist.
65492         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
65493         override check for typos.
65494
65495         Fix test-closein on Solaris 10.
65496         * tests/test-closein.c (main): Don't assume stdin can be inherited
65497         closed on all systems.
65498         * tests/test-closein.sh: Likewise.
65499         Reported by Piotr Tarnowski.
65500
65501 2007-09-28  Jim Meyering  <jim@meyering.net>
65502
65503         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
65504
65505 2007-09-27  Jim Meyering  <jim@meyering.net>
65506
65507         canonicalize: Avoid a false-positive cycle failure.
65508         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
65509         Sort.  Remove cycle-check.
65510         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
65511         not cycle-check.h.
65512         (seen_triple): New function.
65513         (canonicalize_filename_mode): Use it instead of cycle-check.
65514         * tests/test-canonicalize.c: Add a test for this bug.
65515         * tests/test-canonicalize.sh: Set up and run the test.
65516
65517         New module, file-set, from coreutils.
65518         * modules/file-set: Define it.
65519         * lib/file-set.c, lib/file-set.h: Implement.
65520
65521         New module, hash-triple, from coreutils.
65522         * modules/hash-triple: Define it.
65523         * lib/hash-triple.c, lib/hash-triple.h: Implement.
65524
65525 2007-09-25  Eric Blake  <ebb9@byu.net>
65526
65527         Fix strerror on Interix.
65528         * lib/string_.h (strerror): Declare replacement.
65529         * doc/functions/strerror.texi (strerror): Document the Interix
65530         shortcoming.
65531         * modules/string (Makefile.am): Support new hooks.
65532         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
65533         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
65534         gl_FUNC_STRERROR_SEPARATE.
65535         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
65536         * lib/strerror.c (rpl_strerror): Provide replacement.
65537         * modules/strerror (Depends-on): Add string.
65538         (configure.ac): Detect use of module.
65539         * tests/test-strerror.c: New file.
65540         * modules/strerror-tests: New test module.
65541         * modules/argp (Depends-on): Add strerror.
65542         * modules/error (Depends-on): Likewise.
65543         Reported by Martin Koeppe.
65544
65545 2007-09-24  Bruno Haible  <bruno@clisp.org>
65546
65547         * README: Update git instructions.
65548
65549 2007-09-24  Eric Blake  <ebb9@byu.net>
65550
65551         Revert fpending breakage from 2007-09-08.
65552         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
65553         __fpending.c.
65554
65555 2007-09-24  Jim Meyering  <jim@meyering.net>
65556
65557         filenamecat.c: Add a test.
65558         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
65559         showing how the function works when DIR is the empty string.
65560
65561 2007-09-21  Simon Josefsson  <simon@josefsson.org>
65562
65563         * tests/test-canonicalize.sh: Turn on executable bit.
65564
65565 2007-09-19  Eric Blake  <ebb9@byu.net>
65566
65567         * README: Update CVS instructions.
65568
65569 2007-09-18  Bruno Haible  <bruno@clisp.org>
65570
65571         * modules/areadlink: New file.
65572         * lib/areadlink.h (areadlink): New declaration.
65573         * lib/areadlink.c: New file, based on lib/xreadlink.c.
65574
65575 2007-09-17  Jim Meyering  <jim@meyering.net>
65576
65577         * lib/savewd.c (ESTALE) [!defined]: Define.
65578         Reported to be required on Interix by Martin Koeppe.
65579
65580 2007-09-17  Bruno Haible  <bruno@clisp.org>
65581
65582         * gnulib-tool (func_version): Use $version.
65583
65584 2007-09-16  Bruno Haible  <bruno@clisp.org>
65585
65586         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
65587         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
65588         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
65589         Reported by Greg Schafer <gschafer@zip.com.au>.
65590
65591 2007-09-15  Bruno Haible  <bruno@clisp.org>
65592
65593         * gnulib-tool (sed): Try a little harder to make bash understand the
65594         alias.
65595         Reported by Bruce Korb <bruce.korb@gmail.com>.
65596
65597 2007-09-13  Eric Blake  <ebb9@byu.net>
65598
65599         * ChangeLog: Remove conflict markers.
65600
65601 2007-09-13  Simon Josefsson  <simon@josefsson.org>
65602
65603         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
65604         Reported by Bruno Haible <bruno@clisp.org>.
65605
65606 2007-09-12  Bruno Haible  <bruno@clisp.org>
65607
65608         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
65609         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
65610         is not defined.
65611
65612 2007-09-12  Eric Blake  <ebb9@byu.net>
65613
65614         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
65615         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
65616         Autoconf definition.
65617         * modules/euidaccess (Depends-on): Add extensions, for
65618         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
65619         * modules/fnmatch (Depends-on): Likewise.
65620         * modules/getaddrinfo (Depends-on): Likewise.
65621         * modules/getdelim (Depends-on): Likewise.
65622         * modules/getline (Depends-on): Likewise.
65623         * modules/getsubopt (Depends-on): Likewise.
65624         * modules/gettext (Depends-on): Likewise.
65625         * modules/group-member (Depends-on): Likewise.
65626         * modules/mbchar (Depends-on): Likewise.
65627         * modules/memmem (Depends-on): Likewise.
65628         * modules/mempcpy (Depends-on): Likewise.
65629         * modules/memrchr (Depends-on): Likewise.
65630         * modules/pagealign_alloc (Depends-on): Likewise.
65631         * modules/readutmp (Depends-on): Likewise.
65632         * modules/stpcpy (Depends-on): Likewise.
65633         * modules/stpncpy (Depends-on): Likewise.
65634         * modules/strchrnul (Depends-on): Likewise.
65635         * modules/strndup (Depends-on): Likewise.
65636         * modules/strsep (Depends-on): Likewise.
65637         * modules/strverscmp (Depends-on): Likewise.
65638         * modules/vasprintf (Depends-on): Likewise.
65639         * modules/wcwidth (Depends-on): Likewise.
65640         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
65641         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
65642         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
65643         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
65644         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
65645         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
65646         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
65647         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
65648         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
65649         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
65650         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
65651         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
65652         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
65653         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
65654         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
65655         * m4/readutmp.m4 (gl_READUTMP): Likewise.
65656         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
65657         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
65658         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
65659         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
65660         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
65661         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
65662         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
65663         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
65664         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
65665         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
65666         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
65667         so that lock.m4 can be used in gettext without extensions module.
65668
65669 2007-09-11  Bruno Haible  <bruno@clisp.org>
65670
65671         * m4/isc-posix.m4: Remove file.
65672         Suggested by Eric Blake.
65673
65674 2007-09-11  Eric Blake  <ebb9@byu.net>
65675
65676         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
65677
65678 2007-09-10  Bruno Haible  <bruno@clisp.org>
65679
65680         * posix-modules: Fix typo in error message.
65681         Reported by Matt <mkraai@beckman.com>.
65682
65683 2007-09-09  Bruno Haible  <bruno@clisp.org>
65684
65685         * doc/functions/getdelim.texi: Update list of platforms lacking the
65686         function.
65687         * doc/functions/getline.texi: Likewise.
65688
65689 2007-09-09  Jim Meyering  <jim@meyering.net>
65690
65691         * lib/hash.c (hash_initialize): Detect calloc failure.
65692         Reported by Bruno Haible.
65693
65694 2007-09-09  Bruno Haible  <bruno@clisp.org>
65695
65696         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
65697         malloc or realloc fails.
65698
65699 2007-09-09  Bruno Haible  <bruno@clisp.org>
65700
65701         * modules/getcwd (Depends-on): Add malloc-posix.
65702         * modules/glob (Depends-on): Likewise.
65703         * modules/putenv (Depends-on): Likewise.
65704         * modules/strdup (Depends-on): Likewise.
65705         * modules/getdelim (Depends-on): Add realloc-posix.
65706         * modules/read-file (Depends-on): Likewise.
65707
65708 2007-09-09  Bruno Haible  <bruno@clisp.org>
65709
65710         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
65711         (gl_FUNC_MALLOC_POSIX): Require it.
65712         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
65713         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
65714         * modules/realloc (Files): Add m4/malloc.m4.
65715         * modules/calloc (Files): Likewise.
65716
65717 2007-09-09  Bruno Haible  <bruno@clisp.org>
65718
65719         * modules/malloc-posix: New file.
65720         * modules/malloc (Depends-on): Add malloc-posix.
65721         * lib/malloc.c: Include errno.h.
65722         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
65723         and a POSIX-compatible malloc into a single function. Set ENOMEM
65724         when returning NULL.
65725         * m4/malloc.m4: New file.
65726         * doc/functions/malloc.texi: Mention the malloc-posix module.
65727         * lib/stdlib_.h (malloc): New declaration.
65728         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65729         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
65730         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
65731         and HAVE_MALLOC_POSIX.
65732
65733 2007-09-09  Bruno Haible  <bruno@clisp.org>
65734
65735         * modules/realloc-posix: New file.
65736         * modules/realloc (Depends-on): Add realloc-posix.
65737         * lib/realloc.c: Include errno.h.
65738         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
65739         and a POSIX-compatible realloc into a single function. Set ENOMEM
65740         when returning NULL.
65741         * m4/realloc.m4: New file.
65742         * doc/functions/realloc.texi: Mention the realloc-posix module.
65743         * lib/stdlib_.h (realloc): New declaration.
65744         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65745         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
65746         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
65747         and HAVE_REALLOC_POSIX.
65748
65749 2007-09-09  Bruno Haible  <bruno@clisp.org>
65750
65751         * modules/calloc-posix: New file.
65752         * modules/calloc (Depends-on): Add calloc-posix.
65753         * lib/calloc.c: Include errno.h.
65754         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
65755         and a POSIX-compatible calloc into a single function. Set ENOMEM
65756         when returning NULL.
65757         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
65758         * doc/functions/calloc.texi: Mention the calloc-posix module.
65759         * lib/stdlib_.h (calloc): New declaration.
65760         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
65761         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
65762         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
65763         and HAVE_CALLOC_POSIX.
65764
65765 2007-09-09  Bruno Haible  <bruno@clisp.org>
65766
65767         Allow for modules to show an arbitrary notice.
65768         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
65769         * gnulib-tool: New option --extract-notice.
65770         (func_usage): Document it.
65771         (sed_extract_prog): Update.
65772         (func_get_notice): New function.
65773         (func_modules_notice): New function.
65774         (func_import, func_create_testdir): Invoke it.
65775         Suggested by Jim Meyering.
65776
65777 2007-09-09  Bruno Haible  <bruno@clisp.org>
65778
65779         * gnulib-tool: New options --verbose, --quiet.
65780         (func_usage): Document them.
65781         (verbose): New variable.
65782         (func_execute_command): New function.
65783         (func_import): Don't show the module list and the file list if
65784         $verbose < 0.
65785         (func_create_testdir): Likewise. Use func_execute_command.
65786         (func_create_megatestdir): Use func_execute_command.
65787
65788 2007-09-08  Bruno Haible  <bruno@clisp.org>
65789
65790         * gnulib-tool (func_import): Prefer rsync over wget when available,
65791         for fetching the PO files.
65792
65793 2007-09-08  Bruno Haible  <bruno@clisp.org>
65794
65795         * posix-modules: New file. Portions copied from gnulib-tool.
65796         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
65797
65798 2007-09-08  Jim Meyering  <jim@meyering.net>
65799
65800         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
65801         * lib/fpending.h: Rename from __fpending.h.
65802         * lib/fpending.c: Rename from __fpending.c.
65803         Include "fpending.h", not "__fpending.h".
65804         * lib/__fpending.h, lib/__fpending.c: Remove files.
65805         * modules/fpending (Files): Reflect new file names.
65806         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
65807
65808 2007-09-08  Bruno Haible  <bruno@clisp.org>
65809
65810         * m4/inttypes-h.m4: Remove stub file.
65811
65812 2007-09-07  Simon Josefsson  <simon@josefsson.org>
65813
65814         * doc/headers/stdint.texi: Discuss #include_next issue.
65815
65816 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
65817
65818         * build-aux/bootstrap: Remove obsolete comment about wget --help.
65819
65820 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65821
65822         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
65823         in variable name.
65824
65825 2007-09-03  Jim Meyering  <jim@meyering.net>
65826
65827         New module: git-version-gen.
65828         * modules/git-version-gen: New file.
65829
65830         Import changes from coreutils for bootstrap script.
65831
65832         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
65833
65834         bootstrap: uses rsync to download the .po files
65835         * build-aux/bootstrap (po_download_command_format): New global.
65836         (download_po_files): Use rsync.
65837         (update_po_files): Don't remove .po files after download,
65838         so future rsync runs can take advantage of the copies.
65839
65840         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
65841
65842         Solve the unnecessary-.po-file-regeneration problem once and for all.
65843         * build-aux/bootstrap (download_po_files): New function, renamed from
65844         get_translations.  Now, downloads, but doesn't update LINGUAS.
65845         (update_po_files): New function.
65846
65847         bootstrap: Ignore more.
65848         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
65849         uniwidth to e.g., lib/.gitignore.
65850         (slurp): Handle the sys_stat_.h -> sys mapping, too.
65851
65852         * build-aux/bootstrap: New setting: vc_ignore.
65853         (insert_sorted_if_absent): Create $file if absent.
65854         Adapt to new, possibly empty, list: $vc_ignore.
65855
65856         bootstrap: generate more ignorable names
65857         * build-aux/bootstrap (slurp): When generating ignorable names,
65858         also map .sin to .sed, .gperf to .c, and .y to .c.
65859
65860 2007-09-03  Jim Meyering  <jim@meyering.net>
65861
65862         * build-aux/git-version-gen: New file, from coreutils.  For details, see
65863         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
65864
65865 2007-09-02  Bruno Haible  <bruno@clisp.org>
65866
65867         Fix mis-recognition of 'mcs' on QNX 6.
65868         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
65869         output contains the string "Mono".
65870         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
65871         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
65872
65873 2007-09-01  Bruno Haible  <bruno@clisp.org>
65874
65875         Fix collision between uniwidth/* and linebreak modules.
65876         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
65877         u32_width): Remove declarations.
65878         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
65879         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
65880         streq3, streq2, streq1, streq0): Remove functions.
65881         (STREQ): Remove macro.
65882         (is_cjk_encoding): Remove function.
65883         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
65884         (uc_width, u8_width, u16_width, u32_width): Remove functions.
65885         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
65886         * NEWS: Document the change.
65887
65888 2007-09-01  Bruno Haible  <bruno@clisp.org>
65889
65890         * lib/streq.h: Add double-inclusion guard.
65891
65892 2007-09-01  Karl Berry  <karl@gnu.org>
65893
65894         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
65895
65896 2007-08-28  Jim Meyering  <jim@meyering.net>
65897
65898         Rename mreadlink_with_size to areadlink_with_size.
65899         * NEWS: Document the change.
65900         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
65901         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
65902         * lib/mreadlink.h: Rename this to...
65903         * lib/areadlink.h: ...this.
65904         * modules/mreadlink-with-size: Rename this to...
65905         * modules/areadlink-with-size: ...this.
65906         * lib/canonicalize.c: Reflect the renaming.
65907         * modules/canonicalize: Likewise.
65908
65909 2007-08-26  Bruno Haible  <bruno@clisp.org>
65910
65911         * gnulib-tool (func_import): When deciding which files to remove,
65912         consider also dangling symbolic links.
65913         Reported by Eric Blake.
65914
65915 2007-08-26  Bruno Haible  <bruno@clisp.org>
65916
65917         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
65918
65919 2007-08-23  Simon Josefsson  <simon@josefsson.org>
65920
65921         * lib/readline.c: Don't include getline.h, the prototype is now
65922         found in stdio.h.
65923
65924 2007-08-23  Jim Meyering  <jim@meyering.net>
65925
65926         Getdelim touchup.
65927         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
65928         around the funlockfile call, since funlockfile never sets errno.
65929         Don't set errno upon failed realloc.
65930
65931 2007-08-22  Eric Blake  <ebb9@byu.net>
65932
65933         Getline touchups.
65934         * lib/getdelim.c (getdelim): Revert regression that required *n to
65935         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
65936         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
65937         getdelim, rather than whether implementation is missing.
65938         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
65939         * lib/stdio_.h (getline): Also declare if replacement is
65940         required.
65941         * doc/functions/getdelim.texi: New file.
65942         * doc/functions/getline.texi: Likewise.
65943         * doc/gnulib.texi (Function Substitutes): Add new files.
65944         Reported by Bruno Haible.
65945
65946 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
65947
65948         * users.txt: Add Guile.
65949
65950 2007-08-22  Eric Blake  <ebb9@byu.net>
65951
65952         * tests/test-getdelim.c (main): Use remove, not unlink.
65953         * tests/test-getline.c (main): Likewise.
65954
65955         Move getline and getdelim into stdio.h, per POSIX 200x.
65956         * modules/getline (Files): Remove getline.h.
65957         (Depends-on): Add stdio.
65958         (configure.ac): Add module indicator.
65959         * modules/getdelim (Files): Remove getdelim.h.
65960         (Depends-on): Add stdio.
65961         (configure.ac): Add module indicator.
65962         * modules/stdio (Makefile.am): Work with new indicators.
65963         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
65964         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
65965         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
65966         * lib/getdelim.h: Delete.
65967         * lib/getline.h: Delete.
65968         * lib/stdio_.h (getdelim, getline): Declare.
65969         * modules/getdelim-tests: New module.
65970         * modules/getline-tests: Likewise.
65971         * tests/test-getdelim.c: New file.
65972         * tests/test-getline.c: Likewise.
65973         * NEWS: Document the change.
65974         * lib/getline.c: Update choice of header.
65975         * lib/csharpcomp.c: Likewise.
65976         * lib/getpass.c: Likewise.
65977         * lib/javacomp.c: Likewise.
65978         * lib/javaversion.c: Likewise.
65979         * lib/yesno.c: Likewise.
65980         * lib/getdelim.c: Likewise.
65981         (getdelim): Set errno on failure, and avoid memory leak.
65982
65983 2007-08-19  Bruno Haible  <bruno@clisp.org>
65984
65985         * modules/closein (Depends-on): Add freadahead.
65986         * lib/closein.c: Include freadahead.h.
65987         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
65988         is zero.
65989
65990 2007-08-19  Bruno Haible  <bruno@clisp.org>
65991
65992         * modules/freadahead-tests: New file.
65993         * tests/test-freadahead.sh: New file.
65994         * tests/test-freadahead.c: New file.
65995
65996         * modules/freadahead: New file.
65997         * lib/freadahead.h: New file.
65998         * lib/freadahead.c: New file.
65999         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
66000         fbufmode, fpurge, freadable, fwritable.
66001
66002 2007-08-19  Eric Blake  <ebb9@byu.net>
66003
66004         Test yesno in combination with closein.
66005         * lib/yesno.c (yesno): Document use of stdin.
66006         * modules/yesno-tests (Files): New module.
66007         * tests/test-yesno.c (main): New file.
66008         * tests/test-yesno.sh: Likewise.
66009
66010 2007-08-19  Bruno Haible  <bruno@clisp.org>
66011
66012         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
66013         * lib/fseeko.c (rpl_fseeko): Likewise.
66014         * lib/fseterr.c (fseterr): Likewise.
66015
66016 2007-08-19  Bruno Haible  <bruno@clisp.org>
66017
66018         * tests/test-lseek.c (main): Disable a test for BeOS.
66019         * doc/functions/lseek.texi: Document the BeOS bug.
66020
66021 2007-08-19  Bruno Haible  <bruno@clisp.org>
66022             Eric Blake  <ebb9@byu.net>
66023
66024         * lib/lseek.c: Include <sys/stat.h>.
66025         (rpl_lseek): Add workaround code also for Unix platforms.
66026         Needed for BeOS.
66027         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
66028         * doc/functions/lseek.texi: Document BeOS definiency.
66029
66030 2007-08-18  Bruno Haible  <bruno@clisp.org>
66031
66032         * modules/fstrcmp-tests: New file.
66033         * tests/test-fstrcmp.c: New file.
66034
66035 2007-08-18  Bruno Haible  <bruno@clisp.org>
66036
66037         * modules/fstrcmp: New file, from GNU gettext with modifications.
66038         * lib/fstrcmp.h: New file, from GNU gettext.
66039         * lib/fstrcmp.c: New file, from GNU gettext.
66040         * MODULES.html.sh (String handling): Add fstrcmp.
66041
66042 2007-08-18  Bruno Haible  <bruno@clisp.org>
66043
66044         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
66045         'bool'.
66046         (diag, compareseq): Remove const from the ctxt argument.
66047         (USE_HEURISTIC): Undefine at the end.
66048
66049 2007-08-18  Jim Meyering  <jim@meyering.net>
66050
66051         New file: lib/idcache.h
66052         * NEWS: Mention the addition.
66053         * modules/idcache (Files): Add lib/idcache.h
66054         * lib/idcache.c: Include "idcache.h".
66055         Don't include <sys/types.h>.
66056         Add a FIXME comment.
66057         Move file-scoped "static" declarations to the top.
66058         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
66059
66060 2007-08-17  Bruno Haible  <bruno@clisp.org>
66061         and Paul Eggert  <eggert@cs.ucla.edu>
66062
66063         * MODULES.html.sh: Add diffseq.
66064         * modules/diffseq: New file.
66065         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
66066         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
66067
66068 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
66069
66070         Import changes from coreutils for bootstrap script.
66071
66072         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
66073
66074         * build-aux/bootstrap (slurp): Work even in environments where
66075         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
66076         current code does not slurp files whose names start with ".", and
66077         this looks like it might be a troublesome area.
66078
66079         2007-07-11  Jim Meyering  <jim@meyering.net>
66080
66081         If there's a GPL vN copyright comment, require that N == 3.
66082
66083         2007-07-08  Jim Meyering  <jim@meyering.net>
66084
66085         Run the coreutils-specific code only if tests/Makefile.am.in exists.
66086         * build-aux/bootstrap (mam_template): Move definition out of loop.
66087
66088         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
66089
66090         * build-aux/bootstrap (symlink_to_dir): Rename function from
66091         symlink_to_gnulib.  Add a directory parameter.  Update all
66092         callers.
66093         (cp_mark_as_generated): Also check for -- and link to -- files in
66094         gl/.
66095
66096         2007-07-08  Jim Meyering  <jim@meyering.net>
66097
66098         Adapt to deeper hierarchy in gnulib.
66099         * build-aux/bootstrap (symlink_to_dir): If the destination
66100         directory doesn't exist, create it. This is required at least for
66101         "lib/uniwidth/cjk.h".
66102
66103         2007-05-15  Jim Meyering  <jim@meyering.net>
66104
66105         * build-aux/bootstrap: Now that generated Makefile.am files
66106         are no longer under version control, they must be created at
66107         bootstrap time.
66108
66109 2007-08-14  Ben Pfaff  <blp@gnu.org>
66110
66111         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
66112
66113 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
66114
66115         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
66116         given the changes below.
66117         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
66118         even on hosts that have padding bits beyond the supported 64.
66119
66120 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66121
66122         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
66123         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
66124         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
66125         depends on it.
66126         (xstrtol_error): Remove.
66127         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
66128         but with a different signature.
66129         (ATTRIBUTE_NORETURN, __attribute__): New macros.
66130         * lib/xstrtol-error.c: Include exitfail.h.
66131         (xstrtol_fatal): New function, with a different signature from the
66132         old xstrtol_error, so that the caller need not worry about passing
66133         in an exit status, or about storage management of the option argument.
66134         (xstrtol_error): Now a static function.  Redo signature to
66135         implement xstrtol_fatal.  Output the correct number of hyphens in
66136         front of the option so that the caller need not worry about
66137         storage management.
66138         (N_): New macro.
66139         (_): Remove; not used now.
66140         * modules/xstrtol: Depend on getopt.
66141         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
66142         of old STRTOL_FATAL_ERROR macro.
66143         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
66144         of test program.
66145         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
66146         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
66147
66148 2007-08-08  Eric Blake  <ebb9@byu.net>
66149
66150         * lib/xstrtol-error.c: Add missing include.
66151
66152         Move xstrtol messages into gnulib domain, when --pobase is used.
66153         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
66154         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
66155         * modules/xstrtol (Files): Distribute new file.
66156         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
66157         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
66158         * tests/test-xstrtol.c: ...into new file.
66159         * tests/test-xstrtoul.c: Also test xstrtoul.
66160         * tests/test-xstrtoimax.c: Also test xstrtoimax.
66161         * tests/test-xstrtoumax.c: Also test xstrtoumax.
66162         * tests/test-xstrtol.sh: Drive the tests.
66163         * tests/test-xstrtoimax.sh: Likewise.
66164         * tests/test-xstrtoumax.sh: Likewise.
66165         * modules/xstrtol-tests: New module.
66166         * modules/xstrtoimax-tests: Likewise.
66167         * modules/xstrtoumax-tests: Likewise.
66168
66169 2007-08-08  Jim Meyering  <jim@meyering.net>
66170
66171         New function: mfile_name_concat.
66172         * lib/filenamecat.c (mfile_name_concat): New function, just like
66173         file_name_concat, but return NULL upon failure rather than exiting
66174         with a diagnostic.
66175         * lib/filenamecat.h: Declare it.
66176
66177 2007-08-07  Bruno Haible  <bruno@clisp.org>
66178
66179         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
66180         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
66181         warning from gcc.
66182         Reported by Eric Blake.
66183
66184 2007-08-07  Simon Josefsson  <simon@josefsson.org>
66185
66186         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
66187         * modules/crypto/arcfour (License): Likewise.
66188         * modules/crypto/des-tests (License): Likewise.
66189         * modules/crypto/gc-arctwo-tests (License): Likewise.
66190         * modules/crypto/gc-des-tests (License): Likewise.
66191         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
66192         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
66193         * modules/crypto/gc-md2-tests (License): Likewise.
66194         * modules/crypto/gc-md4-tests (License): Likewise.
66195         * modules/crypto/gc-md5-tests (License): Likewise.
66196         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
66197         * modules/crypto/gc-rijndael-tests (License): Likewise.
66198         * modules/crypto/gc-sha1-tests (License): Likewise.
66199         * modules/crypto/gc-tests (License): Likewise.
66200         * modules/crypto/hmac-md5 (License): Likewise.
66201         * modules/crypto/hmac-sha1 (License): Likewise.
66202         * modules/crypto/md2-tests (License): Likewise.
66203         * modules/crypto/md4-tests (License): Likewise.
66204         * modules/crypto/md5 (License): Likewise.
66205         * modules/crypto/rijndael (License): Likewise.
66206         * modules/crypto/sha1 (License): Likewise.
66207         * modules/memxor (License): Likewise.
66208
66209 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
66210         and Bruno Haible  <bruno@clisp.org>
66211
66212         * NEWS: Describe interface changes to human, xstrtol.
66213         * lib/human.h: Include <xstrtol.h>.
66214         (human_options): Return enum strtol_error, not int.  Remove
66215         bool arg; take int * instead.
66216         * lib/human.c: Don't include "gettext.h".
66217         (_): Remove; no longer used.
66218         Don't include <xstrtol.h>, since human.h does it.
66219         (human_options): Adjust to abovementioned interface changes.
66220         Do not report error to stderr; that's now the caller's
66221         responsibility.
66222         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
66223         interface change.
66224         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
66225         Str, Argument_type_string.  All uses changed.  Put " argument"
66226         in diagnostics to make them clearer.  Change wording of suffix
66227         message for clarity.
66228         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
66229         Argument_type_string.
66230         (STRTOL_FATAL_WARN): Remove; no longer used.
66231         * modules/human (Depends-on): Remove gettext-h.
66232
66233 2007-08-06  Simon Josefsson  <simon@josefsson.org>
66234
66235         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
66236
66237 2007-07-31  Bruno Haible  <bruno@clisp.org>
66238
66239         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
66240         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
66241         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
66242
66243 2007-07-31  Bruno Haible  <bruno@clisp.org>
66244
66245         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
66246         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
66247
66248 2007-07-30  Bruno Haible  <bruno@clisp.org>
66249
66250         * modules/base64 (License): Use the synonymous term "LGPLv2+".
66251         * modules/c-ctype (License): Likewise.
66252         * modules/c-strcase (License): Likewise.
66253         * modules/check-version (License): Likewise.
66254         * modules/iconv (License): Likewise.
66255         * modules/iconv_open (License): Likewise.
66256         * modules/read-file (License): Likewise.
66257         * modules/striconv (License): Likewise.
66258         * modules/strverscmp (License): Likewise.
66259         * modules/vasprintf (License): Likewise.
66260         * modules/crypto/des (License): Likewise.
66261         * modules/crypto/gc (License): Likewise.
66262         * modules/crypto/gc-arcfour (License): Likewise.
66263         * modules/crypto/gc-arctwo (License): Likewise.
66264         * modules/crypto/gc-des (License): Likewise.
66265         * modules/crypto/gc-hmac-md5 (License): Likewise.
66266         * modules/crypto/gc-hmac-sha1 (License): Likewise.
66267         * modules/crypto/gc-md2 (License): Likewise.
66268         * modules/crypto/gc-md4 (License): Likewise.
66269         * modules/crypto/gc-md5 (License): Likewise.
66270         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
66271         * modules/crypto/gc-random (License): Likewise.
66272         * modules/crypto/gc-rijndael (License): Likewise.
66273         * modules/crypto/gc-sha1 (License): Likewise.
66274         * modules/crypto/md2 (License): Likewise.
66275         * modules/crypto/md4 (License): Likewise.
66276
66277 2007-07-30  Jim Meyering  <jim@meyering.net>
66278
66279         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
66280         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
66281         it has valid stat data.  This bug would cause du not to count the
66282         sizes of inaccessible directories.
66283         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
66284         in <http://bugzilla.redhat.com/250077>.
66285
66286 2007-07-25  Peter O'Gorman  <peter@pogma.com>
66287             Bruno Haible  <bruno@clisp.org>
66288
66289         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
66290         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
66291         #include_next, gives a diagnostic about it, but reports no error in
66292         the exit code.
66293         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
66294
66295 2007-07-24  Ben Pfaff  <blp@gnu.org>
66296
66297         Improve name: "count-one-bits" is better than "popcount".
66298         * MODULES.html.sh: Update name.
66299         * lib/popcount.h: Renamed lib/count-one-bits.h.
66300         (popcount): Renamed count_one_bits.
66301         (popcountl): Renamed count_one_bits_l.
66302         (popcountll): Renamed count_one_bits_ll.
66303         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
66304         * modules/popcount: Renamed module/count-one-bits.
66305         * modules/popcount-tests: Renamed module/count-one-bits-tests.
66306         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
66307
66308 2007-07-23  Ben Pfaff  <blp@gnu.org>
66309
66310         * lib/popcount.h (popcount32): Reduce size of constants, to allow
66311         better code generation, and add U to large constants to avoid
66312         warnings, in non-GCC case.
66313         Suggested by Bruno Haible.
66314
66315 2007-07-23  Ben Pfaff  <blp@gnu.org>
66316
66317         * lib/popcount.h: Use verify_true instead of if...abort.
66318         * modules/popcount: Depend on verify module.
66319         Suggested by Jim Meyering.
66320
66321 2007-07-23  Bruno Haible  <bruno@clisp.org>
66322
66323         * gnulib-tool (func_import): Create a .cvsignore file also when the
66324         directory is not yet in CVS but the toplevel directory is. When
66325         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
66326         Reported by Karl Berry.
66327
66328 2007-07-22  Ben Pfaff  <blp@gnu.org>
66329
66330         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
66331         case.
66332         Suggested by Eric Blake.
66333
66334 2007-07-22  Ben Pfaff  <blp@gnu.org>
66335
66336         New module: popcount.
66337         * MODULES.html.sh: Add popcount.
66338         * modules/popcount: New file.
66339         * modules/popcount-tests: New file.
66340         * tests/test-popcount.c: New file.
66341         * lib/popcount.h: New file.
66342         * m4/popcount.m4: New file.
66343
66344 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
66345
66346         * build-aux/announce-gen: Update to GPLv3.
66347
66348         * build-aux/config.guess: Update from config.
66349
66350 2007-07-21  Bruno Haible  <bruno@clisp.org>
66351
66352         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
66353         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
66354
66355 2007-07-20  Jim Meyering  <jim@meyering.net>
66356
66357         * check-module: Diagnose a self-dependency.
66358
66359 2007-07-19  Bruno Haible  <bruno@clisp.org>
66360
66361         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
66362         empty.
66363         Reported by Eric Blake.
66364
66365 2007-07-18  Bruno Haible  <bruno@clisp.org>
66366
66367         * gnulib-tool: New options --po-base, --po-domain.
66368         (func_usage): Document them.
66369         (pobase, po_domain): New variables.
66370         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
66371         DEFAULT_TEXT_DOMAIN.
66372         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
66373         (func_import): Consider pobase and po_domain. Create a po/ directory.
66374         (func_create_testdir): Set pobase and po_domain to empty.
66375         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
66376         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
66377
66378 2007-07-18  Bruno Haible  <bruno@clisp.org>
66379
66380         * gnulib-tool (func_get_automake_snippet): Synthesize also an
66381         EXTRA_DIST augmentation for files in build-aux/.
66382
66383 2007-07-16  Bruno Haible  <bruno@clisp.org>
66384
66385         * modules/lseek (License): Use the synonymous term "LGPLv2+".
66386         * modules/getdelim (License): Likewise.
66387
66388 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66389
66390         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
66391         * modules/d-type (License): Likewise.
66392         * modules/extensions (License): Likewise.
66393         * modules/fnmatch (License): Likewise.
66394         * modules/fseeko (License): Likewise.
66395         * modules/getaddrinfo (License): Likewise.
66396         * modules/getline (License): Likewise.
66397         * modules/getlogin_r (License): Likewise.
66398         * modules/getpass (License): Likewise.
66399         * modules/gettimeofday (License): Likewise.
66400         * modules/glob (License): Likewise.
66401         * modules/inet_ntop (License): Likewise.
66402         * modules/malloc (License): Likewise.
66403         * modules/malloca (License): Likewise.
66404         * modules/memmem (License): Likewise.
66405         * modules/mempcpy (License): Likewise.
66406         * modules/memset (License): Likewise.
66407         * modules/minmax (License): Likewise.
66408         * modules/mktime (License): Likewise.
66409         * modules/netinet_in (License): Likewise.
66410         * modules/pathmax (License): Likewise.
66411         * modules/poll (License): Likewise.
66412         * modules/regex (License): Likewise.
66413         * modules/snprintf (License): Likewise.
66414         * modules/stdbool (License): Likewise.
66415         * modules/stdint (License): Likewise.
66416         * modules/stdio (License): Likewise.
66417         * modules/strcase (License): Likewise.
66418         * modules/strcasestr (License): Likewise.
66419         * modules/strdup (License): Likewise.
66420         * modules/string (License): Likewise.
66421         * modules/strndup (License): Likewise.
66422         * modules/strnlen (License): Likewise.
66423         * modules/strpbrk (License): Likewise.
66424         * modules/strptime (License): Likewise.
66425         * modules/strsep (License): Likewise.
66426         * modules/sys_select (License): Likewise.
66427         * modules/sys_socket (License): Likewise.
66428         * modules/sys_stat (License): Likewise.
66429         * modules/sys_time (License): Likewise.
66430         * modules/time (License): Likewise.
66431         * modules/time_r (License): Likewise.
66432         * modules/timegm (License): Likewise.
66433         * modules/unistd (License): Likewise.
66434         * modules/vsnprintf (License): Likewise.
66435         * modules/wctype (License): Likewise.
66436
66437 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66438
66439         * modules/argz (License): LGPLv2+.
66440
66441 2007-07-15  Karl Berry  <karl@gnu.org>
66442
66443         * doc/gnulib.texi: revise node structure per new fdl.texi.
66444
66445 2007-07-14  Bruno Haible  <bruno@clisp.org>
66446
66447         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
66448         the output file.
66449         * lib/uniname/uninames.h: Regenerated.
66450
66451 2007-07-14  Karl Berry  <karl@gnu.org>
66452
66453         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
66454         omitting sectioning and index commands.
66455
66456 2007-07-13  Bruno Haible  <bruno@clisp.org>
66457
66458         New gnulib-tool option --more-symlinks.
66459         * gnulib-tool (func_usage): Document --more-symlinks.
66460         (do_copyrights): New variable.
66461         Recognize option --more-symlinks.
66462         (func_import): Don't add a copyright notice transform to
66463         sed_transform_lib_file if do_copyrights is empty.
66464
66465 2007-07-13  Bruno Haible  <bruno@clisp.org>
66466
66467         * lib/vasnprintf.c (decimal_point_char): Define also if
66468         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
66469         && !NEED_PRINTF_DIRECTIVE_A.
66470         Reported by Clemens Koller <clemens.koller@anagramm.de> via
66471         Gary V. Vaughan <gary@gnu.org>.
66472
66473 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
66474
66475         * lib/inttypes_.h: Undo previous change, since it was fixed
66476         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
66477
66478 2007-07-13  Bruno Haible  <bruno@clisp.org>
66479
66480         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
66481         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
66482
66483 2007-07-13  Jim Meyering  <jim@meyering.net>
66484
66485         df: Don't fail for Tru64's "file-on-file mount".
66486         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
66487         so we fall through and use statfs instead.  Details here:
66488         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
66489         Reported by Albert Chin.
66490
66491 2007-07-13  Bruno Haible  <bruno@clisp.org>
66492
66493         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
66494         * modules/configmake (License): Likewise.
66495         * modules/gettext (License): Likewise.
66496         * modules/gettext-h (License): Likewise.
66497         * modules/include_next (License): Likewise.
66498         * modules/link-warning (License): Likewise.
66499         * modules/localcharset (License): Likewise.
66500         * modules/localename (License): Likewise.
66501         * modules/lock (License): Likewise.
66502         * modules/relocatable-lib-lgpl (License): Likewise.
66503         * modules/size_max (License): Likewise.
66504         * modules/vasnprintf (License): Likewise.
66505         * modules/wchar (License): Likewise.
66506         * modules/xsize (License): Likewise.
66507
66508 2007-07-13  Bruno Haible  <bruno@clisp.org>
66509
66510         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
66511         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
66512
66513 2007-07-12  Bruno Haible  <bruno@clisp.org>
66514
66515         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
66516         in the modules files.
66517
66518 2007-07-11  Karl Berry  <karl@gnu.org>
66519
66520         * MODULES.html.sh (func_module): use
66521          sed -e '\|^'"${includefile}"'$|d'
66522          instead of /.../d, to avoid errors on $includefile's containing /.
66523
66524 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
66525
66526         * gnulib-tool (func_import): Avoid duplication of --avoid
66527         statements
66528         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
66529         names to `_' in variable names.
66530
66531 2007-07-10  Eric Blake  <ebb9@byu.net>
66532
66533         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
66534         * NEWS: Document this change.
66535
66536 2007-07-08  Bruno Haible  <bruno@clisp.org>
66537
66538         Update to Unicode 5.0.
66539         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
66540         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
66541         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
66542         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
66543         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
66544         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
66545         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
66546         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
66547         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
66548         U+10A3F, U+1D242..U+1D244.
66549         (nonspacing_table_ind): Update.
66550         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
66551         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
66552
66553 2007-07-08  Bruno Haible  <bruno@clisp.org>
66554
66555         Update to Unicode 5.0.
66556         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
66557         code transform. Extend the name index field of unicode_name_to_code and
66558         unicode_code_to_name from 16 to 24 bits.
66559         * lib/uniname/uniname.c (unicode_character_name,
66560         unicode_name_character): Add the range 0x12xxx to the code transform.
66561         * lib/uniname/uninames.h: Regenerated.
66562         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
66563
66564 2007-07-07  Bruno Haible  <bruno@clisp.org>
66565
66566         * modules/wcwidth-tests: New file.
66567         * tests/test-wcwidth.c: New file.
66568
66569         Work around MacOS X wcwidth() bug.
66570         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
66571         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
66572         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
66573         original wcwidth in non-UTF-8 locales.
66574         * modules/wcwidth (Depends-on): Add localcharset, streq,
66575         uniwidth/width.
66576         * doc/functions/wcwidth.texi: Update.
66577
66578 2007-07-07  Bruno Haible  <bruno@clisp.org>
66579
66580         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
66581         (wcwidth): New declaration.
66582         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
66583         macros.
66584         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
66585         here. Prepare for creating <wchar.h> unconditionally.
66586         * modules/wchar (Depends-on): Add link-warning.
66587         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
66588         REPLACE_WCWIDTH, and GL_LINK_WARNING.
66589         * lib/wcwidth.h: Remove file.
66590         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
66591         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
66592         * modules/wcwidth (Files): Remove lib/wcwidth.h.
66593         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
66594         (Include): Replace wcwidth.h with <wchar.h>.
66595         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
66596         * lib/mbchar.h: Don't include wcwidth.h.
66597         * lib/mbswidth.c: Likewise.
66598         * NEWS: Mention the change.
66599
66600 2007-07-07  Bruno Haible  <bruno@clisp.org>
66601
66602         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
66603         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
66604         definition with an external declaration.
66605         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
66606         defined as a function. Remove AC_C_INLINE requirement.
66607         * modules/wcwidth (Files): Add lib/wcwidth.c.
66608         (Makefile.am): Remove redundant statement.
66609
66610 2007-07-07  Bruno Haible  <bruno@clisp.org>
66611
66612         * MODULES.html.sh (Unicode string functions): Add the new modules.
66613
66614         * tests/uniwidth/test-u32-strwidth.c: New file.
66615         * modules/uniwidth/u32-strwidth-tests: New file.
66616
66617         * lib/uniwidth/u32-strwidth.c: New file.
66618         * modules/uniwidth/u32-strwidth: New file.
66619
66620         * tests/uniwidth/test-u16-strwidth.c: New file.
66621         * modules/uniwidth/u16-strwidth-tests: New file.
66622
66623         * lib/uniwidth/u16-strwidth.c: New file.
66624         * modules/uniwidth/u16-strwidth: New file.
66625
66626         * tests/uniwidth/test-u8-strwidth.c: New file.
66627         * modules/uniwidth/u8-strwidth-tests: New file.
66628
66629         * lib/uniwidth/u8-strwidth.c: New file.
66630         * modules/uniwidth/u8-strwidth: New file.
66631
66632         * tests/uniwidth/test-u32-width.c: New file.
66633         * modules/uniwidth/u32-width-tests: New file.
66634
66635         * lib/uniwidth/u32-width.c: New file.
66636         * modules/uniwidth/u32-width: New file.
66637
66638         * tests/uniwidth/test-u16-width.c: New file.
66639         * modules/uniwidth/u16-width-tests: New file.
66640
66641         * lib/uniwidth/u16-width.c: New file.
66642         * modules/uniwidth/u16-width: New file.
66643
66644         * tests/uniwidth/test-u8-width.c: New file.
66645         * modules/uniwidth/u8-width-tests: New file.
66646
66647         * lib/uniwidth/u8-width.c: New file.
66648         * modules/uniwidth/u8-width: New file.
66649
66650         * tests/uniwidth/test-uc_width.c: New file.
66651         * modules/uniwidth/width-tests: New file.
66652
66653         * lib/uniwidth/width.c: New file, from GNU libiconv.
66654         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
66655         * modules/uniwidth/width: New file.
66656
66657         * lib/uniwidth.h: New file, from GNU libiconv.
66658         * modules/uniwidth/base: New file.
66659
66660 2007-07-07  Bruno Haible  <bruno@clisp.org>
66661
66662         * lib/uniname.h: New file, from GNU gettext.
66663         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
66664         * lib/uniname/uninames.h: New file, from GNU gettext.
66665         * lib/uniname/uniname.c: New file, from GNU gettext.
66666         * tests/uniname/test-uninames.sh: New file.
66667         * tests/uniname/test-uninames.c: New file, from GNU gettext.
66668         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
66669         * modules/uniname/base: New file.
66670         * modules/uniname/uniname: New file.
66671         * modules/uniname/uniname-tests: New file.
66672         * MODULES.html.sh (Unicode string functions): Add the new modules.
66673
66674 2007-07-06  Bruno Haible  <bruno@clisp.org>
66675
66676         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
66677
66678 2007-07-06  Bruno Haible  <bruno@clisp.org>
66679
66680         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
66681         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
66682         includes <cygwin/sys_time.h> which includes <sys/select.h> which
66683         include <sys/time.h>.
66684         Reported by Eric Blake.
66685
66686 2007-07-06  Eric Blake  <ebb9@byu.net>
66687
66688         Fix testing canonicalize on cygwin.
66689         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
66690         Revert patch from 2007-06-19.
66691         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
66692         canonicalize module is also in use.
66693         * tests/test-canonicalize.c: New file.
66694         * tests/test-canonicalize.sh: Likewise.
66695         * modules/canonicalize-tests: Likewise.
66696
66697 2007-07-06  Jim Meyering  <jim@meyering.net>
66698
66699         * lib/getugroups.c (getugroups): Detect getgrent failure.
66700         Adjust comment to reflect reality: this function may return -1.
66701
66702 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
66703
66704         * build-aux/bootstrap (TP_URL,get_translations): Update to use
66705         the new TP address.
66706         (usage): Fix typo
66707         (gnulib_mk): New variable.
66708
66709 2007-07-05  Jim Meyering  <jim@meyering.net>
66710
66711         Don't let endgrent clobber errno, no matter how improbable.
66712         * lib/getugroups.c (getugroups): Save and restore errno around
66713         endgrent call.
66714
66715         Close the group DB even when failing with 2^31 or more members.
66716         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
66717
66718 2007-07-04  Jim Meyering  <jim@meyering.net>
66719
66720         * lib/getugroups.h: New file.
66721         * lib/getugroups.c: Include "getugroups.h".
66722         Remove uses of "register" keyword.
66723         Move local variable, "cp", down into scope where used.
66724         Give "username" parameter the "const" attribute.
66725         * modules/getugroups (Files): Add lib/getugroups.h
66726
66727 2007-07-04  Karl Berry  <karl@gnu.org>
66728
66729         * MODULES.html.sh (func_all_modules): Complete rename of
66730         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
66731
66732 2007-07-02  Bruno Haible  <bruno@clisp.org>
66733
66734         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
66735         mode, when inttypes.h comes from gnulib.
66736         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
66737
66738 2007-07-02  Simon Josefsson  <simon@josefsson.org>
66739
66740         * NEWS: Mention lgpl module name change.
66741
66742         * modules/lgpl-2.1: Renamed from lgpl.
66743
66744         * NEWS: Mention gpl module name change.
66745
66746         * modules/gpl-3.0: New file, based on gpl-2.0.
66747
66748         * modules/gpl-2.0: Renamed from gpl.
66749
66750         * modules/gpl: Fix filename, doc/gpl.texi is now found at
66751         doc/gpl-2.0.texi.
66752
66753 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
66754
66755         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
66756         #define __STDC_LIMIT_MACROS temporarily while including
66757         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
66758         Problem reported by Joel E. Denny in
66759         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
66760
66761 2007-07-01  Bruno Haible  <bruno@clisp.org>
66762
66763         * lib/unistdio.h: New file.
66764         * lib/unistdio/u-asnprintf.h: New file.
66765         * lib/unistdio/u-asprintf.h: New file.
66766         * lib/unistdio/u-printf-args.c: New file.
66767         * lib/unistdio/u-printf-args.h: New file.
66768         * lib/unistdio/u-printf-parse.h: New file.
66769         * lib/unistdio/u-snprintf.h: New file.
66770         * lib/unistdio/u-sprintf.h: New file.
66771         * lib/unistdio/u-vasprintf.h: New file.
66772         * lib/unistdio/u-vsnprintf.h: New file.
66773         * lib/unistdio/u-vsprintf.h: New file.
66774         * lib/unistdio/ulc-asnprintf.c: New file.
66775         * lib/unistdio/ulc-asprintf.c: New file.
66776         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
66777         * lib/unistdio/ulc-printf-parse.c: New file.
66778         * lib/unistdio/ulc-snprintf.c: New file.
66779         * lib/unistdio/ulc-sprintf.c: New file.
66780         * lib/unistdio/ulc-vasnprintf.c: New file.
66781         * lib/unistdio/ulc-vasprintf.c: New file.
66782         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
66783         * lib/unistdio/ulc-vsnprintf.c: New file.
66784         * lib/unistdio/ulc-vsprintf.c: New file.
66785         * lib/unistdio/u8-asnprintf.c: New file.
66786         * lib/unistdio/u8-asprintf.c: New file.
66787         * lib/unistdio/u8-printf-parse.c: New file.
66788         * lib/unistdio/u8-snprintf.c: New file.
66789         * lib/unistdio/u8-sprintf.c: New file.
66790         * lib/unistdio/u8-vasnprintf.c: New file.
66791         * lib/unistdio/u8-vasprintf.c: New file.
66792         * lib/unistdio/u8-vsnprintf.c: New file.
66793         * lib/unistdio/u8-vsprintf.c: New file.
66794         * lib/unistdio/u8-u8-asnprintf.c: New file.
66795         * lib/unistdio/u8-u8-asprintf.c: New file.
66796         * lib/unistdio/u8-u8-snprintf.c: New file.
66797         * lib/unistdio/u8-u8-sprintf.c: New file.
66798         * lib/unistdio/u8-u8-vasnprintf.c: New file.
66799         * lib/unistdio/u8-u8-vasprintf.c: New file.
66800         * lib/unistdio/u8-u8-vsnprintf.c: New file.
66801         * lib/unistdio/u8-u8-vsprintf.c: New file.
66802         * lib/unistdio/u16-asnprintf.c: New file.
66803         * lib/unistdio/u16-asprintf.c: New file.
66804         * lib/unistdio/u16-printf-parse.c: New file.
66805         * lib/unistdio/u16-snprintf.c: New file.
66806         * lib/unistdio/u16-sprintf.c: New file.
66807         * lib/unistdio/u16-vasnprintf.c: New file.
66808         * lib/unistdio/u16-vasprintf.c: New file.
66809         * lib/unistdio/u16-vsnprintf.c: New file.
66810         * lib/unistdio/u16-vsprintf.c: New file.
66811         * lib/unistdio/u16-u16-asnprintf.c: New file.
66812         * lib/unistdio/u16-u16-asprintf.c: New file.
66813         * lib/unistdio/u16-u16-snprintf.c: New file.
66814         * lib/unistdio/u16-u16-sprintf.c: New file.
66815         * lib/unistdio/u16-u16-vasnprintf.c: New file.
66816         * lib/unistdio/u16-u16-vasprintf.c: New file.
66817         * lib/unistdio/u16-u16-vsnprintf.c: New file.
66818         * lib/unistdio/u16-u16-vsprintf.c: New file.
66819         * lib/unistdio/u32-asnprintf.c: New file.
66820         * lib/unistdio/u32-asprintf.c: New file.
66821         * lib/unistdio/u32-printf-parse.c: New file.
66822         * lib/unistdio/u32-snprintf.c: New file.
66823         * lib/unistdio/u32-sprintf.c: New file.
66824         * lib/unistdio/u32-vasnprintf.c: New file.
66825         * lib/unistdio/u32-vasprintf.c: New file.
66826         * lib/unistdio/u32-vsnprintf.c: New file.
66827         * lib/unistdio/u32-vsprintf.c: New file.
66828         * lib/unistdio/u32-u32-asnprintf.c: New file.
66829         * lib/unistdio/u32-u32-asprintf.c: New file.
66830         * lib/unistdio/u32-u32-snprintf.c: New file.
66831         * lib/unistdio/u32-u32-sprintf.c: New file.
66832         * lib/unistdio/u32-u32-vasnprintf.c: New file.
66833         * lib/unistdio/u32-u32-vasprintf.c: New file.
66834         * lib/unistdio/u32-u32-vsnprintf.c: New file.
66835         * lib/unistdio/u32-u32-vsprintf.c: New file.
66836         * tests/unistdio/test-ulc-asnprintf1.c: New file.
66837         * tests/unistdio/test-ulc-asnprintf1.h: New file.
66838         * tests/unistdio/test-ulc-printf1.h: New file.
66839         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
66840         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
66841         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
66842         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
66843         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
66844         * tests/unistdio/test-ulc-vasprintf1.c: New file.
66845         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
66846         * tests/unistdio/test-ulc-vsprintf1.c: New file.
66847         * tests/unistdio/test-u8-asnprintf1.c: New file.
66848         * tests/unistdio/test-u8-asnprintf1.h: New file.
66849         * tests/unistdio/test-u8-printf1.h: New file.
66850         * tests/unistdio/test-u8-vasnprintf1.c: New file.
66851         * tests/unistdio/test-u8-vasnprintf2.c: New file.
66852         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
66853         * tests/unistdio/test-u8-vasnprintf3.c: New file.
66854         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
66855         * tests/unistdio/test-u8-vasprintf1.c: New file.
66856         * tests/unistdio/test-u8-vsnprintf1.c: New file.
66857         * tests/unistdio/test-u8-vsprintf1.c: New file.
66858         * tests/unistdio/test-u16-asnprintf1.c: New file.
66859         * tests/unistdio/test-u16-asnprintf1.h: New file.
66860         * tests/unistdio/test-u16-printf1.h: New file.
66861         * tests/unistdio/test-u16-vasnprintf1.c: New file.
66862         * tests/unistdio/test-u16-vasnprintf2.c: New file.
66863         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
66864         * tests/unistdio/test-u16-vasnprintf3.c: New file.
66865         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
66866         * tests/unistdio/test-u16-vasprintf1.c: New file.
66867         * tests/unistdio/test-u16-vsnprintf1.c: New file.
66868         * tests/unistdio/test-u16-vsprintf1.c: New file.
66869         * tests/unistdio/test-u32-asnprintf1.c: New file.
66870         * tests/unistdio/test-u32-asnprintf1.h: New file.
66871         * tests/unistdio/test-u32-printf1.h: New file.
66872         * tests/unistdio/test-u32-vasnprintf1.c: New file.
66873         * tests/unistdio/test-u32-vasnprintf2.c: New file.
66874         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
66875         * tests/unistdio/test-u32-vasnprintf3.c: New file.
66876         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
66877         * tests/unistdio/test-u32-vasprintf1.c: New file.
66878         * tests/unistdio/test-u32-vsnprintf1.c: New file.
66879         * tests/unistdio/test-u32-vsprintf1.c: New file.
66880         * modules/unistdio/base: New file.
66881         * modules/unistdio/u-printf-args: New file.
66882         * modules/unistdio/ulc-asnprintf: New file.
66883         * modules/unistdio/ulc-asprintf: New file.
66884         * modules/unistdio/ulc-fprintf: New file.
66885         * modules/unistdio/ulc-printf-parse: New file.
66886         * modules/unistdio/ulc-snprintf: New file.
66887         * modules/unistdio/ulc-sprintf: New file.
66888         * modules/unistdio/ulc-vasnprintf: New file.
66889         * modules/unistdio/ulc-vasprintf: New file.
66890         * modules/unistdio/ulc-vfprintf: New file.
66891         * modules/unistdio/ulc-vsnprintf: New file.
66892         * modules/unistdio/ulc-vsprintf: New file.
66893         * modules/unistdio/u8-asnprintf: New file.
66894         * modules/unistdio/u8-asprintf: New file.
66895         * modules/unistdio/u8-printf-parse: New file.
66896         * modules/unistdio/u8-snprintf: New file.
66897         * modules/unistdio/u8-sprintf: New file.
66898         * modules/unistdio/u8-vasnprintf: New file.
66899         * modules/unistdio/u8-vasprintf: New file.
66900         * modules/unistdio/u8-vsnprintf: New file.
66901         * modules/unistdio/u8-vsprintf: New file.
66902         * modules/unistdio/u8-u8-asnprintf: New file.
66903         * modules/unistdio/u8-u8-asprintf: New file.
66904         * modules/unistdio/u8-u8-snprintf: New file.
66905         * modules/unistdio/u8-u8-sprintf: New file.
66906         * modules/unistdio/u8-u8-vasnprintf: New file.
66907         * modules/unistdio/u8-u8-vasprintf: New file.
66908         * modules/unistdio/u8-u8-vsnprintf: New file.
66909         * modules/unistdio/u8-u8-vsprintf: New file.
66910         * modules/unistdio/u16-asnprintf: New file.
66911         * modules/unistdio/u16-asprintf: New file.
66912         * modules/unistdio/u16-printf-parse: New file.
66913         * modules/unistdio/u16-snprintf: New file.
66914         * modules/unistdio/u16-sprintf: New file.
66915         * modules/unistdio/u16-vasnprintf: New file.
66916         * modules/unistdio/u16-vasprintf: New file.
66917         * modules/unistdio/u16-vsnprintf: New file.
66918         * modules/unistdio/u16-vsprintf: New file.
66919         * modules/unistdio/u16-u16-asnprintf: New file.
66920         * modules/unistdio/u16-u16-asprintf: New file.
66921         * modules/unistdio/u16-u16-snprintf: New file.
66922         * modules/unistdio/u16-u16-sprintf: New file.
66923         * modules/unistdio/u16-u16-vasnprintf: New file.
66924         * modules/unistdio/u16-u16-vasprintf: New file.
66925         * modules/unistdio/u16-u16-vsnprintf: New file.
66926         * modules/unistdio/u16-u16-vsprintf: New file.
66927         * modules/unistdio/u32-asnprintf: New file.
66928         * modules/unistdio/u32-asprintf: New file.
66929         * modules/unistdio/u32-printf-parse: New file.
66930         * modules/unistdio/u32-snprintf: New file.
66931         * modules/unistdio/u32-sprintf: New file.
66932         * modules/unistdio/u32-vasnprintf: New file.
66933         * modules/unistdio/u32-vasprintf: New file.
66934         * modules/unistdio/u32-vsnprintf: New file.
66935         * modules/unistdio/u32-vsprintf: New file.
66936         * modules/unistdio/u32-u32-asnprintf: New file.
66937         * modules/unistdio/u32-u32-asprintf: New file.
66938         * modules/unistdio/u32-u32-snprintf: New file.
66939         * modules/unistdio/u32-u32-sprintf: New file.
66940         * modules/unistdio/u32-u32-vasnprintf: New file.
66941         * modules/unistdio/u32-u32-vasprintf: New file.
66942         * modules/unistdio/u32-u32-vsnprintf: New file.
66943         * modules/unistdio/u32-u32-vsprintf: New file.
66944         * modules/unistdio/ulc-asnprintf-tests: New file.
66945         * modules/unistdio/ulc-vasnprintf-tests: New file.
66946         * modules/unistdio/ulc-vasprintf-tests: New file.
66947         * modules/unistdio/ulc-vsnprintf-tests: New file.
66948         * modules/unistdio/ulc-vsprintf-tests: New file.
66949         * modules/unistdio/u8-asnprintf-tests: New file.
66950         * modules/unistdio/u8-vasnprintf-tests: New file.
66951         * modules/unistdio/u8-vasprintf-tests: New file.
66952         * modules/unistdio/u8-vsnprintf-tests: New file.
66953         * modules/unistdio/u8-vsprintf-tests: New file.
66954         * modules/unistdio/u16-asnprintf-tests: New file.
66955         * modules/unistdio/u16-vasnprintf-tests: New file.
66956         * modules/unistdio/u16-vasprintf-tests: New file.
66957         * modules/unistdio/u16-vsnprintf-tests: New file.
66958         * modules/unistdio/u16-vsprintf-tests: New file.
66959         * modules/unistdio/u32-asnprintf-tests: New file.
66960         * modules/unistdio/u32-vasnprintf-tests: New file.
66961         * modules/unistdio/u32-vasprintf-tests: New file.
66962         * modules/unistdio/u32-vsnprintf-tests: New file.
66963         * modules/unistdio/u32-vsprintf-tests: New file.
66964         * MODULES.html.sh (Unicode string functions): Add the new modules.
66965
66966 2007-07-01  Bruno Haible  <bruno@clisp.org>
66967
66968         * lib/sprintf.c (sprintf): Limit the available length estimation,
66969         to avoid address wraparound.
66970         * lib/vsprintf.c (vsprintf): Likewise.
66971         * modules/sprintf-posix (Dependencies): Add stdint.
66972         * modules/vsprintf-posix (Dependencies): Likewise.
66973
66974 2007-07-01  Bruno Haible  <bruno@clisp.org>
66975
66976         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
66977         Windows PATH as well. Conservative double-quoting. Comments.
66978
66979 2007-07-01  Bruno Haible  <bruno@clisp.org>
66980             Eric Blake  <ebb9@byu.net>
66981             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66982
66983         * gnulib-tool (self_abspathname): Fix algorithm to cope with
66984         empty components in $PATH, denoting '.'.
66985
66986 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66987
66988         * gnulib-tool: Fix indentation.
66989         (func_create_megatestdir): Likewise.
66990         Report by Bruno Haible.
66991
66992 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66993
66994         Sync from Automake.
66995         * build-aux/gnupload: Fix shell portability issues with for loops.
66996         Report by Karl Berry.
66997
66998 2007-06-29  Simon Josefsson  <simon@josefsson.org>
66999
67000         * build-aux/maint.mk (POURL): Use translationproject.org.
67001
67002 2007-06-27  Simon Josefsson  <simon@josefsson.org>
67003             Bruno Haible  <bruno@clisp.org>
67004
67005         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
67006         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
67007         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
67008         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
67009         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
67010
67011 2007-06-27  Bruno Haible  <bruno@clisp.org>
67012
67013         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
67014         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
67015
67016 2007-06-26  Karl Berry  <karl@gnu.org>
67017
67018         * MODULES.html.sh: remove xreadlink-with-size.
67019
67020 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67021
67022         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
67023         method that I hope also handles the double-include problem noted
67024         by Bruno Haible in
67025         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
67026
67027 2007-06-23  Bruno Haible  <bruno@clisp.org>
67028
67029         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
67030         Don't let the 'mostlyclean' target fail if the last subdirectory could
67031         not be removed.
67032         Reported by Karl Berry.
67033
67034 2007-06-23  Bruno Haible  <bruno@clisp.org>
67035
67036         * gnulib-tool (echo): Add a speedier workaround for ksh.
67037         * tests/test-echo.sh: Likewise.
67038
67039 2007-06-23  Bruno Haible  <bruno@clisp.org>
67040
67041         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
67042         * tests/test-echo.sh: Likewise.
67043
67044 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67045
67046         * gnulib-tool (IFS): Initialize early, so we don't set it to
67047         empty later.
67048         (self_abspathname): Rewrite algorithm to set it, reindent.
67049         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
67050         (func_create_megatestdir): Merge some sed scripts.
67051
67052 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
67053
67054         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
67055         exposed by Sun Studio 11 cc on Solaris 8.
67056
67057 2007-06-22  Bruno Haible  <bruno@clisp.org>
67058
67059         * gnulib-tool (echo): Ensure the echo primitive does not interpret
67060         backslashes.
67061         * tests/test-echo.sh: New file.
67062
67063 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67064
67065         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
67066         simplify `sed_replace_build_aux' scripts, they are portable but
67067         echoing them with `echo' is not.
67068         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
67069
67070 2007-06-21  Karl Berry  <karl@gnu.org>
67071
67072         * config/srclist.txt: guess we can't handle the licenses via
67073         srclist at the moment.
67074
67075 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
67076
67077         * MODULES.html.sh: Add include_next.
67078         * modules/include_next: New file.
67079
67080 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
67081
67082         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
67083         INCLUDE_NEXT.
67084         (gl_CHECK_NEXT_HEADERS): New macro.
67085         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
67086         the obsolescent gl_ABSOLUTE_HEADER.
67087         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
67088         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
67089         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
67090         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
67091         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
67092         * m4/math_h.m4 (gl_MATH_H): Likewise.
67093         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
67094         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
67095         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
67096         * m4/stdint.m4 (gl_STDINT_H): Likewise.
67097         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
67098         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
67099         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
67100         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
67101         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
67102         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
67103         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
67104         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
67105         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
67106         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
67107         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
67108         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
67109         * m4/inttypes.m4 (gl_INTTYPES_H): Define
67110         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
67111         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
67112         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
67113         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
67114         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
67115         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
67116         * lib/float_.h: Likewise.
67117         * lib/inttypes_.h: Likewise.
67118         * lib/math_.h: Likewise.
67119         * lib/search_.h: Likewise.
67120         * lib/signal_.h: Likewise.
67121         * lib/stdint_.h: Likewise.
67122         * lib/stdio_.h: Likewise.
67123         * lib/stdlib_.h: Likewise.
67124         * lib/string_.h: Likewise.
67125         * lib/sys_stat_.h: Likewise.
67126         * lib/sys_time_.h: Likewise.
67127         * lib/time_.h: Likewise.
67128         * lib/unistd_.h: Likewise.
67129         * lib/wchar_.h: Likewise.
67130         * lib/wctype_.h: Likewise.
67131         * lib/dirent_.h: Likewise.
67132         * lib/iconv_.h: Likewise.
67133         * lib/locale_.h: Likewise.
67134         * lib/netinet_in_.h: Likewise.
67135         * lib/sys_select_.h: Likewise.
67136         * lib/sys_socket_.h: Likewise.
67137         * lib/sysexits_.h: Likewise.
67138         * modules/fcntl (Depends-on): Depend on include_next, not
67139         absolute_header.
67140         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
67141         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
67142         * modules/fchdir: Likewise.
67143         * modules/float: Likewise.
67144         * modules/iconv_open: Likewise.
67145         * modules/inttypes: Likewise.
67146         * modules/locale: Likewise.
67147         * modules/math: Likewise.
67148         * modules/netinet_in: Likewise.
67149         * modules/search: Likewise.
67150         * modules/signal: Likewise.
67151         * modules/stdint: Likewise.
67152         * modules/stdio: Likewise.
67153         * modules/stdlib: Likewise.
67154         * modules/string: Likewise.
67155         * modules/sys_select: Likewise.
67156         * modules/sys_socket: Likewise.
67157         * modules/sys_stat: Likewise.
67158         * modules/sys_time: Likewise.
67159         * modules/sysexits: Likewise.
67160         * modules/time: Likewise.
67161         * modules/unistd: Likewise.
67162         * modules/wchar: Likewise.
67163         * modules/wctype: Likewise.
67164         * modules/sys_stat: Change maintainer to "all".
67165         * modules/unistd: Likewise.
67166
67167 2007-06-20  Karl Berry  <karl@gnu.org>
67168
67169         * config/srclist.txt: track www changes in license files.
67170
67171 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
67172
67173         * build-aux/bootstrap: Remove stray dot.
67174         Make sure build_aux settings are honored when linking
67175         gnulib_extra_files.
67176
67177 2007-06-19  Eric Blake  <ebb9@byu.net>
67178
67179         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
67180         Allow compilation on cygwin.
67181
67182 2007-06-19  Jim Meyering  <jim@meyering.net>
67183
67184         xreadlink-with-size: Remove module.  No longer used.
67185         Ex-callers now use xreadlink or mreadlink-with-size.
67186         * modules/xreadlink-with-size: Remove module.
67187         * lib/xreadlink-with-size.c: Remove file.
67188         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
67189         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
67190         just before the function definition *is* accurate.
67191
67192         Eliminate one way canonicalize_filename_mode could exit.
67193         * lib/canonicalize.c (canonicalize_filename_mode):
67194         Use mreadlink_with_size, not xreadlink_with_size.
67195
67196 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
67197
67198         Detect porting problems to FreeBSD/arm, which has time_t wider than
67199         long int.  Original problem reported for GNU diff by Xin Li in
67200         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
67201         * modules/getdate (Depends-on): Add intprops, verify.
67202         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
67203         is an integer type no wider than long int.
67204
67205 2007-06-18  Jim Meyering  <jim@meyering.net>
67206
67207         New module: mreadlink-with-size.
67208         * MODULES.html.sh: Add mreadlink-with-size.
67209         * modules/mreadlink-with-size: New module
67210         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
67211         not xreadlink-with-size.
67212         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
67213
67214 2007-06-16  Bruno Haible  <bruno@clisp.org>
67215
67216         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
67217         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
67218         Reported by Gary V. Vaughan <gary@gnu.org>.
67219
67220 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
67221
67222         Revamp lchown so that it lives in unistd.h where it belongs.
67223         * lib/lchown.h: Remove.
67224         * lib/dirchownmod.c: Don't include lib/lchown.h.
67225         * lib/fchownat.c: Likewise.
67226         * lib/openat.c: Likewise.
67227         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
67228         does not follow symlinks.
67229         (EOPNOTSUPP): Define if not defined.
67230         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
67231         is defined to 0.
67232         (lchown): New decl.
67233         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
67234         Do not check for lchown decl.
67235         Set REPLACE_LCHOWN.
67236         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
67237         REPLACE_LCHOWN.
67238         * modules/chown: Make it clear it follows symlinks.
67239         * modules/lchown: Make it clear it doesn't follow symlinks.
67240         (Files): Remove lib/lchown.h
67241         (Depends-on): Add unistd.
67242         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
67243         (Include): Include <unistd.h>, not "lchown.h".
67244         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
67245         REPLACE_LCHOWN.
67246
67247 2007-06-15  Jim Meyering  <jim@meyering.net>
67248
67249         Change license (GPL to LGPL) of fsusage and dependents.
67250         * modules/fsusage (License): Change to LGPL.
67251         * modules/full-read (License): Likewise.
67252         * modules/full-write (License): Likewise.
67253         * modules/safe-read (License): Likewise.
67254         * modules/safe-write (License): Likewise.
67255
67256 2007-06-14  Ben Pfaff  <blp@gnu.org>
67257
67258         Missing part of allocsa -> malloca transition.
67259         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
67260         gl_MALLOCA.
67261
67262 2007-06-12  Bruno Haible  <bruno@clisp.org>
67263
67264         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
67265         to ia64, x86_64, i386.
67266         Reported by Eric Blake.
67267
67268 2007-06-12  Bruno Haible  <bruno@clisp.org>
67269
67270         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
67271         cross-compiling to x86_64.
67272
67273 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
67274
67275         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
67276         glitch reported by Ralf Wildenhues in
67277         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
67278
67279         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
67280         Vin Shelton.
67281
67282 2007-06-11  Bruno Haible  <bruno@clisp.org>
67283
67284         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
67285         replacement string.
67286         Reported by Eric Blake.
67287
67288 2007-06-10  Bruno Haible  <bruno@clisp.org>
67289
67290         Prepare vasnprintf code for use with Unicode strings.
67291         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
67292         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
67293         TYPE_U32_STRING.
67294         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
67295         a_u32_string variants.
67296         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
67297         * lib/printf-args.c: Don't include config.h and the specification
67298         header if PRINTF_FETCHARGS is already defined.
67299         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
67300         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
67301         TYPE_U16_STRING, TYPE_U32_STRING.
67302         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
67303         u16_directive, u16_directives, u32_directive, u32_directives): New
67304         types.
67305         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
67306         New declarations.
67307         * lib/printf-parse.c: Don't include config.h and the specification
67308         header if PRINTF_PARSE is already defined. Eliminate the set of
67309         parameters for WIDE_CHAR_VERSION; the user of this file must provide
67310         them now. Include c-ctype.h.
67311         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
67312         directive and CHAR_T_ONLY_ASCII.
67313         * lib/vasnprintf.c: Don't include config.h and the specification header
67314         if VASNPRINTF is already defined.
67315         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
67316         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
67317         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
67318         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
67319         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
67320         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
67321         code accordingly.
67322         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
67323         pad_ourselves also in this case, with the 'c' and 's' directives, and
67324         with a different notion of "width".
67325         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
67326
67327 2007-06-10  Bruno Haible  <bruno@clisp.org>
67328
67329         * modules/unistr/u32-mbsnlen: New file.
67330         * lib/unistr/u32-mbsnlen.c: New file.
67331
67332         * modules/unistr/u16-mbsnlen: New file.
67333         * lib/unistr/u16-mbsnlen.c: New file.
67334
67335         * modules/unistr/u8-mbsnlen: New file.
67336         * lib/unistr/u8-mbsnlen.c: New file.
67337
67338         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
67339         declarations.
67340
67341 2007-06-10  Bruno Haible  <bruno@clisp.org>
67342
67343         * lib/string_.h (mbsnlen): New declaration.
67344         * lib/mbsnlen.c: New file.
67345         * m4/mbsnlen.m4: New file.
67346         * modules/mbsnlen: New file.
67347         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
67348         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
67349         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
67350
67351 2007-06-10  Bruno Haible  <bruno@clisp.org>
67352
67353         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
67354
67355 2007-06-10  Bruno Haible  <bruno@clisp.org>
67356
67357         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
67358         * lib/mbuiter.h: Likewise.
67359
67360 2007-06-10  Bruno Haible  <bruno@clisp.org>
67361
67362         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
67363         declaration.
67364
67365 2007-06-10  Karl Berry  <karl@gnu.org>
67366
67367         * config/srclist.txt: remove gettext entries, Bruno prefers
67368         to update individually.
67369
67370 2007-06-10  Bruno Haible  <bruno@clisp.org>
67371
67372         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
67373         'maxlen'. Ensure only length + width bytes are allocated, not
67374         length + 1 + width.
67375
67376 2007-06-09  Bruno Haible  <bruno@clisp.org>
67377
67378         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
67379         (CHAR_T): Remove macro.
67380         (VASNPRINTF): Update.
67381
67382 2007-06-09  Bruno Haible  <bruno@clisp.org>
67383
67384         * MODULES.html.sh (Unicode string functions): Add the new modules.
67385
67386         * modules/uniconv/u32-conv-to-enc: New file.
67387         * lib/uniconv/u32-conv-to-enc.c: New file.
67388         * modules/uniconv/u32-conv-to-enc-tests: New file.
67389         * tests/uniconv/test-u32-conv-to-enc.c: New file.
67390
67391         * modules/uniconv/u16-conv-to-enc: New file.
67392         * lib/uniconv/u16-conv-to-enc.c: New file.
67393         * lib/uniconv/u-conv-to-enc.h: New file.
67394         * modules/uniconv/u16-conv-to-enc-tests: New file.
67395         * tests/uniconv/test-u16-conv-to-enc.c: New file.
67396
67397         * modules/uniconv/u8-conv-to-enc: New file.
67398         * lib/uniconv/u8-conv-to-enc.c: New file.
67399         * modules/uniconv/u8-conv-to-enc-tests: New file.
67400         * tests/uniconv/test-u8-conv-to-enc.c: New file.
67401
67402         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
67403         u32_conv_to_encoding): New declarations.
67404
67405 2007-06-09  Bruno Haible  <bruno@clisp.org>
67406
67407         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
67408
67409 2007-06-09  Bruno Haible  <bruno@clisp.org>
67410
67411         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
67412         * modules/malloca: Renamed from modules/allocsa, updated.
67413         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
67414         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
67415         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
67416         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
67417         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
67418         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
67419         * modules/xmalloca: Renamed from modules/xallocsa, updated.
67420         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
67421         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
67422         * modules/c-strcasestr (Depends-on): Update.
67423         * lib/c-strcasestr.c: Update.
67424         * modules/c-strstr (Depends-on): Update.
67425         * lib/c-strstr.c: Update.
67426         * modules/canonicalize-lgpl (Depends-on): Update.
67427         * lib/canonicalize-lgpl.c: Update.
67428         * modules/clean-temp (Depends-on): Update.
67429         * lib/clean-temp.c: Update.
67430         * modules/csharpcomp (Depends-on): Update.
67431         * lib/csharpcomp.c: Update.
67432         * modules/csharpexec (Depends-on): Update.
67433         * lib/csharpexec.c: Update.
67434         * modules/javacomp (Depends-on): Update.
67435         * lib/javacomp.c: Update.
67436         * modules/javaexec (Depends-on): Update.
67437         * lib/javaexec.c: Update.
67438         * modules/mbscasestr (Depends-on): Update.
67439         * lib/mbscasestr.c: Update.
67440         * modules/mbsstr (Depends-on): Update.
67441         * lib/mbsstr.c: Update.
67442         * modules/setenv (Depends-on): Update.
67443         * lib/setenv.c: Update.
67444         * modules/strcasestr (Depends-on): Update.
67445         * lib/strcasestr.c: Update.
67446         * modules/striconveha (Depends-on): Update.
67447         * lib/striconveha.c: Update.
67448         * modules/relocatable-prog-wrapper (Files): Update.
67449         * lib/relocwrapper.c: Update.
67450         * build-aux/install-reloc: Update.
67451         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
67452
67453 2007-06-08  Bruno Haible  <bruno@clisp.org>
67454
67455         Port to uClibc.
67456         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
67457         * lib/fpurge.c (fpurge): Likewise.
67458         * lib/freading.c (freading): Likewise.
67459         * lib/fseeko.c (rpl_fseeko): Likewise.
67460         * lib/fseterr.c (fseterr): Likewise.
67461         * lib/fwriting.c (fwriting): Likewise.
67462         * tests/test-fflush.c (main): Avoid a failure on uClibc.
67463
67464 2007-06-08  Bruno Haible  <bruno@clisp.org>
67465
67466         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
67467         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
67468         * modules/gettext (Files): Add m4/intlmacosx.m4.
67469
67470 2007-06-07  Bruno Haible  <bruno@clisp.org>
67471
67472         * modules/localename-tests: New file.
67473         * tests/test-localename.c: New file.
67474
67475         New module 'localename'.
67476         * lib/localename.h: New file.
67477         * lib/localename.c: New file, from GNU gettext.
67478         * m4/localename.m4: New file.
67479         * modules/localename: New file.
67480
67481 2007-06-07  Bruno Haible  <bruno@clisp.org>
67482
67483         Work around the lack of <wchar.h> on some builds of uClibc.
67484         * doc/headers/wchar.texi: Update.
67485         * lib/wchar_.h: Include <wchar.h> only if it exists.
67486         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
67487         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
67488         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
67489         doesn't exist.
67490         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
67491         * modules/mbfile (Depends-on): Add wchar.
67492         * modules/mbiter (Depends-on): Likewise.
67493         * modules/mbuiter (Depends-on): Likewise.
67494         Reported by Simon Josefsson.
67495
67496 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
67497
67498         Work around problem reported by Steven M. Schweda in
67499         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
67500         Tru64 5.1B with the Compaq compiler environment installed declares
67501         an 'isblank' function but does not define it in the C library.
67502         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
67503         * lib/regex_internal.h (isblank): Likewise.
67504         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
67505         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67506
67507 2007-06-05  Bruno Haible  <bruno@clisp.org>
67508
67509         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
67510         ia64.
67511         * modules/printf-safe: New file.
67512         * modules/fprintf-posix (Depends-on): Add printf-safe.
67513         * modules/printf-posix (Depends-on): Likewise.
67514         * modules/snprintf-posix (Depends-on): Likewise.
67515         * modules/sprintf-posix (Depends-on): Likewise.
67516         * modules/vasnprintf-posix (Depends-on): Likewise.
67517         * modules/vasprintf-posix (Depends-on): Likewise.
67518         * modules/vfprintf-posix (Depends-on): Likewise.
67519         * modules/vprintf-posix (Depends-on): Likewise.
67520         * modules/vsnprintf-posix (Depends-on): Likewise.
67521         * modules/vsprintf-posix (Depends-on): Likewise.
67522         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
67523         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
67524         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
67525         "no" on i386, x86_64, ia64.
67526         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
67527         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67528         on i386, x86_64, ia64.
67529         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
67530         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67531         on i386, x86_64, ia64.
67532         * tests/test-vasnprintf-posix.c: Include float.h.
67533         (LDBL80_WORDS): New macro.
67534         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67535         on i386, x86_64, ia64.
67536         * tests/test-vasprintf-posix.c: Include float.h.
67537         (LDBL80_WORDS): New macro.
67538         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
67539         on i386, x86_64, ia64.
67540         * tests/test-snprintf-posix.c: Include float.h.
67541         * tests/test-sprintf-posix.c: Likewise.
67542         * tests/test-vsnprintf-posix.c: Likewise.
67543         * tests/test-vsprintf-posix.c: Likewise.
67544
67545 2007-06-05  Bruno Haible  <bruno@clisp.org>
67546
67547         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
67548         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
67549         non-IEEE numbers on i386, x86_64, ia64.
67550         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
67551         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
67552         * tests/test-isnanl.h: Include float.h.
67553         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
67554
67555 2007-06-05  Bruno Haible  <bruno@clisp.org>
67556
67557         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
67558         also the %a / %A. Handle the %a / %A code before this extra handling.
67559
67560 2007-06-05  Bruno Haible  <bruno@clisp.org>
67561
67562         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
67563         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
67564
67565 2007-06-05  Bruno Haible  <bruno@clisp.org>
67566
67567         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
67568         typo in variable name.
67569
67570 2007-06-05  Eric Blake  <ebb9@byu.net>
67571
67572         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
67573         Reported by Simon Josefsson.
67574
67575 2007-06-04  Bruno Haible  <bruno@clisp.org>
67576
67577         Avoid test failures on some PowerPC platforms.
67578         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
67579         Define differently for PowerPC.
67580         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
67581         Reported by Gary V. Vaughan <gary@gnu.org>.
67582
67583 2007-06-02  Bruno Haible  <bruno@clisp.org>
67584
67585         Fix test-stdint failure on FreeBSD/ia64.
67586         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
67587         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
67588         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
67589         * doc/headers/stdint.texi: Update.
67590
67591 2007-06-01  Bruno Haible  <bruno@clisp.org>
67592
67593         * tests/test-binary-io.c (main): Pass a third argument to open().
67594         Reported by Gary V. Vaughan <gary@gnu.org>.
67595
67596 2007-06-01  Bruno Haible  <bruno@clisp.org>
67597
67598         * doc/functions/frexpl.texi: Update for mingw.
67599
67600 2007-06-01  Bruno Haible  <bruno@clisp.org>
67601
67602         * tests/test-lseek.c (main): Disable test of errno for invalid third
67603         argument.
67604         * doc/functions/lseek.texi: Update.
67605         Reported by Gary V. Vaughan <gary@gnu.org>.
67606
67607 2007-05-28  Bruno Haible  <bruno@clisp.org>
67608
67609         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
67610
67611 2007-05-31  Eric Blake  <ebb9@byu.net>
67612
67613         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
67614         cross compiling.
67615
67616 2007-05-30  Eric Blake  <ebb9@byu.net>
67617         and Bruno Haible  <bruno@clisp.org>
67618
67619         Work around mingw test failures exposed by m4-1.4.9b.
67620         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
67621         * tests/test-unistd.c: Disable uid_t and git_t tests for the
67622         moment.
67623
67624 2007-05-30  Bruno Haible  <bruno@clisp.org>
67625
67626         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
67627         assuming that they are closed. Needed on HP-UX 11.
67628
67629 2007-05-29  Bruno Haible  <bruno@clisp.org>
67630
67631         Fix a problem with #include_next.
67632         * lib/dirent_.h: Split the double-inclusion guard.
67633         * lib/fcntl_.h: Likewise.
67634         * lib/float_.h: Likewise.
67635         * lib/iconv_.h: Likewise.
67636         * lib/inttypes_.h: Likewise.
67637         * lib/locale_.h: Likewise.
67638         * lib/math_.h: Likewise.
67639         * lib/netinet_in_.h: Likewise.
67640         * lib/search_.h: Likewise.
67641         * lib/signal_.h: Likewise.
67642         * lib/stdint_.h: Likewise.
67643         * lib/stdio_.h: Likewise.
67644         * lib/stdlib_.h: Likewise.
67645         * lib/string_.h: Likewise.
67646         * lib/sys_select_.h: Likewise.
67647         * lib/sys_socket_.h: Likewise.
67648         * lib/sys_stat_.h: Likewise.
67649         * lib/sys_time_.h: Likewise.
67650         * lib/sysexits_.h: Likewise.
67651         * lib/time_.h: Likewise.
67652         * lib/unistd_.h: Likewise.
67653         * lib/wchar_.h: Likewise.
67654         * lib/wctype_.h: Likewise.
67655
67656 2007-05-29  Bruno Haible  <bruno@clisp.org>
67657
67658         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
67659         for the moment.
67660
67661 2007-05-29  Bruno Haible  <bruno@clisp.org>
67662
67663         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
67664         invocation.
67665         Reported by Eric Blake.
67666
67667 2007-05-29  Bruno Haible  <bruno@clisp.org>
67668
67669         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
67670         compiling case.
67671
67672 2007-05-29  Eric Blake  <ebb9@byu.net>
67673             Bruno Haible  <bruno@clisp.org>
67674
67675         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
67676         cross compiles.
67677
67678 2007-05-28  Eric Blake  <ebb9@byu.net>
67679
67680         * modules/closein-tests (test_closein_LDADD): Support test on
67681         cygwin with libtool.
67682
67683 2007-05-28  Bruno Haible  <bruno@clisp.org>
67684
67685         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
67686         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
67687         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
67688         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
67689         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
67690         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
67691         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
67692         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
67693         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
67694
67695 2007-05-28  Eric Blake  <ebb9@byu.net>
67696
67697         Unconditionally include <config.h> in unit tests.
67698         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
67699         * tests/test-allocsa.c, tests/test-arcfour.c,
67700         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
67701         tests/test-array_list.c, tests/test-array_oset.c,
67702         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
67703         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
67704         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
67705         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
67706         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
67707         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
67708         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
67709         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
67710         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
67711         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
67712         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
67713         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
67714         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
67715         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
67716         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
67717         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
67718         test-md5.c, test-memmem.c, test-printf-posix.c,
67719         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
67720         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
67721         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
67722         test-strcasestr.c, test-striconv.c, test-striconveh.c,
67723         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
67724         test-vasnprintf-posix2.c, test-vasnprintf.c,
67725         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
67726         test-vfprintf-posix.c, test-vprintf-posix.c,
67727         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
67728         test-xvasprintf.c: Likewise.
67729
67730 2007-05-28  Bruno Haible  <bruno@clisp.org>
67731
67732         * gnulib-tool (func_import): Remember the --with-tests command-line
67733         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
67734         Reported by Eric Blake.
67735
67736 2007-05-28  Bruno Haible  <bruno@clisp.org>
67737
67738         * modules/ftell-tests: New file.
67739         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
67740         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
67741
67742         * lib/ftell.c: New file.
67743         * modules/ftell: New file.
67744         * m4/ftell.m4: New file.
67745         * doc/functions/ftell.texi: Update.
67746         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
67747         REPLACE_FTELL.
67748         * lib/stdio_.h (rpl_ftell): New declaration.
67749         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
67750         REPLACE_FTELL.
67751
67752 2007-05-28  Eric Blake  <ebb9@byu.net>
67753
67754         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
67755
67756 2007-05-28  Bruno Haible  <bruno@clisp.org>
67757
67758         * modules/fseek-tests: New file.
67759         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
67760         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
67761
67762         * lib/fseek.c: New file.
67763         * modules/fseek: New file.
67764         * m4/fseek.m4: New file.
67765         * doc/functions/fseek.texi: Update.
67766         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
67767         REPLACE_FSEEK.
67768         * lib/stdio_.h (rpl_fseek): New declaration.
67769         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
67770         REPLACE_FSEEK.
67771
67772 2007-05-28  Bruno Haible  <bruno@clisp.org>
67773
67774         * lib/stdio_.h (fflush): More comments.
67775
67776 2007-05-28  Bruno Haible  <bruno@clisp.org>
67777
67778         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
67779         runtime test.
67780
67781 2007-05-28  Eric Blake  <ebb9@byu.net>
67782
67783         Improve lseek module.
67784         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
67785         * lib/unistd_.h (lseek): Scale back link warning message.
67786         * tests/test-lseek.c: Beef up test.
67787         * tests/test-lseek.sh: Exercise more facets of lseek.
67788         Reported by Bruno Haible.
67789
67790 2007-05-28  Bruno Haible  <bruno@clisp.org>
67791
67792         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
67793         to define.
67794
67795 2007-05-27  Bruno Haible  <bruno@clisp.org>
67796
67797         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
67798
67799 2007-05-27  Bruno Haible  <bruno@clisp.org>
67800
67801         * modules/openmp: New file.
67802         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
67803         Noah Misch.
67804
67805 2007-05-26  Bruno Haible  <bruno@clisp.org>
67806
67807         * modules/chdir-long (Depends-on): Add fchdir.
67808         * modules/chdir-safer (Depends-on): Likewise.
67809         * modules/fts (Depends-on): Likewise.
67810         * modules/fts-lgpl (Depends-on): Likewise.
67811         * modules/openat (Depends-on): Likewise.
67812         * modules/savewd (Depends-on): Likewise.
67813
67814 2007-05-24  Eric Blake  <ebb9@byu.net>
67815
67816         Fix lseek on mingw.
67817         * modules/lseek: New module.
67818         * m4/lseek.m4: New file.
67819         * lib/lseek.c: New file.
67820         * modules/lseek-tests: New file.
67821         * tests/test-lseek.c: New file.
67822         * tests/test-lseek.sh: New file.
67823         * MODULES.html.sh: Document lseek module.
67824         * modules/fflush (Depends-on): Add lseek, fseeko.
67825         * modules/fseeko (Depends-on): Likewise.
67826         * modules/ftello (Depends-on): Likewise.
67827         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
67828         broken.
67829         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
67830         broken.
67831         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
67832         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
67833         * lib/ftello.c (rpl_ftello): Likewise.
67834         * tests/test-fseeko.c (main): Test this.
67835         * tests/test-fseeko.sh: Likewise.
67836         * tests/test-ftello.c (main): Likewise.
67837         * tests/test-ftello.sh: Likewise.
67838         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
67839         implies replacing fseek.
67840         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
67841         HAVE_FTELLO.
67842         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
67843         * modules/unistd (Makefile.am): Likewise.
67844         * lib/unistd_.h (lseek): Declare a replacement.
67845         * doc/functions/lseek.texi (lseek): Document this fix.
67846         * doc/functions/fseek.texi (fseek): Likewise.
67847         * doc/functions/ftell.texi (ftell): Likewise.
67848
67849 2007-05-24  Bruno Haible  <bruno@clisp.org>
67850
67851         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
67852         in the printed representation of a NaN.
67853         * tests/test-vasprintf-posix.c (test_function): Likewise.
67854         * tests/test-snprintf-posix.h (test_function): Likewise.
67855         * tests/test-sprintf-posix.h (test_function): Likewise.
67856         Reported by Eric Blake.
67857
67858 2007-05-23  Eric Blake  <ebb9@byu.net>
67859
67860         Fix fseeko/ftello on cygwin 1.5.24.
67861         * doc/functions/fseeko.texi (fseeko): Document the fix.
67862         * doc/functions/ftello.texi (ftello): Document the fix.
67863         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
67864         * doc/functions/stdout.text (stdout): New file.
67865         * doc/functions/stderr.text (stderr): New file.
67866         * doc/gnulib.texi (Function Substitutes): Use new files.
67867         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
67868         prior to 1.7.0.
67869         * tests/test-ftello.c (main): Likewise for ftello.
67870         * tests/test-fseeko.sh: New file.
67871         * tests/test-ftello.sh: New file.
67872         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
67873         with seekable stdin.
67874         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
67875         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
67876         (gl_REPLACE_FSEEKO): New macro.
67877         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
67878         * modules/fseeko (Files): Distribute fseeko.c.
67879         * modules/ftello (Files): Distribute ftello.c.
67880         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
67881         mode.
67882         * lib/ftello.c (rpl_ftello): New file.
67883         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
67884         fseeko, ftello.
67885         (gl_STDIN_LARGE_OFFSET): New macro.
67886         * modules/stdio (Makefile.am): Perform the replacement.
67887         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
67888
67889 2007-05-23  Bruno Haible  <bruno@clisp.org>
67890
67891         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
67892         GNULIB_POSIXCHECK is defined.
67893
67894 2007-05-21  Bruno Haible  <bruno@clisp.org>
67895
67896         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
67897         Check also the output for NaN arguments. When cross-compiling, guess
67898         no on IRIX.
67899         * lib/vasnprintf.c: Update comments.
67900         * tests/test-vasnprintf-posix.c (strisnan): New function.
67901         (test_function): Use it.
67902         * tests/test-vasprintf-posix.c (strisnan): New function.
67903         (test_function): Use it.
67904         * tests/test-snprintf-posix.h (strisnan): New function.
67905         (test_function): Use it.
67906         * tests/test-sprintf-posix.h (strisnan): New function.
67907         (test_function): Use it.
67908         Reported by Eric Blake.
67909
67910 2007-05-20  Bruno Haible  <bruno@clisp.org>
67911
67912         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
67913         numbers that fails on BeOS.
67914         * doc/functions/frexpl.texi: Update.
67915
67916 2007-05-20  Jim Meyering  <jim@meyering.net>
67917
67918         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
67919         forced upon us by glibc-2.6.
67920
67921 2007-05-20  Bruno Haible  <bruno@clisp.org>
67922
67923         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
67924         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
67925         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
67926         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
67927         NEED_PRINTF_INFINITE.
67928         (is_infinitel): New function.
67929         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
67930         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
67931         gl_PREREQ_VASNPRINTF_INFINITE.
67932         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
67933         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67934         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
67935         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
67936         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
67937         gl_PREREQ_VASNPRINTF_INFINITE.
67938         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
67939         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67940         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67941         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67942         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67943         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67944         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67945         * doc/functions/fprintf.texi: Update.
67946         * doc/functions/printf.texi: Update.
67947         * doc/functions/snprintf.texi: Update.
67948         * doc/functions/sprintf.texi: Update.
67949         * doc/functions/vfprintf.texi: Update.
67950         * doc/functions/vprintf.texi: Update.
67951         * doc/functions/vsnprintf.texi: Update.
67952         * doc/functions/vsprintf.texi: Update.
67953
67954 2007-05-20  Bruno Haible  <bruno@clisp.org>
67955
67956         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
67957         was not found in libc.
67958         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
67959
67960 2007-05-20  Bruno Haible  <bruno@clisp.org>
67961
67962         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
67963         printed as "-nan" instead of "nan".
67964         * tests/test-vasprintf-posix.c (test_function): Likewise.
67965         * tests/test-snprintf-posix.h (test_function): Likewise.
67966         * tests/test-sprintf-posix.h (test_function): Likewise.
67967         Needed for HP-UX 11.
67968
67969 2007-05-20  Jim Meyering  <jim@meyering.net>
67970
67971         Fix buggy test for the fchownat-deref bug.
67972         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
67973         symlink required for the run-test.  Without it, this test would
67974         always declare that fchownat doesn't work, and client code would
67975         unnecessarily use the replacement function with fixed libc.
67976         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
67977         Reported by Greg Schafer.
67978
67979 2007-05-19  Bruno Haible  <bruno@clisp.org>
67980
67981         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
67982         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
67983         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
67984         Needed for IRIX 6.5 and Solaris 2.5.1.
67985
67986 2007-05-19  Bruno Haible  <bruno@clisp.org>
67987
67988         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
67989         (test_function): Skip tests involving -0.0 on platforms where
67990         -0.0 = 0.0.
67991         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
67992         (test_function): Skip tests involving -0.0 on platforms where
67993         -0.0 = 0.0.
67994         * tests/test-snprintf-posix.h (have_minus_zero): New function.
67995         (test_function): Skip tests involving -0.0 on platforms where
67996         -0.0 = 0.0.
67997         * tests/test-sprintf-posix.h (have_minus_zero): New function.
67998         (test_function): Skip tests involving -0.0 on platforms where
67999         -0.0 = 0.0.
68000         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
68001         tests.
68002         * tests/test-printf-posix.h (test_function): Likewise.
68003         * tests/test-printf-posix.output: Remove all -0.0 related results.
68004         Needed for IRIX 6.5.
68005
68006 2007-05-19  Bruno Haible  <bruno@clisp.org>
68007
68008         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
68009         printed as "nan0x7fffffff" instead of "nan".
68010         * tests/test-vasprintf-posix.c (test_function): Likewise.
68011         * tests/test-snprintf-posix.h (test_function): Likewise.
68012         * tests/test-sprintf-posix.h (test_function): Likewise.
68013         * tests/test-fprintf-posix.h (NaN): Remove macro.
68014         (test_function): Remove all NaN related tests.
68015         * tests/test-printf-posix.h (NaN): Remove macro.
68016         (test_function): Remove all NaN related tests.
68017         * tests/test-printf-posix.output: Remove all NaN related results.
68018         Needed for IRIX 6.5.
68019
68020 2007-05-19  Bruno Haible  <bruno@clisp.org>
68021
68022         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
68023         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
68024
68025 2007-05-19  Bruno Haible  <bruno@clisp.org>
68026
68027         * lib/float_.h: New file.
68028         * m4/float_h.m4: New file.
68029         * modules/float: New file.
68030         * modules/isnanl (Dependencies): Add float.
68031         * modules/isnanl-nolibm (Dependencies): Likewise.
68032         * modules/mathl (Dependencies): Likewise.
68033         * modules/printf-frexpl (Dependencies): Likewise.
68034         * modules/signbit (Dependencies): Likewise.
68035         * modules/vasnprintf (Dependencies): Likewise.
68036         * doc/headers/float.texi: Update.
68037
68038 2007-05-19  Jim Meyering  <jim@meyering.net>
68039
68040         * lib/utimens.c (gl_futimens): Rename from futimens,
68041         now that glibc-2.6 declares futimens.
68042         * lib/utimens.h: Likewise.
68043
68044 2007-05-19  Bruno Haible  <bruno@clisp.org>
68045
68046         Avoid test failures on mingw.
68047         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
68048         * tests/test-printf-posix.sh: Likewise.
68049         * tests/test-vfprintf-posix.sh: Likewise.
68050         * tests/test-vprintf-posix.sh: Likewise.
68051
68052 2007-05-19  Bruno Haible  <bruno@clisp.org>
68053
68054         Fix *printf result for NaN, Inf, -0.0 on mingw.
68055         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
68056         * lib/vasnprintf.c: Include math.h and isnan.h.
68057         (is_infinite_or_zero): New function.
68058         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
68059         values in the %f, %F, %e, %E, %g, %G directives.
68060         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
68061         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68062         gl_PRINTF_INFINITE and test its result. Invoke
68063         gl_PREREQ_VASNPRINTF_INFINITE.
68064         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68065         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68066         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68067         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68068         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68069         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68070         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68071         * doc/functions/fprintf.texi: Update.
68072         * doc/functions/printf.texi: Update.
68073         * doc/functions/snprintf.texi: Update.
68074         * doc/functions/sprintf.texi: Update.
68075         * doc/functions/vfprintf.texi: Update.
68076         * doc/functions/vprintf.texi: Update.
68077         * doc/functions/vsnprintf.texi: Update.
68078         * doc/functions/vsprintf.texi: Update.
68079
68080 2007-05-19  Bruno Haible  <bruno@clisp.org>
68081
68082         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
68083         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
68084         Instead of multiplying with 10^k, set extra_zeroes to k.
68085         (scale10_round_long_double): Remove function.
68086
68087 2007-05-18  Bruno Haible  <bruno@clisp.org>
68088
68089         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
68090         introduced on 2007-05-06.
68091
68092 2007-05-18  Bruno Haible  <bruno@clisp.org>
68093
68094         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
68095         %g directives.
68096         * tests/test-vasprintf-posix.c (test_function): Likewise.
68097         * tests/test-snprintf-posix.h (test_function): Likewise.
68098         * tests/test-sprintf-posix.h (test_function): Likewise.
68099
68100 2007-05-18  Bruno Haible  <bruno@clisp.org>
68101
68102         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
68103         (strmatch): New function.
68104         (test_function): Test the %f directive on numbers of various exponents.
68105         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
68106         (strmatch): New function.
68107         (test_function): Test the %f directive on numbers of various exponents.
68108         * tests/test-snprintf-posix.h (strmatch): New function.
68109         (test_function): Test the %f directive on numbers of various exponents.
68110         * tests/test-sprintf-posix.h (strmatch): New function.
68111         (test_function): Test the %f directive on numbers of various exponents.
68112         * tests/test-snprintf-posix.c (SIZEOF): New macro.
68113         * tests/test-sprintf-posix.c (SIZEOF): New macro.
68114         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
68115         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
68116
68117 2007-05-18  Bruno Haible  <bruno@clisp.org>
68118
68119         Add support for 'long double' number output.
68120         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
68121         * lib/vasnprintf.c: Include math.h and float+.h.
68122         (mp_limb_t): New type.
68123         (GMP_LIMB_BITS): New macro.
68124         (mp_twolimb_t): New type.
68125         (GMP_TWOLIMB_BITS): New macro.
68126         (mpn_t): New type.
68127         (multiply, divide, convert_to_decimal, decode_long_double,
68128         scale10_round_long_double, scale10_round_decimal_long_double,
68129         floorlog10l): New functions.
68130         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
68131         for the %f, %F, %e, %E, %g, %G directives.
68132         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
68133         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68134         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
68135         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
68136         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68137         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68138         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68139         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68140         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68141         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68142         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68143         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
68144         * modules/snprintf-posix (Depends-on): Likewise.
68145         * modules/sprintf-posix (Depends-on): Likewise.
68146         * modules/vasnprintf-posix (Depends-on): Likewise.
68147         * modules/vasprintf-posix (Depends-on): Likewise.
68148         * modules/vfprintf-posix (Depends-on): Likewise.
68149         * modules/vsnprintf-posix (Depends-on): Likewise.
68150         * modules/vsprintf-posix (Depends-on): Likewise.
68151         * modules/vasnprintf (Files): Add lib/float+.h.
68152         * doc/functions/fprintf.texi: Update.
68153         * doc/functions/printf.texi: Update.
68154         * doc/functions/snprintf.texi: Update.
68155         * doc/functions/sprintf.texi: Update.
68156         * doc/functions/vfprintf.texi: Update.
68157         * doc/functions/vprintf.texi: Update.
68158         * doc/functions/vsnprintf.texi: Update.
68159         * doc/functions/vsprintf.texi: Update.
68160
68161 2007-05-18  Bruno Haible  <bruno@clisp.org>
68162
68163         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
68164
68165 2007-05-18  Bruno Haible  <bruno@clisp.org>
68166
68167         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
68168         for printing 64-bit integers. Needed for mingw.
68169
68170 2007-05-18  Bruno Haible  <bruno@clisp.org>
68171
68172         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
68173         gl_FUNC_FREXPL_WORKS.
68174         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
68175
68176 2007-05-18  Bruno Haible  <bruno@clisp.org>
68177
68178         * modules/frexpl-nolibm-tests: New file.
68179
68180         * modules/frexpl-nolibm: New file.
68181         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
68182
68183 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
68184
68185         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
68186         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
68187         GCC 4.2, which otherwise issues a lot of warnings.
68188         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
68189         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
68190         Likewise.
68191         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
68192         * modules/iconv_open (iconv.h): Likewise.
68193         * modules/locale (locale.h): Likewise.
68194         * modules/netinet_in (netinet/in.h): Likewise.
68195         * modules/sys_select (sys_select.h): Likewise.
68196         * modules/sys_socket (sys/socket.h): Likewise.
68197         * modules/sys_stat (sys/stat.h): Likewise.
68198         * modules/sysexits (sysexits.h): Likewise.
68199         * modules/unistd (unistd.h): Likewise.
68200
68201 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68202
68203         * modules/closein-tests (Makefile.am): Distribute
68204         `test-closein.sh'.
68205
68206 2007-05-17  Bruno Haible  <bruno@clisp.org>
68207
68208         * tests/test-printf-posix.output: Renamed from
68209         tests/test-fprintf-posix.out.
68210         * modules/fprintf-posix-tests: Update.
68211         * modules/printf-posix-tests: Update.
68212         * modules/vfprintf-posix-tests: Update.
68213         * modules/vprintf-posix-tests: Update.
68214         * tests/test-fprintf-posix.sh: Update.
68215         * tests/test-printf-posix.sh: Update.
68216         * tests/test-vfprintf-posix.sh: Update.
68217         * tests/test-vprintf-posix.sh: Update.
68218         Reported by Ralf Wildenhues.
68219
68220 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
68221
68222         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
68223         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
68224         GCC 4.2, which otherwise issues a lot of warnings.
68225         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
68226         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
68227         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
68228         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
68229         it should no longer be needed.
68230         * lib/string_.h: Likewise.
68231         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
68232         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
68233         * modules/inttypes (inttypes.h): Likewise.
68234         * modules/math (math.h): Likewise.
68235         * modules/search (search.h): Likewise.
68236         * modules/signal (signal.h): Likewise.
68237         * modules/stdint (stdint.h): Likewise.
68238         * modules/stdio (stdio.h): Likewise.
68239         * modules/stdlib (stdlib.h): Likewise.
68240         * modules/string (string.h): Likewise.
68241         * modules/sys_time (sys/time.h): Likewise.
68242         * modules/time (time.h): Likewise.
68243         * modules/wchar (wchar.h): Likewise.
68244         * modules/wctype (wtype.h): Likewise.
68245
68246 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
68247
68248         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
68249
68250 2007-05-13  Bruno Haible  <bruno@clisp.org>
68251
68252         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
68253         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
68254         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
68255         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
68256         (gl_PREREQ_STRTOK_R): Don't require it here.
68257
68258 2007-05-13  Bruno Haible  <bruno@clisp.org>
68259
68260         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
68261         when used in C++ mode.
68262
68263 2007-05-12  Bruno Haible  <bruno@clisp.org>
68264
68265         * lib/linebuffer.h: Tweak doc.
68266         * lib/linebuffer.c: Likewise.
68267
68268 2007-05-12  James Youngman  <jay@gnu.org>
68269
68270         * lib/linebuffer.c (readlinebuffer_delim): New function,
68271         like readlinebuffer, but use a caller-specified delimiter.
68272         (readlinebuffer): Just call readlinebuffer_delim with '\n'
68273         as the delimiter.
68274         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
68275
68276 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
68277
68278         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
68279         * modules/openat (Files): Remove openat-die.c.
68280         (Depends-on): Add openat-die.
68281         * modules/openat-die: New module.
68282
68283 2007-05-06  Bruno Haible  <bruno@clisp.org>
68284
68285         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
68286         Update with info about Cygwin.
68287         * doc/functions/fprintf.texi: Update.
68288         * doc/functions/printf.texi: Update.
68289         * doc/functions/snprintf.texi: Update.
68290         * doc/functions/sprintf.texi: Update.
68291         * doc/functions/vfprintf.texi: Update.
68292         * doc/functions/vprintf.texi: Update.
68293         * doc/functions/vsnprintf.texi: Update.
68294         * doc/functions/vsprintf.texi: Update.
68295         Reported by Eric Blake.
68296
68297 2007-05-06  Bruno Haible  <bruno@clisp.org>
68298
68299         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
68300         padding ourselves for the floating-point directives.
68301         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
68302         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
68303         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68304         gl_PRINTF_FLAG_ZERO and test its result. Invoke
68305         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
68306         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68307         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
68308         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68309         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68310         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68311         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68312         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68313         * tests/test-snprintf-posix.h (test_function): Also check the width
68314         and some flags in the %f directive.
68315         * tests/test-sprintf-posix.h (test_function): Likewise.
68316         * tests/test-vasnprintf-posix.c (test_function): Likewise.
68317         * tests/test-vasprintf-posix.c (test_function): Likewise.
68318         * doc/functions/fprintf.texi: Update.
68319         * doc/functions/printf.texi: Update.
68320         * doc/functions/snprintf.texi: Update.
68321         * doc/functions/sprintf.texi: Update.
68322         * doc/functions/vfprintf.texi: Update.
68323         * doc/functions/vprintf.texi: Update.
68324         * doc/functions/vsnprintf.texi: Update.
68325         * doc/functions/vsprintf.texi: Update.
68326
68327 2007-05-06  Bruno Haible  <bruno@clisp.org>
68328
68329         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
68330         pass the ' flag character to sprintf or snprintf.
68331         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
68332         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
68333         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68334         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
68335         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
68336         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68337         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
68338         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68339         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68340         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68341         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68342         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68343         * tests/test-snprintf-posix.h (test_function): Also check the grouping
68344         flag.
68345         * tests/test-sprintf-posix.h (test_function): Likewise.
68346         * tests/test-vasnprintf-posix.c (test_function): Likewise.
68347         * tests/test-vasprintf-posix.c (test_function): Likewise.
68348         * doc/functions/fprintf.texi: Update.
68349         * doc/functions/printf.texi: Update.
68350         * doc/functions/snprintf.texi: Update.
68351         * doc/functions/sprintf.texi: Update.
68352         * doc/functions/vfprintf.texi: Update.
68353         * doc/functions/vprintf.texi: Update.
68354         * doc/functions/vsnprintf.texi: Update.
68355         * doc/functions/vsprintf.texi: Update.
68356
68357 2007-05-01  Bruno Haible  <bruno@clisp.org>
68358
68359         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
68360
68361 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
68362
68363         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
68364         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
68365
68366 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
68367
68368         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
68369         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
68370         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
68371
68372 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
68373
68374         * lib/argp-help.c (struct hol_entry): New member `ord'.
68375         (HOL_ENTRY_PTRCMP): Use ord for comparison
68376         (hol_sort): Initialize ord.
68377
68378 2007-05-01  Bruno Haible  <bruno@clisp.org>
68379
68380         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
68381         Reported by Eric Blake.
68382         * doc/gnulib.texi (Function Substitutes): Update.
68383
68384 2007-05-01  Bruno Haible  <bruno@clisp.org>
68385
68386         * doc/functions.texi: Remove file, now redundant through
68387         doc/functions/*.texi.
68388
68389 2007-05-01  Bruno Haible  <bruno@clisp.org>
68390
68391         * modules/argp (Depends-on): Add sleep.
68392
68393 2007-05-01  Bruno Haible  <bruno@clisp.org>
68394
68395         * modules/sleep-tests: New file.
68396         * tests/test-sleep.c: New file.
68397
68398         * modules/sleep: New file.
68399         * lib/sleep.c: New file.
68400         * m4/sleep.m4: New file.
68401         * lib/unistd_.h (sleep): New declaration.
68402         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
68403         HAVE_SLEEP.
68404         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
68405         * doc/functions/sleep.texi: Document the sleep module.
68406
68407 2007-05-01  Bruno Haible  <bruno@clisp.org>
68408
68409         * lib/sigprocmask.h: Remove file.
68410         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
68411         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
68412         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
68413         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
68414         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
68415         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
68416         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
68417         HAVE_SIGSET_T as a shell variable.
68418         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
68419         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
68420         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
68421         (Depends-on): Add signal. Remove verify.
68422         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
68423         (Include): Mention <signal.h> instead of sigprocmask.h.
68424         * NEWS: Mention the change.
68425         * lib/fatal-signal.c: Don't include sigprocmask.h.
68426
68427 2007-05-01  Bruno Haible  <bruno@clisp.org>
68428
68429         * modules/signal: New file.
68430         * lib/signal_.h: New file.
68431         * m4/signal_h.m4: New file.
68432
68433 2007-05-01  Bruno Haible  <bruno@clisp.org>
68434
68435         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
68436         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
68437         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
68438         HAVE_WCTYPE_CTMP_BUG into wctype.h.
68439
68440 2007-05-01  Bruno Haible  <bruno@clisp.org>
68441
68442         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
68443         configure time.
68444         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
68445         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
68446         * modules/sys_stat (Makefile.am): Substitute their values into
68447         sys/stat.h.
68448
68449 2007-05-01  Bruno Haible  <bruno@clisp.org>
68450
68451         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
68452         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
68453         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
68454
68455 2007-05-01  Bruno Haible  <bruno@clisp.org>
68456
68457         * doc/header/assert.texi: Undo last change: don't mention the gnulib
68458         'assert' module here.
68459
68460 2007-05-01  Bruno Haible  <bruno@clisp.org>
68461
68462         * doc/functions/*.texi: New files.
68463         * doc/functions/google-ranking.txt: New file.
68464         * doc/gnulib.texi (Function Substitutes): New chapter.
68465         (ctime, inet_ntoa): Remove sections.
68466         * doc/ctime.texi: Remove file.
68467         * doc/inet_ntoa.texi: Remove file.
68468         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
68469         dependencies.
68470         (%.info): New rule, specifying a --reference-limit.
68471
68472 2007-05-01  Bruno Haible  <bruno@clisp.org>
68473
68474         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
68475
68476 2007-05-01  Bruno Haible  <bruno@clisp.org>
68477
68478         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
68479         the portability of 'mkdir' to mingw systems.
68480
68481 2007-05-01  Bruno Haible  <bruno@clisp.org>
68482
68483         * doc/headers/google-ranking.txt: New file.
68484
68485 2007-04-30  Eric Blake  <ebb9@byu.net>
68486
68487         Prefer fseeko to fseek.
68488         * modules/getpass (Depends-on): Add fseeko.
68489         * lib/getpass.c (getpass): Use fseeko, not fseek.
68490
68491 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
68492
68493         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
68494         assumes the sorting is stable, while most qsort implementations
68495         are not.  Use argument addresses to ensure they never compare as
68496         equal.
68497
68498         * tests/test-argp-2.sh (usage-indent test): Fix output
68499         (func_compare): Restore diff options
68500         * tests/test-argp.c: Restore #include "progname.h"
68501
68502 2007-04-29  Bruno Haible  <bruno@clisp.org>
68503
68504         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
68505         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68506         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
68507         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
68508         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
68509         (configure.ac): Define CHECK_SNPRINTF_POSIX.
68510         (TESTS, check_PROGRAMS): Add test-snprintf.
68511         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
68512         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
68513         (TESTS, check_PROGRAMS): Add test-vsnprintf.
68514         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
68515         assertions that fail on HP-UX, OSF/1, or IRIX.
68516         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
68517
68518 2007-04-29  Bruno Haible  <bruno@clisp.org>
68519
68520         * MODULES.html.sh (posix_functions): Remove 'contents'.
68521
68522 2007-04-29  Karl Berry  <karl@gnu.org>
68523
68524         * config/srclist.txt (gendocs_template_min): new entry.
68525
68526 2007-04-29  Bruno Haible  <bruno@clisp.org>
68527
68528         Work around fpurge bug on BSD systems.
68529         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
68530         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
68531         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
68532         fpurge to rpl_fpurge if the system already has this function.
68533         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
68534         the case where the system already has this function. Correct invariants
68535         on BSD systems.
68536         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
68537         BSD systems.
68538
68539 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
68540
68541         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
68542         proposed by Sven Verdoolaege.
68543
68544         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
68545         options.
68546         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
68547         (usage and help tests): Update
68548
68549 2007-04-29  Bruno Haible  <bruno@clisp.org>
68550
68551         * tests/test-fflush.c (main): Use a file of size 17, not 10.
68552         Print more information in case of failure. Disable a test on BeOS.
68553
68554 2007-04-29  Bruno Haible  <bruno@clisp.org>
68555
68556         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
68557         This helps debugging on systems on which no gdb is available.
68558
68559 2007-04-29  Bruno Haible  <bruno@clisp.org>
68560
68561         * lib/freading.h: Improve comments.
68562         * lib/fwriting.h: Likewise.
68563         * tests/test-freading.c (main): Don't check freading immediately after
68564         repositioning. Needed for glibc.
68565
68566 2007-04-29  Bruno Haible  <bruno@clisp.org>
68567
68568         * lib/freading.c (freading): Trivial simplification.
68569
68570 2007-04-28  Bruno Haible  <bruno@clisp.org>
68571
68572         * tests/test-fwriting.c (main): Also test the interaction between
68573         fflush and fwriting.
68574         * modules/fwriting-tests (Depends-on): Add fflush.
68575
68576         * tests/test-freading.c (main): Also test the interaction between
68577         fflush and freading.
68578         * modules/freading-tests (Depends-on): Add fflush.
68579
68580 2007-04-28  Bruno Haible  <bruno@clisp.org>
68581
68582         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
68583         fseeko and ftello.
68584         Suggested by Eric Blake.
68585
68586 2007-04-28  Jim Meyering  <jim@meyering.net>
68587
68588         Avoid false-negative in gl_STDINT_H's C99 conformance test.
68589         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
68590         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
68591
68592 2007-04-27  Eric Blake  <ebb9@byu.net>
68593
68594         * doc/headers/assert.texi (assert.h): Document assert module use.
68595
68596 2007-04-27  Bruno Haible  <bruno@clisp.org>
68597
68598         * doc/headers/*.texi: New files.
68599         * doc/gnulib.texi (Header File Substitutes): New chapter.
68600         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
68601         dependencies.
68602         (standards.info ,standards.html, standards.dvi): Update dependencies.
68603         (mostlyclean, clean): New targets.
68604
68605 2007-04-27  Bruno Haible  <bruno@clisp.org>
68606
68607         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
68608         * modules/sysexits (Files, Makefile.am): Update.
68609
68610         * lib/sys_socket_.h: Renamed from lib/socket_.h.
68611         * modules/sys_socket (Files, Makefile.am): Update.
68612
68613         * lib/sys_stat_.h: Renamed from lib/stat_.h.
68614         * modules/sys_stat (Files, Makefile.am): Update.
68615
68616 2007-04-27  Eric Blake  <ebb9@byu.net>
68617
68618         * lib/freading.h: Improve comments.
68619         * lib/fwriting.h: Likewise.
68620         * lib/fflush.c: Likewise.
68621
68622         Fix closein for mingw.
68623         * modules/closein-tests: Add tests for closein.
68624         * tests/test-closein.c: New file.
68625         * tests/test-closein.sh: Likewise.
68626         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
68627         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
68628
68629 2007-04-27  Bruno Haible  <bruno@clisp.org>
68630
68631         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
68632         version is < 6.
68633         * lib/math_.h [__DECC]: Likewise.
68634         * lib/stdio_.h [__DECC]: Likewise.
68635         * lib/stdlib_.h [__DECC]: Likewise.
68636         * lib/string_.h [__DECC]: Likewise.
68637         * lib/time_.h [__DECC]: Likewise.
68638         * lib/wchar_.h [__DECC]: Likewise.
68639         * lib/wctype_.h [__DECC]: Likewise.
68640
68641 2007-04-27  Bruno Haible  <bruno@clisp.org>
68642
68643         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
68644
68645 2007-04-27  Bruno Haible  <bruno@clisp.org>
68646
68647         * lib/fflush.c: Add comments.
68648         * modules/fpurge-tests (Depends-on): Add fflush.
68649         * modules/freadable-tests (Depends-on): Likewise.
68650         * modules/fwritable-tests (Depends-on): Likewise.
68651
68652 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
68653
68654         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
68655         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
68656         Report by Bruno Haible <bruno@clisp.org>.
68657
68658 2007-04-26  Eric Blake  <ebb9@byu.net>
68659
68660         Fix fflush on mingw.
68661         * modules/fflush (Depends-on): Add freading.
68662         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
68663         but unread data.
68664
68665 2007-04-26  Eric Blake  <ebb9@byu.net>
68666         and Bruno Haible  <bruno@clisp.org>
68667
68668         Implement freading and fwriting.
68669         * lib/freading.c: New file.
68670         * lib/freading.h: Likewise.
68671         * m4/freading.m4: Likewise.
68672         * modules/freading: Likewise.
68673         * modules/freading-tests: Likewise.
68674         * tests/test-freading.c: Likewise.
68675         * lib/fwriting.c: New file.
68676         * lib/fwriting.h: Likewise.
68677         * m4/fwriting.m4: Likewise.
68678         * modules/fwriting: Likewise.
68679         * modules/fwriting-tests: Likewise.
68680         * tests/test-fwriting.c: Likewise.
68681         * MODULES.html.sh (File stream based Input/Output): Mention them.
68682
68683 2007-04-26  Bruno Haible  <bruno@clisp.org>
68684
68685         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
68686         'long' when we assume it.
68687         Suggested by Eric Blake.
68688
68689 2007-04-26  Bruno Haible  <bruno@clisp.org>
68690
68691         Ensure fseeko, ftello are declared on glibc systems.
68692         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
68693         * modules/fseeko (configure.ac-early): Likewise.
68694         * modules/ftello (configure.ac-early): Likewise.
68695         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
68696         AC_FUNC_FSEEKO for this.
68697         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
68698         (gl_CHECK_FSEEKO): Remove macro.
68699
68700 2007-04-26  Bruno Haible  <bruno@clisp.org>
68701
68702         * tests/test-fflush.c (main): Also check the ftell result after
68703         fflush and fseek/fseeko.
68704         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
68705         file descriptor position cache in the stream.
68706         * lib/fseeko.c (rpl_fseeko): Likewise.
68707
68708 2007-04-26  Bruno Haible  <bruno@clisp.org>
68709
68710         * modules/fflush-tests (Depends-on): Add fseeko.
68711
68712 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
68713             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68714
68715         * lib/argz_.h: ensure error_t definition is obtained in same
68716         mechanism system argz.h would have.
68717         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
68718         argz facilities are known bad.  Err on the side of caution if
68719         cross-compiling.
68720
68721 2007-04-25  Eric Blake  <ebb9@byu.net>
68722
68723         * lib/fpurge.c (includes): Use stdlib.h for free.
68724         * tests/test-fflush.c (main): Also test fflush-fseeko.
68725
68726 2007-04-25  Bruno Haible  <bruno@clisp.org>
68727
68728         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
68729         * lib/fseeko.c: New file.
68730         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
68731         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
68732         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
68733         gl_FUNC_FSEEKO.
68734         (gl_FUNC_FSEEKO): Invoke it.
68735         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
68736         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
68737         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
68738
68739 2007-04-25  Bruno Haible  <bruno@clisp.org>
68740
68741         * modules/fflush (Depends-on): Add ftello.
68742
68743 2007-04-25  Bruno Haible  <bruno@clisp.org>
68744
68745         * modules/ftello-tests: New file.
68746         * tests/test-ftello.c: New file.
68747
68748         * modules/ftello: New file.
68749         * m4/ftello.m4: New file.
68750         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
68751         HAVE_FTELLO.
68752         * lib/stdio_.h (ftello): New declaration.
68753         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
68754         HAVE_FTELLO.
68755
68756 2007-04-25  Bruno Haible  <bruno@clisp.org>
68757
68758         * modules/fseeko-tests: New file.
68759         * tests/test-fseeko.c: New file.
68760
68761         * modules/fseeko: New file.
68762         * m4/fseeko.m4: New file.
68763         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
68764         HAVE_FSEEKO.
68765         * lib/stdio_.h (fseeko): New declaration.
68766         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
68767         HAVE_FSEEKO.
68768
68769 2007-04-25  Bruno Haible  <bruno@clisp.org>
68770
68771         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
68772
68773 2007-04-25  Bruno Haible  <bruno@clisp.org>
68774
68775         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
68776         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
68777         * tests/test-unistd.c: Likewise.
68778         * tests/test-fcntl.c: Likewise.
68779
68780 2007-04-23  Eric Blake  <ebb9@byu.net>
68781
68782         * lib/fflush.c: Fix missing include.
68783         Reported by Bruno Haible.
68784
68785 2007-04-23  Bruno Haible  <bruno@clisp.org>
68786
68787         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
68788         Reported by Eric Blake.
68789
68790 2007-04-23  Bruno Haible  <bruno@clisp.org>
68791
68792         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
68793
68794 2007-04-23  Bruno Haible  <bruno@clisp.org>
68795
68796         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
68797
68798 2007-04-23  Bruno Haible  <bruno@clisp.org>
68799
68800         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
68801         Needed on HP-UX 11.
68802
68803 2007-04-16  Eric Blake  <ebb9@byu.net>
68804
68805         Make fflush rely on fpurge.
68806         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
68807         open coding all variants.
68808         * modules/fflush (Depends-on): Add fpurge and unistd.
68809         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
68810         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
68811
68812         Fix --with-tests compilation on cygwin.
68813         * modules/argmatch-tests (Makefile.am): List gnulib library first
68814         in LDADD.
68815         * modules/argp-tests (Makefile.am): Likewise.
68816         * modules/array-list-tests (Makefile.am): Likewise.
68817         * modules/array-oset-tests (Makefile.am): Likewise.
68818         * modules/avltree-list-tests (Makefile.am): Likewise.
68819         * modules/avltree-oset-tests (Makefile.am): Likewise.
68820         * modules/avltreehash-list-tests (Makefile.am): Likewise.
68821         * modules/carray-list-tests (Makefile.am): Likewise.
68822         * modules/dirname-tests (Makefile.am): Likewise.
68823         * modules/frexp-tests (Makefile.am): Likewise.
68824         * modules/isnanl-tests (Makefile.am): Likewise.
68825         * modules/linked-list-tests (Makefile.am): Likewise.
68826         * modules/linkedhash-list-tests (Makefile.am): Likewise.
68827         * modules/lock-tests (Makefile.am): Likewise.
68828         * modules/rbtree-list-tests (Makefile.am): Likewise.
68829         * modules/rbtree-oset-tests (Makefile.am): Likewise.
68830         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
68831         * modules/tls-tests (Makefile.am): Likewise.
68832         * modules/tsearch-tests (Makefile.am): Likewise.
68833         * modules/xvasprintf-tests (Makefile.am): Likewise.
68834
68835         Fix fpurge for cygwin.
68836         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
68837         value.
68838         * modules/fpurge-tests (Depends-on): Clean up trash.
68839
68840 2007-04-16  Simon Josefsson  <simon@josefsson.org>
68841
68842         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
68843
68844         * m4/autobuild.m4: Re-indent.
68845
68846 2007-04-13  Bruno Haible  <bruno@clisp.org>
68847
68848         * modules/fpurge-tests: New file.
68849         * tests/test-fpurge.c: New file.
68850
68851         * modules/fpurge: New file.
68852         * lib/fpurge.h: New file.
68853         * lib/fpurge.c: New file.
68854         * m4/fpurge.m4: New file.
68855
68856 2007-04-13  Bruno Haible  <bruno@clisp.org>
68857
68858         * modules/fbufmode-tests: New file.
68859         * tests/test-fbufmode.c: New file.
68860
68861         * modules/fbufmode: New file.
68862         * lib/fbufmode.h: New file.
68863         * lib/fbufmode.c: New file.
68864         * m4/fbufmode.m4: New file.
68865
68866 2007-04-13  Bruno Haible  <bruno@clisp.org>
68867
68868         * modules/fwritable-tests: New file.
68869         * tests/test-fwritable.c: New file.
68870
68871         * modules/fwritable: New file.
68872         * lib/fwritable.h: New file.
68873         * lib/fwritable.c: New file.
68874         * m4/fwritable.m4: New file.
68875
68876 2007-04-13  Bruno Haible  <bruno@clisp.org>
68877
68878         * modules/freadable-tests: New file.
68879         * tests/test-freadable.c: New file.
68880
68881         * modules/freadable: New file.
68882         * lib/freadable.h: New file.
68883         * lib/freadable.c: New file.
68884         * m4/freadable.m4: New file.
68885
68886 2007-04-13  Bruno Haible  <bruno@clisp.org>
68887
68888         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
68889         MOSTLYCLEANFILES.
68890
68891 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
68892
68893         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
68894         gzip bootstrap.conf to avoid dragging in i18n machinery.
68895         (gnulib_tool_option): Use it.
68896
68897 2007-04-13  Bruno Haible  <bruno@clisp.org>
68898
68899         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
68900         %F directives.
68901         * tests/test-vasprintf-posix.c (test_function): Likewise.
68902         * tests/test-snprintf-posix.h (test_function): Likewise.
68903         * tests/test-sprintf-posix.h (test_function): Likewise.
68904         * tests/test-fprintf-posix.h (test_function): Likewise.
68905         * tests/test-printf-posix.h (test_function): Likewise.
68906         * tests/test-fprintf-posix.out: Likewise.
68907
68908 2007-04-13  Bruno Haible  <bruno@clisp.org>
68909
68910         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
68911         * modules/tls-tests (configure.ac): Likewise.
68912         Reported by Arto C. Nirkko <anirkko@insel.ch>.
68913
68914 2007-04-13  Bruno Haible  <bruno@clisp.org>
68915
68916         * lib/tls.c (glthread_tls_get): Fix return type.
68917         Patch by Arto C. Nirkko <anirkko@insel.ch>.
68918
68919 2007-04-12  Eric Blake  <ebb9@byu.net>
68920
68921         * modules/gettime (Depends-on): Remove gettime.
68922         Reported by Dmitry V. Levin.
68923
68924 2007-04-12  Bruno Haible  <bruno@clisp.org>
68925
68926         * modules/fflush (Include): Mention <stdio.h>.
68927         * modules/strtoimax (Include): Mention <inttypes.h>.
68928         * modules/strtoumax (Include): Likewise.
68929
68930 2007-04-12  Eric Blake  <ebb9@byu.net>
68931
68932         * .cvsignore: New file.
68933         * .gitignore: Likewise.
68934
68935 2007-04-12  Bruno Haible  <bruno@clisp.org>
68936
68937         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
68938         not before, since $(LDADD) often contains libgnu.a.
68939         * modules/striconv-tests (test_striconv_LDADD): Likewise.
68940         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
68941         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
68942         Needed on Cygwin.
68943
68944 2007-04-12  Eric Blake  <ebb9@byu.net>
68945
68946         Work around glibc's failure to flush stdin on fclose.
68947         * lib/closein.c (close_stdin): Flush stdin before closing.
68948
68949         Work around glibc's failure to reset seekable stdin on exit.
68950         * modules/closein: New module.
68951         * lib/closein.c: New file.
68952         * lib/closein.h: Likewise.
68953         * m4/closein.m4: Likewise.
68954         * MODULES.html.sh (File stream based Input/Output): Document it.
68955
68956 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68957
68958         * gnulib-tool: Rename generated 'autobuild' script to
68959         'do-autobuild' in --create-megatestdir output.
68960
68961         * doc/gnulib.texi (Build robot for gnulib): Fix.
68962
68963 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68964
68965         * modules/sysexits (Depends-on): Add absolute-header.
68966
68967 2007-04-12  Eric Blake  <ebb9@byu.net>
68968
68969         No need to preserve errno on success.
68970         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
68971         Reported by Bruno Haible.
68972
68973 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68974
68975         * MODULES.html.sh (Support for maintaining and releasing
68976         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
68977
68978 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68979
68980         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
68981
68982 2007-04-12  Simon Josefsson  <simon@josefsson.org>
68983
68984         * modules/autobuild: New module.
68985
68986         * m4/autobuild.m4: New file.
68987
68988 2007-04-11  Bruno Haible  <bruno@clisp.org>
68989
68990         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
68991         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
68992         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
68993         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
68994         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
68995         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68996         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
68997         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
68998         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
68999         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69000         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
69001         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69002         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69003         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
69004         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69005         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69006         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
69007         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69008         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69009         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
69010         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69011         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69012         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
69013         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69014         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69015         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
69016         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
69017         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
69018         Reported by Eric Blake.
69019
69020 2007-04-11  Bruno Haible  <bruno@clisp.org>
69021
69022         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
69023
69024 2007-04-10  Bruno Haible  <bruno@clisp.org>
69025
69026         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
69027         for NaN and Infinity. Needed on FreeBSD 6.1.
69028         * tests/test-vasnprintf-posix.c (test_function): Undo last change
69029         regarding results for "%010a" of Infinity and NaN.
69030         * tests/test-vasprintf-posix.c (test_function): Likewise.
69031         * tests/test-snprintf-posix.h (test_function): Likewise.
69032         * tests/test-sprintf-posix.h (test_function): Likewise.
69033         * tests/test-fprintf-posix.h (test_function): Likewise.
69034         * tests/test-printf-posix.h (test_function): Likewise.
69035         * tests/test-fprintf-posix.out: Likewise.
69036
69037 2007-04-10  Bruno Haible  <bruno@clisp.org>
69038
69039         * modules/locale-tests: New file.
69040         * tests/test-locale.c: New file.
69041
69042         * modules/locale: New file.
69043         * lib/locale_.h: New file.
69044         * m4/locale_h.m4: New file.
69045
69046 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
69047             Bruno Haible  <bruno@clisp.org>
69048
69049         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
69050         be determined, test for availability of the copysignf, copysign,
69051         copysignl functions.
69052         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
69053         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
69054         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
69055
69056 2007-04-09  Eric Blake  <ebb9@byu.net>
69057
69058         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
69059         * modules/stdio (Makefile.am): Support fflush.
69060         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
69061         * modules/fflush: New file.
69062         * lib/fflush.c: Likewise.
69063         * m4/fflush.m4: Likewise.
69064         * modules/fflush-tests: New test.
69065         * tests/test-fflush.c: Likewise.
69066         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
69067
69068 2007-04-06  Bruno Haible  <bruno@clisp.org>
69069
69070         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
69071         (VASNPRINTF): Use signbit for faster determination whether to print a
69072         minus sign.
69073         * modules/vasnprintf (Files): Remove lib/float+.h.
69074         * modules/fprintf-posix (Depends-on): Add signbit.
69075         * modules/snprintf-posix (Depends-on): Likewise.
69076         * modules/sprintf-posix (Depends-on): Likewise.
69077         * modules/vasnprintf-posix (Depends-on): Likewise.
69078         * modules/vasprintf-posix (Depends-on): Likewise.
69079         * modules/vfprintf-posix (Depends-on): Likewise.
69080         * modules/vsnprintf-posix (Depends-on): Likewise.
69081         * modules/vsprintf-posix (Depends-on): Likewise.
69082
69083 2007-04-06  Bruno Haible  <bruno@clisp.org>
69084
69085         * tests/test-frexp.c (main): Test also the sign bit of zero results.
69086         * tests/test-frexpl.c (main): Likewise.
69087         * tests/test-ldexpl.c (main): Likewise.
69088         * modules/frexp-tests (Depends-on): Add signbit.
69089         * modules/frexpl-tests (Depdends-on): Likewise.
69090         * modules/ldexpl-tests (Depdends-on): Likewise.
69091
69092 2007-04-06  Bruno Haible  <bruno@clisp.org>
69093
69094         * modules/signbit-tests: New file.
69095         * tests/test-signbit.c: New file.
69096
69097         * modules/signbit: New file.
69098         * lib/signbitf.c: New file.
69099         * lib/signbitd.c: New file.
69100         * lib/signbitl.c: New file.
69101         * m4/signbit.m4: New file.
69102         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
69103         (signbit): New macro.
69104         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
69105         REPLACE_SIGNBIT.
69106         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
69107         REPLACE_FREXPL into math.h.
69108
69109 2007-04-06  Bruno Haible  <bruno@clisp.org>
69110
69111         * modules/isnanf-nolibm-tests: New file.
69112         * tests/test-isnanf.c: New file.
69113
69114         * modules/isnanf-nolibm: New file.
69115         * lib/isnanf.h: New file.
69116         * lib/isnanf.c: New file.
69117         * lib/isnan.c: Consider the USE_FLOAT macro.
69118         * m4/isnanf.m4: New file.
69119
69120 2007-04-06  Bruno Haible  <bruno@clisp.org>
69121
69122         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
69123         (Link): New section.
69124
69125         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
69126
69127 2007-04-06  Bruno Haible  <bruno@clisp.org>
69128
69129         Assume the 'long double' type.
69130         * m4/longdouble.m4: Remove file.
69131         * config/srclist.txt: Don't mention longdouble.m4.
69132         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
69133         * lib/float+.h: Likewise.
69134         * lib/frexp.c: Likewise.
69135         * lib/printf-args.h: Likewise.
69136         * lib/printf-args.c: Likewise.
69137         * lib/printf-frexp.c: Likewise.
69138         * lib/printf-parse.c: Likewise.
69139         * lib/vasnprintf.c: Likewise.
69140         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
69141         * m4/intl.m4: Likewise.
69142         * m4/isnanl.m4: Likewise.
69143         * m4/printf.m4: Likewise.
69144         * m4/printf-frexpl.m4: Likewise.
69145         * m4/vasnprintf.m4: Likewise.
69146         * modules/allocsa (Files): Remove m4/longdouble.m4.
69147         * modules/gettext (Files): Likewise.
69148         * modules/relocatable-prog-wrapper (Files): Likewise.
69149         * modules/vasnprintf (Files): Likewise.
69150         * modules/isnanl (Files): Likewise.
69151         (Include): Simplify.
69152         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
69153         (Include): Simplify.
69154         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
69155         (Include): Simplify.
69156         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
69157         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69158         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
69159         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69160         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
69161         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69162         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
69163         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69164         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
69165         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69166         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
69167         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
69168         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
69169         * tests/test-isnanl.c: Likewise.
69170         * tests/test-snprintf-posix.h: Likewise.
69171         * tests/test-sprintf-posix.h: Likewise.
69172         * tests/test-vasnprintf-posix.c: Likewise.
69173         * tests/test-vasnprintf-posix2.c: Likewise.
69174         * tests/test-vasprintf-posix.c: Likewise.
69175
69176 2007-04-06  Bruno Haible  <bruno@clisp.org>
69177
69178         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
69179         * lib/math_.h [__DECC]: Include the overridden include file through
69180         #include_next, outside the double-inclusion guard.
69181         * lib/stdio_.h [__DECC]: Likewise.
69182         * lib/stdlib_.h [__DECC]: Likewise.
69183         * lib/string_.h [__DECC]: Likewise.
69184         * lib/time_.h [__DECC]: Likewise.
69185         * lib/wchar_.h [__DECC]: Likewise.
69186         * lib/wctype_.h [__DECC]: Likewise.
69187         * lib/inttypes_.h [__DECC]: Likewise.
69188         Reported by Albert Chin <china@thewrittenword.com> in
69189         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
69190
69191 2007-04-04  Eric Blake  <ebb9@byu.net>
69192
69193         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
69194         1.5.x.
69195
69196 2007-04-04  Bruno Haible  <bruno@clisp.org>
69197
69198         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
69199         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
69200
69201 2007-04-04  Bruno Haible  <bruno@clisp.org>
69202
69203         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
69204         results for "%010a" of Infinity and NaN.
69205         * tests/test-vasprintf-posix.c (test_function): Likewise.
69206         * tests/test-snprintf-posix.h (test_function): Likewise.
69207         * tests/test-sprintf-posix.h (test_function): Likewise.
69208         * tests/test-fprintf-posix.h (test_function): Remove these tests.
69209         * tests/test-printf-posix.h (test_function): Likewise.
69210         * tests/test-fprintf-posix.out: Update.
69211         Needed for FreeBSD 6.1.
69212
69213 2007-04-04  Bruno Haible  <bruno@clisp.org>
69214
69215         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
69216         directly used by the gnulib modules nor by gnulib-tool.
69217
69218 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
69219
69220         * DEPENDENCIES: Give overall description of version dependency
69221         desirability.  Use more-typical names for apps.
69222         Add shell, coreutils, diffutils, grep, tar, gzip.
69223
69224 2007-04-04  Simon Josefsson  <simon@josefsson.org>
69225
69226         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
69227
69228 2007-04-04  Karl Berry  <karl@gnu.org>
69229
69230         * MODULES.html.sh (func_module): missing '.
69231
69232 2007-04-03  Bruno Haible  <bruno@clisp.org>
69233
69234         * modules/argmatch-tests (Makefile.am): New variable
69235         test_argmatch_LDADD.
69236         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
69237         * modules/array-list-tests (Makefile.am): New variable
69238         test_array_list_LDADD.
69239         * modules/array-oset-tests (Makefile.am): New variable
69240         test_array_oset_LDADD.
69241         * modules/avltree-list-tests (Makefile.am): New variable
69242         test_avltree_list_LDADD.
69243         * modules/avltree-oset-tests (Makefile.am): New variable
69244         test_avltree_oset_LDADD.
69245         * modules/avltreehash-list-tests (Makefile.am): New variable
69246         test_avltreehash_list_LDADD.
69247         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
69248         test_canonicalize_lgpl_LDADD.
69249         * modules/carray-list-tests (Makefile.am): New variable
69250         test_carray_list_LDADD.
69251         * modules/dirname-tests (Makefile.am): New variable
69252         test_dirname_LDADD.
69253         * modules/linked-list-tests (Makefile.am): New variable
69254         test_linked_list_LDADD.
69255         * modules/linkedhash-list-tests (Makefile.am): New variable
69256         test_linkedhash_list_LDADD.
69257         * modules/rbtree-list-tests (Makefile.am): New variable
69258         test_rbtree_list_LDADD.
69259         * modules/rbtree-oset-tests (Makefile.am): New variable
69260         test_rbtree_oset_LDADD.
69261         * modules/rbtreehash-list-tests (Makefile.am): New variable
69262         test_rbtreehash_list_LDADD.
69263         * modules/xvasprintf-tests (Makefile.am): New variable
69264         test_xvasprintf_LDADD.
69265         Reported by Eric Blake.
69266
69267 2007-04-03  Eric Blake  <ebb9@byu.net>
69268
69269         * DEPENDENCIES: Weaken m4 requirements.
69270
69271 2007-04-03  Bruno Haible  <bruno@clisp.org>
69272
69273         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
69274         * modules/isnanl-tests (configure.ac): Likewise.
69275
69276 2007-04-03  Ben Pfaff  <blp@gnu.org>
69277
69278         * modules/iconv_open: Add $(srcdir)/ to source directory
69279         references in Makefile fragments that call gperf, to fix VPATH
69280         builds.
69281
69282 2007-04-03  Bruno Haible  <bruno@clisp.org>
69283
69284         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
69285         * lib/ldexpl.c: Undo last change.
69286
69287 2007-04-03  Bruno Haible  <bruno@clisp.org>
69288
69289         * modules/printf-frexpl (Depends-on): Undo last change.
69290         (Files): Add m4/ldexpl.m4.
69291
69292 2007-04-03  Bruno Haible  <bruno@clisp.org>
69293
69294         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
69295         * modules/isnanl (Link): New section.
69296
69297         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
69298         * modules/frexp (Link): New section.
69299
69300         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
69301         * modules/frexpl (Link): New section.
69302
69303         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
69304         * modules/ldexpl (Link): New section.
69305
69306 2007-04-03  Bruno Haible  <bruno@clisp.org>
69307
69308         * modules/TEMPLATE-EXTENDED: New file.
69309         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
69310
69311 2007-04-03  Bruno Haible  <bruno@clisp.org>
69312
69313         * DEPENDENCIES: New file.
69314         Suggested by Simon Josefsson.
69315
69316 2007-04-03  Bruno Haible  <bruno@clisp.org>
69317
69318         * doc/gnulib.texi: Escape @.
69319
69320 2007-04-03  James Youngman  <jay@gnu.org>
69321         and Paul Eggert  <eggert@cs.ucla.edu>
69322
69323         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
69324         birthtime on all systems that have birthtime, not just those which
69325         use st_birthtimensec rather than st_birthtim.  Putting zero in
69326         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
69327         that the birth time is not available for files on an NFS mount.
69328
69329 2007-04-03  Simon Josefsson  <simon@josefsson.org>
69330
69331         * modules/memxor: Move back from crypto/, suggested by Bruno.
69332         * modules/crypto/hmac-sha1: Fix memxor dependency.
69333
69334         * modules/crypto/gc: Moved from ../.
69335
69336 2007-04-02  Eric Blake  <ebb9@byu.net>
69337
69338         * lib/ldexpl.c (includes): Avoid libm.
69339
69340         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
69341
69342 2007-04-02  Bruno Haible  <bruno@clisp.org>
69343
69344         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
69345         on IRIX.
69346
69347 2007-04-02  Bruno Haible  <bruno@clisp.org>
69348
69349         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
69350         x86 or x86_64 platforms running MacOS X.
69351         Reported by Ryan Schmidt <@ryandesign.com>.
69352
69353 2007-04-02  Bruno Haible  <bruno@clisp.org>
69354
69355         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
69356         i386.
69357
69358 2007-04-01  Simon Josefsson  <simon@josefsson.org>
69359
69360         * modules/crypto/arcfour: Moved from ../.
69361         * modules/crypto/arcfour-tests: Moved from ../.
69362         * modules/crypto/arctwo: Moved from ../.
69363         * modules/crypto/arctwo-tests: Moved from ../.
69364         * modules/crypto/des: Moved from ../.
69365         * modules/crypto/des-tests: Moved from ../.
69366         * modules/crypto/gc-arcfour: Moved from ../.
69367         * modules/crypto/gc-arcfour-tests: Moved from ../.
69368         * modules/crypto/gc-arctwo: Moved from ../.
69369         * modules/crypto/gc-arctwo-tests: Moved from ../.
69370         * modules/crypto/gc-des: Moved from ../.
69371         * modules/crypto/gc-des-tests: Moved from ../.
69372         * modules/crypto/gc-hmac-md5: Moved from ../.
69373         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
69374         * modules/crypto/gc-hmac-sha1: Moved from ../.
69375         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
69376         * modules/crypto/gc-md2: Moved from ../.
69377         * modules/crypto/gc-md2-tests: Moved from ../.
69378         * modules/crypto/gc-md4: Moved from ../.
69379         * modules/crypto/gc-md4-tests: Moved from ../.
69380         * modules/crypto/gc-md5: Moved from ../.
69381         * modules/crypto/gc-md5-tests: Moved from ../.
69382         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
69383         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
69384         * modules/crypto/gc-random: Moved from ../.
69385         * modules/crypto/gc-rijndael: Moved from ../.
69386         * modules/crypto/gc-rijndael-tests: Moved from ../.
69387         * modules/crypto/gc-sha1: Moved from ../.
69388         * modules/crypto/gc-sha1-tests: Moved from ../.
69389         * modules/crypto/gc-tests: Moved from ../.
69390         * modules/crypto/hmac-md5: Moved from ../.
69391         * modules/crypto/hmac-md5-tests: Moved from ../.
69392         * modules/crypto/hmac-sha1: Moved from ../.
69393         * modules/crypto/hmac-sha1-tests: Moved from ../.
69394         * modules/crypto/md2: Moved from ../.
69395         * modules/crypto/md2-tests: Moved from ../.
69396         * modules/crypto/md4: Moved from ../.
69397         * modules/crypto/md4-tests: Moved from ../.
69398         * modules/crypto/md5: Moved from ../.
69399         * modules/crypto/md5-tests: Moved from ../.
69400         * modules/crypto/memxor: Moved from ../.
69401         * modules/crypto/rijndael: Moved from ../.
69402         * modules/crypto/rijndael-tests: Moved from ../.
69403         * modules/crypto/sha1: Moved from ../.
69404
69405 2007-03-30  James Youngman  <jay@gnu.org>
69406
69407         * tests/test-stat-time.c (prepare_test): use chmod() rather than
69408         rename() to change the ctime of a file (because ctime is unaffected
69409         by rename on jfs2 on AIX 5.1).
69410         (main): Start by doing cleanup, in case a previous run failed leaving
69411         test files behind.
69412
69413 2007-03-31  Bruno Haible  <bruno@clisp.org>
69414
69415         Support old proprietary implementations of iconv.
69416         * modules/iconv_open: New file.
69417         * lib/iconv_.h: New file.
69418         * m4/iconv_h.m4: New file.
69419         * lib/iconv_open.c: New file.
69420         * lib/iconv_open-aix.gperf: New file.
69421         * lib/iconv_open-hpux.gperf: New file.
69422         * lib/iconv_open-irix.gperf: New file.
69423         * lib/iconv_open-osf.gperf: New file.
69424         * m4/iconv_open.m4: New file.
69425         * modules/linebreak (Depends-on): Add iconv_open.
69426         * modules/striconv (Depends-on): Likewise.
69427         * modules/striconveh (Depends-on): Likewise.
69428         * modules/unicodeio (Depends-on): Likewise.
69429         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
69430         (iconv_t)(-1).
69431         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
69432         conversion if cd is (iconv_t)(-1).
69433         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
69434         is not possible.
69435
69436 2007-03-31  Bruno Haible  <bruno@clisp.org>
69437
69438         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
69439         work on Solaris either. Protect also second use of "autodetect_jp".
69440
69441 2007-03-31  Bruno Haible  <bruno@clisp.org>
69442
69443         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
69444         the function is not present.
69445
69446 2007-03-31  Bruno Haible  <bruno@clisp.org>
69447
69448         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
69449         the function is not present.
69450
69451 2007-03-31  Bruno Haible  <bruno@clisp.org>
69452
69453         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
69454         a bug in HP-UX iconv_open().
69455
69456 2007-03-31  Bruno Haible  <bruno@clisp.org>
69457
69458         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
69459         (Mathematics <math.h>): New section, add fpieee.
69460         (Input/output <stdio.h>): Add fseterr.
69461         (Mathematics <math.h>): New section, add printf-frexp.
69462         (Container data structures): Add sublist.
69463         (Core language properties): Add fpucw, inline.
69464         (Functions for greatest-width integer types <inttypes.h>): Add
69465         imaxabs, imaxdiv, inttypes.
69466         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
69467         isnanl-nolibm, ldexp.
69468         (Mathematics <math.h>): New section, add printf-frexpl.
69469         (Support for systems lacking POSIX:2001): Add fprintf-posix,
69470         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
69471         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
69472         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
69473         (Unicode string functions): Add unistr/u*-mbtoucr.
69474         (Java): Add javacomp-script, javaexec-script.
69475         (C#): Add csharpcomp-script, csharpexec-script.
69476         (Support for building libraries and executables): Add havelib,
69477         relocatable-*.
69478         (Support for maintaining and releasing projects): Renamed from
69479         'Support for maintaining and release projects'. Add announce-gen.
69480
69481 2007-03-31  Bruno Haible  <bruno@clisp.org>
69482
69483         * README: Talk primarily about git.
69484         (git and CVS): Renamed from CVS.
69485         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
69486         gnulib is available through git.
69487         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
69488
69489 2007-03-30  Bruno Haible  <bruno@clisp.org>
69490
69491         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
69492         * lib/poll_.h: Likewise.
69493         * lib/stat_.h: Likewise.
69494         * lib/sys_time_.h: Likewise.
69495         * lib/sysexit_.h: Likewise.
69496         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
69497         * lib/stdbool_.h: Likewise.
69498         * lib/byteswap_.h: Add double-inclusion guard.
69499
69500 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
69501
69502         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
69503
69504 2007-03-30  Karl Berry  <karl@gnu.org>
69505
69506         * config/srclist-update: double space after USA in the license
69507         substitution, since that's how it's usually (?) written.
69508
69509 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
69510
69511         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
69512         reported by Bruno Haible.
69513
69514 2007-03-29  Bruno Haible  <bruno@clisp.org>
69515
69516         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
69517         a bug in AIX iconv().
69518
69519 2007-03-29  Bruno Haible  <bruno@clisp.org>
69520
69521         * modules/ldexpl-tests: New file.
69522         * tests/test-ldexpl.c: New file.
69523
69524 2007-03-29  Bruno Haible  <bruno@clisp.org>
69525
69526         * lib/ldexpl.c: Include fpucw.h.
69527         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
69528         multiplication.
69529         * modules/ldexpl (Depends-on): Add fpucw.
69530
69531 2007-03-29  Bruno Haible  <bruno@clisp.org>
69532
69533         * modules/ldexpl: New file.
69534         * m4/ldexpl.m4: New file.
69535         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
69536         set.
69537         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
69538         REPLACE_LDEXPL.
69539         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
69540         REPLACE_LDEXPL.
69541         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
69542         gl_FUNC_LDEXPL_WORKS.
69543         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
69544         * modules/mathl (Files): Remove lib/ldexpl.c.
69545         (Depends-on): Add ldexpl.
69546
69547 2007-03-29  Bruno Haible  <bruno@clisp.org>
69548
69549         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
69550
69551 2007-03-29  Bruno Haible  <bruno@clisp.org>
69552
69553         * tests/test-striconveh.c (main): Don't assume that a direct conversion
69554         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
69555         and possibly also HP-UX.
69556         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
69557         work on AIX, IRIX, HP-UX, OSF/1.
69558         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
69559         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
69560         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
69561         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
69562         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
69563         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
69564
69565 2007-03-29  Bruno Haible  <bruno@clisp.org>
69566
69567         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
69568
69569 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
69570
69571         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
69572         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
69573
69574 2007-03-29  Eric Blake  <ebb9@byu.net>
69575
69576         * lib/acl-internal.h: Remove redundant include.
69577         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
69578         Cygwin when a file is locked.
69579
69580 2007-03-29  Bruno Haible  <bruno@clisp.org>
69581
69582         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
69583         file.
69584         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
69585
69586 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
69587
69588         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
69589         try to remove a parent directory if the child couldn't be removed
69590         (except for the first rmdir, which could fail because the child
69591         doesn't exist).  Problem reported by Jeff Blaine in
69592         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
69593
69594 2007-03-28  Bruno Haible  <bruno@clisp.org>
69595
69596         * lib/striconveh.c (utf8conv_carefully): New function.
69597         (mem_cd_iconveh_internal): Invoke it.
69598
69599 2007-03-28  Bruno Haible  <bruno@clisp.org>
69600
69601         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
69602         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
69603         input.
69604         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
69605         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
69606         unistr/u8-uctomb.
69607
69608 2007-03-28  Bruno Haible  <bruno@clisp.org>
69609
69610         * modules/unistr/u8-mbtoucr: New file.
69611         * lib/unistr/u8-mbtoucr.c: New file.
69612         * modules/unistr/u16-mbtoucr: New file.
69613         * lib/unistr/u16-mbtoucr.c: New file.
69614         * modules/unistr/u16-mbtoucr: New file.
69615         * lib/unistr/u16-mbtoucr.c: New file.
69616         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
69617
69618 2007-03-27  Simon Josefsson  <simon@josefsson.org>
69619             Bruno Haible  <bruno@clisp.org>
69620
69621         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
69622         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
69623         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
69624
69625         * m4/stdio_h.m4: Add stubs for vasprintf too.
69626
69627         * modules/stdio: Support vasprintf in sed command.
69628
69629         * modules/vasprintf: Depend on stdio for prototypes.  Remove
69630         vasprintf.h.  Add stdio module indicator.
69631
69632         * lib/stdio_.h: Declare asprintf and vasprintf, based on
69633         vasprintf.h.
69634
69635         * lib/vasprintf.h: File removed.
69636
69637         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
69638         * lib/vasprintf.c: Ditto.
69639         * lib/xvasprintf.c: Ditto.
69640         * tests/test-vasprintf-posix.c: Ditto.
69641         * tests/test-vasprintf.c: Ditto.
69642
69643 2007-03-27  Bruno Haible  <bruno@clisp.org>
69644
69645         Make vasnprintf multithread-safe.
69646         * lib/vasnprintf.c (decimal_point_char): New function.
69647         (VASNPRINTF): Use it.
69648         Suggested by Simon Josefsson.
69649
69650 2007-03-27  Eric Blake  <ebb9@byu.net>
69651
69652         Support sub-second birthtime on cygwin.
69653         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
69654         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
69655         (get_stat_birthtime): Also work with st_birthtim.
69656
69657 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
69658
69659         * lib/stat-time.h (USE_BIRTHTIME): Remove.
69660         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
69661         (get_stat_birthtime_ns): Do not try to use "spare" fields.
69662         (get_stat_birthtime_ns): Simplify compile-time tests.
69663         (get_stat_birthtime): Change the API to look like
69664         get_stat_mtime etc., except return a negative tv_nsec on error.
69665         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
69666         Don't check for "spare" fields.
69667         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
69668         or for struct stat.st_birthtime, as these tests aren't used.
69669         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
69670
69671 2007-03-27  Bruno Haible  <bruno@clisp.org>
69672
69673         * lib/stat-time.h: Include <sys/stat.h>.
69674
69675 2007-03-27  James Youngman  <jay@gnu.org>
69676
69677         * lib/stat-time.h (get_stat_birthtime): New function for
69678           retrieving st_birthtime as provided by UFS2 (hence *BSD).
69679         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
69680           and its variants.
69681         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
69682         * modules/stat-time-test: New file.
69683         * tests/test-stat-time.c: New test, devised by Bruno Haible.
69684
69685 2007-03-26  Bruno Haible  <bruno@clisp.org>
69686
69687         Better support of signalling NaNs.
69688         * lib/atanl.c: Include isnanl.h.
69689         (atanl): Perform test for NaN at the beginning of the function and
69690         through a call to isnanl.
69691         * lib/cosl.c: Include isnanl.h.
69692         (cosl): Perform test for NaN at the beginning of the function and
69693         through a call to isnanl.
69694         * lib/ldexpl.c: Include isnanl.h.
69695         (ldexpl): Perform test for NaN through a call to isnanl.
69696         * lib/logl.c: Include isnanl.h.
69697         (logl): Perform test for NaN at the beginning of the function and
69698         through a call to isnanl.
69699         * lib/sinl.c: Include isnanl.h.
69700         (sinl): Perform test for NaN at the beginning of the function and
69701         through a call to isnanl.
69702         * lib/sqrtl.c: Include isnanl.h.
69703         (sqrtl): Perform test for NaN at the beginning of the function and
69704         through a call to isnanl.
69705         * lib/tanl.c: Include isnanl.h.
69706         (tanl): Perform test for NaN at the beginning of the function and
69707         through a call to isnanl.
69708         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
69709         * modules/mathl (Depends-on): Add isnanl.
69710
69711 2007-03-26  Eric Blake  <ebb9@byu.net>
69712
69713         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
69714         regression in logic sense of previous patch.
69715
69716 2007-03-26  Bruno Haible  <bruno@clisp.org>
69717
69718         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
69719         unportable shell command "if ! ...".
69720         Reported by Ralf Wildenhues.
69721
69722 2007-03-25  Bruno Haible  <bruno@clisp.org>
69723
69724         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
69725         <sysexits.h> file, and only add EX_CONFIG.
69726         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
69727         absolute file name and whether it is sufficient. Substitute also
69728         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
69729         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
69730         ABSOLUTE_SYSEXITS_H into sysexits.h.
69731
69732 2007-03-25  Bruno Haible  <bruno@clisp.org>
69733
69734         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
69735         hints is NULL.
69736
69737 2007-03-25  Bruno Haible  <bruno@clisp.org>
69738
69739         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
69740         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
69741
69742 2007-03-25  Bruno Haible  <bruno@clisp.org>
69743
69744         * lib/vasnprintf.c: Include langinfo.h.
69745         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
69746         multithread-safe.
69747         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
69748         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
69749         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
69750         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69751         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69752         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69753         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
69754         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
69755         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69756         Reported by Simon Josefsson.
69757
69758 2007-03-25  Bruno Haible  <bruno@clisp.org>
69759
69760         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
69761         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
69762         * modules/vasnprintf (Depends-on): Add stdint.
69763
69764 2007-03-25  Bruno Haible  <bruno@clisp.org>
69765
69766         * modules/fpieee: New file.
69767         * m4/fpieee.m4: New file.
69768         * modules/isnan-nolibm (Depends-on): Add fpieee.
69769         * modules/isnanl-nolibm (Depends-on): Add fpieee.
69770         * modules/isnanl (Depends-on): Add fpieee.
69771
69772 2007-03-25  Bruno Haible  <bruno@clisp.org>
69773
69774         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
69775
69776 2007-03-25  Bruno Haible  <bruno@clisp.org>
69777
69778         Avoid test failures on IRIX 6.5.
69779         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
69780         (main): Use it.
69781         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
69782         macros.
69783         (main): Use them.
69784
69785 2007-03-25  Bruno Haible  <bruno@clisp.org>
69786
69787         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
69788         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
69789         exists but doesn't work.
69790         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
69791         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
69792         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
69793         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
69794         math.h.
69795
69796 2007-03-25  Bruno Haible  <bruno@clisp.org>
69797
69798         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
69799         returns inf. Needed on IRIX 6.5.
69800
69801 2007-03-25  Bruno Haible  <bruno@clisp.org>
69802
69803         * tests/test-frexpl.c: Include isnanl-nolibm.h.
69804         (main): Use isnanl instead of x != x idiom.
69805         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
69806
69807         * tests/test-frexp.c: Include isnan.h.
69808         (main): Use isnan instead of x != x idiom.
69809         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
69810
69811 2007-03-25  Bruno Haible  <bruno@clisp.org>
69812
69813         * tests/test-frexp.c (NaN): New function/macro.
69814         (main): Use it instead of 0.0 / 0.0.
69815         * tests/test-isnan.c (NaN): New function/macro.
69816         (main): Use it instead of 0.0 / 0.0.
69817         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
69818         (test_function): Use it instead of 0.0 / 0.0.
69819         * tests/test-vasprintf-posix.c (NaN): New function/macro.
69820         (test_function): Use it instead of 0.0 / 0.0.
69821         * tests/test-snprintf-posix.h (NaN): New function/macro.
69822         (test_function): Use it instead of 0.0 / 0.0.
69823         * tests/test-sprintf-posix.h (NaN): New function/macro.
69824         (test_function): Use it instead of 0.0 / 0.0.
69825         * tests/test-fprintf-posix.h (NaN): New function/macro.
69826         (test_function): Use it instead of 0.0 / 0.0.
69827         * tests/test-printf-posix.h (NaN): New function/macro.
69828         (test_function): Use it instead of 0.0 / 0.0.
69829
69830         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
69831
69832 2007-03-25  Bruno Haible  <bruno@clisp.org>
69833
69834         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
69835
69836 2007-03-25  Bruno Haible  <bruno@clisp.org>
69837
69838         * lib/regexec.c (merge_state_with_log): Make static.
69839
69840 2007-03-25  Bruno Haible  <bruno@clisp.org>
69841
69842         * lib/trigl.c (kernel_rem_pio2): Make static.
69843
69844 2007-03-25  Bruno Haible  <bruno@clisp.org>
69845
69846         * lib/sincosl.c (sincosl_table): Make static.
69847
69848 2007-03-25  Bruno Haible  <bruno@clisp.org>
69849
69850         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
69851         if the compiler does not support C99.
69852
69853 2007-03-25  Bruno Haible  <bruno@clisp.org>
69854
69855         * modules/time (Makefile.am): Ensure all rule action lines start with a
69856         tab.
69857
69858 2007-03-24  Bruno Haible  <bruno@clisp.org>
69859
69860         * modules/tsearch-tests: New file.
69861         * tests/test-tsearch.sh: New file.
69862         * tests/test-tsearch.c: New file, mostly copied from glibc.
69863
69864         * modules/search-tests: New file.
69865         * tests/test-search.c: New file.
69866
69867         * modules/search: New file.
69868         * lib/search_.h: New file, incorporating lib/tsearch.h.
69869         * m4/search_h.m4: New file.
69870         * lib/tsearch.h: Remove file.
69871         * lib/tsearch.c: Include search.h instead of tsearch.h.
69872         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
69873         HAVE_TSEARCH.
69874         * modules/tsearch (Files): Remove lib/tsearch.h.
69875         (Depends-on): Add search.
69876         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
69877         (Include): Change tsearch.h into search.h.
69878
69879 2007-03-24  Bruno Haible  <bruno@clisp.org>
69880
69881         * modules/fpucw: New file.
69882         * lib/fpucw.h: New file.
69883         * lib/frexp.c: Include fpucw.h.
69884         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
69885         (FUNC): Use them.
69886         * lib/printf-frexp.c: Include fpucw.h.
69887         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
69888         (FUNC): Use them.
69889         * lib/vasnprintf.c: Include fpucw.h.
69890         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
69891         'long double' calculations.
69892         * tests/test-frexpl.c: Include fpucw.h.
69893         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
69894         * tests/test-printf-frexpl.c: Include fpucw.h.
69895         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
69896         * modules/frexpl (Depends-on): Add fpucw.
69897         * modules/printf-frexpl (Depends-on): Likewise.
69898         * modules/fprintf-posix (Depends-on): Likewise.
69899         * modules/snprintf-posix (Depends-on): Likewise.
69900         * modules/sprintf-posix (Depends-on): Likewise.
69901         * modules/vasnprintf-posix (Depends-on): Likewise.
69902         * modules/vasprintf-posix (Depends-on): Likewise.
69903         * modules/vfprintf-posix (Depends-on): Likewise.
69904         * modules/vsnprintf-posix (Depends-on): Likewise.
69905         * modules/vsprintf-posix (Depends-on): Likewise.
69906         * modules/frexpl-tests (Depends-on): Likewise.
69907         * modules/printf-frexpl-tests (Depends-on): Likewise.
69908
69909 2007-03-24  Bruno Haible  <bruno@clisp.org>
69910
69911         * lib/float+.h: New file.
69912         * lib/isnan.c: Include float+.h.
69913         (SIZE): New macro.
69914         (FUNC): Compare only SIZE bytes of the value.
69915         * lib/vasnprintf.c: Include float+.h.
69916         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
69917         SIZEOF_LDBL or SIZEOF_DBL bytes.
69918         * modules/isnan-nolibm (Files): Add lib/float+.h.
69919         * modules/isnanl-nolibm (Files): Add lib/float+.h.
69920         * modules/isnanl (Files): Add lib/float+.h.
69921         * modules/vasnprintf (Files): Add lib/float+.h.
69922
69923 2007-03-24  Bruno Haible  <bruno@clisp.org>
69924
69925         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
69926         include isnanl-nolibm.h.
69927
69928 2007-03-24  Bruno Haible  <bruno@clisp.org>
69929
69930         * tests/test-read-file.c (main): Don't produce spurious output for
69931         expected situations. Make the test fail if it encountered unexpected
69932         results.
69933
69934 2007-03-24  Bruno Haible  <bruno@clisp.org>
69935
69936         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
69937         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
69938
69939 2007-03-24  Bruno Haible  <bruno@clisp.org>
69940
69941         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
69942
69943 2007-03-24  Bruno Haible  <bruno@clisp.org>
69944
69945         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
69946         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
69947
69948         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
69949         * modules/utf8-ucs4: Turn into a symbolic link to module
69950         unistr/u8-mbtouc.
69951
69952         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
69953         utf8-ucs4-unsafe.
69954         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
69955         unistr/u8-mbtouc-unsafe.
69956
69957         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
69958         * modules/utf16-ucs4: Turn into a symbolic link to module
69959         unistr/u16-mbtouc.
69960
69961         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
69962         utf16-ucs4-unsafe.
69963         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
69964         unistr/u16-mbtouc-unsafe.
69965
69966         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
69967         * modules/ucs4-utf8: Turn into a symbolic link to module
69968         unistr/u8-ubtomb.
69969
69970         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
69971         * modules/ucs4-utf16: Turn into a symbolic link to module
69972         unistr/u16-ubtomb.
69973
69974 2007-03-24  Bruno Haible  <bruno@clisp.org>
69975
69976         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
69977         Enable the function only if HAVE_INLINE.
69978         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
69979         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
69980         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
69981         Enable the function only if HAVE_INLINE.
69982         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
69983         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
69984         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
69985         Enable the function only if HAVE_INLINE.
69986         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
69987         Enable the function only if HAVE_INLINE.
69988         * modules/utf8-ucs4: Update.
69989         * modules/utf8-ucs4-unsafe: Update.
69990         * modules/utf16-ucs4: Update.
69991         * modules/utf16-ucs4-unsafe: Update.
69992         * modules/ucs4-utf8: Update.
69993         * modules/ucs4-utf16: Update.
69994
69995 2007-03-24  Bruno Haible  <bruno@clisp.org>
69996
69997         * lib/utf8-ucs4.h: Remove file.
69998         * lib/utf8-ucs4-unsafe.h: Remove file.
69999         * lib/utf16-ucs4.h: Remove file.
70000         * lib/utf16-ucs4-unsafe.h: Remove file.
70001         * lib/ucs4-utf8.h: Remove file.
70002         * lib/ucs4-utf16.h: Remove file.
70003         * lib/unistr.h: Include their previous contents.
70004         * m4/utf-ucs4.m4: Remove file.
70005         * m4/ucs4-utf.m4: Remove file.
70006         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
70007         (Depends-on): Add unistr/base.
70008         (configure.ac): Remove gl_UTF_UCS4.
70009         (Makefile.am): Update.
70010         (Include): Change to unistr.h.
70011         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
70012         (Depends-on): Add unistr/base.
70013         (configure.ac): Remove gl_UTF_UCS4.
70014         (Makefile.am): Update.
70015         (Include): Change to unistr.h.
70016         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
70017         (Depends-on): Add unistr/base.
70018         (configure.ac): Remove gl_UTF_UCS4.
70019         (Makefile.am): Update.
70020         (Include): Change to unistr.h.
70021         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
70022         (Depends-on): Add unistr/base.
70023         (configure.ac): Remove gl_UTF_UCS4.
70024         (Makefile.am): Update.
70025         (Include): Change to unistr.h.
70026         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
70027         (Depends-on): Add unistr/base.
70028         (configure.ac): Remove gl_UCS4_UTF.
70029         (Makefile.am): Update.
70030         (Include): Change to unistr.h.
70031         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
70032         (Depends-on): Add unistr/base.
70033         (configure.ac): Remove gl_UCS4_UTF.
70034         (Makefile.am): Update.
70035         (Include): Change to unistr.h.
70036         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
70037         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
70038         utf8-ucs4-unsafe.h.
70039         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
70040         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
70041         utf16-ucs4-unsafe.h.
70042         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
70043         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
70044         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
70045         * lib/unistr/u8-strchr.c: Likewise.
70046         * lib/unistr/u8-strrchr.c: Likewise.
70047         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
70048         * lib/unistr/u16-strchr.c: Likewise.
70049         * lib/unistr/u16-strrchr.c: Likewise.
70050         * lib/striconveh.c: Update.
70051         * lib/linebreak.c: Update.
70052
70053 2007-03-24  Bruno Haible  <bruno@clisp.org>
70054
70055         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
70056         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
70057
70058 2007-03-22  Bruno Haible  <bruno@clisp.org>
70059
70060         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
70061
70062 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
70063
70064         * MODULES.html.sh (File system functions): New module write-any-file.
70065         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
70066         * m4/write-any-file.m4: New files.
70067
70068 2007-03-23  Eric Blake  <ebb9@byu.net>
70069
70070         * gnulib-tool: Rearrange space-tab sequences, since some editors
70071         like to eat them.
70072
70073 2007-03-23  Eric Blake  <ebb9@byu.net>
70074
70075         * lib/version-etc.c (version_etc_va): Update license wording to
70076         be more concise.  Recommended by Richard Stallman.
70077
70078 2007-03-22  Bruno Haible  <bruno@clisp.org>
70079
70080         * lib/poll.c (MSG_PEEK): New fallback definition.
70081
70082 2007-03-22  Bruno Haible  <bruno@clisp.org>
70083
70084         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
70085         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
70086         (main): Update.
70087         Fixes a compilation error on BeOS.
70088
70089 2007-03-22  Bruno Haible  <bruno@clisp.org>
70090
70091         * modules/frexpl-tests: New file.
70092         * tests/test-frexpl.c: New file.
70093
70094         * modules/frexpl: New file.
70095         * m4/frexpl.m4: New file.
70096         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
70097         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
70098         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
70099         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
70100         (Depends-on): Add frexpl. Remove isnanl-nolibm.
70101         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
70102
70103 2007-03-22  Bruno Haible  <bruno@clisp.org>
70104
70105         * lib/frexpl.c: Share code with lib/frexp.c.
70106         * modules/mathl (Files): Add lib/frexp.c.
70107         (Depends-on): Add isnanl-nolibm.
70108
70109 2007-03-22  Bruno Haible  <bruno@clisp.org>
70110
70111         * modules/printf-frexp (Files): Add m4/frexp.m4.
70112         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
70113         only if the found frexp function actually works.
70114
70115 2007-03-22  Bruno Haible  <bruno@clisp.org>
70116
70117         * lib/frexp.c: Remove older implementation that uses divisions.
70118
70119 2007-03-21  Bruno Haible  <bruno@clisp.org>
70120
70121         * modules/frexp-tests: New file.
70122         * tests/test-frexp.c: New file.
70123
70124         * modules/frexp: New file.
70125         * lib/frexp.c: New file.
70126         * m4/frexp.m4: New file.
70127         * lib/math_.h (frexp): New declaration.
70128         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
70129         REPLACE_FREXP.
70130         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
70131
70132 2007-03-21  Bruno Haible  <bruno@clisp.org>
70133
70134         * modules/isnanl-tests: New file.
70135         * tests/test-isnanl.c: New file.
70136
70137         * modules/isnanl: New file.
70138         * lib/isnanl.h: New file.
70139         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
70140         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
70141         gl_FUNC_ISNANL_WORKS.
70142         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
70143         New macros.
70144
70145 2007-03-21  Bruno Haible  <bruno@clisp.org>
70146
70147         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
70148         lib/isnanl.h.
70149         (Include): Update.
70150         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
70151         * lib/vasnprintf.c: Update.
70152         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
70153         tests/test-isnanl.h, remove tests/test-isnanl.c.
70154         (Makefile.am): Update.
70155         * tests/test-isnanl-nolibm.c: New file.
70156         * tests/test-isnanl.h: New file.
70157         * tests/test-isnanl.c: Remove file.
70158
70159 2007-03-21  Jim Meyering  <jim@meyering.net>
70160
70161         When trying to open ".", treat ESTALE like EACCES.
70162         * lib/savewd.c (savewd_save): Resort to forking not just upon
70163         failure with EACCES, but also when errno is ESTALE.
70164
70165 2007-03-20  Bruno Haible  <bruno@clisp.org>
70166
70167         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
70168         Needed on AIX 5.1. Reported by Matthew Woehlke.
70169
70170 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70171
70172         Suggestions by Bruno Haible:
70173         * lib/acl-internal.h: Include "gettext.h" rather than rolling
70174         our own.
70175         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
70176         * modules/acl (Depends-on): Add gettext.
70177
70178 2007-03-19  Bruno Haible  <bruno@clisp.org>
70179
70180         * modules/iconvme: Remove file.
70181         * lib/iconvme.h: Remove file.
70182         * lib/iconvme.c: Remove file.
70183         * m4/iconvme.m4: Remove file.
70184
70185 2007-03-19  Bruno Haible  <bruno@clisp.org>
70186
70187         * doc/relocatable-maint.texi: Break long shell script line.
70188         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
70189
70190 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70191
70192         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
70193         handle file_has_acl.
70194         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
70195         * lib/acl.c: Move header inclusions and related macro defns into
70196         lib/acl-internal.h.
70197         (S_ISLNK): Remove defn, since that's now done for us.
70198         (file_has_acl): Move to lib/file-has-acl.c.
70199         Call acl_trivial if available.  This is the crucial part of the fix.
70200         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
70201         shared within the library.  Rewrite a bit, partly to make it compatible
70202         with the GNU coding style.
70203         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
70204         Remove unnecessary double-quotes.
70205         Don't test for acl_to_text; the build will catch that.
70206         Replace acl_entries if it doesn't exist and it is needed.
70207         Check for -lsec and acl_trivial (as used on Solaris 10).
70208         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
70209         lib/file-has-acl.c.
70210         (Depends-on): Add sys_stat, for S_ISLNK.
70211
70212 2007-03-19  Ben Pfaff  <blp@gnu.org>
70213
70214         * doc/gnulib.texi: Fix typos.
70215         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
70216
70217 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
70218
70219         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
70220         If size is zero here, buf must be zero.
70221
70222 2007-03-19  Simon Josefsson  <simon@josefsson.org>
70223
70224         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
70225         <bruno@clisp.org>.
70226
70227 2007-03-18  Bruno Haible  <bruno@clisp.org>
70228
70229         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
70230         Suggested by Eric Blake.
70231
70232 2007-03-18  Ben Pfaff  <blp@gnu.org>
70233
70234         * doc/relocatable.texi: Recommend using as prefix a directory
70235         that does not exist and will never be created.  Based on
70236         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
70237         and others.
70238
70239 2007-03-17  Bruno Haible  <bruno@clisp.org>
70240
70241         * lib/fchownat.c: Include lchown.h.
70242
70243 2007-03-17  Bruno Haible  <bruno@clisp.org>
70244
70245         Fix endless loop when the given allocated size was > INT_MAX.
70246         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
70247         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
70248         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
70249         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
70250         * lib/sprintf.c (sprintf): Likewise.
70251
70252 2007-03-17  Bruno Haible  <bruno@clisp.org>
70253
70254         * tests/test-argp-2.sh (func_compare): Output a context diff.
70255
70256 2007-03-17  Bruno Haible  <bruno@clisp.org>
70257
70258         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
70259         locale's decimal-point character.
70260
70261 2007-03-17  Bruno Haible  <bruno@clisp.org>
70262
70263         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
70264         before comparing it. Needed because on some platforms (e.g. x86) a
70265         'long double' occupies less bytes than sizeof (long double).
70266
70267 2007-03-17  Bruno Haible  <bruno@clisp.org>
70268
70269         * tests/test-crc.c (main): Make printf statements 64-bit clean.
70270         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
70271         * tests/test-getaddrinfo.c (simple): Likewise.
70272         * tests/test-read-file.c (main): Likewise.
70273
70274 2007-03-17  Bruno Haible  <bruno@clisp.org>
70275
70276         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
70277
70278 2007-03-17  Bruno Haible  <bruno@clisp.org>
70279
70280         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
70281         unused variable.
70282
70283 2007-03-17  Bruno Haible  <bruno@clisp.org>
70284
70285         * tests/test-c-strcasecmp.c: Include c-strcase.h.
70286         * tests/test-c-strncasecmp.c: Likewise.
70287
70288 2007-03-17  Bruno Haible  <bruno@clisp.org>
70289
70290         * modules/stdlib (Depends-on): Add unistd.
70291         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
70292         Needed for MacOS X 10.3.
70293
70294 2007-03-17  Bruno Haible  <bruno@clisp.org>
70295
70296         * lib/unistr/u-strdup.h: Include <stdlib.h>.
70297
70298 2007-03-17  Bruno Haible  <bruno@clisp.org>
70299
70300         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
70301
70302 2007-03-17  Bruno Haible  <bruno@clisp.org>
70303
70304         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
70305         to reflect files copied from gnulib (with or without modifications).
70306         Suggested by Jim Meyering.
70307
70308 2007-03-17  Eric Blake  <ebb9@byu.net>
70309
70310         * NEWS: Document stdlib change from 2007-02-18.
70311
70312 2007-03-17  Jim Meyering  <jim@meyering.net>
70313
70314         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
70315         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
70316         someone uses a name containing shell meta-characters.
70317         Reported by Alfred M. Szmidt.
70318
70319         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
70320
70321 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
70322
70323         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
70324         and copy gettext configuration files only if configure.ac contains
70325         a use of AM_GNU_GETTEXT_VERSION.
70326
70327 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
70328
70329         * build-aux/bootstrap (gnulib_name): New variable.
70330         (gnulib_tool_options): Use it.
70331
70332 2007-03-13  Simon Josefsson  <simon@josefsson.org>
70333
70334         * tests/test-des.c: Use new namespace.
70335
70336 2007-03-15  Bruno Haible  <bruno@clisp.org>
70337
70338         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
70339         Reported by James Youngman <jay@gnu.org>.
70340
70341 2007-03-15  Bruno Haible  <bruno@clisp.org>
70342
70343         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
70344         declared prototype. Needed with cc on OSF/1 5.1.
70345
70346 2007-03-15  Bruno Haible  <bruno@clisp.org>
70347
70348         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
70349         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
70350         (struct gl_list_implementation): Add dispose_fn argument to the
70351         'create_empty', 'create' methods.
70352         (struct gl_list_impl_base): Add field 'dispose_fn'.
70353         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
70354         argument.
70355         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
70356         dispose_fn argument.
70357         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
70358         dispose_fn on the dropped values.
70359         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
70360         dispose_fn argument.
70361         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
70362         dropped values.
70363         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
70364         (gl_tree_remove_node): Call dispose_fn on the dropped value.
70365         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
70366         (gl_tree_remove_node): Call dispose_fn on the dropped value.
70367         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
70368         argument.
70369         (gl_tree_list_free): Call dispose_fn on the dropped values.
70370         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
70371         the dropped values.
70372         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
70373         Add dispose_fn argument.
70374         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
70375         Call dispose_fn on the dropped values.
70376         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
70377         Add dispose_fn argument.
70378         (gl_sublist_create): Initialize the 'dispose_fn' field.
70379         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
70380         * tests/test-array_list.c (main): Update.
70381         * tests/test-carray_list.c (main): Update.
70382         * tests/test-avltree_list.c (main): Update.
70383         * tests/test-rbtree_list.c (main): Update.
70384         * tests/test-avltreehash_list.c (main): Update.
70385         * tests/test-rbtreehash_list.c (main): Update.
70386         * tests/test-linked_list.c (main): Update.
70387         * tests/test-linkedhash_list.c (main): Update.
70388         * tests/test-array_oset.c (main): Update.
70389
70390 2007-03-15  Bruno Haible  <bruno@clisp.org>
70391
70392         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
70393         (gl_oset_create_empty): Add dispose_fn argument.
70394         (struct gl_oset_implementation): Add dispose_fn argument to
70395         'create_empty' method.
70396         (struct gl_oset_impl_base): Add dispose_fn field.
70397         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
70398         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
70399         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
70400         values.
70401         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
70402         (gl_tree_oset_free): Call dispose_fn on the dropped values.
70403         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
70404         dropped value.
70405         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
70406         dropped value.
70407         * tests/test-array_oset.c (main): Update.
70408         * tests/test-avltree_oset.c (main): Update.
70409         * tests/test-rbtree_oset.c (main): Update.
70410         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
70411
70412 2007-03-13  Bruno Haible  <bruno@clisp.org>
70413
70414         * tests/test-stdbool.c (i): Update after last patch.
70415
70416 2007-03-12  Bruno Haible  <bruno@clisp.org>
70417
70418         * lib/quotearg.c: Include <wctype.h> early, before the definition of
70419         the iswprint macro. Needed on Solaris 2.5.1.
70420
70421 2007-03-12  Bruno Haible  <bruno@clisp.org>
70422
70423         * tests/test-printf-frexp.c (main): Declare x as volatile.
70424
70425 2007-03-12  Simon Josefsson  <simon@josefsson.org>
70426
70427         * doc/gnulib.texi (Build robot for gnulib): New section.
70428
70429 2007-03-12  Jim Meyering  <jim@meyering.net>
70430
70431         * build-aux/bootstrap: New file.
70432         * build-aux/bootstrap.conf: New file, from coreutils.
70433
70434 2007-03-11  Bruno Haible  <bruno@clisp.org>
70435
70436         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
70437
70438 2007-03-12  Simon Josefsson  <simon@josefsson.org>
70439
70440         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
70441         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
70442         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
70443
70444 2007-03-11  Bruno Haible  <bruno@clisp.org>
70445
70446         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
70447         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
70448
70449 2007-03-11  Bruno Haible  <bruno@clisp.org>
70450
70451         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
70452         formula. Needed for SunPRO C 5.0.
70453
70454 2007-03-11  Bruno Haible  <bruno@clisp.org>
70455
70456         * modules/long-options (Depends-on): Add getopt.
70457
70458 2007-03-11  Bruno Haible  <bruno@clisp.org>
70459
70460         * modules/modechange (Depends-on): Add stdbool.
70461
70462 2007-03-11  Bruno Haible  <bruno@clisp.org>
70463
70464         * modules/i-ring (Depends-on): Add stdbool.
70465
70466 2007-03-11  Bruno Haible  <bruno@clisp.org>
70467
70468         * modules/gc-des (Depends-on): Add stdbool.
70469
70470 2007-03-11  Bruno Haible  <bruno@clisp.org>
70471
70472         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
70473
70474 2007-03-11  Bruno Haible  <bruno@clisp.org>
70475
70476         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
70477
70478 2007-03-11  Bruno Haible  <bruno@clisp.org>
70479
70480         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
70481
70482 2007-03-11  Bruno Haible  <bruno@clisp.org>
70483
70484         * lib/vasnprintf.c (sprintf): Undefine.
70485
70486 2007-03-11  Bruno Haible  <bruno@clisp.org>
70487
70488         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
70489         initializers in SunPRO C and Compaq C compilers.
70490
70491 2007-03-11  Bruno Haible  <bruno@clisp.org>
70492
70493         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
70494         decrementing code ANSI C compliant.
70495
70496 2007-03-11  Bruno Haible  <bruno@clisp.org>
70497
70498         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
70499         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
70500
70501 2007-03-11  Bruno Haible  <bruno@clisp.org>
70502
70503         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
70504         <stdbool.h> substitute doesn't pass.
70505
70506 2007-03-11  Bruno Haible  <bruno@clisp.org>
70507
70508         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
70509
70510 2007-03-11  Bruno Haible  <bruno@clisp.org>
70511
70512         * gnulib-tool (func_create_megatestdir): Create also an autobuild
70513         script, for submission to autobuild.josefsson.org.
70514
70515 2007-03-10  Bruno Haible  <bruno@clisp.org>
70516
70517         * modules/canonicalize-lgpl-tests: New file.
70518         * tests/test-canonicalize-lgpl.sh: New file.
70519         * tests/test-canonicalize-lgpl.c: New file.
70520
70521         * modules/c-strcase-tests: New file.
70522         * tests/test-c-strcase.sh: New file.
70523         * tests/test-c-strcasecmp.c: New file.
70524         * tests/test-c-strncasecmp.c: New file.
70525
70526         * modules/atexit-tests: New file.
70527         * tests/test-atexit.sh: New file.
70528         * tests/test-atexit.c: New file.
70529
70530 2007-03-10  Bruno Haible  <bruno@clisp.org>
70531
70532         * tests/test-binary-io.sh: Use temporary filenames that are not so
70533         likely to clash with those of other tests (in a parallel make).
70534         * tests/test-binary-io.c: Likewise.
70535
70536 2007-03-10  Bruno Haible  <bruno@clisp.org>
70537
70538         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
70539         fallback; use #error instead.
70540         Suggested by Simon Josefsson.
70541
70542 2007-03-10  Bruno Haible  <bruno@clisp.org>
70543
70544         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
70545         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
70546         first and the last.
70547
70548 2007-03-10  Bruno Haible  <bruno@clisp.org>
70549
70550         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
70551
70552 2007-03-10  Bruno Haible  <bruno@clisp.org>
70553
70554         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
70555         "make distcheck".
70556         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
70557         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
70558         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
70559
70560 2007-03-10  Bruno Haible  <bruno@clisp.org>
70561
70562         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
70563         variable.
70564         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
70565         variable.
70566
70567 2007-03-09  Eric Blake  <ebb9@byu.net>
70568         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
70569
70570         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
70571         types are not being provided by gnulib.
70572         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
70573         types are supported.
70574
70575 2007-03-10  Bruno Haible  <bruno@clisp.org>
70576
70577         * lib/stdio_.h (__attribute__): New macro.
70578         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
70579         vsprintf): Specify __attribute__ __format__ for GCC.
70580         Suggested by Eric Blake.
70581
70582 2007-03-09  Bruno Haible  <bruno@clisp.org>
70583
70584         * modules/printf-posix-tests: New file.
70585         * tests/test-printf-posix.sh: New file.
70586         * tests/test-printf-posix.c: New file.
70587
70588         * modules/printf-posix: New file.
70589         * lib/printf.c: New file.
70590         * m4/printf-posix-rpl.m4: New file.
70591         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
70592         REPLACE_PRINTF.
70593         * lib/stdio_.h (printf): New declaration.
70594         (format, __format__, ____printf____, ____scanf____, ____strftime____,
70595         ____strfmon____): New macros.
70596         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
70597         REPLACE_PRINTF.
70598
70599 2007-03-09  Bruno Haible  <bruno@clisp.org>
70600
70601         * tests/test-vasnprintf-posix2.sh: New file.
70602         * tests/test-vasnprintf-posix2.c: New file.
70603         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
70604         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
70605         (Makefile.am): Activate test-vasnprintf-posix2.sh.
70606
70607         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
70608         a locale dependent decimal point, rather than always '.'.
70609
70610 2007-03-09  Eric Blake  <ebb9@byu.net>
70611
70612         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
70613         spite of platforms like Tandem/NSK that define it to -1.
70614
70615 2007-03-08  Bruno Haible  <bruno@clisp.org>
70616
70617         * modules/vprintf-posix-tests: New file.
70618         * tests/test-vprintf-posix.sh: New file.
70619         * tests/test-vprintf-posix.c: New file.
70620         * tests/test-printf-posix.h: New file.
70621
70622         * modules/vprintf-posix: New file.
70623         * lib/vprintf.c: New file.
70624         * m4/vprintf-posix.m4: New file.
70625         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
70626         REPLACE_VPRINTF.
70627         * lib/stdio_.h (vprintf): New declaration.
70628         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
70629         REPLACE_VPRINTF.
70630
70631 2007-03-08  Bruno Haible  <bruno@clisp.org>
70632
70633         * modules/fprintf-posix-tests: New file.
70634         * tests/test-fprintf-posix.sh: New file.
70635         * tests/test-fprintf-posix.c: New file.
70636
70637         * modules/fprintf-posix: New file.
70638         * lib/fprintf.c: New file.
70639         * m4/fprintf-posix.m4: New file.
70640         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
70641         REPLACE_FPRINTF.
70642         * lib/stdio_.h (fprintf): New declaration.
70643         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
70644         REPLACE_FPRINTF.
70645
70646 2007-03-08  Bruno Haible  <bruno@clisp.org>
70647
70648         * modules/vfprintf-posix-tests: New file.
70649         * tests/test-vfprintf-posix.sh: New file.
70650         * tests/test-vfprintf-posix.c: New file.
70651         * tests/test-fprintf-posix.h: New file.
70652         * tests/test-fprintf-posix.out: New file.
70653
70654         * modules/vfprintf-posix: New file.
70655         * lib/vfprintf.c: New file.
70656         * m4/vfprintf-posix.m4: New file.
70657         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
70658         REPLACE_VFPRINTF.
70659         * lib/stdio_.h (vfprintf): New declaration.
70660         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
70661         REPLACE_VFPRINTF.
70662
70663 2007-03-08  Bruno Haible  <bruno@clisp.org>
70664
70665         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
70666
70667 2007-03-08  Bruno Haible  <bruno@clisp.org>
70668
70669         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
70670         instead of 'expr' invocations.
70671         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
70672         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
70673         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
70674         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
70675         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
70676         Suggested by Paul Eggert.
70677
70678 2007-03-08  Bruno Haible  <bruno@clisp.org>
70679
70680         * modules/fseterr-tests: New file.
70681         * tests/test-fseterr.c: New file.
70682
70683         * modules/fseterr: New file.
70684         * lib/fseterr.h: New file.
70685         * lib/fseterr.c: New file.
70686
70687 2007-03-08  Bruno Haible  <bruno@clisp.org>
70688
70689         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
70690         * lib/getopt_.h: Likewise.
70691         * lib/mbswidth.h: Likewise.
70692         * lib/setenv.h: Likewise.
70693         * lib/vasnprintf.h: Likewise.
70694         * lib/vasprintf.h: Likewise.
70695         * lib/verror.h: Likewise.
70696         * lib/xsetenv.h: Likewise.
70697         * lib/xvasprintf.h: Likewise.
70698
70699 2007-03-08  Jim Meyering  <jim@meyering.net>
70700
70701         * users.txt: Add parted.
70702
70703         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
70704
70705 2007-03-07  Bruno Haible  <bruno@clisp.org>
70706
70707         * m4/printf.m4: Make the shell script snippets copy&pastable.
70708
70709 2007-03-02  Bruno Haible  <bruno@clisp.org>
70710
70711         * lib/netinet_in_.h: New file.
70712         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
70713         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
70714         * modules/netinet_in (Files): Add lib/netinet_in_.h.
70715         (Depends-on): Add absolute-header.
70716         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
70717         into netinet/in.h.
70718
70719 2007-03-03  Bruno Haible  <bruno@clisp.org>
70720
70721         * lib/sys_select_.h: New file.
70722         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
70723         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
70724         * modules/sys_select (Files): Add lib/sys_select_.h.
70725         (Depends-on): Add absolute-header.
70726         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
70727         into sys/select.h.
70728
70729 2007-03-02  Bruno Haible  <bruno@clisp.org>
70730
70731         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
70732         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
70733         values.
70734         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
70735         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
70736         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
70737         * modules/sys_socket (Depends-on): Add absolute-header.
70738         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
70739         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
70740         (Include): Remove requirement of inclusion of <sys/types.h>.
70741
70742 2007-03-02  Bruno Haible  <bruno@clisp.org>
70743
70744         * lib/byteswap_.h (bswap_32): Fix formula.
70745
70746 2007-03-06  Bruno Haible  <bruno@clisp.org>
70747
70748         * modules/sprintf-posix-tests: New file.
70749         * tests/test-sprintf-posix.c: New file.
70750
70751         * modules/sprintf-posix: New file.
70752         * lib/sprintf.c: New file.
70753         * m4/sprintf-posix.m4: New file.
70754         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
70755         REPLACE_SPRINTF.
70756         * lib/stdio_.h (sprintf): New declaration.
70757         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
70758         REPLACE_SPRINTF.
70759
70760 2007-03-06  Bruno Haible  <bruno@clisp.org>
70761
70762         * modules/vsprintf-posix-tests: New file.
70763         * tests/test-vsprintf-posix.c: New file.
70764         * tests/test-sprintf-posix.h: New file.
70765
70766         * modules/vsprintf-posix: New file.
70767         * lib/vsprintf.c: New file.
70768         * m4/vsprintf-posix.m4: New file.
70769         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
70770         REPLACE_VSPRINTF.
70771         * lib/stdio_.h (vsprintf): New declaration.
70772         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
70773         REPLACE_VSPRINTF.
70774
70775 2007-03-06  Bruno Haible  <bruno@clisp.org>
70776
70777         * modules/vsnprintf (Depend-on): Remove minmax.
70778
70779 2007-03-06  Bruno Haible  <bruno@clisp.org>
70780
70781         * modules/snprintf-posix-tests: New file.
70782         * tests/test-snprintf-posix.c: New file.
70783
70784         * modules/snprintf-posix: New file.
70785         * m4/snprintf-posix.m4: New file.
70786         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
70787         gl_FUNC_SNPRINTF.
70788         (gl_FUNC_SNPRINTF): Invoke it.
70789         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
70790         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
70791         is set.
70792         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
70793
70794 2007-03-06  Bruno Haible  <bruno@clisp.org>
70795
70796         * modules/vsnprintf-posix-tests: New file.
70797         * tests/test-vsnprintf-posix.c: New file.
70798         * tests/test-snprintf-posix.h: New file.
70799
70800         * modules/vsnprintf-posix: New file.
70801         * m4/vsnprintf-posix.m4: New file.
70802         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
70803         gl_FUNC_VSNPRINTF.
70804         (gl_FUNC_VSNPRINTF): Invoke it.
70805         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
70806         * lib/stdio_.h (vsnprintf): Define as a replacement if
70807         REPLACE_VSNPRINTF is set.
70808         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
70809
70810 2007-03-06  Bruno Haible  <bruno@clisp.org>
70811
70812         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
70813         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
70814
70815 2007-03-06  Bruno Haible  <bruno@clisp.org>
70816
70817         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
70818         (asinl): Declare also if HAVE_DECL_ASINL is set.
70819         (atanl): Declare also if HAVE_DECL_ATANL is set.
70820         (ceill): Declare also if HAVE_DECL_CEILL is set.
70821         (cosl): Declare also if HAVE_DECL_COSL is set.
70822         (expl): Declare also if HAVE_DECL_EXPL is set.
70823         (floorl): Declare also if HAVE_DECL_FLOORL is set.
70824         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
70825         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
70826         (logl): Declare also if HAVE_DECL_LOGL is set.
70827         (sinl): Declare also if HAVE_DECL_SINL is set.
70828         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
70829         (tanl): Declare also if HAVE_DECL_TANL is set.
70830         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
70831         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
70832         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
70833         declaration of frexpl, ldexpl.
70834         * modules/printf-frexpl (Depends-on): Add math.
70835         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
70836
70837 2007-03-05  Bruno Haible  <bruno@clisp.org>
70838
70839         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
70840         frexpl and ldexpl are declared.
70841         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
70842
70843 2007-03-05  Bruno Haible  <bruno@clisp.org>
70844
70845         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
70846         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
70847
70848 2007-03-05  Bruno Haible  <bruno@clisp.org>
70849
70850         * lib/stdio_.h: Include <stddef.h>.
70851
70852 2007-03-05  Bruno Haible  <bruno@clisp.org>
70853
70854         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
70855
70856 2007-03-05  Bruno Haible  <bruno@clisp.org>
70857
70858         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
70859         NetBSD 4, from Ralf Wildenhues.
70860
70861 2007-03-04  Bruno Haible  <bruno@clisp.org>
70862
70863         * lib/vasprintf.h: Update #if logic for the case when the functions
70864         exist but are overridden.
70865
70866 2007-03-04  Bruno Haible  <bruno@clisp.org>
70867
70868         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
70869         implementations: glibc-2.4 and MacOS X 10.3.
70870         * tests/test-vasnprintf-posix.c (test_function): Test also the case
70871         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
70872         * tests/test-vasprintf-posix.c (test_function): Likewise.
70873
70874 2007-03-04  Bruno Haible  <bruno@clisp.org>
70875
70876         * modules/vasprintf-posix-tests: New file.
70877         * tests/test-vasprintf-posix.c: New file.
70878
70879         * modules/vasprintf-posix: New file.
70880         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
70881         defined.
70882         * m4/vasprintf-posix.m4: New file.
70883         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
70884         gl_FUNC_VASPRINTF.
70885         (gl_FUNC_VASPRINTF): Invoke it.
70886         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
70887         here.
70888         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
70889
70890 2007-03-04  Bruno Haible  <bruno@clisp.org>
70891
70892         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
70893         REPLACE_GETTIMEOFDAY.
70894         * modules/sys_time (Makefile.am): Likewise.
70895         * m4/sys_time_h.m4: Likewise.
70896         * m4/gettimeofday.m4: Likewise.
70897
70898 2007-03-04  Bruno Haible  <bruno@clisp.org>
70899
70900         * modules/vasnprintf-posix-tests: New file.
70901         * tests/test-vasnprintf-posix.c: New file.
70902
70903         * modules/vasnprintf-posix: New file.
70904         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
70905         printf-frexpl.h.
70906         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
70907         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
70908         REPLACE_VASNPRINTF is defined.
70909         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
70910         gl_FUNC_VASNPRINTF.
70911         (gl_FUNC_VASNPRINTF): Invoke it.
70912         * m4/vasnprintf-posix.m4: New file.
70913         * m4/printf.m4: New file.
70914
70915 2007-03-04  Bruno Haible  <bruno@clisp.org>
70916
70917         Compile progreloc.c only if --enable-relocatable is specified.
70918         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
70919         if --enable-relocatable was specified.
70920         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
70921         lib_SOURCES.
70922
70923 2007-03-04  Jim Meyering  <jim@meyering.net>
70924
70925         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
70926         Use it consistently, rather than enumerating errno constants.
70927
70928 2007-03-04  Bruno Haible  <bruno@clisp.org>
70929
70930         * modules/xvasprintf-tests: New file.
70931         * tests/test-xvasprintf.c: New file.
70932
70933         * modules/vasprintf-tests: New file.
70934         * tests/test-vasprintf.c: New file.
70935
70936         * modules/vasnprintf-tests: New file.
70937         * tests/test-vasnprintf.c: New file.
70938
70939         * modules/vsnprintf-tests: New file.
70940         * tests/test-vsnprintf.c: New file.
70941
70942         * modules/snprintf-tests: New file.
70943         * tests/test-snprintf.c: New file.
70944
70945 2007-03-04  Bruno Haible  <bruno@clisp.org>
70946
70947         Compile relocatable.c only if --enable-relocatable is specified.
70948         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
70949         gl_RELOCATABLE_LIBRARY.
70950         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
70951         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
70952         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
70953         gl_RELOCATABLE_LIBRARY.
70954         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
70955         (Makefile.am): Remove lib_SOURCES.
70956         * modules/relocatable-lib-lgpl (configure.ac): Invoke
70957         gl_RELOCATABLE_LIBRARY.
70958         (Makefile.am): Remove lib_SOURCES.
70959         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
70960         always.
70961         * modules/relocatable-prog-wrapper (configure.ac): Invoke
70962         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
70963
70964 2007-03-04  Bruno Haible  <bruno@clisp.org>
70965
70966         * modules/argmatch-tests: New file.
70967         * tests/test-argmatch.c: New file.
70968
70969         * tests/test-allocsa.c (main): Halve the number of loop runs.
70970
70971         * modules/alloca-opt-tests: New file.
70972         * tests/test-alloca-opt.c: New file.
70973
70974 2007-03-04  Jim Meyering  <jim@meyering.net>
70975
70976         Work around difference between Linux ACLs and Solaris 10 ZFS.
70977         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
70978         for EINVAL.
70979
70980 2007-03-03  Bruno Haible  <bruno@clisp.org>
70981
70982         * modules/relocatable-prog (Depends-on): Add back progreloc's
70983         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
70984
70985 2007-03-03  Bruno Haible  <bruno@clisp.org>
70986
70987         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
70988         * modules/relocatable-lib: New file.
70989
70990 2007-03-03  Bruno Haible  <bruno@clisp.org>
70991
70992         * modules/relocatable-prog: Renamed from modules/relocatable.
70993         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
70994
70995 2007-03-03  Bruno Haible  <bruno@clisp.org>
70996
70997         * modules/relocatable-script (Files): Add doc/relocatable.texi,
70998         m4/relocatable-lib.m4.
70999         (Depends-on): Remove 'relocatable'.
71000         (configure.ac): Add gl_RELOCATABLE_NOP.
71001
71002 2007-03-03  Bruno Haible  <bruno@clisp.org>
71003
71004         * modules/relocatable-prog-wrapper: New file.
71005         * modules/relocatable (Depends-on): Add it. Remove all other
71006         dependencies except progname.
71007         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
71008
71009         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
71010         (gl_FUNC_STRERROR): Nop.
71011         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
71012
71013         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
71014         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
71015
71016         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
71017         (gl_FUNC_READLINK): Update.
71018
71019         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
71020
71021 2007-03-03  Bruno Haible  <bruno@clisp.org>
71022
71023         * lib/xreadlink.c: Include <unistd.h> unconditionally.
71024         * modules/xreadlink (Depends-on): Add unistd.
71025         * modules/xreadlink-with-size (Depends-on): Likewise.
71026
71027 2007-03-03  Bruno Haible  <bruno@clisp.org>
71028
71029         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
71030         extracted from gt_FUNC_SETENV.
71031         (gt_FUNC_SETENV): Remove macro.
71032         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
71033         remove gt_FUNC_SETENV.
71034
71035 2007-03-03  Bruno Haible  <bruno@clisp.org>
71036
71037         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
71038         ENABLE_RELOCATABLE here.
71039         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
71040
71041 2007-03-03  Bruno Haible  <bruno@clisp.org>
71042
71043         * modules/rbtreehash-list-tests (Depends-on): Add progname.
71044         * tests/test-rbtreehash_list.c: Include progname.h.
71045         (main): Call set_program_name.
71046
71047         * modules/rbtree-oset-tests (Depends-on): Add progname.
71048         * tests/test-rbtree_oset.c: Include progname.h.
71049         (main): Call set_program_name.
71050
71051         * modules/rbtree-list-tests (Depends-on): Add progname.
71052         * tests/test-rbtree_list.c: Include progname.h.
71053         (main): Call set_program_name.
71054
71055         * modules/linked-list-tests (Depends-on): Add progname.
71056         * tests/test-linked_list.c: Include progname.h.
71057         (main): Call set_program_name.
71058
71059 2007-03-03  Bruno Haible  <bruno@clisp.org>
71060
71061         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
71062         All uses of __restrict changed to _Restrict_.
71063         * lib/glob_.h (__restrict): Remove macro.
71064
71065 2007-03-02  Bruno Haible  <bruno@clisp.org>
71066
71067         * modules/gettext (configure.ac): Require gettext infrastructure
71068         from version 0.16.1.
71069
71070 2007-03-02  Bruno Haible  <bruno@clisp.org>
71071
71072         * modules/linkedhash-list-tests (Depends-on): Add progname.
71073         * tests/test-linkedhash_list.c: Include progname.h.
71074         (main): Call set_program_name.
71075
71076         * modules/carray-list-tests (Depends-on): Add progname.
71077         * tests/test-carray_list.c: Include progname.h.
71078         (main): Call set_program_name.
71079
71080         * modules/avltreehash-list-tests (Depends-on): Add progname.
71081         * tests/test-avltreehash_list.c: Include progname.h.
71082         (main): Call set_program_name.
71083
71084         * modules/avltree-oset-tests (Depends-on): Add progname.
71085         * tests/test-avltree_oset.c: Include progname.h.
71086         (main): Call set_program_name.
71087
71088         * modules/avltree-list-tests (Depends-on): Add progname.
71089         * tests/test-avltree_list.c: Include progname.h.
71090         (main): Call set_program_name.
71091
71092         * modules/array-oset-tests (Depends-on): Add progname.
71093         * tests/test-array_oset.c: Include progname.h.
71094         (main): Call set_program_name.
71095
71096         * modules/array-list-tests (Depends-on): Add progname.
71097         * tests/test-array_list.c: Include progname.h.
71098         (main): Call set_program_name.
71099
71100         * modules/argp-tests (Depends-on): Add progname.
71101         * tests/test-argp.c: Include argp.h first. Include progname.h.
71102         (main): Call set_program_name.
71103
71104 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
71105
71106         * doc/gnulib-tool.texi (Initial import): Reword description of
71107         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
71108         limited effect even if defined after the first system include.
71109
71110 2007-03-01  Bruno Haible  <bruno@clisp.org>
71111
71112         * build-aux/config.libpath: Update to libtool-1.5.22.
71113         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
71114
71115 2007-03-01  Bruno Haible  <bruno@clisp.org>
71116
71117         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
71118         foo_CFLAGS.
71119         Reported by Ralf Wildenhues.
71120
71121 2007-03-01  Bruno Haible  <bruno@clisp.org>
71122
71123         * build-aux/install-reloc: Remove object files left over by some
71124         compilers.
71125         Reported by Ralf Wildenhues.
71126
71127 2007-03-01  Bruno Haible  <bruno@clisp.org>
71128
71129         * build-aux/install-reloc: Break long lines.
71130
71131 2007-03-01  Bruno Haible  <bruno@clisp.org>
71132
71133         * doc/relocatable.texi: Document that it may not work on OpenBSD.
71134         Reported by Ralf Wildenhues.
71135
71136 2007-03-01  Bruno Haible  <bruno@clisp.org>
71137
71138         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
71139         include ordering constraints.
71140
71141 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
71142
71143         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
71144         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
71145         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
71146         as another example.
71147         * lib/time_.h: Fix misspelling.
71148         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71149         Require gl_HEADER_TIME_H_DEFAULTS.
71150         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
71151         * m4/time_r.m4 (gl_TIME_R): Likewise.
71152         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
71153
71154 2007-03-01  Bruno Haible  <bruno@clisp.org>
71155
71156         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
71157         * m4/utimens.m4 (gl_UTIMENS): Likewise.
71158
71159 2007-03-01  Jim Meyering  <jim@meyering.net>
71160
71161         * modules/xreadlink (Maintainer): Add my name.
71162         * modules/xreadlink-with-size (Depends-on): Alphabetize.
71163
71164 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
71165             Bruno Haible  <bruno@clisp.org>
71166
71167         * build-aux/install-reloc: Compile also c-ctype.c.
71168         * build-aux/relocatable.sh.in: New file.
71169         * doc/relocatable.texi: New file.
71170         * doc/relocatable-maint.texi: New file.
71171         * doc/gnulib.texi: Include relocatable-maint.texi.
71172         * lib/progreloc.c: Include unistd.h unconditionally.
71173         * lib/relocwrapper.c: Include unistd.h unconditionally.
71174         Include c-ctype.h.
71175         (add_dotbin): Use c_tolower.
71176         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
71177         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
71178         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
71179         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
71180         to m4/relocatable-lib.m4.
71181         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
71182         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
71183         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
71184         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
71185         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
71186         * modules/relocatable: New file.
71187         * modules/relocatable-lib: New file.
71188         * modules/relocatable-script: New file.
71189
71190 2007-02-28  Bruno Haible  <bruno@clisp.org>
71191
71192         Import --enable-relocatable infrastructure.
71193         * build-aux/config.libpath: New file, from GNU gettext.
71194         * build-aux/install-reloc: New file, from GNU gettext.
71195         * build-aux/reloc-ldflags: New file, from GNU gettext.
71196         * lib/relocatable.h: New file, from GNU gettext.
71197         * lib/relocatable.c: New file, from GNU gettext.
71198         * lib/relocwrapper.c: New file, from GNU gettext.
71199         * m4/relocatable.m4: New file, from GNU gettext.
71200
71201 2007-02-28  Bruno Haible  <bruno@clisp.org>
71202
71203         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
71204
71205         * modules/xreadlink: New file, from GNU gettext with modifications.
71206         * lib/xreadlink.c: New file, from GNU gettext.
71207         * lib/xreadlink.h: Add comments.
71208         (xreadlink): New declaration.
71209
71210         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
71211         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
71212         lib/xreadlink-with-size.c.
71213         (configure.ac): Remove gl_XREADLINK invocation.
71214         (Makefile.am): Augment lib_SOURCES.
71215         * m4/xreadlink.m4: Remove file.
71216         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
71217         (xreadlink_with_size): Renamed from xreadink.
71218         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
71219         * modules/canonicalize (Depends-on): Replace xreadlink with
71220         xreadlink-with-size.
71221         * lib/canonicalize.c (canonicalize_filename_mode): Update.
71222
71223 2007-02-25  Jim Meyering  <jim@meyering.net>
71224
71225         * build-aux/announce-gen: When complaining about excess arguments,
71226         list them.
71227
71228 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
71229
71230         * README: Document signed integer overflow situation more
71231         accurately.
71232
71233 2007-02-25  Bruno Haible  <bruno@clisp.org>
71234
71235         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
71236         'a' or 'A' conversion.
71237
71238 2007-02-25  Bruno Haible  <bruno@clisp.org>
71239
71240         * modules/filename: Renamed from modules/pathname.
71241         (Files): Replace lib/pathname.h with lib/filename.h. Replace
71242         lib/concatpath.c with lib/concat-filename.c.
71243         (Makefile.am): Update.
71244         (Include): Replace pathname.h with filename.h.
71245         * lib/filename.h: Renamed from lib/pathname.h.
71246         (concatenated_filename): Renamed from concatenated_pathname.
71247         * lib/concat-filename.c: Renamed from lib/concatpath.c.
71248         (concatenated_filename): Renamed from concatenated_pathname.
71249         * lib/findprog.c: Include filename.h instead of pathname.h.
71250         (find_in_path): Update.
71251         * lib/javacomp.c: Include filename.h instead of pathname.h.
71252         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
71253         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
71254         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
71255         is_oldgcj_14_13_usable, is_javac_usable): Update.
71256         * lib/javaexec.c: Include filename.h instead of pathname.h.
71257         (execute_java_class): Update.
71258         * modules/findprog: Update.
71259         * modules/javacomp: Update.
71260         * modules/javaexec: Update.
71261         * MODULES.html.sh (File system functions): Add 'filename', remove
71262         'pathname'.
71263
71264 2007-02-25  Bruno Haible  <bruno@clisp.org>
71265
71266         * modules/printf-frexpl-tests: New file.
71267         * tests/test-printf-frexpl.c: New file.
71268
71269         * modules/printf-frexpl: New file.
71270         * lib/printf-frexpl.h: New file.
71271         * lib/printf-frexpl.c: New file.
71272         * m4/printf-frexpl.m4: New file.
71273
71274 2007-02-25  Bruno Haible  <bruno@clisp.org>
71275
71276         * modules/printf-frexp-tests: New file.
71277         * tests/test-printf-frexp.c: New file.
71278
71279         * modules/printf-frexp: New file.
71280         * lib/printf-frexp.h: New file.
71281         * lib/printf-frexp.c: New file.
71282         * m4/printf-frexp.m4: New file.
71283
71284 2007-02-25  Bruno Haible  <bruno@clisp.org>
71285
71286         Assume automake >= 1.10 for the tests.
71287         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
71288         * modules/arctwo-tests: Likewise.
71289         * modules/argp-tests: Likewise.
71290         * modules/avltree-list-tests: Likewise.
71291         * modules/avltree-oset-tests: Likewise.
71292         * modules/avltreehash-list-tests: Likewise.
71293         * modules/carray-list-tests: Likewise.
71294         * modules/crc-tests: Likewise.
71295         * modules/des-tests: Likewise.
71296         * modules/gc-arcfour-tests: Likewise.
71297         * modules/gc-arctwo-tests: Likewise.
71298         * modules/gc-des-tests: Likewise.
71299         * modules/gc-hmac-md5-tests: Likewise.
71300         * modules/gc-hmac-sha1-tests: Likewise.
71301         * modules/gc-md2-tests: Likewise.
71302         * modules/gc-md4-tests: Likewise.
71303         * modules/gc-md5-tests: Likewise.
71304         * modules/gc-pbkdf2-sha1-tests: Likewise.
71305         * modules/gc-rijndael-tests: Likewise.
71306         * modules/gc-sha1-tests: Likewise.
71307         * modules/gc-tests: Likewise.
71308         * modules/getaddrinfo-tests: Likewise.
71309         * modules/hmac-md5-tests: Likewise.
71310         * modules/hmac-sha1-tests: Likewise.
71311         * modules/linked-list-tests: Likewise.
71312         * modules/linkedhash-list-tests: Likewise.
71313         * modules/lock-tests: Likewise.
71314         * modules/md2-tests: Likewise.
71315         * modules/md4-tests: Likewise.
71316         * modules/md5-tests: Likewise.
71317         * modules/rbtree-list-tests: Likewise.
71318         * modules/rbtree-oset-tests: Likewise.
71319         * modules/rbtreehash-list-tests: Likewise.
71320         * modules/read-file-tests: Likewise.
71321         * modules/rijndael-tests: Likewise.
71322         * modules/stdint-tests: Likewise.
71323         * modules/tls-tests: Likewise.
71324
71325 2007-02-24  Bruno Haible  <bruno@clisp.org>
71326
71327         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
71328         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
71329         function; instead check whether isnan with a double argument links.
71330         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
71331         function; instead check whether isnan with a 'long double' argument
71332         links.
71333         Reported by Eric Blake <ebb9@byu.net>.
71334
71335 2007-02-24  Bruno Haible  <bruno@clisp.org>
71336
71337         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
71338         defined.
71339         * lib/isnanl.c: Remove all code. Just include isnan.c.
71340         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
71341
71342 2007-02-25  Jim Meyering  <jim@meyering.net>
71343
71344         Avoid conflicting types for 'unsetenv' on FreeBSD.
71345         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
71346         conflicting with FreeBSD's (5.0 and 6.1) function declaration
71347         in stdlib.h.
71348
71349 2007-02-24  Bruno Haible  <bruno@clisp.org>
71350
71351         * modules/isnanl-nolibm-tests: New file.
71352         * tests/test-isnanl.c: New file.
71353
71354         * modules/isnanl-nolibm: New file.
71355         * lib/isnanl.h: New file.
71356         * lib/isnanl.c: New file.
71357         * m4/isnanl.m4: New file.
71358
71359 2007-02-24  Bruno Haible  <bruno@clisp.org>
71360
71361         * modules/isnan-nolibm-tests: New file.
71362         * tests/test-isnan.c: New file.
71363
71364         * modules/isnan-nolibm: New file.
71365         * lib/isnan.h: New file.
71366         * lib/isnan.c: New file.
71367         * m4/isnan.m4: New file.
71368
71369 2007-02-24  Bruno Haible  <bruno@clisp.org>
71370
71371         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
71372         assume that an exponent fits in 20 bits.
71373
71374 2007-02-24  Jim Meyering  <jim@meyering.net>
71375
71376         * m4/regex.m4: Update the description of the configure-time option,
71377         --without-included-regex, to state accurately what the defaults are,
71378         and perhaps to give people an idea why using this option is risky.
71379
71380 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
71381
71382         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
71383         loops on small arguments.  This attempts to avoid the problem
71384         Bruno Haible reported for AIX 4.3.2 in
71385         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
71386
71387 2007-02-23  Bruno Haible  <bruno@clisp.org>
71388
71389         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
71390         Needed for help2man.
71391
71392 2007-02-23  Karl Berry  <karl@gnu.org>
71393
71394         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
71395         exists, foo.h should be cvs-ignored, not committed.
71396
71397 2007-02-23  Eric Blake  <ebb9@byu.net>
71398
71399         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
71400         * lib/stat-time.h (includes): Likewise.
71401         * lib/utimecmp.c (includes): Likewise.
71402         * lib/utimens.h (includes): Likewise.
71403         * lib/getdate.y (includes): Also include "timespec.h" for use
71404         internal to the module.
71405         * modules/utimens (Depends-on): Revert yesterday's patch.
71406         * modules/nanosleep (Depends-on): Add missing dependency.
71407
71408 2007-02-22  Bruno Haible  <bruno@clisp.org>
71409
71410         * lib/glob.c: Don't include getlogin_r.h.
71411
71412 2007-02-22  Jim Meyering  <jim@meyering.net>
71413
71414         * modules/utimens (Depends-on): Add timespec, required for
71415         utimens.h's inclusion of timespec.h.
71416
71417 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
71418
71419         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
71420         long unreadable paths in GNU/Linux.  Problem reported by Andreas
71421         Schwab in
71422         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
71423         I'll try to think of a better way to fix the Solaris problem.
71424
71425         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
71426         like glibc; on Solaris 10, it fails with errno == EINVAL.
71427         POSIX says the behavior is unspecified if the first argument is NULL,
71428         so play it safe and never pass NULL to the system getcwd.
71429
71430 2007-02-21  Jim Meyering  <jim@meyering.net>
71431
71432         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
71433         of gettimeofday.  It would conflict with the one now always
71434         provided via sys_time_.h.  Reported by Matthew Woehlke, as
71435         an IRIX 6.5 build failure.
71436
71437 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
71438
71439         Minor fixups to port to Solaris 10 with Sun C 5.8.
71440         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
71441         * modules/getcwd (Depends-on): Add dirfd.
71442         * lib/putenv.c (putenv): #undef it.
71443         (rpl_putenv): New decl.
71444         (malloc, free): Include <stdlib.h> rather than prototyping separately.
71445
71446 2007-02-20  Bruno Haible  <bruno@clisp.org>
71447
71448         * modules/stdio-tests: New file.
71449         * tests/test-stdio.c: New file.
71450
71451         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
71452         (Depends-on): Add stdio.
71453         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
71454         (Include): Use <stdio.h> instead of vsnprintf.h.
71455         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
71456         HAVE_DECL_VSNPRINTF.
71457         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
71458
71459         * modules/snprintf (Files): Remove lib/snprintf.h.
71460         (Depends-on): Add stdio.
71461         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
71462         (Include): Use <stdio.h> instead of snprintf.h.
71463         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
71464         HAVE_DECL_SNPRINTF.
71465         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
71466         * lib/getaddrinfo.c: Likewise.
71467
71468         * modules/stdio: New file.
71469         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
71470         * lib/snprintf.h: Remove file.
71471         * lib/vsnprintf.h: Remove file.
71472         * lib/.cppi-disable: Remove snprintf.h.
71473         * m4/stdio_h.m4: New file.
71474         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
71475
71476 2007-02-20  Jim Meyering  <jim@meyering.net>
71477
71478         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
71479         used by e.g., mingw.  From Bruno Haible.
71480
71481 2007-02-19  Bruno Haible  <bruno@clisp.org>
71482
71483         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
71484         warnings.
71485         Reported by Ben Pfaff <blp@cs.stanford.edu>.
71486
71487 2007-02-19  Bruno Haible  <bruno@clisp.org>
71488
71489         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
71490         from mingw users.
71491
71492 2007-02-19  Bruno Haible  <bruno@clisp.org>
71493
71494         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
71495         warnings.
71496         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
71497
71498 2007-02-19  Jim Meyering  <jim@meyering.net>
71499
71500         Don't use FD after a successful "fdopendir (fd)".
71501         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
71502         Reset it by calling dirfd on the just-obtained DIR*.
71503
71504         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
71505         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
71506
71507 2007-02-18  Bruno Haible  <bruno@clisp.org>
71508
71509         * lib/readlink.c: Include <unistd.h>.
71510         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
71511         HAVE_READLINK.
71512         * modules/readlink (Depends-on): Add unistd.
71513         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71514         (Include): Add <unistd.h>.
71515
71516         * lib/getlogin_r.h: Remove file.
71517         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
71518         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
71519         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
71520         HAVE_DECL_GETLOGIN_R.
71521         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
71522         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71523         (Include): Use <unistd.h> instead of getlogin_r.h.
71524
71525         * lib/getcwd.h: Remove file.
71526         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
71527         * lib/xgetcwd.c: Likewise.
71528         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
71529         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
71530         * modules/getcwd (Files): Remove lib/getcwd.h.
71531         (Depends-on): Add unistd.
71532         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71533         (Include): Use <unistd.h> instad of getcwd.h.
71534
71535         * lib/ftruncate.c: Include <unistd.h> first.
71536         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
71537         Set HAVE_FTRUNCATE.
71538         * modules/ftruncate (Depends-on): Add unistd.
71539         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71540
71541         * lib/fchdir.c: Include <unistd.h> first.
71542         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
71543         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
71544         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
71545         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71546         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
71547
71548         * lib/dup2.c: Include <unistd.h> first.
71549         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
71550         HAVE_DUP2.
71551         * modules/dup2 (Depends-on): Add unistd.
71552         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71553
71554         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
71555         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
71556         REPLACE_CHOWN. Don't define chown as a macro here.
71557         * modules/chown (Depends-on): Add unistd.
71558         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
71559
71560         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
71561         Add definition for GL_LINK_WARNING.
71562         (chown, dup2): New declarations.
71563         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
71564         link warning.
71565         (ftruncate): New declaration.
71566         (getcwd): New declaration, taken from old getcwd.h.
71567         (getlogin_r): New declaration, taken from old getlogin_r.h.
71568         (readlink): New declaration.
71569         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
71570         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
71571         (gl_PREREQ_UNISTD): Remove macro.
71572         (gl_UNISTD_MODULE_INDICATOR): New macro.
71573         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
71574         many new variables. Don't set UNISTD_H.
71575         * modules/unistd (Description): Change.
71576         (Depends-on): Add link-warning.
71577         (configure.ac): Update.
71578         (Makefile.am): Create unistd.h always. Substitute many new variables
71579         into it.
71580
71581 2007-02-18  Bruno Haible  <bruno@clisp.org>
71582
71583         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
71584         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
71585         HAVE_GETSUBOPT.
71586         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
71587         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
71588         * lib/getsubopt.h: Remove file.
71589         * modules/getsubopt (Files): Remove lib/getsubopt.h.
71590         (Depends-on): Add stdlib.
71591         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71592         (Includes): Use <stdlib.h> instead of getsubopt.h.
71593         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
71594         Set HAVE_GETSUBOPT.
71595         * lib/getsubopt.c: Don't include getsubopt.h.
71596
71597 2007-02-18  Bruno Haible  <bruno@clisp.org>
71598
71599         * modules/fchdir (Depends-on): Add dup2.
71600
71601 2007-02-18  Bruno Haible  <bruno@clisp.org>
71602
71603         * lib/stdlib_.h: Handle glibc's special invocation convention
71604         specially.
71605
71606 2007-02-18  Bruno Haible  <bruno@clisp.org>
71607
71608         * modules/stdlib-tests: New file.
71609         * tests/test-stdlib.c: New file.
71610
71611         * modules/mkstemp (Files): Remove lib/mkstemp.h.
71612         (Depends-on): Add stdlib.
71613         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71614         (Includes): Use <stdlib.h> instead of mkstemp.h.
71615         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
71616         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
71617         * lib/mkstemp.c: Don't include mkstemp.h.
71618         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
71619         * lib/stdlib--.h: Don't include mkstemp.h.
71620
71621         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
71622         (Depends-on): Add stdlib.
71623         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
71624         (Includes): Use <stdlib.h> instead of mkdtemp.h.
71625         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
71626         HAVE_MKDTEMP.
71627         * lib/mkdtemp.c: Don't include mkdtemp.h.
71628         * lib/clean-temp.c: Don't include mkdtemp.h.
71629
71630         * modules/exit (Files): Remove lib/exit.h.
71631         (Depends-on): Add stdlib.
71632         (Makefile.am): Remove lib_SOURCES.
71633         (Include): Use <stdlib.h> instead of exit.h.
71634         * lib/argmatch.c: Don't include exit.h.
71635         * lib/execute.c: Likewise.
71636         * lib/pagealign_alloc.c: Likewise.
71637         * lib/pipe.c: Likewise.
71638         * lib/wait-process.c: Likewise.
71639         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
71640         * lib/exitfail.c: Likewise.
71641         * lib/savewd.c: Likewise.
71642         * lib/xsetenv.c: Likewise.
71643
71644         * modules/stdlib: New file.
71645         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
71646         and extra comments about mkstemp().
71647         * lib/exit.h: Remove file.
71648         * lib/mkdtemp.h: Remove file.
71649         * lib/mkstemp.h: Remove file.
71650         * m4/stdlib_h.m4: New file.
71651         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
71652
71653 2007-02-18  Bruno Haible  <bruno@clisp.org>
71654
71655         * modules/math-tests: New file.
71656         * tests/test-math.c: New file.
71657
71658         * modules/math: New file.
71659         * modules/mathl (Files): Remove lib/mathl.h.
71660         (Depends-on): Add math.
71661         (Makefile.am): Don't mention mathl.h.
71662         (Include): Use <math.h> instead of mathl.h.
71663         * lib/math_.h: New file.
71664         * lib/mathl.h: Remove file.
71665         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
71666         mathl.h.
71667         * lib/asinl.c: Likewise.
71668         * lib/atanl.c: Likewise.
71669         * lib/ceill.c: Likewise.
71670         * lib/cosl.c: Likewise.
71671         * lib/expl.c: Likewise.
71672         * lib/floorl.c: Likewise.
71673         * lib/frexpl.c: Likewise.
71674         * lib/ldexpl.c: Likewise.
71675         * lib/logl.c: Likewise.
71676         * lib/sincosl.c: Likewise.
71677         * lib/sinl.c: Likewise.
71678         * lib/sqrtl.c: Likewise.
71679         * lib/tanl.c: Likewise.
71680         * lib/trigl.c: Likewise.
71681         * m4/math_h.m4: New file.
71682         * MODULES.html.sh (Mathematics): Add math.
71683
71684 2007-02-17  Bruno Haible  <bruno@clisp.org>
71685
71686         * modules/wctype-tests: New file.
71687         * tests/test-wctype.c: New file.
71688
71689         * modules/wchar-tests: New file.
71690         * tests/test-wchar.c: New file.
71691
71692         * modules/unistd-tests: New file.
71693         * tests/test-unistd.c: New file.
71694
71695         * modules/time-tests: New file.
71696         * tests/test-time.c: New file.
71697
71698         * modules/sysexits-tests: New file.
71699         * tests/test-sysexits.c: New file.
71700
71701         * modules/sys_time-tests: New file.
71702         * tests/test-sys_time.c: New file.
71703
71704         * modules/sys_stat-tests: New file.
71705         * tests/test-sys_stat.c: New file.
71706
71707         * modules/sys_socket-tests: New file.
71708         * tests/test-sys_socket.c: New file.
71709
71710         * modules/sys_select-tests: New file.
71711         * tests/test-sys_select.c: New file.
71712
71713         * modules/string-tests: New file.
71714         * tests/test-string.c: New file.
71715
71716         * modules/stdbool-tests: New file.
71717         * tests/test-stdbool.c: New file.
71718
71719         * modules/netinet_in-tests: New file.
71720         * tests/test-netinet_in.c: New file.
71721
71722         * modules/inttypes-tests: New file.
71723         * tests/test-inttypes.c: New file.
71724
71725         * modules/fcntl-tests: New file.
71726         * tests/test-fcntl.c: New file.
71727
71728         * modules/byteswap-tests: New file.
71729         * tests/test-byteswap.c: New file.
71730
71731         * modules/arpa_inet-tests: New file.
71732         * tests/test-arpa_inet.c: New file.
71733
71734 2007-02-17  Bruno Haible  <bruno@clisp.org>
71735
71736         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
71737         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
71738         if the corresponding module is not enabled. Emit link warnings if
71739         the function is used nevertheless.
71740         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
71741         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
71742         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
71743         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
71744         * modules/inttypes (Depends-on): Add link-warning.
71745         (Makefile.am): Copy the contents of build-aux/link-warning.h into
71746         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
71747         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
71748         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
71749         * modules/imaxdiv (configure.ac): Likewise.
71750         * modules/strtoimax (configure.ac): Likewise.
71751         * modules/strtoumax (configure.ac): Likewise.
71752
71753 2007-02-17  Bruno Haible  <bruno@clisp.org>
71754
71755         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
71756         gl_STRING_MODULE_INDICATOR_DEFAULTS.
71757         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
71758         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
71759
71760 2007-02-17  Bruno Haible  <bruno@clisp.org>
71761
71762         * modules/link-warning: New file.
71763         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
71764         * lib/string_.h (GL_LINK_WARNING): Remove definition.
71765         * modules/string (Depends-on): Add link-warning.
71766         (Makefile.am): Copy the contents of build-aux/link-warning.h into
71767         string.h.
71768         * MODULES.html.sh (Support for building libraries and executables): Add
71769         link-warning.
71770
71771 2007-02-17  Bruno Haible  <bruno@clisp.org>
71772
71773         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
71774         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
71775         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
71776         long lines.
71777
71778 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
71779             Bruno Haible  <bruno@clisp.org>
71780
71781         * modules/tmpfile: New file.
71782         * lib/tmpfile.c: New file.
71783         * m4/tmpfile.m4: New file.
71784         * MODULES.html.sh (func_all_modules): New section "Input/output".
71785
71786 2007-02-15  Bruno Haible  <bruno@clisp.org>
71787
71788         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
71789         (supports_delete_on_close): New function.
71790         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
71791
71792 2007-02-14  Bruno Haible  <bruno@clisp.org>
71793
71794         * modules/mbspcasecmp-tests: New file.
71795         * tests/test-mbspcasecmp.sh: New file.
71796         * tests/test-mbspcasecmp.c: New file.
71797
71798         New module mbspcasecmp.
71799         * modules/mbspcasecmp: New file.
71800         * lib/mbspcasecmp.c: New file.
71801         * lib/string_.h (strncasecmp): Change warning message.
71802         (mbspcasecmp): New declaration.
71803         * m4/mbspcasecmp.m4: New file.
71804         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71805         GNULIB_MBSPCASECMP.
71806         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
71807         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
71808
71809 2007-02-14  Bruno Haible  <bruno@clisp.org>
71810
71811         * modules/mbsncasecmp-tests: New file.
71812         * tests/test-mbsncasecmp.sh: New file.
71813         * tests/test-mbsncasecmp.c: New file.
71814
71815         New module mbsncasecmp.
71816         * modules/mbsncasecmp: New file.
71817         * lib/mbsncasecmp.c: New file.
71818         * lib/string_.h (mbsncasecmp): New declaration.
71819         * m4/mbsncasecmp.m4: New file.
71820         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71821         GNULIB_MBSNCASECMP.
71822         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
71823         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
71824
71825 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
71826
71827         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
71828         Verify that it doesn't overlap with our flags.
71829         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
71830         do not have the desired effect in multibyte locales; instead, use
71831         mbscasecmp.
71832         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
71833         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
71834         we don't require GNU fnmatch ourselves (if our users require it, they
71835         should do so explicitly).
71836
71837         Fix regex code so it doesn't rely on strcasecmp.
71838         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
71839         Otherwise, include gnulib's langinfo.h.
71840         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
71841         undesirable behavior in non-C locales.  Instead, rely on localecharset.
71842         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
71843         * modules/regex (FILES): Remove m4/codeset.m4.
71844         (Depends-on): Add localcharset.  Remove strcase.
71845
71846 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71847
71848         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
71849         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
71850
71851 2007-02-13  Bruno Haible  <bruno@clisp.org>
71852
71853         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
71854         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71855
71856 2007-02-12  Bruno Haible  <bruno@clisp.org>
71857
71858         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
71859         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
71860         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
71861         time warning rather than a link error.
71862
71863 2007-02-12  Bruno Haible  <bruno@clisp.org>
71864
71865         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
71866         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
71867         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
71868
71869 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
71870
71871         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
71872         args, not 2.
71873
71874 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
71875
71876         New module 'time', so that apps can include <time.h> as per
71877         POSIX and GNU instead of separate include files like time_r.h
71878         and timegm.h.  This implementation tries out a simpler approach
71879         for replacing decls in standard include files (as compared to
71880         the string module), somewhat as an experiment.
71881
71882         * config/srclist.txt: Comment out mktime.c for now.
71883         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
71884         since it doesn't apply any more.  Use generic wording instead.
71885         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
71886         'time'.
71887         * lib/time_.h, m4/time_h.m4, modules/time: New files.
71888         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
71889         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
71890         Don't include <sys/types.h>; no longer needed since we assume C89.
71891         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
71892         * lib/strftime.c: Likewise.
71893         * lib/time_r.c: Likewise.
71894         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
71895         * lib/nanosleep.c: Include <time.h> first, to check interface.
71896         * lib/strptime.c: Likewise.
71897         * lib/time_r.c: Likewise.
71898         * lib/timegm.c: Likewise.
71899         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
71900         needed.
71901         * lib/timegm.c: Don't include timegm.h; no longer needed.
71902         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
71903         time.h now handles any problems in that area.
71904         (struct timespec, nanosleep): Remove; time.h now arranges for these.
71905         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
71906         that time.h defines struct timespec.
71907         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
71908         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
71909         handles that.
71910         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
71911         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
71912         needed.  Set REPLACE_LOCALTIME.
71913         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
71914         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
71915         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
71916         nanosleep; time_h.m4 now does that.  Don't require
71917         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
71918         module handles this now.
71919         * modules/getdate (Depends-on): Remove timespec.  Add time.
71920         * modules/nanosleep (Depends-on): Likewise.
71921         * modules/stat-time (Depends-on): Likewise.
71922         * modules/nanosleep (Include): Include time.h, not timespec.h.
71923         * modules/strptime (Files): Remove lib/strptime.h.
71924         (Depends-on): Add extensions, time.
71925         (Include): Include time.h, not strptime.h.
71926         * modules/time_r (Files): Remove lib/time_r.h.
71927         (Depends-on): Add time.
71928         (Include): Include time.h, not time_r.h.
71929         * modules/timegm: Likewise.
71930         * modules/timespec (Description): Now does timespec-related decls
71931         of our own, instead of struct timespec itself.
71932         (Depends-on): Add time; remove extensions.
71933         (Maintainer): Add self.
71934         * modules/utimecmp (Depends-on): Add time; remove timespec.
71935         * modules/utimens (Depends-on): Likewise.
71936         * modules/xnanosleep (Depends-on): Likewise.
71937
71938 2007-02-11  Bruno Haible  <bruno@clisp.org>
71939
71940         * lib/c-strstr.c: Include allocsa.h.
71941         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
71942         * lib/c-strcasestr.c: Include allocsa.h.
71943         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
71944         * lib/strcasestr.c: Include allocsa.h.
71945         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
71946         * lib/mbsstr.c: Include allocsa.h.
71947         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
71948         allocsa/freesa instead of malloc/free.
71949         * lib/mbscasestr.c: Include allocsa.h.
71950         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
71951         allocsa/freesa instead of malloc/free.
71952         * modules/c-strstr (Depends-on): Add allocsa.
71953         * modules/c-strcasestr (Depends-on): Likewise.
71954         * modules/strcasestr (Depends-on): Likewise.
71955         * modules/mbsstr (Depends-on): Likewise.
71956         * modules/mbscasestr (Depends-on): Likewise.
71957
71958 2007-02-11  Bruno Haible  <bruno@clisp.org>
71959
71960         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
71961
71962         * modules/mbsspn-tests: New file.
71963         * tests/test-mbsspn.sh: New file.
71964         * tests/test-mbsspn.c: New file.
71965
71966 2007-02-11  Bruno Haible  <bruno@clisp.org>
71967
71968         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
71969
71970         * modules/mbspbrk-tests: New file.
71971         * tests/test-mbspbrk.sh: New file.
71972         * tests/test-mbspbrk.c: New file.
71973
71974 2007-02-11  Bruno Haible  <bruno@clisp.org>
71975
71976         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
71977         unneeded cast.
71978
71979         * modules/mbscspn-tests: New file.
71980         * tests/test-mbscspn.sh: New file.
71981         * tests/test-mbscspn.c: New file.
71982
71983 2007-02-11  Bruno Haible  <bruno@clisp.org>
71984
71985         * modules/mbscasecmp-tests: New file.
71986         * tests/test-mbscasecmp.sh: New file.
71987         * tests/test-mbscasecmp.c: New file.
71988
71989 2007-02-11  Bruno Haible  <bruno@clisp.org>
71990
71991         Ensure O(n) worst-case complexity of mbscasestr.
71992         * lib/mbscasestr.c: Include stdbool.h.
71993         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
71994         functions.
71995         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
71996         the bookkeeping indicates that it's worth it.
71997         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
71998
71999         * modules/mbscasestr-tests: New file.
72000         * tests/test-mbscasestr1.c: New file.
72001         * tests/test-mbscasestr2.sh: New file.
72002         * tests/test-mbscasestr2.c: New file.
72003         * tests/test-mbscasestr3.sh: New file.
72004         * tests/test-mbscasestr3.c: New file.
72005         * tests/test-mbscasestr4.sh: New file.
72006         * tests/test-mbscasestr4.c: New file.
72007         * m4/locale-tr.m4: New file.
72008
72009 2007-02-11  Bruno Haible  <bruno@clisp.org>
72010
72011         Ensure O(n) worst-case complexity of mbsstr.
72012         * lib/mbsstr.c: Include stdbool.h.
72013         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
72014         functions.
72015         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
72016         bookkeeping indicates that it's worth it.
72017         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
72018
72019         * modules/mbsstr-tests: New file.
72020         * tests/test-mbsstr1.c: New file.
72021         * tests/test-mbsstr2.sh: New file.
72022         * tests/test-mbsstr2.c: New file.
72023         * tests/test-mbsstr3.sh: New file.
72024         * tests/test-mbsstr3.c: New file.
72025         * m4/locale-fr.m4: New file.
72026
72027 2007-02-11  Bruno Haible  <bruno@clisp.org>
72028
72029         * lib/mbsrchr.c (mbsrchr): Fix bug.
72030
72031         * modules/mbsrchr-tests: New file.
72032         * tests/test-mbsrchr.sh: New file.
72033         * tests/test-mbsrchr.c: New file.
72034
72035 2007-02-11  Bruno Haible  <bruno@clisp.org>
72036
72037         * lib/mbschr.c (mbschr): Fix bug.
72038
72039         * modules/mbschr-tests: New file.
72040         * tests/test-mbschr.sh: New file.
72041         * tests/test-mbschr.c: New file.
72042         * m4/locale-zh.m4: New file.
72043
72044 2007-02-11  Bruno Haible  <bruno@clisp.org>
72045
72046         Support for copying multibyte string iterators.
72047         * lib/mbiter.h: Include <string.h>.
72048         (mbiter_multi_copy): New function.
72049         (mbi_copy): New macro.
72050         * lib/mbuiter.h: Include <string.h>.
72051         (mbuiter_multi_copy): New function.
72052         (mbui_copy): New macro.
72053
72054 2007-02-11  Bruno Haible  <bruno@clisp.org>
72055
72056         New module mbslen.
72057         * modules/mbslen: New file.
72058         * lib/mbslen.c: New file.
72059         * lib/string_.h (mbslen): New declaration.
72060         * m4/mbslen.m4: New file.
72061         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72062         GNULIB_MBSLEN.
72063         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
72064         * MODULES.html.sh (Internationalization functions): Add mbslen.
72065
72066 2007-02-11  Bruno Haible  <bruno@clisp.org>
72067
72068         Ensure O(n) worst-case complexity of strcasestr substitute.
72069         * lib/strcasestr.c: Include stdbool.h.
72070         (knuth_morris_pratt): New function.
72071         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
72072         bookkeeping indicates that it's worth it.
72073         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
72074
72075         * modules/strcasestr-tests: New file.
72076         * tests/test-strcasestr.c: New file.
72077
72078 2007-02-11  Bruno Haible  <bruno@clisp.org>
72079
72080         Ensure O(n) worst-case complexity of c_strcasestr.
72081         * lib/c-strcasestr.c: Include stdbool.h, string.h.
72082         (knuth_morris_pratt): New function.
72083         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
72084         the bookkeeping indicates that it's worth it.
72085         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
72086
72087         * modules/c-strcasestr-tests: New file.
72088         * tests/test-c-strcasestr.c: New file.
72089
72090 2007-02-11  Bruno Haible  <bruno@clisp.org>
72091
72092         Ensure O(n) worst-case complexity of c_strstr.
72093         * lib/c-strstr.c: Include stdbool.h, string.h.
72094         (knuth_morris_pratt): New function.
72095         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
72096         bookkeeping indicates that it's worth it.
72097         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
72098
72099         * lib/c-strstr.c: Complete rewrite for maintainability.
72100
72101         * modules/c-strstr-tests: New file.
72102         * tests/test-c-strstr.c: New file.
72103
72104 2007-02-11  Bruno Haible  <bruno@clisp.org>
72105
72106         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
72107         5.2.1 and earlier, whereby \055 was treated just like the range
72108         delimiter '-'.
72109         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
72110
72111 2007-02-08  Bruno Haible  <bruno@clisp.org>
72112
72113         * modules/regex (Depends-on): Add stdbool.
72114         Reported by Dalibor Topic <robilad@kaffe.org>.
72115
72116 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
72117
72118         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
72119         Prefer returning from main to exiting from it.
72120         Remove unnecessary parens after sizeof.
72121
72122 2007-02-05  Bruno Haible  <bruno@clisp.org>
72123
72124         New module mbssep.
72125         * modules/mbssep: New file.
72126         * lib/mbssep.c: New file.
72127         * lib/string_.h (strsep): Add a conditional link warning.
72128         (mbssep): New declaration.
72129         * m4/mbssep.m4: New file.
72130         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72131         GNULIB_MBSSEP.
72132         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
72133         * MODULES.html.sh (Internationalization functions): Add mbssep.
72134
72135 2007-02-05  Bruno Haible  <bruno@clisp.org>
72136
72137         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
72138         Optimize search in case of 1 delimiter.
72139
72140 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
72141
72142         * lib/acl.h: Include sys/types.h before sys/acl.h.
72143
72144 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
72145
72146         Merge upstream fix for glibc bugzilla #3957:
72147
72148         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
72149
72150         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
72151         bit for RE_HAT_LISTS_NOT_NEWLINE.
72152         (build_charclass_op): Remove bogus comment.
72153
72154 2007-02-05  Simon Josefsson  <simon@josefsson.org>
72155
72156         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
72157
72158 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
72159
72160         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
72161         * lib/memmem.c [!defined _LIBC]: Include config.h.
72162
72163 2007-02-04  Bruno Haible  <bruno@clisp.org>
72164
72165         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
72166         warning message.
72167
72168 2007-02-04  Bruno Haible  <bruno@clisp.org>
72169
72170         New module mbstok_r.
72171         * modules/mbstok_r: New file.
72172         * lib/mbstok_r.c: New file.
72173         * lib/string_.h (strtok_r): Change argument names to match the
72174         comments. Add a conditional link warning.
72175         (mbstok_r): New declaration.
72176         * m4/mbstok_r.m4: New file.
72177         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72178         GNULIB_MBSTOK_R.
72179         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
72180         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
72181
72182 2007-02-04  Bruno Haible  <bruno@clisp.org>
72183
72184         New module mbsspn.
72185         * modules/mbsspn: New file.
72186         * lib/mbsspn.c: New file.
72187         * lib/string_.h (strspn): Add a conditional link warning.
72188         (mbsspn): New declaration.
72189         * m4/mbsspn.m4: New file.
72190         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72191         GNULIB_MBSSPN.
72192         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
72193         * MODULES.html.sh (Internationalization functions): Add mbsspn.
72194
72195 2007-02-04  Bruno Haible  <bruno@clisp.org>
72196
72197         New module mbspbrk.
72198         * modules/mbspbrk: New file.
72199         * lib/mbspbrk.c: New file.
72200         * lib/string_.h (strpbrk): Add a conditional link warning.
72201         (mbspbrk): New declaration.
72202         * m4/mbspbrk.m4: New file.
72203         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72204         GNULIB_MBSPBRK.
72205         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
72206         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
72207
72208 2007-02-04  Bruno Haible  <bruno@clisp.org>
72209
72210         New module mbscspn.
72211         * modules/mbscspn: New file.
72212         * lib/mbscspn.c: New file.
72213         * lib/string_.h (strcspn): Add a conditional link warning.
72214         (mbscspn): New declaration.
72215         * m4/mbscspn.m4: New file.
72216         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72217         GNULIB_MBSCSPN.
72218         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
72219         * MODULES.html.sh (Internationalization functions): Add mbscspn.
72220
72221 2007-02-04  Bruno Haible  <bruno@clisp.org>
72222
72223         New module mbscasestr, reduced goal of strcasestr.
72224         * modules/mbscasestr: New file.
72225         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
72226         (mbscasestr): Renamed from strcasestr.
72227         * lib/strcasestr.c: Don't include mbuiter.h.
72228         (strcasestr): Remove support for multibyte locales.
72229         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
72230         Change the conditional link warning.
72231         (mbscasestr): New declaration.
72232         * m4/mbscasestr.m4: New file.
72233         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
72234         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
72235         REPLACE_STRCASESTR.
72236         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
72237         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
72238         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
72239         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
72240         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
72241         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
72242         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
72243         (Depends-on): Remove mbuiter.
72244         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
72245
72246 2007-02-04  Bruno Haible  <bruno@clisp.org>
72247
72248         Simplify handling of strncasecmp.
72249         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
72250         the conditional link warning.
72251         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
72252         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
72253         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
72254         * modules/strcase (configure.ac): Don't invoke
72255         gl_STRING_MODULE_INDICATOR.
72256         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
72257
72258 2007-02-04  Bruno Haible  <bruno@clisp.org>
72259
72260         New module mbscasecmp, reduced goal of strcasecmp.
72261         * modules/mbscasecmp: New file.
72262         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
72263         (mbscasecmp): Renamed from strcasecmp.
72264         * lib/strcasecmp.c: Don't include mbuiter.h.
72265         (strcasecmp): Remove support for multibyte locales.
72266         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
72267         Change the conditional link warning.
72268         (mbscasecmp): New declaration.
72269         * m4/mbscasecmp.m4: New file.
72270         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
72271         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
72272         REPLACE_STRCASECMP.
72273         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
72274         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72275         GNULIB_MBSCASECMP.
72276         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
72277         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
72278         * modules/strcase (Files): Remove m4/mbrtowc.m4.
72279         (Depends-on): Remove mbuiter.
72280         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
72281
72282 2007-02-04  Bruno Haible  <bruno@clisp.org>
72283
72284         New module mbsstr. Remove module strstr.
72285         * modules/mbsstr: New file.
72286         * modules/strstr: Remove file.
72287         * lib/mbsstr.c: Renamed from lib/strstr.c.
72288         (mbsstr): Renamed from strstr.
72289         * lib/string_.h (strstr): Remove declaration. Change the conditional
72290         link warning.
72291         (mbsstr): New declaration.
72292         * m4/mbsstr.m4: New file.
72293         * m4/strstr.m4: Remove file.
72294         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
72295         REPLACE_STRSTR.
72296         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
72297         Don't initialize GNULIB_STRSTR.
72298         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
72299         substitute GNULIB_STRSTR and REPLACE_STRSTR.
72300         * MODULES.html.sh (Internationalization functions): Add mbsstr.
72301         (Support for systems lacking ANSI C 89): Remove strstr.
72302
72303 2007-02-04  Bruno Haible  <bruno@clisp.org>
72304
72305         New module mbsrchr.
72306         * modules/mbsrchr: New file.
72307         * lib/mbsrchr.c: New file.
72308         * lib/string_.h (strrchr): Add a conditional link warning.
72309         (mbsrchr): New declaration.
72310         * m4/mbsrchr.m4: New file.
72311         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72312         GNULIB_MBSRCHR.
72313         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
72314         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
72315
72316 2007-02-04  Bruno Haible  <bruno@clisp.org>
72317
72318         New module mbschr.
72319         * modules/mbschr: New file.
72320         * lib/mbschr.c: New file.
72321         * lib/string_.h (strchr): Add a conditional link warning.
72322         (mbschr): New declaration.
72323         * m4/mbschr.m4: New file.
72324         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
72325         GNULIB_MBSCHR.
72326         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
72327         * MODULES.html.sh (Internationalization functions): Add mbschr.
72328
72329 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
72330
72331         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
72332
72333         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
72334
72335 2007-02-04  Bruno Haible  <bruno@clisp.org>
72336
72337         New module description section 'configure.ac-early'.
72338         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
72339         (func_get_autoconf_early_snippet): New function.
72340         (func_import, func_create_testdir): Use it. Remove special cases for
72341         modules 'extensions' and 'lock'.
72342         * modules/extensions (configure.ac-early): Require
72343         gl_USE_SYSTEM_EXTENSIONS.
72344         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
72345
72346 2007-02-04  Bruno Haible  <bruno@clisp.org>
72347
72348         Make use of gcj-4.3's -fsource and -ftarget option.
72349         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
72350         and if so try the options -fsource and -ftarget.
72351         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
72352         source_version, ftarget_option, target_version arguments.
72353         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
72354         (is_envjavac_oldgcj_14_14_usable): Renamed from
72355         is_envjavac_gcj_14_14_usable.
72356         (is_envjavac_oldgcj_14_13_usable): Renamed from
72357         is_envjavac_gcj_14_13_usable.
72358         (is_gcj_present): Update.
72359         (is_gcj_43, is_gcj43_usable): New functions.
72360         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
72361         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
72362         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
72363         try the options -fsource and -ftarget.
72364
72365 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
72366
72367         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
72368         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
72369         larger value.
72370
72371 2007-02-03  Jim Meyering  <jim@meyering.net>
72372
72373         Give tools a better chance to allocate space for very large buffers.
72374         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
72375
72376         Make pwd and readlink work also when run with an unreadable parent dir
72377         on systems with openat support.
72378         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
72379         provided getcwd function, even when we have openat support.
72380         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
72381
72382 2007-02-02  Bruno Haible  <bruno@clisp.org>
72383
72384         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
72385         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
72386         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
72387         portability problems if one of these functions is only used on specific
72388         platforms.
72389         Reported by Paul Eggert.
72390
72391 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
72392
72393         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
72394         is causing more trouble than it's curing.
72395         * lib/regex_internal.h (__mempcpy): Remove.
72396         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
72397         (and make the code a tad smaller to boot).
72398         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
72399
72400 2007-02-02  Jim Meyering  <jim@meyering.net>
72401
72402         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
72403         section, not in the Makefile.am: one.
72404
72405 2007-02-02  Eric Blake  <ebb9@byu.net>
72406
72407         * lib/strchrnul.c: Always include config.h first.
72408
72409         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
72410         gnulib strstr is not necessary here.
72411
72412 2007-02-02  Simon Josefsson  <simon@josefsson.org>
72413
72414         * m4/socklen.m4: Fix typo.
72415
72416 2007-02-02  Eric Blake  <ebb9@byu.net>
72417
72418         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
72419         * modules/netinet_in (Makefile.am): Likewise.
72420
72421 2007-02-01  Bruno Haible  <bruno@clisp.org>
72422
72423         * lib/string_.h (GL_LINK_WARNING): New macro.
72424         (strcasecmp, strstr, strcasestr): If provided by the system,
72425         conditionally define as a macro that leads to a warning instead of to
72426         an error.
72427         (strncasecmp): Conditionally define as a macro that leads to a warning.
72428
72429 2007-02-01  Karl Berry  <karl@gnu.org>
72430
72431         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
72432
72433 2007-02-01  Bruno Haible  <bruno@clisp.org>
72434
72435         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
72436         renamings.
72437
72438 2007-02-01  Eric Blake  <ebb9@byu.net>
72439
72440         * modules/regex (Depends-on): Revert dependence on mempcpy.
72441         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
72442         module's definition of mempcpy.
72443         Reported by Paul Eggert.
72444
72445 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
72446
72447         * lib/string_.h: If the gnulib module XYZ is not present, undefine
72448         the symbol XYZ before redefining it.  This fixes a problem with
72449         programs that don't use XYZ, when compiled on systems that define
72450         XYZ to something else.
72451
72452 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
72453
72454         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
72455         occurs when "mkdir -m foo" creates a setgid directory that is (1)
72456         writeable to group or other and (2) is intended to have a special
72457         mode bit that is set or cleared.  In such a case, the directory
72458         should be neither group- nor other-writeable until the special
72459         mode bits are right.
72460
72461 2007-01-31  Eric Blake  <ebb9@byu.net>
72462
72463         * modules/mountlist (Depends-on): Add strstr.
72464
72465         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
72466         bug.
72467         * modules/string (Makefile.am): Remove redundant replacement.
72468         * modules/regex (Depends-on): Add mempcpy.
72469
72470 2007-01-31  Bruno Haible  <bruno@clisp.org>
72471
72472         New module description field 'Link'.
72473         * gnulib-tool (func_usage): Document --extract-link-directive.
72474         (sed_extract_prog): Recognize 'Link' directive.
72475         (func_get_link_directive): New function.
72476         (func_import): Show summary of link directives.
72477         Handle --extract-link-directive option.
72478         * modules/acl (Link): New section.
72479         * modules/clock-time (Link): New section.
72480         * modules/euidaccess (Link): New section.
72481         * modules/gettext (Link): New section.
72482         * modules/iconv (Link): New section.
72483         * modules/lock (Link): New section.
72484         * modules/nanosleep (Link): New section.
72485         * modules/readline (Link): New section.
72486
72487 2007-01-27  Bruno Haible  <bruno@clisp.org>
72488
72489         Enforce the use of gnulib modules for unportable <string.h> functions.
72490         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
72491         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
72492         (gl_HEADER_STRING_H_BODY): Require it.
72493         * lib/string_.h: If the gnulib module XYZ is not present, redefine
72494         the symbol XYZ to one that gives a link error.
72495         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
72496         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
72497         * modules/mempcpy (configure.ac): Likewise.
72498         * modules/memrchr (configure.ac): Likewise.
72499         * modules/stpcpy (configure.ac): Likewise.
72500         * modules/stpncpy (configure.ac): Likewise.
72501         * modules/strcase (configure.ac): Likewise.
72502         * modules/strcasestr (configure.ac): Likewise.
72503         * modules/strchrnul (configure.ac): Likewise.
72504         * modules/strdup (configure.ac): Likewise.
72505         * modules/strndup (configure.ac): Likewise.
72506         * modules/strnlen (configure.ac): Likewise.
72507         * modules/strpbrk (configure.ac): Likewise.
72508         * modules/strsep (configure.ac): Likewise.
72509         * modules/strstr (configure.ac): Likewise.
72510         * modules/strtok_r (configure.ac): Likewise.
72511
72512 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
72513
72514         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
72515
72516 2007-01-30  Jim Meyering  <jim@meyering.net>
72517
72518         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
72519
72520 2007-01-29  Bruno Haible  <bruno@clisp.org>
72521
72522         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
72523         * lib/execute.c: Likewise.
72524         * lib/pipe.c: Likewise.
72525         * lib/printf-args.h: Likewise.
72526         * lib/printf-args.c: Likewise.
72527         * lib/printf-parse.c: Likewise.
72528         * lib/vasnprintf.c: Likewise.
72529
72530 2007-01-29  Eric Blake  <ebb9@byu.net>
72531
72532         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
72533         declaration.
72534
72535 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
72536
72537         * lib/strptime.h (strptime): Use 'restrict' for args where
72538         POSIX requires this.
72539         * lib/strptime.c (strptime): Likewise.
72540         Change license notice from LGPL to GPL, since gnulib-tool will
72541         change this as needed.
72542         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
72543         defined.
72544         Include "strptime.h" first, to check interface.
72545         Do not #undef _LIBC and _NL_CURRENT.
72546         Do not include <stdlib.h>; no longer needed.
72547         Include "time_r.h" and declare ptime_locale_status
72548         only if _LIBC is not defined.
72549         (__P): Remove unused macro.
72550         (match_string): Bring back glibc version, but use it only if _LIBC
72551         is defined.
72552         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
72553         Remove unnecessary assertion and abort() call.
72554         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
72555         * m4/strptime.m4: Fix serial number comment.
72556         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
72557         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
72558         (Depends-on): Add time_r.
72559
72560 2007-01-29  Bruno Haible  <bruno@clisp.org>
72561
72562         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
72563         strptime.
72564         * modules/strptime (Depends-on): Add stdbool.
72565         * lib/strptime.h: Include <time.h> always. Add comments.
72566
72567 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
72568
72569         * modules/strptime: New file.
72570         * lib/strptime.h: New file.
72571         * lib/strptime.c: New file.
72572         * m4/strptime.m4: New file.
72573
72574 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
72575
72576         * MODULES.html.sh: New module mpsort.
72577         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
72578
72579         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
72580         a circularity problem with HP-UX ia64 reported by Bob Proulx in
72581         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
72582         All uses changed.
72583         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
72584         All uses changed.
72585         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
72586         to _Restrict_.
72587         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
72588         the parameter matches the prototype.
72589
72590 2007-01-28  Jim Meyering  <jim@meyering.net>
72591
72592         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
72593         sys/time.h here, reverting that part of the previous patch:
72594         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
72595
72596 2007-01-28  Bruno Haible  <bruno@clisp.org>
72597
72598         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
72599         value of $(SYS_TIME_H).
72600         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
72601         remove it conditionally, too. [added by Jim Meyering]
72602         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
72603         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
72604         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
72605         GETTIMEOFDAY_REPLACEMENT to 1.
72606
72607 2007-01-28  Bruno Haible  <bruno@clisp.org>
72608
72609         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
72610         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
72611         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
72612         Set UNISTD_H instead of UNISTD_H2.
72613         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
72614
72615 2007-01-28  Bruno Haible  <bruno@clisp.org>
72616
72617         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
72618         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
72619
72620 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72621
72622         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
72623         (func_create_testdir): Ensure C locale for `grep' and `tr'
72624         character ranges.
72625         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
72626         ACLOCAL_AMFLAGS parsing state machine.
72627
72628 2007-01-27  Bruno Haible  <bruno@clisp.org>
72629
72630         * modules/unistr/base: Update.
72631
72632 2007-01-27  Bruno Haible  <bruno@clisp.org>
72633
72634         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
72635         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
72636         * modules/unistr/u32-mbtouc-unsafe: Renamed from
72637         modules/unistr/u32-mbtouc.
72638         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
72639         * lib/unistr.h: Update.
72640         * lib/linebreak.c: Update.
72641         * modules/unistr/u32-mbtouc: Renamed from
72642         modules/unistr/u32-mbtouc-safe.
72643         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
72644         * lib/unistr.h: Update.
72645         * lib/unistr/u32-to-u8.c: Update.
72646         * lib/unistr/u32-to-u16.c: Update.
72647
72648 2007-01-27  Bruno Haible  <bruno@clisp.org>
72649
72650         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
72651         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
72652         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
72653         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
72654         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
72655         * modules/unistr/u16-mbtouc-unsafe: Renamed from
72656         modules/unistr/u16-mbtouc.
72657         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
72658         * lib/unistr.h: Update.
72659         * lib/linebreak.c: Update.
72660         * modules/linebreak: Update.
72661         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
72662         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
72663         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
72664         * modules/unistr/u16-mbtouc: Renamed from
72665         modules/unistr/u16-mbtouc-safe.
72666         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
72667         * lib/unistr.h: Update.
72668         * lib/unistr/u16-to-u8.c: Update.
72669         * modules/unistr/u16-to-u8: Update.
72670         * lib/unistr/u16-to-u32.c: Update.
72671         * modules/unistr/u16-to-u32: Update.
72672
72673 2007-01-27  Bruno Haible  <bruno@clisp.org>
72674
72675         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
72676         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
72677         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
72678         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
72679         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
72680         * modules/unistr/u8-mbtouc-unsafe: Renamed from
72681         modules/unistr/u8-mbtouc.
72682         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
72683         * lib/unistr.h: Update.
72684         * lib/striconveh.c: Update.
72685         * modules/striconveh: Update.
72686         * lib/linebreak.c: Update.
72687         * modules/linebreak: Update.
72688         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
72689         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
72690         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
72691         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
72692         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
72693         * lib/unistr.h: Update.
72694         * lib/striconveh.c: Update.
72695         * modules/striconveh: Update.
72696         * lib/unistr/u8-to-u16.c: Update.
72697         * modules/unistr/u8-to-u16: Update.
72698         * lib/unistr/u8-to-u32.c: Update.
72699         * modules/unistr/u8-to-u32: Update.
72700
72701 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72702
72703         Sync from Libtool.
72704         * lib/argz.c: Do not include strings.h nor memory.h, include
72705         string.h unconditionally.  Patch by Simon Josefsson.
72706
72707 2007-01-27  Bruno Haible  <bruno@clisp.org>
72708
72709         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
72710         from gl_HEADER_STRING_H_BODY.
72711         (gl_HEADER_STRING_H_BODY): Require it.
72712         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
72713         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
72714         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
72715         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
72716         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
72717         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
72718         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
72719         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
72720         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
72721         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
72722         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
72723         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
72724         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
72725         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
72726         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
72727
72728 2007-01-27  Bruno Haible  <bruno@clisp.org>
72729
72730         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
72731         check_PROGRAMS into noinst_PROGRAMS.
72732         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
72733         check_PROGRAMS in this case.
72734         (func_import): Set for_test to false.
72735         (func_create_testdir): Set for_test to true.
72736
72737 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
72738             Bruno Haible  <bruno@clisp.org>
72739
72740         * modules/strcasestr (Files): Remove lib/strcasestr.h.
72741         (Depends-on): Add string.
72742         (Includes): Use <string.h> instead of strcasestr.h.
72743         * modules/string (Makefile.am): Also substitute the value of
72744         REPLACE_STRCASESTR.
72745         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
72746         assume strcasestr is declared in <string.h> not <strings.h>. Also
72747         set REPLACE_STRCASESTR.
72748         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
72749         REPLACE_STRCASESTR.
72750         * lib/strcasestr.h: Remove file.
72751         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
72752         * lib/string_.h (strcasestr): New declaration.
72753
72754 2007-01-27  Bruno Haible  <bruno@clisp.org>
72755
72756         * lib/string_.h: Use 'extern'.
72757
72758 2007-01-27  Jim Meyering  <jim@meyering.net>
72759
72760         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
72761         of set-but-not-used local, "q".
72762
72763         * lib/mempcpy.c: Include <config.h> before <string.h>.
72764         This fixes a compilation error on HP-UX, due to the system's
72765         "restrict"-using mempcpy prototype.
72766
72767 2007-01-26  Bruno Haible  <bruno@clisp.org>
72768
72769         Small optimization.
72770         * lib/javacomp.c: Include c-strstr.h.
72771          (is_envjavac_gcj): Use c_strstr instead of strstr.
72772         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
72773
72774 2007-01-26  Bruno Haible  <bruno@clisp.org>
72775
72776         * MODULES.html.sh (Unicode string functions): Add the new modules.
72777
72778         * modules/uniconv/u32-strconv-to-locale: New file.
72779         * lib/uniconv/u32-strconv-to-locale.c: New file.
72780
72781         * modules/uniconv/u16-strconv-to-locale: New file.
72782         * lib/uniconv/u16-strconv-to-locale.c: New file.
72783
72784         * modules/uniconv/u8-strconv-to-locale: New file.
72785         * lib/uniconv/u8-strconv-to-locale.c: New file.
72786
72787         * modules/uniconv/u32-strconv-from-locale: New file.
72788         * lib/uniconv/u32-strconv-from-locale.c: New file.
72789
72790         * modules/uniconv/u16-strconv-from-locale: New file.
72791         * lib/uniconv/u16-strconv-from-locale.c: New file.
72792
72793         * modules/uniconv/u8-strconv-from-locale: New file.
72794         * lib/uniconv/u8-strconv-from-locale.c: New file.
72795
72796         * modules/uniconv/u32-strconv-to-enc: New file.
72797         * lib/uniconv/u32-strconv-to-enc.c: New file.
72798         * modules/uniconv/u32-strconv-to-enc-tests: New file.
72799         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
72800
72801         * modules/uniconv/u16-strconv-to-enc: New file.
72802         * lib/uniconv/u16-strconv-to-enc.c: New file.
72803         * lib/uniconv/u-strconv-to-enc.h: New file.
72804         * modules/uniconv/u16-strconv-to-enc-tests: New file.
72805         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
72806
72807         * modules/uniconv/u8-strconv-to-enc: New file.
72808         * lib/uniconv/u8-strconv-to-enc.c: New file.
72809         * modules/uniconv/u8-strconv-to-enc-tests: New file.
72810         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
72811
72812         * modules/uniconv/u32-strconv-from-enc: New file.
72813         * lib/uniconv/u32-strconv-from-enc.c: New file.
72814         * modules/uniconv/u32-strconv-from-enc-tests: New file.
72815         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
72816
72817         * modules/uniconv/u16-strconv-from-enc: New file.
72818         * lib/uniconv/u16-strconv-from-enc.c: New file.
72819         * modules/uniconv/u16-strconv-from-enc-tests: New file.
72820         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
72821
72822         * modules/uniconv/u8-strconv-from-enc: New file.
72823         * lib/uniconv/u8-strconv-from-enc.c: New file.
72824         * lib/uniconv/u-strconv-from-enc.h: New file.
72825         * modules/uniconv/u8-strconv-from-enc-tests: New file.
72826         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
72827
72828         * modules/uniconv/u32-conv-from-enc: New file.
72829         * lib/uniconv/u32-conv-from-enc.c: New file.
72830         * modules/uniconv/u32-conv-from-enc-tests: New file.
72831         * tests/uniconv/test-u32-conv-from-enc.c: New file.
72832
72833         * modules/uniconv/u16-conv-from-enc: New file.
72834         * lib/uniconv/u16-conv-from-enc.c: New file.
72835         * lib/uniconv/u-conv-from-enc.h: New file.
72836         * modules/uniconv/u16-conv-from-enc-tests: New file.
72837         * tests/uniconv/test-u16-conv-from-enc.c: New file.
72838
72839         * modules/uniconv/u8-conv-from-enc: New file.
72840         * lib/uniconv/u8-conv-from-enc.c: New file.
72841         * modules/uniconv/u8-conv-from-enc-tests: New file.
72842         * tests/uniconv/test-u8-conv-from-enc.c: New file.
72843
72844         * modules/uniconv/base: New file.
72845         * lib/uniconv.h: New file.
72846
72847 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
72848
72849         * doc/gnulib-tool.texi (Initial import): Update to match current
72850         behavior with strdup module.
72851         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
72852         * lib/memmem.h: Remove; all uses removed.  This is now done
72853         by <string.h>.
72854         * lib/mempcpy.h: Likewise.
72855         * lib/memrchr.h: Likewise.
72856         * lib/stpcpy.h: Likewise.
72857         * lib/stpncpy.h: Likewise.
72858         * lib/strcase.h: Likewise.
72859         * lib/strchrnul.h: Likewise.
72860         * lib/strdup.h: Likewise.
72861         * lib/strndup.h: Likewise.
72862         * lib/strnlen.h: Likewise.
72863         * lib/strpbrk.h: Likewise.
72864         * lib/strsep.h: Likewise.
72865         * lib/strstr.h: Likewise.
72866         * lib/strtok_r.h: Likewise.
72867         * lib/string_.h: New file.
72868         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
72869         Rely on <string.h> instead.
72870         * lib/canon-host.c: Likewise.
72871         * lib/chdir-long.c: Likewise.
72872         * lib/concatpath.c: Likewise.
72873         * lib/exclude.c: Likewise.
72874         * lib/fchdir.c: Likewise.
72875         * lib/getaddrinfo.c: Likewise.
72876         * lib/getcwd.c: Likewise.
72877         * lib/getsubopt.c: Likewise.
72878         * lib/glob.c: Likewise.
72879         * lib/hard-locale.c: Likewise.
72880         * lib/iconvme.c: Likewise.
72881         * lib/javacomp.c: Likewise.
72882         * lib/mempcpy.c: Likewise.
72883         * lib/memrchr.c: Likewise.
72884         * lib/regex_internal.h: Likewise.
72885         * lib/stpncpy.c: Likewise.
72886         * lib/strcasecmp.c: Likewise.
72887         * lib/strchrnul.c: Likewise.
72888         * lib/strdup.c: Likewise.
72889         * lib/striconv.c: Likewise.
72890         * lib/striconveh.c: Likewise.
72891         * lib/striconveha.c: Likewise.
72892         * lib/strncasecmp.c: Likewise.
72893         * lib/strndup.c: Likewise.
72894         * lib/strnlen.c: Likewise.
72895         * lib/strsep.c: Likewise.
72896         * lib/strstr.c: Likewise.
72897         * lib/strtok_r.c: Likewise.
72898         * lib/userspec.c: Likewise.
72899         * lib/w32spawn.h: Likewise.
72900         * lib/xstrndup.c: Likewise.
72901         * lib/mountlist.c (strstr): Remove decl.
72902         * m4/string_h.m4: New file.
72903         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
72904         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
72905         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
72906         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
72907         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
72908         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
72909         Set REPLACE_STRCASECMP if necessary.
72910         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
72911         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
72912         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
72913         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
72914         HAVE_DECL_STRDUP if necessary.
72915         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
72916         since gl_FUNC_STRNDUP does that now.
72917         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
72918         Check for decl here...
72919         (gl_PREREQ_STRNLEN): ... not here.
72920         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
72921         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
72922         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
72923         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
72924         necessary.
72925         * modules/string: New file.
72926         * modules/memmem (Files): Remove special-purpose include file.
72927         (Depends-on): Add string.
72928         (Include): Include <string.h>, not the removed file.
72929         * modules/mempcpy: Likewise.
72930         * modules/memrchr: Likewise.
72931         * modules/stpcpy: Likewise.
72932         * modules/stpncpy: Likewise.
72933         * modules/strcase: Likewise.
72934         * modules/strchrnul: Likewise.
72935         * modules/strdup: Likewise.
72936         * modules/strndup: Likewise.
72937         * modules/strnlen: Likewise.
72938         * modules/strpbrk: Likewise.
72939         * modules/strsep: Likewise.
72940         * modules/strstr: Likewise.
72941         * modules/strtok_r: Likewise.
72942         * tests/test-dirname.c: Don't include "strdup.h", since
72943         <string.h> now suffices.
72944         * tests/test-memmem.c: Don't include "memmem.h", since
72945         <string.h> now suffices.
72946
72947 2007-01-25  Bruno Haible  <bruno@clisp.org>
72948
72949         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
72950         *resultp is 0.
72951
72952         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
72953         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
72954         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
72955         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
72956
72957         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
72958         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
72959         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
72960         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
72961         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
72962         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
72963
72964 2007-01-24  Bruno Haible  <bruno@clisp.org>
72965
72966         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
72967         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
72968         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
72969         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
72970         gl_FUNC_FTS_CORE.
72971         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
72972         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
72973         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
72974         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
72975         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
72976         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
72977         gl_FUNC_FCHOWNAT.
72978         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
72979         gl_FUNC_STRFTIME.
72980         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
72981         Reported by Ralf Wildenhues.
72982
72983 2007-01-24  Bruno Haible  <bruno@clisp.org>
72984
72985         Drop AC_REQUIRE calls that are redundant with the module dependencies.
72986         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
72987         gl_GETADDRINFO.
72988         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
72989         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
72990         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
72991
72992 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
72993
72994         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
72995         Don't use 'exit'; just return from 'main'.
72996         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
72997
72998         * lib/fnmatch_.h: Readjust white space and comments to match
72999         glibc, to avoid spurious diffs.
73000
73001 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73002
73003         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
73004         2004-12-01 change by Jakub Jelinek, since this code won't compile
73005         if !LIBC.  Problem reported by Bob Proulx.
73006
73007 2007-01-23  Bruno Haible  <bruno@clisp.org>
73008
73009         * lib/striconveh.c: Include c-strcaseeq.h.
73010         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
73011         * modules/striconveh (Depends-on): Add c-strcaseeq.
73012
73013 2007-01-23  Bruno Haible  <bruno@clisp.org>
73014
73015         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
73016
73017         * modules/c-strcaseeq: New file.
73018         * lib/c-strcaseeq.h: New file.
73019
73020         * modules/streq: New file.
73021         * lib/streq.h: New file.
73022
73023 2007-01-23  Bruno Haible  <bruno@clisp.org>
73024
73025         * modules/striconveha-tests: New file.
73026         * tests/test-striconveha.c: New file.
73027
73028         * lib/striconveha.h: Include <stdbool.h>.
73029         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
73030         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
73031         (mem_iconveha_notranslit): Renamed from mem_iconveha.
73032         (mem_iconveha): New function.
73033         (str_iconveha_notranslit): Renamed from str_iconveha.
73034         (str_iconveha): New function.
73035         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
73036         c-strcase.
73037
73038 2007-01-23  Bruno Haible  <bruno@clisp.org>
73039
73040         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
73041         encodings without forgiving before trying any encoding with handler.
73042         (str_iconveha): Try all encodings without forgiving before trying any
73043         encoding with handler.
73044
73045 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
73046
73047         Import the following changes from libc.
73048
73049         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
73050
73051         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
73052
73053         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
73054
73055         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
73056         normal_bracket label.
73057
73058         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
73059
73060         [BZ #361]
73061         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
73062         to normal_bracket after fetching the next character.
73063
73064 2007-01-22  Bruno Haible  <bruno@clisp.org>
73065
73066         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
73067         argument.
73068         * lib/striconveh.c (iconv_carefully_1): New function.
73069         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
73070         argument.
73071         (str_cd_iconveh): Update.
73072         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
73073         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
73074         * tests/test-striconveh.c (MAGIC): New macro.
73075         (new_offsets): New function.
73076         (main): Test call with and without offsets.
73077
73078 2007-01-22  Bruno Haible  <bruno@clisp.org>
73079
73080         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
73081         * modules/sys_select (Makefile.am): Likewise.
73082         * modules/sys_socket (Makefile.am): Likewise.
73083         * modules/sys_time (Makefile.am): Likewise.
73084
73085 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
73086
73087         * modules/gettimeofday (License): Change from GPL to LGPL, since
73088         gettimeofday is a library function.
73089
73090 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73091
73092         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
73093
73094 2007-01-21  Bruno Haible  <bruno@clisp.org>
73095
73096         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
73097
73098 2007-01-21  Bruno Haible  <bruno@clisp.org>
73099
73100         * modules/striconveha: New file.
73101         * lib/striconveha.h: New file.
73102         * lib/striconveha.c: New file.
73103         * MODULES.html.sh (Internationalization functions): Add striconveha.
73104         * lib/striconv.c (str_iconv): Optimize the case of an empty input
73105         string.
73106         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
73107
73108 2007-01-21  Bruno Haible  <bruno@clisp.org>
73109
73110         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
73111         * lib/striconveh.c (str_iconveh): Likewise.
73112
73113 2007-01-21  Bruno Haible  <bruno@clisp.org>
73114
73115         * lib/striconveh.h (mem_iconveh): New declaration.
73116         * lib/striconveh.c (mem_iconveh): New function.
73117         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
73118
73119 2007-01-21  Bruno Haible  <bruno@clisp.org>
73120
73121         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
73122
73123         * lib/striconveh.h (mem_cd_iconveh): Change specification.
73124         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
73125         original result buffer.
73126         (str_cd_iconveh): Update.
73127         * tests/test-striconveh.c (main): Update.
73128
73129         * lib/striconv.h (mem_cd_iconv): Change specification.
73130         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
73131         result buffer.
73132         (str_cd_iconv): Update.
73133         * tests/test-striconv.c (main): Update.
73134
73135 2007-01-21  Bruno Haible  <bruno@clisp.org>
73136
73137         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
73138
73139 2007-01-20  Jim Meyering  <jim@meyering.net>
73140
73141         * lib/userspec.c (parse_with_separator): If a user or group string
73142         starts with "+", skip the corresponding name-to-ID look-up, since
73143         such a look-up must fail: user and group names may not include "+".
73144
73145 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
73146
73147         * lib/poll.c: Include sys/time.h and time.h unconditionally,
73148         since we now assume the sys_time module.
73149         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
73150         check for sys/time.h; no longer needed.
73151         * modules/poll (Depends-on): Depend on sys_time.
73152
73153 2007-01-18  Bruno Haible  <bruno@clisp.org>
73154
73155         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
73156         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
73157
73158         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
73159         gettimeofday.
73160
73161         * tests/test-gettimeofday.c: Include <time.h>.
73162         (dummy): Remove variable.
73163
73164         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
73165         gl_HEADER_SYS_TIME_H.
73166         (gl_HEADER_SYS_TIME_H): New macro.
73167
73168         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
73169         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73170         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
73171         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
73172         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73173         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
73174         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
73175         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73176         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
73177         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
73178         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73179
73180         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
73181         last change; it caused a compilation error when cross-compiling to
73182         Cygwin.
73183
73184 2007-01-18  Jim Meyering  <jim@meyering.net>
73185
73186         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
73187         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
73188         than the race-prone "test -d sys || mkdir sys".
73189         (configure.ac): Use AC_PROG_MKDIR_P.
73190         * modules/sys_select: Likewise.
73191         * modules/sys_socket: Likewise.
73192         * modules/sys_time: Likewise.
73193
73194 2007-01-18  Eric Blake  <ebb9@byu.net>
73195
73196         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
73197         replace gettimeofday.
73198         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
73199         name, to avoid infinite recursion.
73200
73201 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
73202
73203         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
73204         module sys_time.
73205         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
73206         assume timespec.h defines struct timeval.
73207         * lib/settime.c: Likewise.
73208         * lib/utimens.c: Likewise.
73209         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
73210         since we now assume the gettimeofday module.
73211         * lib/tempname.c (__gen_tempname): Likewise.
73212         * lib/gettimeofday.h: Remove.
73213         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
73214         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
73215         Include <time.h>, for 'time()'.
73216         (localtime_buffer_addr): Also use this workaround if
73217         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
73218         to simplify the uses.  All uses changed.
73219         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
73220         that #undef is inside {}, and 'const' follows type name consistently.
73221         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
73222         (gettimeofday): Do not use the maximum possible value for
73223         tv->tv_usec, since that might break usages other than ls.c.
73224         Instead, we'll leave ls.c alone.  This undoes today's patch
73225         by Bruno.  Add a compile-time warning for 1s-clock resolution;
73226         we've never observed the problem but might as well keep the
73227         canary.
73228         * lib/nanosleep.c: Include timespec.h first, for interface check.
73229         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
73230         now assume the sys_time module.
73231         * lib/tempname.c: Likewise.
73232         * lib/timespec.h: Likewise.
73233         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
73234         needed.
73235         * lib/strftime.c: Likewise.
73236         * lib/timespec.h: Likewise.
73237         * lib/posixtm.c: Include posixtm.h first, for interface check.
73238         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
73239         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
73240         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
73241         * lib/sys_time_.h: New file.
73242         * lib/timespec.h (struct timespec): Use long int, not long.
73243         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
73244         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
73245         Remove obsolescent call to AC_HEADER_TIME.
73246         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
73247         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
73248         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
73249         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
73250         Likewise.
73251         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
73252         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
73253         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
73254         into the sys_time module.  Check for gettimeofday just once.
73255         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
73256         for gettimeofday signature to just check the signature.  Merely
73257         compile it, since linking doesn't test signature.  Improve test for
73258         whether gettimeofday.o is actually needed.
73259         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
73260         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
73261         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
73262         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73263         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
73264         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
73265         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
73266         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
73267         than worrying about sys/time.h.
73268         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
73269         Don't bother worrying about TIME_WITH_SYS_TIME.
73270         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
73271         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
73272         * m4/sys_time_h.m4: New file.
73273         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
73274         Don't include sys/time.h.  Return from main rather than exiting.
73275         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
73276         all uses changed.
73277         * modules/gethrxtime (Depends-on): Add sys_time.
73278         * modules/gettime (Depends-on): Likewise.
73279         * modules/gettimeofday (Depends-on): Likewise.
73280         * modules/nanosleep (Depends-on): Likewise.
73281         * modules/settime (Depends-on): Likewise.
73282         * modules/tempname (Depends-on): Likewise.
73283         * modules/utimens (Depends-on): Likewise.
73284         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
73285         (Include): Change back to <sys/time.h>.
73286         (Maintainer): Add self.
73287         * modules/sys_time: New file.
73288         * modules/tempname (Depends-on): Add gettimeofday.
73289         * tests/test-gettimeofday.c: Include <sys/time.h>
73290         rather than gettimeofday.h.
73291
73292 2007-01-17  Bruno Haible  <bruno@clisp.org>
73293
73294         * gnulib-tool (func_get_license): Revert last patch. Instead, let
73295         the license default to GPL.
73296         (func_create_testdir): Don't complain if a module is LGPL and its
73297         tests module depends on GPLed modules.
73298
73299 2007-01-17  Bruno Haible  <bruno@clisp.org>
73300
73301         * lib/gettimeofday.c (gettimeofday): Add code for the case
73302         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
73303         maximum possible value for tv->tv_usec, rather than the minimum one.
73304
73305 2005-10-08  Martin Lambers  <marlam@marlam.de>
73306 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
73307 2007-01-16  Bruno Haible  <bruno@clisp.org>
73308
73309         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
73310         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
73311         gl_FUNC_GETTIMEOFDAY.
73312         (Include): Add gettimeofday.h.
73313         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
73314         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
73315         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
73316         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
73317         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
73318         * lib/gettimeofday.h: New file.
73319         * lib/gettimeofday.c: Include <sys/timeb.h>.
73320         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
73321         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
73322         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
73323         fall back on time().
73324
73325         * tests/test-gettimeofday.c: New file.
73326         * modules/gettimeofday-tests: New file.
73327
73328 2007-01-16  Eric Blake  <ebb9@byu.net>
73329
73330         * modules/fnmatch (Depends-on): Depend on wchar.
73331         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
73332         * m4/fnmatch.m4: Likewise.
73333         * modules/mbchar (Makefile.am): Assume <wchar.h>.
73334         * m4/mbchar.m4: Likewise.
73335         * modules/mbswidth (Depends-on): Depend on wchar.
73336         * lib/mbswidth.c: Assume <wchar.h>.
73337         * m4/mbswidth.m4: Likewise.
73338         * modules/quotearg (Depends-on): Depend on wchar.
73339         * lib/quotearg.c: Assume <wchar.h>.
73340         * m4/quotearg.m4: Likewise.
73341         * modules/regex (Depends-on): Depend on wchar.
73342         * lib/regex_internal.h: Assume <wchar.h>.
73343         * m4/regex.m4: Likewise.
73344         * modules/stdint (Depends-on): Depend on wchar.
73345         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
73346         * m4/stdint.m4: Likewise.
73347         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
73348         * modules/strftime (Depends-on): Depend on wchar.
73349         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
73350         * modules/strtol (Depends-on): Depend on wchar.
73351         * lib/strtol.c: Assume <wchar.h>.
73352         * modules/wcwidth (Depends-on): Depend on wchar.
73353         * lib/wcwidth.h: Assume <wchar.h>.
73354         * m4/wcwidth.m4: Likewise.
73355
73356 2007-01-16  Bruno Haible  <bruno@clisp.org>
73357
73358         * modules/csharpexec-script: New, created from...
73359         * modules/csharpexec: ... this.
73360
73361 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
73362
73363         * modules/javaexec-script: New, created from...
73364         * modules/javaexec: ... this.
73365
73366 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73367
73368         * modules/poll (Dependencies): Add sys_select.
73369
73370 2007-01-15  Jim Meyering  <jim@meyering.net>
73371
73372         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
73373         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
73374         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
73375         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
73376
73377 2007-01-15  Bruno Haible  <bruno@clisp.org>
73378
73379         * modules/striconveh: New file.
73380         * lib/striconveh.h: New file.
73381         * lib/striconveh.c: New file.
73382         * MODULES.html.sh (Internationalization functions): Add striconveh.
73383
73384         * modules/striconveh-tests: New file.
73385         * tests/test-striconveh.c: New file.
73386
73387 2007-01-15  Bruno Haible  <bruno@clisp.org>
73388
73389         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
73390         not from GNU libiconv or GNU libc.
73391
73392 2007-01-15  Bruno Haible  <bruno@clisp.org>
73393
73394         * doc/gnulib-intro.texi (Copyright): Explain the different license
73395         terms for module descriptions, autoconf macros, tests, documentation.
73396
73397 2007-01-14  Bruno Haible  <bruno@clisp.org>
73398
73399         * modules/striconv-tests: New file.
73400         * tests/test-striconv.c: New file.
73401
73402 2007-01-14  Bruno Haible  <bruno@clisp.org>
73403
73404         * modules/iconv-tests: New file.
73405         * tests/test-iconv.c: New file.
73406
73407 2007-01-14  Bruno Haible  <bruno@clisp.org>
73408
73409         * gnulib-tool (func_get_license): For test modules, use the license of
73410         the main module.
73411
73412 2007-01-14  Bruno Haible  <bruno@clisp.org>
73413
73414         * modules/iconv (Include): Clarify that <iconv.h> can only be included
73415         if iconv is found to exist.
73416
73417 2007-01-14  Bruno Haible  <bruno@clisp.org>
73418
73419         * modules/c-ctype-tests: New file.
73420         * tests/test-c-ctype.c: New file.
73421
73422 2007-01-14  Bruno Haible  <bruno@clisp.org>
73423
73424         * modules/binary-io-tests: New file.
73425         * tests/test-binary-io.sh: New file.
73426         * tests/test-binary-io.c: New file.
73427
73428 2007-01-14  Bruno Haible  <bruno@clisp.org>
73429
73430         * modules/array-oset-tests: New file.
73431         * tests/test-array_oset.c: New file.
73432
73433 2007-01-14  Bruno Haible  <bruno@clisp.org>
73434
73435         * modules/array-list-tests: New file.
73436         * tests/test-array_list.c: New file.
73437
73438 2007-01-14  Bruno Haible  <bruno@clisp.org>
73439
73440         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
73441         and make.
73442         Reported by Simon Josefsson in
73443         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
73444
73445 2007-01-14  Bruno Haible  <bruno@clisp.org>
73446
73447         * modules/allocsa-tests: New file.
73448         * tests/test-allocsa.c: New file.
73449
73450 2007-01-14  Bruno Haible  <bruno@clisp.org>
73451
73452         * modules/fchdir (Depends-on): Add absolute-header.
73453         * modules/unistd (Depends-on): Likewise.
73454
73455 2006-12-30  Bruno Haible  <bruno@clisp.org>
73456
73457         * modules/fchdir: New file.
73458         * modules/unistd (Files): Add lib/unistd_.h.
73459         (Makefile.am): Generate unistd.h from unistd_.h.
73460         * lib/fchdir.c: New file.
73461         * lib/dirent_.h: New file.
73462         * lib/unistd_.h: New file.
73463         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
73464         * m4/fchdir.m4: New file.
73465         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
73466         (gl_HEADER_UNISTD): Invoke it.
73467         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
73468         function.
73469         * lib/backupfile.c (opendir, closedir): Undefine.
73470         * lib/chown.c (open, close): Undefine.
73471         * lib/clean-temp.c (open, close): Undefine.
73472         * lib/copy-file.c (open, close): Undefine.
73473         * lib/execute.c (open, close): Undefine.
73474         * lib/fsusage.c (open, close): Undefine.
73475         * lib/gc-gnulib.c (open, close): Undefine.
73476         * lib/getcwd.c (opendir, closedir): Undefine.
73477         * lib/glob.c (opendir, closedir): Undefine.
73478         * lib/javacomp.c (open, close): Undefine.
73479         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
73480         * lib/openat-proc.c (open, close): Undefine.
73481         * lib/pagealign_alloc.c (open, close): Undefine.
73482         * lib/pipe.c (open, close): Undefine.
73483         * lib/progreloc.c (open, close): Undefine.
73484         * lib/savedir.c (opendir, closedir): Undefine.
73485         * lib/utime.c (open, close): Undefine.
73486         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
73487
73488 2007-01-10  Bruno Haible  <bruno@clisp.org>
73489
73490         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
73491
73492 2007-01-12  Eric Blake  <ebb9@byu.net>
73493
73494         Provide a robust <wchar.h>.  Further simplifications are now
73495         possible in other modules, but not included here.
73496         * modules/wchar: New module.
73497         * m4/wchar.m4: New file.
73498         * lib/wchar_.h: Likewise.
73499         * modules/mbchar (Depends-on): Depend on wchar, as the first use
73500         of the new module.
73501         * MODULES.html.sh (Extended multibyte and wide character utilities):
73502         New section.
73503
73504 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
73505
73506         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
73507         to a reasonable default for memory allocation.
73508         (xreadlink): Don't allocate a huge buffer, to work around a buggy
73509         file system that reports garbage st_size values for symlinks.
73510         Problem reported by Liyang Hu.
73511
73512 2007-01-11  Simon Josefsson  <simon@josefsson.org>
73513
73514         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
73515         Emacs .#* auto-save files).
73516
73517 2007-01-11  Bruno Haible  <bruno@clisp.org>
73518
73519         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
73520         directory.
73521
73522 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
73523
73524         Use @...@ consistently in lib/wctype_.h.
73525         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
73526         on it being set to 1 or 0.
73527         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
73528         go back to AC_SUBSTing it.
73529         * modules/wctype (Makefile.am): Undo previous change.
73530
73531 2007-01-10  Eric Blake  <ebb9@byu.net>
73532
73533         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
73534         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
73535         * modules/wctype (Makefile.am): Likewise.
73536         Reported by Chris McGuire.
73537
73538 2007-01-10  Jim Meyering  <jim@meyering.net>
73539
73540         fts.c: a small readability/maintainability improvement
73541         * lib/fts.c (fts_read): Make this code slightly more readable and
73542         maintainable by hoisting the "sp->fts_cur = p" assignments to
73543         immediately follow the statements that set P.  Derived from
73544         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
73545
73546 2007-01-10  Eric Blake  <ebb9@byu.net>
73547
73548         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
73549         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
73550         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
73551         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
73552         Reported by Chris McGuire.
73553
73554 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73555
73556         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
73557         in sed script.
73558
73559 2007-01-09  Bruno Haible  <bruno@clisp.org>
73560
73561         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
73562         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
73563         variables.
73564         (func_module): Use them.
73565
73566 2007-01-09  Bruno Haible  <bruno@clisp.org>
73567
73568         * modules/unistr/base: New file.
73569         * lib/unistr.h: New file.
73570
73571         * modules/unistr/u8-to-u16: New file.
73572         * lib/unistr/u8-to-u16.c: New file.
73573
73574         * modules/unistr/u8-to-u32: New file.
73575         * lib/unistr/u8-to-u32.c: New file.
73576
73577         * modules/unistr/u16-to-u8: New file.
73578         * lib/unistr/u16-to-u8.c: New file.
73579
73580         * modules/unistr/u16-to-u32: New file.
73581         * lib/unistr/u16-to-u32.c: New file.
73582
73583         * modules/unistr/u32-to-u8: New file.
73584         * lib/unistr/u32-to-u8.c: New file.
73585
73586         * modules/unistr/u32-to-u16: New file.
73587         * lib/unistr/u32-to-u16.c: New file.
73588
73589         * modules/unistr/u8-check: New file.
73590         * modules/unistr/u16-check: New file.
73591         * modules/unistr/u32-check: New file.
73592         * lib/unistr/u8-check.c: New file.
73593         * lib/unistr/u16-check.c: New file.
73594         * lib/unistr/u32-check.c: New file.
73595
73596         * modules/unistr/u8-chr: New file.
73597         * modules/unistr/u16-chr: New file.
73598         * modules/unistr/u32-chr: New file.
73599         * lib/unistr/u8-chr.c: New file.
73600         * lib/unistr/u16-chr.c: New file.
73601         * lib/unistr/u32-chr.c: New file.
73602
73603         * modules/unistr/u8-cmp: New file.
73604         * modules/unistr/u16-cmp: New file.
73605         * modules/unistr/u32-cmp: New file.
73606         * lib/unistr/u8-cmp.c: New file.
73607         * lib/unistr/u16-cmp.c: New file.
73608         * lib/unistr/u32-cmp.c: New file.
73609
73610         * modules/unistr/u8-cpy: New file.
73611         * modules/unistr/u16-cpy: New file.
73612         * modules/unistr/u32-cpy: New file.
73613         * lib/unistr/u8-cpy.c: New file.
73614         * lib/unistr/u16-cpy.c: New file.
73615         * lib/unistr/u32-cpy.c: New file.
73616         * lib/unistr/u-cpy.h: New file.
73617
73618         * modules/unistr/u8-cpy-alloc: New file.
73619         * modules/unistr/u16-cpy-alloc: New file.
73620         * modules/unistr/u32-cpy-alloc: New file.
73621         * lib/unistr/u8-cpy-alloc.c: New file.
73622         * lib/unistr/u16-cpy-alloc.c: New file.
73623         * lib/unistr/u32-cpy-alloc.c: New file.
73624         * lib/unistr/u-cpy-alloc.h: New file.
73625
73626         * modules/unistr/u8-endswith: New file.
73627         * modules/unistr/u16-endswith: New file.
73628         * modules/unistr/u32-endswith: New file.
73629         * lib/unistr/u8-endswith.c: New file.
73630         * lib/unistr/u16-endswith.c: New file.
73631         * lib/unistr/u32-endswith.c: New file.
73632         * lib/unistr/u-endswith.h: New file.
73633
73634         * modules/unistr/u8-mblen: New file.
73635         * modules/unistr/u16-mblen: New file.
73636         * modules/unistr/u32-mblen: New file.
73637         * lib/unistr/u8-mblen.c: New file.
73638         * lib/unistr/u16-mblen.c: New file.
73639         * lib/unistr/u32-mblen.c: New file.
73640
73641         * modules/unistr/u8-mbtouc: New file.
73642         * modules/unistr/u16-mbtouc: New file.
73643         * modules/unistr/u32-mbtouc: New file.
73644         * lib/unistr/u8-mbtouc.c: New file.
73645         * lib/unistr/u16-mbtouc.c: New file.
73646         * lib/unistr/u32-mbtouc.c: New file.
73647
73648         * modules/unistr/u8-mbtouc-safe: New file.
73649         * modules/unistr/u16-mbtouc-safe: New file.
73650         * modules/unistr/u32-mbtouc-safe: New file.
73651         * lib/unistr/u8-mbtouc-safe.c: New file.
73652         * lib/unistr/u16-mbtouc-safe.c: New file.
73653         * lib/unistr/u32-mbtouc-safe.c: New file.
73654
73655         * modules/unistr/u8-move: New file.
73656         * modules/unistr/u16-move: New file.
73657         * modules/unistr/u32-move: New file.
73658         * lib/unistr/u8-move.c: New file.
73659         * lib/unistr/u16-move.c: New file.
73660         * lib/unistr/u32-move.c: New file.
73661         * lib/unistr/u-move.h: New file.
73662
73663         * modules/unistr/u8-next: New file.
73664         * modules/unistr/u16-next: New file.
73665         * modules/unistr/u32-next: New file.
73666         * lib/unistr/u8-next.c: New file.
73667         * lib/unistr/u16-next.c: New file.
73668         * lib/unistr/u32-next.c: New file.
73669
73670         * modules/unistr/u8-prev: New file.
73671         * modules/unistr/u16-prev: New file.
73672         * modules/unistr/u32-prev: New file.
73673         * lib/unistr/u8-prev.c: New file.
73674         * lib/unistr/u16-prev.c: New file.
73675         * lib/unistr/u32-prev.c: New file.
73676
73677         * modules/unistr/u8-set: New file.
73678         * modules/unistr/u16-set: New file.
73679         * modules/unistr/u32-set: New file.
73680         * lib/unistr/u8-set.c: New file.
73681         * lib/unistr/u16-set.c: New file.
73682         * lib/unistr/u32-set.c: New file.
73683         * lib/unistr/u-set.h: New file.
73684
73685         * modules/unistr/u8-startswith: New file.
73686         * modules/unistr/u16-startswith: New file.
73687         * modules/unistr/u32-startswith: New file.
73688         * lib/unistr/u8-startswith.c: New file.
73689         * lib/unistr/u16-startswith.c: New file.
73690         * lib/unistr/u32-startswith.c: New file.
73691         * lib/unistr/u-startswith.h: New file.
73692
73693         * modules/unistr/u8-stpcpy: New file.
73694         * modules/unistr/u16-stpcpy: New file.
73695         * modules/unistr/u32-stpcpy: New file.
73696         * lib/unistr/u8-stpcpy.c: New file.
73697         * lib/unistr/u16-stpcpy.c: New file.
73698         * lib/unistr/u32-stpcpy.c: New file.
73699         * lib/unistr/u-stpcpy.h: New file.
73700
73701         * modules/unistr/u8-stpncpy: New file.
73702         * modules/unistr/u16-stpncpy: New file.
73703         * modules/unistr/u32-stpncpy: New file.
73704         * lib/unistr/u8-stpncpy.c: New file.
73705         * lib/unistr/u16-stpncpy.c: New file.
73706         * lib/unistr/u32-stpncpy.c: New file.
73707         * lib/unistr/u-stpncpy.h: New file.
73708
73709         * modules/unistr/u8-strcat: New file.
73710         * modules/unistr/u16-strcat: New file.
73711         * modules/unistr/u32-strcat: New file.
73712         * lib/unistr/u8-strcat.c: New file.
73713         * lib/unistr/u16-strcat.c: New file.
73714         * lib/unistr/u32-strcat.c: New file.
73715         * lib/unistr/u-strcat.h: New file.
73716
73717         * modules/unistr/u8-strchr: New file.
73718         * modules/unistr/u16-strchr: New file.
73719         * modules/unistr/u32-strchr: New file.
73720         * lib/unistr/u8-strchr.c: New file.
73721         * lib/unistr/u16-strchr.c: New file.
73722         * lib/unistr/u32-strchr.c: New file.
73723
73724         * modules/unistr/u8-strcmp: New file.
73725         * modules/unistr/u16-strcmp: New file.
73726         * modules/unistr/u32-strcmp: New file.
73727         * lib/unistr/u8-strcmp.c: New file.
73728         * lib/unistr/u16-strcmp.c: New file.
73729         * lib/unistr/u32-strcmp.c: New file.
73730
73731         * modules/unistr/u8-strcpy: New file.
73732         * modules/unistr/u16-strcpy: New file.
73733         * modules/unistr/u32-strcpy: New file.
73734         * lib/unistr/u8-strcpy.c: New file.
73735         * lib/unistr/u16-strcpy.c: New file.
73736         * lib/unistr/u32-strcpy.c: New file.
73737         * lib/unistr/u-strcpy.h: New file.
73738
73739         * modules/unistr/u8-strcspn: New file.
73740         * modules/unistr/u16-strcspn: New file.
73741         * modules/unistr/u32-strcspn: New file.
73742         * lib/unistr/u8-strcspn.c: New file.
73743         * lib/unistr/u16-strcspn.c: New file.
73744         * lib/unistr/u32-strcspn.c: New file.
73745         * lib/unistr/u-strcspn.h: New file.
73746
73747         * modules/unistr/u8-strdup: New file.
73748         * modules/unistr/u16-strdup: New file.
73749         * modules/unistr/u32-strdup: New file.
73750         * lib/unistr/u8-strdup.c: New file.
73751         * lib/unistr/u16-strdup.c: New file.
73752         * lib/unistr/u32-strdup.c: New file.
73753         * lib/unistr/u-strdup.h: New file.
73754
73755         * modules/unistr/u8-strlen: New file.
73756         * modules/unistr/u16-strlen: New file.
73757         * modules/unistr/u32-strlen: New file.
73758         * lib/unistr/u8-strlen.c: New file.
73759         * lib/unistr/u16-strlen.c: New file.
73760         * lib/unistr/u32-strlen.c: New file.
73761         * lib/unistr/u-strlen.h: New file.
73762
73763         * modules/unistr/u8-strmblen: New file.
73764         * modules/unistr/u16-strmblen: New file.
73765         * modules/unistr/u32-strmblen: New file.
73766         * lib/unistr/u8-strmblen.c: New file.
73767         * lib/unistr/u16-strmblen.c: New file.
73768         * lib/unistr/u32-strmblen.c: New file.
73769
73770         * modules/unistr/u8-strmbtouc: New file.
73771         * modules/unistr/u16-strmbtouc: New file.
73772         * modules/unistr/u32-strmbtouc: New file.
73773         * lib/unistr/u8-strmbtouc.c: New file.
73774         * lib/unistr/u16-strmbtouc.c: New file.
73775         * lib/unistr/u32-strmbtouc.c: New file.
73776
73777         * modules/unistr/u8-strncat: New file.
73778         * modules/unistr/u16-strncat: New file.
73779         * modules/unistr/u32-strncat: New file.
73780         * lib/unistr/u8-strncat.c: New file.
73781         * lib/unistr/u16-strncat.c: New file.
73782         * lib/unistr/u32-strncat.c: New file.
73783         * lib/unistr/u-strncat.h: New file.
73784
73785         * modules/unistr/u8-strncmp: New file.
73786         * modules/unistr/u16-strncmp: New file.
73787         * modules/unistr/u32-strncmp: New file.
73788         * lib/unistr/u8-strncmp.c: New file.
73789         * lib/unistr/u16-strncmp.c: New file.
73790         * lib/unistr/u32-strncmp.c: New file.
73791
73792         * modules/unistr/u8-strncpy: New file.
73793         * modules/unistr/u16-strncpy: New file.
73794         * modules/unistr/u32-strncpy: New file.
73795         * lib/unistr/u8-strncpy.c: New file.
73796         * lib/unistr/u16-strncpy.c: New file.
73797         * lib/unistr/u32-strncpy.c: New file.
73798         * lib/unistr/u-strncpy.h: New file.
73799
73800         * modules/unistr/u8-strnlen: New file.
73801         * modules/unistr/u16-strnlen: New file.
73802         * modules/unistr/u32-strnlen: New file.
73803         * lib/unistr/u8-strnlen.c: New file.
73804         * lib/unistr/u16-strnlen.c: New file.
73805         * lib/unistr/u32-strnlen.c: New file.
73806         * lib/unistr/u-strnlen.h: New file.
73807
73808         * modules/unistr/u8-strpbrk: New file.
73809         * modules/unistr/u16-strpbrk: New file.
73810         * modules/unistr/u32-strpbrk: New file.
73811         * lib/unistr/u8-strpbrk.c: New file.
73812         * lib/unistr/u16-strpbrk.c: New file.
73813         * lib/unistr/u32-strpbrk.c: New file.
73814         * lib/unistr/u-strpbrk.h: New file.
73815
73816         * modules/unistr/u8-strrchr: New file.
73817         * modules/unistr/u16-strrchr: New file.
73818         * modules/unistr/u32-strrchr: New file.
73819         * lib/unistr/u8-strrchr.c: New file.
73820         * lib/unistr/u16-strrchr.c: New file.
73821         * lib/unistr/u32-strrchr.c: New file.
73822
73823         * modules/unistr/u8-strspn: New file.
73824         * modules/unistr/u16-strspn: New file.
73825         * modules/unistr/u32-strspn: New file.
73826         * lib/unistr/u8-strspn.c: New file.
73827         * lib/unistr/u16-strspn.c: New file.
73828         * lib/unistr/u32-strspn.c: New file.
73829         * lib/unistr/u-strspn.h: New file.
73830
73831         * modules/unistr/u8-strstr: New file.
73832         * modules/unistr/u16-strstr: New file.
73833         * modules/unistr/u32-strstr: New file.
73834         * lib/unistr/u8-strstr.c: New file.
73835         * lib/unistr/u16-strstr.c: New file.
73836         * lib/unistr/u32-strstr.c: New file.
73837         * lib/unistr/u-strstr.h: New file.
73838
73839         * modules/unistr/u8-strtok: New file.
73840         * modules/unistr/u16-strtok: New file.
73841         * modules/unistr/u32-strtok: New file.
73842         * lib/unistr/u8-strtok.c: New file.
73843         * lib/unistr/u16-strtok.c: New file.
73844         * lib/unistr/u32-strtok.c: New file.
73845         * lib/unistr/u-strtok.h: New file.
73846
73847         * modules/unistr/u8-uctomb: New file.
73848         * modules/unistr/u16-uctomb: New file.
73849         * modules/unistr/u32-uctomb: New file.
73850         * lib/unistr/u8-uctomb.c: New file.
73851         * lib/unistr/u16-uctomb.c: New file.
73852         * lib/unistr/u32-uctomb.c: New file.
73853
73854         * MODULES.html.sh (Unicode string functions): Add the new modules.
73855
73856 2007-01-08  Bruno Haible  <bruno@clisp.org>
73857
73858         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
73859         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
73860         subdirectories.
73861
73862 2007-01-08  Karl Berry  <karl@gnu.org>
73863
73864         * doc/error.texi: mention that main() fns must set program_name
73865         when progname is used.
73866
73867 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
73868
73869         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
73870         WCTYPE_H is empty, for the benefit of builds from non-distclean
73871         directories.  Problem reported by Eric Blake in
73872         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
73873
73874 2007-01-08  Bruno Haible  <bruno@clisp.org>
73875
73876         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
73877         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
73878         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
73879         PROVIDE_CANONICALIZE_FILENAME_MODE.
73880         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
73881
73882 2007-01-08  Bruno Haible  <bruno@clisp.org>
73883
73884         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
73885         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
73886         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
73887         * lib/fts.c: Likewise.
73888         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
73889
73890 2006-12-25  Bruno Haible  <bruno@clisp.org>
73891
73892         * modules/utf8-ucs4-safe: New file.
73893         * lib/utf8-ucs4-safe.h: New file.
73894         * lib/unistr/utf8-ucs4-safe.c: New file.
73895
73896         * modules/utf16-ucs4-safe: New file.
73897         * lib/utf16-ucs4-safe.h: New file.
73898         * lib/unistr/utf16-ucs4-safe.c: New file.
73899
73900         * MODULES.html.sh (Unicode string functions): Add the new modules.
73901
73902 2007-01-08  Bruno Haible  <bruno@clisp.org>
73903
73904         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
73905         (Depends-on): Add unitypes.
73906         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
73907         (u8_mbtouc_aux): Move out to separate file.
73908         (u8_mbtouc): Use ucs4_t, uint8_t types.
73909         * lib/unistr/utf8-ucs4.c: New file.
73910
73911         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
73912         (Depends-on): Add unitypes.
73913         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
73914         (u16_mbtouc_aux): Move out to separate file.
73915         (u16_mbtouc): Use ucs4_t, uint16_t types.
73916         * lib/unistr/utf16-ucs4.c: New file.
73917
73918         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
73919         (Depends-on): Add unitypes.
73920         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
73921         (u8_uctomb_aux): Move out to separate file.
73922         (u8_uctomb): Use ucs4_t, uint8_t types.
73923         * lib/unistr/ucs4-utf8.c: New file.
73924
73925         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
73926         (Depends-on): Add unitypes.
73927         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
73928         (u16_uctomb_aux): Move out to separate file.
73929         (u16_uctomb): Use ucs4_t, uint16_t types.
73930         * lib/unistr/ucs4-utf16.c: New file.
73931
73932 2006-12-25  Bruno Haible  <bruno@clisp.org>
73933
73934         * modules/unitypes: New file.
73935         * lib/unitypes.h: New file.
73936         * MODULES.html.sh (func_all_modules): New section "Unicode string
73937         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
73938         this section. Add unitypes.
73939
73940 2007-01-08  Bruno Haible  <bruno@clisp.org>
73941
73942         Avoid variable names that conflict with those from libtool.
73943         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
73944         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
73945         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
73946         library_names_spec to acl_library_names_spec, hardcode_* to
73947         acl_hardcode_*.
73948         Reported by Ralf Wildenhues.
73949
73950 2007-01-08  Bruno Haible  <bruno@clisp.org>
73951
73952         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
73953         definition.
73954         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
73955         definition.
73956         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
73957         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
73958         definition.
73959         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
73960         definition.
73961         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
73962         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
73963         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
73964         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
73965         definition.
73966         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
73967         definition.
73968         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
73969         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
73970         GC_USE_<algorithm>.
73971         * lib/gc-libgcrypt.c: Likewise.
73972         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
73973         * modules/gc-arctwo (configure.ac): Likewise.
73974         * modules/gc-des (configure.ac): Likewise.
73975         * modules/gc-hmac-md5 (configure.ac): Likewise.
73976         * modules/gc-hmac-sha1 (configure.ac): Likewise.
73977         * modules/gc-md2 (configure.ac): Likewise.
73978         * modules/gc-md4 (configure.ac): Likewise.
73979         * modules/gc-md5 (configure.ac): Likewise.
73980         * modules/gc-random (configure.ac): Likewise.
73981         * modules/gc-rijndael (configure.ac): Likewise.
73982         * modules/gc-sha1 (configure.ac): Likewise.
73983
73984 2007-01-08  Bruno Haible  <bruno@clisp.org>
73985
73986         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
73987         macro definition.
73988         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
73989         definition.
73990         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
73991         definition.
73992         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
73993         * modules/fcntl-safer (configure.ac): Likewise.
73994         * modules/fopen-safer (configure.ac): Likewise.
73995         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
73996         GNULIB_FWRITEERROR macro definition.
73997
73998 2007-01-08  Bruno Haible  <bruno@clisp.org>
73999
74000         * m4/gnulib-common.m4: New file.
74001         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
74002         (func_get_filelist): Add m4/gnulib-common.m4.
74003
74004 2007-01-08  Bruno Haible  <bruno@clisp.org>
74005
74006         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
74007         command.
74008
74009 2007-01-08  Jim Meyering  <jim@meyering.net>
74010
74011         Use a more robust test for a "can't happen" condition.
74012         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
74013         narrowed the st_size value.  Presuming the "can't happen" condition
74014         is true, that narrowing could conceivably convert an invalid st_size
74015         value into a valid one.  Instead, use a change based on Matthew
74016         Woehlke's original patch.
74017
74018         Slight readability improvement: use an assert-like macro
74019         in place of literal "abort ()" uses.
74020         * lib/fts.c (fts_assert): Define.
74021         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
74022         Use this macro instead of a bare 'abort'.
74023
74024 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
74025
74026         Don't worry about using IRIX 5.3's wctype.h broken definitions;
74027         simply work around them.
74028         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
74029         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
74030         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
74031         declaring.
74032         Don't bother to define as macros, since the standard doesn't require it.
74033         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
74034         longer worry about IRIX 5.3.
74035         (HAVE_WCTYPE_CTMP_BUG): Remove.
74036
74037 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
74038
74039         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
74040         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
74041         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
74042         Problems reported by Georg Schwarz for IRIX 5.3.
74043
74044         * gnulib-tool (autoconf_minversion): Take the maximum version number
74045         found, not the minimum.  Problem reported by James Youngman.
74046
74047 2007-01-03  Karl Berry  <karl@gnu.org>
74048
74049         * doc/error.texi: new file, explaining interaction with progname.
74050         * doc/gnulib.texi: include it.  Update copyright.
74051
74052 2007-01-03  Simon Josefsson  <simon@josefsson.org>
74053
74054         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
74055         AC_CANONICAL_HOST, to improve autobuild outputs.
74056
74057 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
74058             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
74059
74060         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
74061         sockets, server sockets, and other file descriptors.  Count errors
74062         to compute the return value.  Reorder the code a bit to be easier
74063         to follow.  Don't set event bits that were not requested (except
74064         POLLERR and POLLHUP).
74065
74066 2007-01-01  Bruno Haible  <bruno@clisp.org>
74067
74068         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
74069
74070 2007-01-03  Jim Meyering  <jim@meyering.net>
74071
74072         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
74073
74074 2007-01-02  Bruno Haible  <bruno@clisp.org>
74075
74076         * modules/settime (Include): Require timespec.h.
74077         * modules/nanosleep (Include): Likewise.
74078
74079 2007-01-01  Bruno Haible  <bruno@clisp.org>
74080
74081         * gnulib-tool (func_emit_copyright_notice): Bump year.
74082         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
74083
74084 2007-01-01  Bruno Haible  <bruno@clisp.org>
74085
74086         Improve support for OpenBSD.
74087         * build-aux/config.rpath (libname_spec): Export.
74088         (library_names_spec): New variable. Export.
74089         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
74090         library_names_spec from the config.rpath output. Locate shared library
74091         through the name pattern in library_names_spec.
74092
74093 2007-01-01  Eric Blake  <ebb9@byu.net>
74094
74095         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
74096
74097 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
74098
74099         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
74100         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
74101         assume the C locale, and avoid an "eval" that could cause trouble.
74102         Problem with SORT reported by Bob Proulx.
74103
74104         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
74105         Define.  Trivial patch from Henning Nielsen Lund, originally
74106         sent to bug-grep@gnu.org today.
74107
74108 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
74109
74110         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
74111         struct stat.  Problem reported by Henning Nielsen Lund.
74112         * lib/acl.c: Include acl.h first, to check interface.  Don't
74113         bother to include sys/types.h and sys/stat.h again.
74114
74115 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
74116
74117         Import the following change from libc; problem reported by
74118         Sven Verdoolaege.
74119
74120         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
74121
74122         [BZ #1373]
74123         * lib/argp.h: Remove __NTH for __argp_usage inline function.
74124
74125 2006-12-28  Jim Meyering  <jim@meyering.net>
74126
74127         * build-aux/announce-gen: Do not assume that the package
74128         builds any of tar.gz, tar.bz2, and .xdelta files.
74129         Suggestion from Simon Josefsson.
74130
74131 2006-12-28  Simon Josefsson  <simon@josefsson.org>
74132
74133         * modules/announce-gen: New file.
74134
74135 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
74136
74137         * lib/mbchar.h: Just include <wctype.h>; the wctype module
74138         handles its gotchas now.
74139         * lib/mbswidth.c: Likewise.
74140         * lib/wcwidth.h: Likewise.
74141         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
74142         and iswcntrl; the wctype module does this stuff now.
74143         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
74144         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
74145         * modules/mbchar (Depends-on): Add wctype.
74146         * modules/mbswidth (Depends-on): Likewise.
74147         * modules/wcwidth (Depends-on): Likewise.
74148
74149 2006-12-27  Eric Blake  <ebb9@byu.net>
74150
74151         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
74152         module uses more than what <wctype.h> is required to provide.
74153
74154 2006-12-26  Eric Blake  <ebb9@byu.net>
74155
74156         * gnulib-tool (sed_extract_prog): Avoid space-tab.
74157
74158 2006-12-26  Eric Blake  <ebb9@byu.net>
74159
74160         * modules/absolute-header: New module.
74161         * modules/fcntl (Depends-on): Depend on it.
74162         * modules/inttypes (Depends-on): Likewise.
74163         * modules/stdint (Depends-on): Likewise.
74164         * modules/sys_stat (Depends-on): Likewise.
74165         * modules/wctype (Depends-on): Likewise.
74166         * MODULES.html.sh (Support for building libraries and
74167         executables): Document it.
74168
74169 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
74170
74171         * gnulib-tool (SED): Remove, undoing previous change.
74172         The problem was that it broke coreutils on Solaris, because
74173         "sed --posix" leaked into a makefile.
74174         (sed): New alias, if 'alias' and GNU sed.
74175
74176 2006-12-24  Jim Meyering  <jim@meyering.net>
74177
74178         Work around an fchownat bug in glibc-2.4:
74179         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
74180         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
74181         in spite of the -P option.
74182         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
74183         New macros.
74184         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
74185         * modules/openat (Files): Add lib/fchownat.c.
74186         * lib/openat.c (fchownat): Don't define here.  Move to...
74187         * lib/fchownat.c: ...this new file.
74188
74189 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
74190
74191         Fix bug reported by Bruno Haible in
74192         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
74193         where quotearg.c didn't compile on Mac OS X 10.2 because it
74194         lacks <wchar.h> and wint_t.
74195         * lib/wctype_.h (__wctype_wint_t): New type.
74196         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
74197         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
74198         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
74199         Arg is now of type __wctype_wint_t, not wint_t.
74200         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
74201         substitute HAVE_WINT_T.
74202         * modules/wctype (Files): Add m4/wint_t.m4.
74203         (wctype.h): Substitute HAVE_WINT_T.
74204
74205 2006-12-23  Bruno Haible  <bruno@clisp.org>
74206
74207         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
74208
74209 2006-12-23  Bruno Haible  <bruno@clisp.org>
74210
74211         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
74212         S_ISLNK.
74213         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
74214         mingw.
74215
74216 2006-12-22  Bruno Haible  <bruno@clisp.org>
74217
74218         * lib/copy-file.c: Include acl.h.
74219         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
74220         Close the file descriptors only after being done with copy_acl.
74221         * modules/copy-file (Depends-on): Add acl.
74222
74223 2006-12-22  Bruno Haible  <bruno@clisp.org>
74224
74225         * gnulib-tool (SED): New variable.
74226         Use $SED instead of sed everywhere.
74227
74228 2006-12-22  Bruno Haible  <bruno@clisp.org>
74229
74230         * modules/no-c++: New file.
74231         * m4/no-c++.m4: New file.
74232         * MODULES.html.sh (Support for building libraries and executables):
74233         Add no-c++.
74234
74235 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
74236
74237         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
74238         Include <limits.h>, and use its INT_MAX to rewrite the
74239         j loop so that it does not overflow 'int'.  Problem reported by
74240         Ralf Wildenhues in
74241         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
74242         Play it safe by shifting left by 1 rather than multiplying by 2,
74243         as GCC is less likely to optimize this away when the value
74244         is signed (when it assumes overflow leads to undefined behavior).
74245         Also, don't assume time_t uses two's complement.
74246
74247 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
74248
74249         * MODULES.html.sh: New module wctype.
74250         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
74251         * lib/fnmatch.c: Don't bother to include <wchar.h> before
74252         <wctype.h>, since the new wctype module should fix this.
74253         * lib/quotearg.c: Include <wctype.h> unconditionally, since
74254         the wctype module should arrange for it.
74255         * lib/regex_internal.h: Likewise.
74256         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
74257         since the wctype module should handle this now.
74258         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
74259         * modules/fnmatch (Depends-on): Add wctype.
74260         * modules/quotearg (Depends-on): Likewise.
74261         * modules/regex (Depends-on): Likewise.
74262
74263 2006-12-19  Bruno Haible  <bruno@clisp.org>
74264
74265         * lib/strdup.h [C++]: Wrap definitions in extern "C".
74266         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
74267
74268 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74269
74270         * modules/savewd (Depends-on): Fix dependency on fcntl.
74271
74272 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
74273
74274         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
74275         conforms to C99, rather than relying on the user's environment
74276         setting of STDINT_H.
74277
74278 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
74279         and Eric Blake  <ebb9@byu.net>
74280
74281         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
74282         This is more consistent with the other defines here.
74283         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
74284         Port to z/OS.  Problem reported by Paul Gilmartin.
74285         Change local vars to use gl_ prefix rather than ac_.
74286         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
74287         with other defines.
74288         * modules/double-slash-root: New module.
74289         * modules/dirname (Files): Remove m4/double-slash-root.m4.
74290         (Depends-on): Add double-slash-root.
74291         * MODULES.html.sh (File system functions): Mention new module.
74292
74293 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
74294
74295         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
74296         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
74297         This is for the benefit of gzip, which doesn't do i18n.
74298
74299 2006-12-12  Jim Meyering  <jim@meyering.net>
74300
74301         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
74302         Reported by Andreas Schwab <schwab@suse.de>.
74303
74304 2006-12-12  Bruno Haible  <bruno@clisp.org>
74305
74306         Merge these changes.
74307         2006-09-05  Bruno Haible  <bruno@clisp.org>
74308         * lib/iconvme.c (iconv_string): No need to save and restore errno when
74309         iconv_alloc succeeded.
74310         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
74311         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
74312         test for " && dest " at the end - dest is always != NULL there. Call
74313         iconv with 4xNULL arguments initially, to reset the state. Call iconv
74314         with 2xNULL arguments, also to flush the state storage. Handle the
74315         IRIX iconv behaviour. Realloc the final result, to throw away unused
74316         memory.
74317
74318 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
74319
74320         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
74321         and fchmodat unconditionally, since glibc 2.4 has them.
74322         Problem reported by Arkadiusz Miskiewicz.
74323
74324 2006-12-10  Bruno Haible  <bruno@clisp.org>
74325
74326         * gnulib-tool (func_import): Show the include files only for those
74327         modules that are copied and specified.
74328         Reported by Karl Berry.
74329
74330 2006-12-08  Jim Meyering  <jim@meyering.net>
74331
74332         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
74333         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
74334
74335         * build-aux/announce-gen: Add two new options, both optional:
74336         --bootstrap-tools=TOOL_LIST
74337               a comma-separated list of tools, e.g.,
74338               autoconf,automake,bison,gnulib
74339         --gnulib-snapshot-date=DATE
74340               if gnulib is in the bootstrap tool list,
74341               then report this as the snapshot date.
74342               If not specified, use the current date/time.
74343               If you specify a date here, be sure it's UTC.
74344
74345 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74346
74347         * tests/test-argp-2.sh: Fix test to match actual output.
74348         (func_compare): Fix sed script to be portable.
74349
74350 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
74351
74352         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
74353         workaround for this case.  It is not autoconfigured now; offhand
74354         it's hard to see how to autoconfigure it.
74355
74356 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
74357
74358         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
74359         a directory that is about to be chowned.  Such a directory's
74360         initial file permissions should permit the owner only and this
74361         should not be changed until after the chown, since the group and
74362         other bits would be incorrect if they granted permission before
74363         the chown.
74364
74365         Fix porting problem for iswctype reported by Georg Schwarz in:
74366         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
74367         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
74368         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
74369         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
74370         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
74371
74372 2006-12-03  Jim Meyering  <jim@meyering.net>
74373
74374         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
74375         p->fts_statp may not yet be defined.
74376         (fts_read): Instead, set it in the caller, once p->fts_statp is
74377         sure to be defined, and corresponds to a top-level directory.
74378         This bug made du -x fail.  Here's the coreutils test case:
74379         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
74380         Reported by Mike Frysinger.
74381
74382 2006-12-01  Jim Meyering  <jim@meyering.net>
74383
74384         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
74385         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
74386         Reported by Simon Josefsson.
74387
74388 2006-11-30  Jim Meyering  <jim@meyering.net>
74389
74390         * m4/warning.m4: Use the all-permissive copyright notice
74391         recommended by RMS (rather than LGPL).
74392         * m4/vararrays.m4: Likewise.
74393         * m4/flexmember.m4: Likewise.
74394
74395 2006-11-29  Bruno Haible  <bruno@clisp.org>
74396
74397         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74398         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
74399         using +=.
74400         Reported by Simon Josefsson <simon@josefsson.org>.
74401
74402 2006-11-28  James Youngman <jay@gnu.org>
74403
74404         * README: Advise users that they might find the bug-gnulib@gnu.org
74405         and autotools-announce@gnu.org mailing lists useful.
74406
74407 2006-11-28  Bruno Haible  <bruno@clisp.org>
74408
74409         * m4/ptrdiff_max.m4: Remove file.
74410
74411 2006-11-21  Bruno Haible  <bruno@clisp.org>
74412
74413         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
74414         _AC_COMPUTE_INT.
74415         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74416         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
74417         _AC_COMPUTE_INT.
74418         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74419         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
74420         _AC_COMPUTE_INT.
74421         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74422
74423 2006-11-28  Jim Meyering  <jim@meyering.net>
74424
74425         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
74426         warning from "gcc -Wshadow" about shadowing the builtin.
74427
74428 2006-11-27  Bruno Haible  <bruno@clisp.org>
74429
74430         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
74431         _AC_COMPUTE_INT.
74432         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
74433
74434 2006-11-27  Bruno Haible  <bruno@clisp.org>
74435             Paul Eggert  <eggert@cs.ucla.edu>
74436
74437         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
74438
74439 2006-11-26  Bruno Haible  <bruno@clisp.org>
74440
74441         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
74442         noinst_LTLIBRARIES.
74443
74444 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
74445             Bruno Haible  <bruno@clisp.org>
74446
74447         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
74448         if compiling with "gcc -ansi".
74449
74450 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
74451
74452         Fix some incompatibilities with gcc -ansi -pedantic.
74453         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
74454         if compiling pedantically with GCC, unless it's C99 or later.
74455         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
74456         it mishandles gcc -ansi -pedantic as well.
74457         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
74458         if gcc -pedantic.
74459         * lib/regexec.c (check_node_accept_bytes): Don't use auto
74460         initializers for struct if -pedantic, unless it's C99 or later.
74461
74462 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
74463
74464         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
74465         Don't close an fd more than once. Identical atimes indicate
74466         success, not failure.
74467
74468 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
74469
74470         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
74471
74472 2006-11-23  Jim Meyering  <jim@meyering.net>
74473
74474         * build-aux/announce-gen: New file.  From coreutils.
74475
74476 2006-11-22  Jim Meyering  <jim@meyering.net>
74477
74478         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
74479         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
74480         (fts_read): Use a temporary to narrow the overused st_size member
74481         before using it in a switch statement.  Reported by Matthew Woehlke.
74482
74483         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
74484         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
74485
74486 2006-11-20  Bruno Haible  <bruno@clisp.org>
74487
74488         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
74489         changequote instead of pairs of brackets.
74490         Reported by Andreas Schwab <schwab@suse.de>.
74491
74492 2006-11-21  Jim Meyering  <jim@meyering.net>
74493
74494         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
74495         so as to remain compatible with older compilers.
74496         Patch from Michael Deutschmann.
74497
74498 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74499
74500         * MODULES.html.sh (File system functions): Add openat.
74501
74502         * lib/openat.h (rpl_fstatat): New macro, if
74503         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
74504         (fstatat): Define to rpl_fstatat under the same conditions,
74505         unless COMPILING_FSTATAT.
74506         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
74507         seems to have the bug.
74508         * lib/fstatat.c: New file.
74509         * modules/openat (Files): Add it.
74510
74511 2006-11-20  Bruno Haible  <bruno@clisp.org>
74512
74513         * Makefile: New file.
74514
74515 2006-11-20  Jim Meyering  <jim@meyering.net>
74516
74517         The beginnings of syntax-related checks for gnulib.
74518         * lib/Makefile: New file.
74519         * lib/t-idcache: New script.  Ensure that the two halves of
74520         idcache.c stay in sync.
74521
74522         * lib/idcache.c: Adjust comments in user- and group- portions to
74523         be more accurate, and to be consistent with one another.
74524
74525 2006-11-20  Jim Meyering  <jim@meyering.net>
74526
74527         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
74528         continue using the flexible array member (thus, this module performs
74529         half as many malloc calls), with the addition that...
74530         (getgroup, getuser): Consistently record a non-match via an empty
74531         "name" string, and map an empty string match to a NULL return value.
74532         * modules/idcache (Depends-on): Re-add flexmember.
74533
74534         * lib/idcache.c (getuser): Remove all uses of the register keyword.
74535         (getuidbyname, getgroup, getgidbyname): Likewise.
74536
74537         Use cleaner syntax: NULL rather than 0.
74538         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
74539
74540 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
74541
74542         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
74543         It mishandled the case where the group was missing.
74544         Problem reported by Greg Schafer.
74545         * modules/idcache: Likewise.
74546
74547 2006-11-18  Jim Meyering  <jim@meyering.net>
74548
74549         * check-module (%exempt_header): Add exception for some
74550         conditionally-included headers.
74551
74552         * modules/i-ring (Depends-on): Add verify.
74553         (License): Change to LGPL.
74554
74555 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
74556
74557         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
74558         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
74559         and inttostr.h.  Use snprintf rather than uinttostr, so that
74560         LGPLed code doesn't depend on GPLed.
74561
74562 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
74563
74564         * modules/inline (License): Change from GPL to LGPL.
74565
74566 2006-11-17  Jim Meyering  <jim@meyering.net>
74567
74568         * modules/d-type (License): Switch to LGPL.
74569
74570 2006-11-15  Bruno Haible  <bruno@clisp.org>
74571
74572         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
74573
74574 2006-11-15  Eric Blake  <ebb9@byu.net>
74575
74576         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
74577         the module dependency.
74578
74579 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
74580             Bruno Haible  <bruno@clisp.org>
74581
74582         * gnulib-tool (func_create_testdir): Add license consistency check.
74583
74584 2006-11-15  Eric Blake  <ebb9@byu.net>
74585
74586         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
74587         random "(cached)" in configure output.
74588
74589 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74590
74591         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
74592         test for conforming inttypes.h is both announced and cached.
74593
74594         * MODULES.html.sh (seen_modules, seen_files): New variables.
74595         (func_module): Rewrite to use a few less gnulib-tool and sed
74596         invocations.  Avoid a couple of quadratic algorithms for ...
74597         (missed_modules, missed_files): ... these, with ...
74598         (func_append, func_tmpdir): ... these new functions, from
74599         gnulib-tool.  Analogously, install traps for cleanup.
74600
74601         * tests/test-gc.c (main): Remove unused variables.
74602         * tests/test-read-file.c: Include stdlib.h, for 'free'.
74603
74604 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
74605
74606         * modules/inttostr (License): Change to LGPL.
74607
74608 2006-11-14  Eric Blake  <ebb9@byu.net>
74609
74610         * modules/tempname (License): Change to LGPL.
74611
74612 2006-11-14  Eric Blake  <ebb9@byu.net>
74613
74614         * doc/functions.texi (Function Portability): *printf functions on
74615         Cygwin now understand all POSIX size specifiers.
74616
74617 2006-11-14  Bruno Haible  <bruno@clisp.org>
74618
74619         * modules/c-ctype (License): Change to LGPL.
74620
74621 2006-11-12  Bruno Haible  <bruno@clisp.org>
74622
74623         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
74624         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
74625         for GNOME libraries, for which the include files are installed in
74626         subdirectories of $prefix/include.
74627
74628 2006-11-12  Bruno Haible  <bruno@clisp.org>
74629
74630         * m4/lib-link.m4: Require at least autoconf-2.54.
74631         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
74632         name to underscores for the --with option.
74633
74634 2006-11-13  Bruno Haible  <bruno@clisp.org>
74635
74636         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
74637         the tests directory.
74638         Reported by Ralf Wildenhues.
74639
74640 2006-11-13  Bruno Haible  <bruno@clisp.org>
74641
74642         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
74643         (func_emit_initmacro_end): Undo the override here.
74644         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
74645         Works around the famous automake error in coreutils.
74646
74647 2006-11-13  Eric Blake  <ebb9@byu.net>
74648
74649         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
74650         element, not its node.
74651
74652 2006-11-12  Bruno Haible  <bruno@clisp.org>
74653
74654         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
74655         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
74656
74657 2006-11-12  Bruno Haible  <bruno@clisp.org>
74658
74659         * gnulib-tool: New option --local-symlink.
74660         (func_usage): Document it.
74661         (lsymbolic): New variable.
74662         (func_import, func_create_testdir): If --symlink was not specified,
74663         test whether --local-symlink was specified and the file comes from
74664         the local_gnulib_dir.
74665
74666 2006-11-12  Bruno Haible  <bruno@clisp.org>
74667
74668         * gnulib-tool (func_ln): New function.
74669         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
74670
74671 2006-11-12  Bruno Haible  <bruno@clisp.org>
74672
74673         Finish support for source files in subdirectories.
74674         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
74675         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
74676         AUTOMAKE_OPTIONS.
74677         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
74678
74679 2006-11-12  Bruno Haible  <bruno@clisp.org>
74680
74681         * gnulib-tool (func_get_automake_snippet): Synthesize also an
74682         EXTRA_lib_SOURCES augmentation.
74683         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
74684
74685 2006-11-12  Jim Meyering  <jim@meyering.net>
74686
74687         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
74688         file descriptors.  This also averts a failure on systems with
74689         native openat support when a traversed directory lacks "x" access.
74690         * lib/fts_.h: Include "i-ring.h"
74691         (struct FTS) [fts_fd_ring]: New member.
74692         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
74693         (FCHDIR): Add parentheses.
74694         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
74695         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
74696         When descending, rather than simply closing the previous
74697         fts_cwd_fd value, push that file descriptor onto the ring.
74698         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
74699         (fts_open): Initialize the new fd_ring member.
74700         (fts_close): Clear the ring.
74701         (fts_safe_changedir): When possible, use our new fd_ring to skip
74702         the diropen and fstat and dev/ino comparison that would normally
74703         accompany a virtual `chdir ("..")'.
74704
74705         * modules/fts (Depends-on): Add i-ring.
74706         * modules/i-ring: New module.
74707         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
74708         * m4/i-ring.m4: New file.
74709
74710 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74711
74712         * gnulib-tool (func_create_testdir): Fix replacement of
74713         `build-aux' in configure.ac.  Run autotools in gltests
74714         subdirectory.
74715         (func_create_testdir, func_create_megatestdir, test): There is
74716         no need for '--force' in most autotool invocations in a new
74717         tree.  Actually fail the whole test if any of the tools, or the
74718         configure or make stages fail.
74719
74720         Sync from Automake.
74721         * build-aux/gnupload: Revert last change.  Add pointer to upload
74722         instructions of the GNU Maintenance Instructions.
74723         Suggestion by Karl Berry.
74724
74725 2006-11-10  Jim Meyering  <jim@meyering.net>
74726
74727         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
74728
74729 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74730
74731         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
74732         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
74733         (bind_textdomain_codeset) [! ENABLE_NLS]:
74734         Evaluate all the arguments.  That way, callers get compatible behavior
74735         if the arguments have side effects.  Also, it avoids some GCC
74736         diagnostics in some cases; Joel E. Denny reported problems when Bison
74737         was configured with --enable-gcc-warnigs.
74738
74739 2006-11-10  Jim Meyering  <jim@meyering.net>
74740
74741         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
74742         relevant options in CFLAGS (like -O, -fno-inline) are taken into
74743         account.
74744
74745 2006-11-10  Jim Meyering  <jim@meyering.net>
74746
74747         * modules/inline: New file/module.
74748         * modules/xalloc (Files): Remove m4/inline.m4.
74749         (Depends-on): Add inline, instead.
74750         * modules/oset: Likewise.
74751         * modules/list: Likewise.
74752
74753 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
74754
74755         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
74756         Problem reported by Matthew Woehlke.
74757
74758 2006-11-09  Bruno Haible  <bruno@clisp.org>
74759
74760         * lib/tempname.c (gen_tempname): Remove variant that invokes
74761         __gen_tempname.
74762         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
74763         __gen_tempname.
74764
74765 2006-11-08  Bruno Haible  <bruno@clisp.org>
74766
74767         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
74768         to 'yes' instead of 'cross-compiling'.
74769
74770 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
74771
74772         * lib/quotearg.h (quotearg_free): New decl.
74773         * lib/quotearg.c (quotearg_free): New function.
74774         (slot0, nslots, slotvec0, slotvec):
74775         Now file-scope so that quotearg_free can get at them.
74776
74777 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74778
74779         Sync from Automake.
74780         * build-aux/gnupload: Add missing 'gnu' to example URL.
74781         Report by Karl Berry.
74782
74783 2006-11-08  Bruno Haible  <bruno@clisp.org>
74784
74785         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
74786         Suggested by Paul Eggert.
74787
74788 2006-11-08  Jim Meyering  <jim@meyering.net>
74789
74790         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
74791         It's already included if !_LIBC.
74792         (fts_safe_changedir): Add a comment.
74793
74794 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
74795
74796         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
74797         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
74798         Matthew Woehlke.
74799
74800         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
74801         definitions up, to avoid colliding with change below.
74802         (static_inline) [HAVE_INLINE]: New macro.
74803         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
74804         Provide extern decls when !HAVE_INLINE.  Do not define unless
74805         static_inline is defined, either by us or by xmalloc.c.  Use
74806         static_inline rather than static inline.
74807         (XCALLOC): Optimize sizeof(T) = 1 case.
74808         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
74809
74810 2006-11-07  Bruno Haible  <bruno@clisp.org>
74811
74812         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
74813         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
74814         AC_C_INLINE.
74815         * modules/xalloc (Files): Add m4/inline.m4.
74816
74817 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74818
74819         * README: Fix typo.
74820         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
74821         (Miscellanous Notes): ...from this.
74822
74823 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
74824
74825         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
74826         Mention that offsetof should be used instead of sizeof.
74827         From Bruno Haible.
74828
74829 2006-11-07  Bruno Haible  <bruno@clisp.org>
74830
74831         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
74832
74833 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
74834
74835         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
74836         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
74837         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
74838         (gl_tree_add_before, gl_tree_add_after):
74839         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
74840         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
74841         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
74842         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
74843         (gl_linked_add_after, gl_linked_add_at): Likewise.
74844         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
74845         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
74846         (gl_tree_add_before, gl_tree_add_after): Likewise.
74847         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
74848         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
74849         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
74850
74851 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74852
74853         * lib/gl_oset.h: Use C comment style, not C++ comment style.
74854
74855 2006-11-06  Bruno Haible  <bruno@clisp.org>
74856
74857         * m4/inline.m4: New file.
74858         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
74859         * modules/list (Files): Add m4/inline.m4.
74860         * modules/oset (Files): Likewise.
74861
74862 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
74863
74864         * lib/idcache.c: Include <stddef.h>, for offsetof.
74865         (struct userid.name): Change from char * to a flexible array member.
74866         All uses changed.
74867         * modules/idcache (Depends-on): Add flexmember.
74868
74869         * MODULES.html.sh (Core language properties): New module flexmember.
74870         * modules/flexmember, m4/flexmember.m4: New files.
74871
74872         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
74873         inline functions that are identical with the old xnmalloc_inline,
74874         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
74875         that we can avoid some unnecessary integer multiplications and
74876         divisions in the common case where the element size is known at
74877         compile time.
74878         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
74879         needed.
74880         (xnboundedmalloc): Remove.
74881         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
74882         arguments, for consistency with rest of this header.
74883         (xcharalloc): Rewrite using XNMALLOC.
74884         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
74885         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
74886         versions have been moved to lib/xalloc.h and renamed to be the
74887         non-*_inline versions.
74888         (xmalloc, xrealloc): Implement without reference to the xnmalloc
74889         and xnrealloc functions, since those functions are now inline and
74890         now call us.
74891         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
74892         renaming described above.
74893         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
74894         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
74895         captures the dependency in AC_C_INLINE.
74896
74897         New module canonicalize-lgpl, proposed by Charles Wilson in
74898         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
74899         with a few small changes afterwards.
74900         * MODULES.html.sh (File system functions): New module
74901         canonicalize-lgpl.
74902         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
74903         and canonicalize_file_name.
74904         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
74905         * modules/canonicalize-lgpl: New files.
74906
74907 2006-11-05  Bruno Haible  <bruno@clisp.org>
74908
74909         * gnulib-tool (func_import, func_create_testdir): Create directories
74910         also for files in subdirectories of lib/.
74911
74912 2006-11-05  Bruno Haible  <bruno@clisp.org>
74913
74914         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
74915         ANSI C compliant.
74916
74917 2006-11-03  Bruno Haible  <bruno@clisp.org>
74918
74919         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
74920         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
74921         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
74922         (xnboundedmalloc): New inline function.
74923         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
74924         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
74925         xmalloc.
74926         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
74927         xmalloc.
74928         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
74929         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
74930         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
74931         xmalloc.
74932         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
74933         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
74934         xmalloc.
74935         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
74936         gl_tree_add_after): Use XMALLOC instead of xmalloc.
74937         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
74938         xmalloc.
74939         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
74940         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
74941         gl_tree_add_after): Use XMALLOC instead of xmalloc.
74942         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
74943         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
74944         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
74945         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
74946
74947 2006-11-03  Bruno Haible  <bruno@clisp.org>
74948
74949         * lib/c-ctype.h [C++]: Define functions without name mangling.
74950         * lib/fwriteerror.h [C++]: Likewise.
74951         * lib/gcd.h [C++]: Likewise.
74952         * lib/linebreak.h [C++]: Likewise.
74953
74954 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
74955
74956         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
74957         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
74958         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
74959         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
74960         Check for functions and headers just once.
74961         Check for declaration of canonicalize_file_name.
74962         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
74963
74964 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
74965
74966         * gnulib-tool (func_import): Fix typo in actioncmd.
74967
74968 2006-11-02  Bruno Haible  <bruno@clisp.org>
74969
74970         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
74971         newline sequence in the Makefile.am snippet as a space, like "make"
74972         does.
74973         Reported by Roger Persson <perrog@gmail.com>.
74974
74975 2006-11-01  Bruno Haible  <bruno@clisp.org>
74976
74977         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
74978         already declared in <string.h>.
74979         * lib/strcase.h (strncasecmp): Don't declare it if yes.
74980
74981 2006-11-01  Bruno Haible  <bruno@clisp.org>
74982
74983         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
74984         * lib/strcase.h: Include <string.h>.
74985         (strcasecmp): Define to rpl_strcasecmp here.
74986
74987 2006-11-01  Bruno Haible  <bruno@clisp.org>
74988
74989         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
74990
74991 2006-11-01  Eric Blake  <ebb9@byu.net>
74992
74993         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
74994
74995         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
74996
74997 2006-10-29  Bruno Haible  <bruno@clisp.org>
74998
74999         Make it compile in C++ mode.
75000         * lib/full-write.c (full_rw): Add a cast.
75001
75002 2006-11-01  Bruno Haible  <bruno@clisp.org>
75003
75004         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
75005         be POSIX compliant.
75006         Reported by Roger Persson <perrog@gmail.com>.
75007
75008 2006-11-01  Eric Blake  <ebb9@byu.net>
75009
75010         * lib/getopt_.h: Fix comments.
75011
75012 2006-10-31  Eric Blake  <ebb9@byu.net>
75013
75014         * modules/tmpdir (Depends-on): Add sys_stat.
75015         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
75016         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
75017         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
75018         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
75019         tempname.
75020
75021 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
75022
75023         Avoid some C++ diagnostics reported by Bruno Haible.
75024         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
75025         xmalloc.
75026         (quotearg_alloc): Use xcharalloc rather than xmalloc.
75027         (struct slotvec): Move to top level.
75028         (quotearg_n_options): Rewrite to avoid xmalloc.
75029         * lib/xalloc.h (xcharalloc): New function.
75030         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
75031         [defined __cplusplus]: Add function template that provides result
75032         type propagation.  This part of the change is from Bruno Haible.
75033
75034 2006-10-29  Bruno Haible  <bruno@clisp.org>
75035
75036         Make it compile in C++ mode.
75037         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
75038         * lib/strnlen1.c (strnlen1): Cast memchr result.
75039         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
75040         * lib/clean-temp.c (string_equals, string_hash): Add casts.
75041         (create_temp_dir): Rename local variable 'template'.
75042         (compile_csharp_using_sscli): Add cast.
75043         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
75044         * lib/findprog.c (find_in_path): Likewise.
75045         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
75046         * lib/wait-process.c (register_slave_subprocess): Likewise.
75047
75048 2006-10-22  Bruno Haible  <bruno@clisp.org>
75049
75050         * modules/tsearch: New file.
75051         * lib/tsearch.h: New file.
75052         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
75053         * m4/tsearch.m4: New file.
75054         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
75055
75056 2006-10-29  Eric Blake  <ebb9@byu.net>
75057
75058         * lib/arcfour.c: Assume config.h.
75059         * lib/arctwo.c: Likewise.
75060         * lib/base64.c: Likewise.
75061         * lib/check-version.c: Likewise.
75062         * lib/crc.c: Likewise.
75063         * lib/des.c: Likewise.
75064         * lib/gc-gnulib.c: Likewise.
75065         * lib/gc-libgcrypt.c: Likewise.
75066         * lib/gc-pbkdf2-sha1.c: Likewise.
75067         * lib/getaddrinfo.c: Likewise.
75068         * lib/getdelim.c: Likewise.
75069         * lib/getline.c: Likewise.
75070         * lib/hmac-md5.c: Likewise.
75071         * lib/hmac-sha1.c: Likewise.
75072         * lib/iconvme.c: Likewise.
75073         * lib/md2.c: Likewise.
75074         * lib/md4.c: Likewise.
75075         * lib/memxor.c: Likewise.
75076         * lib/read-file.c: Likewise.
75077         * lib/readline.c: Likewise.
75078         * lib/rijndael-alg-fst.c: Likewise.
75079         * lib/rijndael-api-fst.c: Likewise.
75080         * lib/xgetdomainname.c: Likewise.
75081
75082 2006-10-28  Eric Blake  <ebb9@byu.net>
75083
75084         * lib/xstrndup.c: Assume config.h.
75085
75086 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
75087
75088         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
75089         stat-macros.h is now for our own macros, whereas stat_h is for
75090         macros in the <sys/stat.h> name space.
75091         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
75092         (STAT_MACROS_H): Remove.
75093         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
75094         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
75095         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
75096         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
75097         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
75098         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
75099         Move these macros to ...
75100         * lib/stat_.h: here.  Don't include stat-macros.h.
75101         * lib/canonicalize.c: Don't include stat-macros.h.
75102         * lib/chown.c: Likewise.
75103         * lib/euidaccess.c: Likewise.
75104         * lib/file-type.c: Likewise.
75105         * lib/filemode.c: Likewise.
75106         * lib/glob.c: Likewise.
75107         * lib/isapipe.c: Likewise.
75108         * lib/lchown.c: Likewise.
75109         * lib/lstat.c: Likewise.
75110         * lib/mkdir-p.c: Likewise.
75111         * lib/rmdir.c: Likewise.
75112         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
75113         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
75114         unless mkdir isn't declared, to speed up 'configure'.
75115         Always create sys/stat.h, since it's unlikely any real sys/stat.h
75116         would define all the S_* symbols.
75117         * modules/canonicalize (Depends-on):
75118         Depend on sys_stat, not stat-macros.
75119         * modules/chown: Likewise.
75120         * modules/euidaccess: Likewise.
75121         * modules/filemode: Likewise.
75122         * modules/file-type: Likewise.
75123         * modules/glob: Likewise.
75124         * modules/isapipe: Likewise.
75125         * modules/lchown: Likewise.
75126         * modules/lstat: Likewise.
75127         * modules/mkancesdirs: Likewise.
75128         * modules/rmdir: Likewise.
75129         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
75130         * modules/modechange: Likewise.
75131         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
75132         (configure.ac): Remove gl_STAT_MACROS.
75133         * modules/sys_stat (Depends-on): Remove stat-macros.
75134
75135 2006-10-27  Bruno Haible  <bruno@clisp.org>
75136
75137         * m4/signed.m4: Remove file.
75138         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
75139         invocation.
75140         * modules/vasnprintf (Files): Remove m4/signed.m4.
75141
75142 2006-10-27  Bruno Haible  <bruno@clisp.org>
75143
75144         Update to GNU gettext 0.16.
75145         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
75146         m4/inttypes-h.m4, m4/signed.m4.
75147         * m4/gettext.m4: Update to GNU gettext 0.16.
75148         * m4/intl.m4: New file, from GNU gettext.
75149         * m4/intldir.m4: New file, from GNU gettext.
75150         * config/srclist.txt: Update
75151
75152 2006-10-27  Eric Blake  <ebb9@byu.net>
75153
75154         * MODULES.html.sh: Document tempname.
75155         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
75156         dependencies.
75157         (Files): Move lib/tempname.c...
75158         * modules/tempname: ...to this new module.
75159         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
75160         (gl_PREREQ_TEMPNAME): Move...
75161         * m4/tempname.m4: ...to this new file.
75162         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
75163         * modules/sys_stat (Depends-on): Add stat-macros.
75164         * lib/stat_.h (includes): Pick up stat macros.
75165         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
75166         if stat macros are broken.
75167         * lib/tempname.c (includes): No need to include "stat-macros.h".
75168         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
75169         (direxists, __path_search) [!_LIBC]: Don't compile these in
75170         gnulib; the tmpdir module covers that.
75171         * lib/tempname.h: New file.
75172
75173 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
75174
75175         * COPYING: Explain how gnulib-tool converts licence headers.
75176         Almost all wording by Eric Blake.
75177
75178 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
75179
75180         * lib/mbchar.h (is_basic_table): Make read-only.
75181         * lib/mbchar.c (is_basic_table): Likewise.
75182         Reported by John Darrington.
75183
75184 2006-10-25  Bruno Haible  <bruno@clisp.org>
75185
75186         * lib/progname.h (set_program_name): Undefine before defining.
75187
75188 2006-10-25  Bruno Haible  <bruno@clisp.org>
75189
75190         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
75191         false for non-gcc C++ compilers.
75192         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
75193
75194 2006-10-24  Bruno Haible  <bruno@clisp.org>
75195
75196         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
75197         iconv implementations like Irix iconv.
75198
75199 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75200
75201         * modules/vararrays: New file.
75202         * m4/vararrays.m4: New file, taken from diffutils.
75203         * MODULES.html.sh: New module vararrays.
75204
75205 2006-10-24  Karl Berry  <karl@gnu.org>
75206
75207         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
75208         Don't call GNU Unix.
75209
75210 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75211
75212         * users.txt: Add Libtool.
75213
75214         Sync from Libtool:
75215
75216         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75217
75218         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
75219         to gnulib's policy of including config.h unconditionally.
75220
75221 2006-10-24  Bruno Haible  <bruno@clisp.org>
75222
75223         * modules/wcwidth (Files): Add m4/wint_t.m4.
75224         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
75225         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
75226
75227 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
75228
75229         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
75230         to pacify GCC with some -W flags enabled.  Problem reported by
75231         Bruno Haible.
75232
75233 2006-10-24  Jim Meyering  <jim@meyering.net>
75234
75235         * MODULES.html.sh: Remove uinttostr.  It's not a module.
75236         Reported by Karl Berry.
75237
75238 2006-10-23  Bruno Haible  <bruno@clisp.org>
75239
75240         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
75241
75242 2006-10-24  Bruno Haible  <bruno@clisp.org>
75243
75244         * lib/gl_list.h: Use C comment style, not C++ comment style.
75245
75246 2006-10-23  Eric Blake  <ebb9@byu.net>
75247
75248         * lib/getaddrinfo.c (includes): Add missing include.
75249
75250 2006-10-23  Bruno Haible  <bruno@clisp.org>
75251             Paul Eggert  <eggert@cs.ucla.edu>
75252
75253         Ability to rename obstack_free.
75254         * lib/obstack.h (__obstack_free): New macro. Declare instead of
75255         obstack_free.
75256         (obstack_free): Invoke the __obstack_free macro.
75257         * lib/obstack.c (obstack_free): Use __obstack_free macro.
75258
75259 2006-10-23  Bruno Haible  <bruno@clisp.org>
75260             Paul Eggert  <eggert@cs.ucla.edu>
75261
75262         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
75263         __argc, __argv from the declaration. (They are defined as macros on
75264         mingw.)
75265
75266 2006-10-22  Bruno Haible  <bruno@clisp.org>
75267
75268         * doc/gnulib-intro.texi: New file.
75269         * doc/gnulib.texi: Include it.
75270
75271 2006-10-21  Bruno Haible  <bruno@clisp.org>
75272
75273         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
75274         "Introduction", "Miscellanous Notes", "Particular Modules".
75275
75276 2006-10-21  Bruno Haible  <bruno@clisp.org>
75277
75278         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75279         Change mostlyclean-local rule to avoid sh syntax error from bash
75280         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
75281
75282 2006-10-23  Jim Meyering  <jim@meyering.net>
75283
75284         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
75285         in place of snprintf.
75286
75287         * modules/inttostr (Files): Add lib/uinttostr.c.
75288         * lib/uinttostr.c (inttostr): New file/function.
75289         * lib/inttostr.h (uinttostr): Declare.
75290         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
75291         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
75292         Add uinttostr.
75293         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
75294
75295 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
75296
75297         * lib/canonicalize.c (ELOOP): Define if not already defined.
75298         Problem reported by Bruno Haible in
75299         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
75300
75301 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
75302
75303         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
75304         Problem reported by Perry Smith and Ville Laurikari.
75305
75306         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
75307         uses.
75308
75309 2006-10-19  Bruno Haible  <bruno@clisp.org>
75310
75311         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
75312         for mingw.
75313
75314 2006-10-19  Bruno Haible  <bruno@clisp.org>
75315
75316         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
75317         Needed for mingw.
75318
75319 2006-10-19  Bruno Haible  <bruno@clisp.org>
75320
75321         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
75322
75323 2006-10-19  Bruno Haible  <bruno@clisp.org>
75324
75325         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
75326         it.
75327
75328 2006-10-19  Bruno Haible  <bruno@clisp.org>
75329
75330         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
75331         invocation.
75332
75333 2006-10-19  Bruno Haible  <bruno@clisp.org>
75334
75335         * gnulib-tool (func_create_testdir): Don't include ftruncate and
75336         mountlist by default.
75337
75338 2006-10-16  Bruno Haible  <bruno@clisp.org>
75339
75340         * lib/c-strstr.c: Include c-strstr.h.
75341
75342 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
75343
75344         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
75345         in a slash.
75346
75347 2006-10-18  Bruno Haible  <bruno@clisp.org>
75348
75349         * lib/lock.h [C++]: Wrap definitions in extern "C".
75350
75351 2006-10-18  Bruno Haible  <bruno@clisp.org>
75352
75353         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
75354         gl_LIBOBJS list.
75355
75356 2006-10-18  Bruno Haible  <bruno@clisp.org>
75357
75358         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
75359
75360 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
75361
75362         * lib/xstrtol.h: Include gettext.h.
75363         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
75364         Problem reported by Eric Blake.
75365         * modules/xstrtol (Depends-on): Add gettext-h.
75366
75367 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
75368
75369         * lib/strftime.c (advance): New macro.
75370         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
75371         incomplete type, so you can't add 0 to it.  Problem and patch
75372         reported by Eelco Dolstra for dietlibc.
75373
75374 2006-10-18  Jim Meyering  <jim@meyering.net>
75375
75376         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
75377         type for a local, and rename it: s/up/user_proc/.
75378
75379 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
75380
75381         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
75382         READ_UTMP_USER_PROCESS.
75383         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
75384
75385 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
75386
75387         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
75388         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
75389
75390 2006-10-17  Eric Blake  <ebb9@byu.net>
75391
75392         * lib/sigprocmask.c (sigprocmask): Fix typo.
75393
75394         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
75395
75396         * modules/clean-temp (Makefile.am): Don't add to make output...
75397         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
75398         config.h.
75399
75400 2006-10-17  Bruno Haible  <bruno@clisp.org>
75401
75402         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
75403         differently if DEFAULT_TEXT_DOMAIN is set.
75404
75405 2006-10-16  Bruno Haible  <bruno@clisp.org>
75406
75407         * lib/clean-temp.c: Include fwriteerror.h.
75408
75409 2006-10-16  Bruno Haible  <bruno@clisp.org>
75410
75411         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
75412
75413 2006-10-16  Bruno Haible  <bruno@clisp.org>
75414
75415         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
75416         * lib/sigprocmask.h: Include <sys/types.h>.
75417         (sigset_t): Use the system's definition if present.
75418
75419 2006-10-17  Eric Blake  <ebb9@byu.net>
75420
75421         * lib/xvasprintf.c (includes): Assume config.h.
75422         * lib/xasprintf.c (includes): Likewise.
75423
75424 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
75425
75426         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
75427         at least as wide as intmax_t.
75428
75429 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
75430
75431         (Imported from Automake.)
75432         * build-aux/gnupload: Update to version 1.1 of directive file.
75433
75434 2006-10-16  Eric Blake  <ebb9@byu.net>
75435
75436         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
75437         match Automake 1.10a.
75438
75439 2006-10-14  Bruno Haible  <bruno@clisp.org>
75440
75441         * modules/sigprocmask: New file.
75442         * lib/sigprocmask.h: New file.
75443         * lib/sigprocmask.c: New file.
75444         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
75445         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
75446         request sigprocmask.o.
75447         (gl_PREREQ_SIGPROCMASK): New macro.
75448         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
75449         (Depends-on): Add sigprocmask.
75450         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
75451         gt_SIGNALBLOCKING. Test for 'raise' only once.
75452         * lib/fatal-signal.c: Include sigprocmask.h.
75453         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
75454         unblock_fatal_signals): Define always.
75455         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
75456         sigprocmask.
75457
75458 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
75459
75460         Sync from Automake.
75461         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
75462         which incorrectly sets the mode of an existing destination
75463         directory.  In some cases the unpatched install-sh could do the
75464         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
75465         system.  We hope this is rare in practice, but it's clearly worth
75466         fixing.  Problem reported by Alex Unleashed in
75467         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
75468         Also, don't bother to check for -m bugs unless we're using -m;
75469         suggested by Stepan Kasal.
75470
75471 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75472
75473         Sync from Automake.
75474         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
75475         `-c' flag, so they appear at the same position as in %FASTDEP%
75476         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
75477         which ignores unknown options only after the first non-option.
75478         Bug report against M4 by Nelson H. F. Beebe.
75479
75480 2006-10-13  Jim Meyering  <jim@meyering.net>
75481
75482         Fix a bug in yesterday's change.
75483         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
75484         p->fts_statp->st_dev would be used uninitialized.
75485         Ensures that we always call fts_stat on the very first entry.
75486         Miklos Szeredi reported that find -xdev stopped working.
75487
75488 2006-10-12  Bruno Haible  <bruno@clisp.org>
75489
75490         * gnulib-tool (func_get_automake_snippet): Append an automatically
75491         computed EXTRA_DIST augmentation.
75492         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
75493         * modules/alloca-opt (Makefile.am): Likewise.
75494         * modules/allocsa (Makefile.am): Likewise.
75495         * modules/arcfour (Makefile.am): Likewise.
75496         * modules/arctwo (Makefile.am): Likewise.
75497         * modules/argmatch (Makefile.am): Likewise.
75498         * modules/argz (Makefile.am): Likewise.
75499         * modules/atexit (Makefile.am): Likewise.
75500         * modules/backupfile (Makefile.am): Likewise.
75501         * modules/byteswap (Makefile.am): Likewise.
75502         * modules/c-strtod (Makefile.am): Likewise.
75503         * modules/c-strtold (Makefile.am): Likewise.
75504         * modules/calloc (Makefile.am): Likewise.
75505         * modules/canon-host (Makefile.am): Likewise.
75506         * modules/canonicalize (Makefile.am): Likewise.
75507         * modules/chdir-long (Makefile.am): Likewise.
75508         * modules/chdir-safer (Makefile.am): Likewise.
75509         * modules/check-version (Makefile.am): Likewise.
75510         * modules/chown (Makefile.am): Likewise.
75511         * modules/cloexec (Makefile.am): Likewise.
75512         * modules/close-stream (Makefile.am): Likewise.
75513         * modules/closeout (Makefile.am): Likewise.
75514         * modules/crc (Makefile.am): Likewise.
75515         * modules/csharpexec (Makefile.am): Likewise.
75516         * modules/cycle-check (Makefile.am): Likewise.
75517         * modules/des (Makefile.am): Likewise.
75518         * modules/dev-ino (Makefile.am): Likewise.
75519         * modules/dirfd (Makefile.am): Likewise.
75520         * modules/dirname (Makefile.am): Likewise.
75521         * modules/dup2 (Makefile.am): Likewise.
75522         * modules/eealloc (Makefile.am): Likewise.
75523         * modules/error (Makefile.am): Likewise.
75524         * modules/euidaccess (Makefile.am): Likewise.
75525         * modules/exclude (Makefile.am): Likewise.
75526         * modules/exitfail (Makefile.am): Likewise.
75527         * modules/fcntl-safer (Makefile.am): Likewise.
75528         * modules/fcntl (Makefile.am): Likewise.
75529         * modules/file-type (Makefile.am): Likewise.
75530         * modules/fileblocks (Makefile.am): Likewise.
75531         * modules/filemode (Makefile.am): Likewise.
75532         * modules/filenamecat (Makefile.am): Likewise.
75533         * modules/fnmatch (Makefile.am): Likewise.
75534         * modules/fopen-safer (Makefile.am): Likewise.
75535         * modules/fpending (Makefile.am): Likewise.
75536         * modules/fprintftime (Makefile.am): Likewise.
75537         * modules/free (Makefile.am): Likewise.
75538         * modules/fsusage (Makefile.am): Likewise.
75539         * modules/ftruncate (Makefile.am): Likewise.
75540         * modules/fts (Makefile.am): Likewise.
75541         * modules/gc-arcfour (Makefile.am): Likewise.
75542         * modules/gc-des (Makefile.am): Likewise.
75543         * modules/gc-hmac-md5 (Makefile.am): Likewise.
75544         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
75545         * modules/gc-md4 (Makefile.am): Likewise.
75546         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
75547         * modules/gc-sha1 (Makefile.am): Likewise.
75548         * modules/gc (Makefile.am): Likewise.
75549         * modules/getaddrinfo (Makefile.am): Likewise.
75550         * modules/getcwd (Makefile.am): Likewise.
75551         * modules/getdelim (Makefile.am): Likewise.
75552         * modules/getdomainname (Makefile.am): Likewise.
75553         * modules/getgroups (Makefile.am): Likewise.
75554         * modules/gethostname (Makefile.am): Likewise.
75555         * modules/gethrxtime (Makefile.am): Likewise.
75556         * modules/getline (Makefile.am): Likewise.
75557         * modules/getloadavg (Makefile.am): Likewise.
75558         * modules/getlogin_r (Makefile.am): Likewise.
75559         * modules/getndelim2 (Makefile.am): Likewise.
75560         * modules/getopt (Makefile.am): Likewise.
75561         * modules/getpagesize (Makefile.am): Likewise.
75562         * modules/getpass-gnu (Makefile.am): Likewise.
75563         * modules/getpass (Makefile.am): Likewise.
75564         * modules/getsubopt (Makefile.am): Likewise.
75565         * modules/gettime (Makefile.am): Likewise.
75566         * modules/gettimeofday (Makefile.am): Likewise.
75567         * modules/getugroups (Makefile.am): Likewise.
75568         * modules/getusershell (Makefile.am): Likewise.
75569         * modules/glob (Makefile.am): Likewise.
75570         * modules/group-member (Makefile.am): Likewise.
75571         * modules/hard-locale (Makefile.am): Likewise.
75572         * modules/hash (Makefile.am): Likewise.
75573         * modules/hmac-md5 (Makefile.am): Likewise.
75574         * modules/hmac-sha1 (Makefile.am): Likewise.
75575         * modules/human (Makefile.am): Likewise.
75576         * modules/idcache (Makefile.am): Likewise.
75577         * modules/imaxabs (Makefile.am): Likewise.
75578         * modules/imaxdiv (Makefile.am): Likewise.
75579         * modules/inet_ntop (Makefile.am): Likewise.
75580         * modules/inet_pton (Makefile.am): Likewise.
75581         * modules/intprops (Makefile.am): Likewise.
75582         * modules/inttostr (Makefile.am): Likewise.
75583         * modules/inttypes (Makefile.am): Likewise.
75584         * modules/isapipe (Makefile.am): Likewise.
75585         * modules/javaversion (Makefile.am): Likewise.
75586         * modules/lchmod (Makefile.am): Likewise.
75587         * modules/lchown (Makefile.am): Likewise.
75588         * modules/localcharset (Makefile.am): Likewise.
75589         * modules/long-options (Makefile.am): Likewise.
75590         * modules/lstat (Makefile.am): Likewise.
75591         * modules/malloc (Makefile.am): Likewise.
75592         * modules/mathl (Makefile.am): Likewise.
75593         * modules/mbchar (Makefile.am): Likewise.
75594         * modules/md2 (Makefile.am): Likewise.
75595         * modules/md4 (Makefile.am): Likewise.
75596         * modules/md5 (Makefile.am): Likewise.
75597         * modules/memcasecmp (Makefile.am): Likewise.
75598         * modules/memchr (Makefile.am): Likewise.
75599         * modules/memcmp (Makefile.am): Likewise.
75600         * modules/memcoll (Makefile.am): Likewise.
75601         * modules/memcpy (Makefile.am): Likewise.
75602         * modules/memmem (Makefile.am): Likewise.
75603         * modules/memmove (Makefile.am): Likewise.
75604         * modules/mempcpy (Makefile.am): Likewise.
75605         * modules/memrchr (Makefile.am): Likewise.
75606         * modules/memset (Makefile.am): Likewise.
75607         * modules/memxor (Makefile.am): Likewise.
75608         * modules/mkancesdirs (Makefile.am): Likewise.
75609         * modules/mkdir-p (Makefile.am): Likewise.
75610         * modules/mkdir (Makefile.am): Likewise.
75611         * modules/mkdtemp (Makefile.am): Likewise.
75612         * modules/mkstemp (Makefile.am): Likewise.
75613         * modules/mktime (Makefile.am): Likewise.
75614         * modules/modechange (Makefile.am): Likewise.
75615         * modules/mountlist (Makefile.am): Likewise.
75616         * modules/nanosleep (Makefile.am): Likewise.
75617         * modules/obstack (Makefile.am): Likewise.
75618         * modules/openat (Makefile.am): Likewise.
75619         * modules/pagealign_alloc (Makefile.am): Likewise.
75620         * modules/pathmax (Makefile.am): Likewise.
75621         * modules/physmem (Makefile.am): Likewise.
75622         * modules/poll (Makefile.am): Likewise.
75623         * modules/posixtm (Makefile.am): Likewise.
75624         * modules/posixver (Makefile.am): Likewise.
75625         * modules/putenv (Makefile.am): Likewise.
75626         * modules/quote (Makefile.am): Likewise.
75627         * modules/quotearg (Makefile.am): Likewise.
75628         * modules/raise (Makefile.am): Likewise.
75629         * modules/read-file (Makefile.am): Likewise.
75630         * modules/readline (Makefile.am): Likewise.
75631         * modules/readlink (Makefile.am): Likewise.
75632         * modules/readtokens (Makefile.am): Likewise.
75633         * modules/readutmp (Makefile.am): Likewise.
75634         * modules/realloc (Makefile.am): Likewise.
75635         * modules/regex (Makefile.am): Likewise.
75636         * modules/rename-dest-slash (Makefile.am): Likewise.
75637         * modules/rename (Makefile.am): Likewise.
75638         * modules/rijndael (Makefile.am): Likewise.
75639         * modules/rmdir (Makefile.am): Likewise.
75640         * modules/rpmatch (Makefile.am): Likewise.
75641         * modules/safe-read (Makefile.am): Likewise.
75642         * modules/safe-write (Makefile.am): Likewise.
75643         * modules/same-inode (Makefile.am): Likewise.
75644         * modules/same (Makefile.am): Likewise.
75645         * modules/save-cwd (Makefile.am): Likewise.
75646         * modules/savedir (Makefile.am): Likewise.
75647         * modules/setenv (Makefile.am): Likewise.
75648         * modules/settime (Makefile.am): Likewise.
75649         * modules/sha1 (Makefile.am): Likewise.
75650         * modules/sig2str (Makefile.am): Likewise.
75651         * modules/snprintf (Makefile.am): Likewise.
75652         * modules/stat-macros (Makefile.am): Likewise.
75653         * modules/stat-time (Makefile.am): Likewise.
75654         * modules/stdbool (Makefile.am): Likewise.
75655         * modules/stdint (Makefile.am): Likewise.
75656         * modules/stdlib-safer (Makefile.am): Likewise.
75657         * modules/stpcpy (Makefile.am): Likewise.
75658         * modules/stpncpy (Makefile.am): Likewise.
75659         * modules/strcase (Makefile.am): Likewise.
75660         * modules/strcasestr (Makefile.am): Likewise.
75661         * modules/strchrnul (Makefile.am): Likewise.
75662         * modules/strcspn (Makefile.am): Likewise.
75663         * modules/strdup (Makefile.am): Likewise.
75664         * modules/strerror (Makefile.am): Likewise.
75665         * modules/strftime (Makefile.am): Likewise.
75666         * modules/strndup (Makefile.am): Likewise.
75667         * modules/strnlen (Makefile.am): Likewise.
75668         * modules/strpbrk (Makefile.am): Likewise.
75669         * modules/strsep (Makefile.am): Likewise.
75670         * modules/strstr (Makefile.am): Likewise.
75671         * modules/strtod (Makefile.am): Likewise.
75672         * modules/strtoimax (Makefile.am): Likewise.
75673         * modules/strtok_r (Makefile.am): Likewise.
75674         * modules/strtol (Makefile.am): Likewise.
75675         * modules/strtoll (Makefile.am): Likewise.
75676         * modules/strtoul (Makefile.am): Likewise.
75677         * modules/strtoull (Makefile.am): Likewise.
75678         * modules/strtoumax (Makefile.am): Likewise.
75679         * modules/strverscmp (Makefile.am): Likewise.
75680         * modules/sys_socket (Makefile.am): Likewise.
75681         * modules/sys_stat (Makefile.am): Likewise.
75682         * modules/sysexits (Makefile.am): Likewise.
75683         * modules/time_r (Makefile.am): Likewise.
75684         * modules/timegm (Makefile.am): Likewise.
75685         * modules/timespec (Makefile.am): Likewise.
75686         * modules/tmpfile-safer (Makefile.am): Likewise.
75687         * modules/trim (Makefile.am): Likewise.
75688         * modules/unistd-safer (Makefile.am): Likewise.
75689         * modules/unlinkdir (Makefile.am): Likewise.
75690         * modules/unlocked-io (Makefile.am): Likewise.
75691         * modules/userspec (Makefile.am): Likewise.
75692         * modules/utime (Makefile.am): Likewise.
75693         * modules/utimecmp (Makefile.am): Likewise.
75694         * modules/utimens (Makefile.am): Likewise.
75695         * modules/vasnprintf (Makefile.am): Likewise.
75696         * modules/vasprintf (Makefile.am): Likewise.
75697         * modules/vsnprintf (Makefile.am): Likewise.
75698         * modules/xalloc (Makefile.am): Likewise.
75699         * modules/xgetcwd (Makefile.am): Likewise.
75700         * modules/xnanosleep (Makefile.am): Likewise.
75701         * modules/xreadlink (Makefile.am): Likewise.
75702         * modules/xstrtod (Makefile.am): Likewise.
75703         * modules/xstrtol (Makefile.am): Likewise.
75704         * modules/xstrtold (Makefile.am): Likewise.
75705         * modules/yesno (Makefile.am): Likewise.
75706         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
75707
75708 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
75709
75710         * modules/error (Makefile.am): Distribute files through
75711         EXTRA_DIST, not lib_SOURCES.
75712
75713 2006-10-12  Eric Blake  <ebb9@byu.net>
75714
75715         * modules/error (Makefile.am): Distribute files in /lib.
75716         * modules/obstack (Makefile.am): Likewise.
75717
75718 2006-10-12  Bruno Haible  <bruno@clisp.org>
75719
75720         * modules/acl (Makefile.am): Distribute all files in lib/ through
75721         EXTRA_DIST.
75722         * modules/arcfour (Makefile.am): Likewise.
75723         * modules/arctwo (Makefile.am): Likewise.
75724         * modules/argmatch (Makefile.am): Likewise.
75725         * modules/argz (Makefile.am): Likewise.
75726         * modules/atexit (Makefile.am): Likewise.
75727         * modules/backupfile (Makefile.am): Likewise.
75728         * modules/c-strtod (Makefile.am): Likewise.
75729         * modules/c-strtold (Makefile.am): Likewise.
75730         * modules/calloc (Makefile.am): Likewise.
75731         * modules/canon-host (Makefile.am): Likewise.
75732         * modules/canonicalize (Makefile.am): Likewise.
75733         * modules/chdir-long (Makefile.am): Likewise.
75734         * modules/chdir-safer (Makefile.am): Likewise.
75735         * modules/check-version (Makefile.am): Likewise.
75736         * modules/chown (Makefile.am): Likewise.
75737         * modules/cloexec (Makefile.am): Likewise.
75738         * modules/close-stream (Makefile.am): Likewise.
75739         * modules/closeout (Makefile.am): Likewise.
75740         * modules/crc (Makefile.am): Likewise.
75741         * modules/cycle-check (Makefile.am): Likewise.
75742         * modules/des (Makefile.am): Likewise.
75743         * modules/dirfd (Makefile.am): Likewise.
75744         * modules/dirname (Makefile.am): Likewise.
75745         * modules/dup2 (Makefile.am): Likewise.
75746         * modules/euidaccess (Makefile.am): Likewise.
75747         * modules/exclude (Makefile.am): Likewise.
75748         * modules/exitfail (Makefile.am): Likewise.
75749         * modules/fcntl-safer (Makefile.am): Likewise.
75750         * modules/file-type (Makefile.am): Likewise.
75751         * modules/fileblocks (Makefile.am): Likewise.
75752         * modules/filemode (Makefile.am): Likewise.
75753         * modules/filenamecat (Makefile.am): Likewise.
75754         * modules/fnmatch (Makefile.am): Likewise.
75755         * modules/fopen-safer (Makefile.am): Likewise.
75756         * modules/fpending (Makefile.am): Likewise.
75757         * modules/fprintftime (Makefile.am): Likewise.
75758         * modules/free (Makefile.am): Likewise.
75759         * modules/fsusage (Makefile.am): Likewise.
75760         * modules/ftruncate (Makefile.am): Likewise.
75761         * modules/fts (Makefile.am): Likewise.
75762         * modules/gc (Makefile.am): Likewise.
75763         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
75764         * modules/getaddrinfo (Makefile.am): Likewise.
75765         * modules/getcwd (Makefile.am): Likewise.
75766         * modules/getdelim (Makefile.am): Likewise.
75767         * modules/getdomainname (Makefile.am): Likewise.
75768         * modules/getgroups (Makefile.am): Likewise.
75769         * modules/gethostname (Makefile.am): Likewise.
75770         * modules/gethrxtime (Makefile.am): Likewise.
75771         * modules/getline (Makefile.am): Likewise.
75772         * modules/getloadavg (Makefile.am): Likewise.
75773         * modules/getlogin_r (Makefile.am): Likewise.
75774         * modules/getopt (Makefile.am): Likewise.
75775         * modules/getpass (Makefile.am): Likewise.
75776         * modules/getpass-gnu (Makefile.am): Likewise.
75777         * modules/getsubopt (Makefile.am): Likewise.
75778         * modules/gettime (Makefile.am): Likewise.
75779         * modules/gettimeofday (Makefile.am): Likewise.
75780         * modules/getugroups (Makefile.am): Likewise.
75781         * modules/getusershell (Makefile.am): Likewise.
75782         * modules/glob (Makefile.am): Likewise.
75783         * modules/group-member (Makefile.am): Likewise.
75784         * modules/hard-locale (Makefile.am): Likewise.
75785         * modules/hash (Makefile.am): Likewise.
75786         * modules/hmac-md5 (Makefile.am): Likewise.
75787         * modules/hmac-sha1 (Makefile.am): Likewise.
75788         * modules/human (Makefile.am): Likewise.
75789         * modules/idcache (Makefile.am): Likewise.
75790         * modules/imaxabs (Makefile.am): Likewise.
75791         * modules/imaxdiv (Makefile.am): Likewise.
75792         * modules/inet_ntop (Makefile.am): Likewise.
75793         * modules/inet_pton (Makefile.am): Likewise.
75794         * modules/inttostr (Makefile.am): Likewise.
75795         * modules/isapipe (Makefile.am): Likewise.
75796         * modules/lchown (Makefile.am): Likewise.
75797         * modules/long-options (Makefile.am): Likewise.
75798         * modules/lstat (Makefile.am): Likewise.
75799         * modules/malloc (Makefile.am): Likewise.
75800         * modules/mathl (Makefile.am): Likewise.
75801         * modules/mbchar (Makefile.am): Likewise.
75802         * modules/md2 (Makefile.am): Likewise.
75803         * modules/md4 (Makefile.am): Likewise.
75804         * modules/md5 (Makefile.am): Likewise.
75805         * modules/memcasecmp (Makefile.am): Likewise.
75806         * modules/memchr (Makefile.am): Likewise.
75807         * modules/memcmp (Makefile.am): Likewise.
75808         * modules/memcoll (Makefile.am): Likewise.
75809         * modules/memcpy (Makefile.am): Likewise.
75810         * modules/memmem (Makefile.am): Likewise.
75811         * modules/memmove (Makefile.am): Likewise.
75812         * modules/mempcpy (Makefile.am): Likewise.
75813         * modules/memrchr (Makefile.am): Likewise.
75814         * modules/memset (Makefile.am): Likewise.
75815         * modules/memxor (Makefile.am): Likewise.
75816         * modules/mkancesdirs (Makefile.am): Likewise.
75817         * modules/mkdir (Makefile.am): Likewise.
75818         * modules/mkdir-p (Makefile.am): Likewise.
75819         * modules/mkdtemp (Makefile.am): Likewise.
75820         * modules/mkstemp (Makefile.am): Likewise.
75821         * modules/mktime (Makefile.am): Likewise.
75822         * modules/modechange (Makefile.am): Likewise.
75823         * modules/mountlist (Makefile.am): Likewise.
75824         * modules/nanosleep (Makefile.am): Likewise.
75825         * modules/openat (Makefile.am): Likewise.
75826         * modules/pagealign_alloc (Makefile.am): Likewise.
75827         * modules/physmem (Makefile.am): Likewise.
75828         * modules/poll (Makefile.am): Likewise.
75829         * modules/posixtm (Makefile.am): Likewise.
75830         * modules/posixver (Makefile.am): Likewise.
75831         * modules/putenv (Makefile.am): Likewise.
75832         * modules/quote (Makefile.am): Likewise.
75833         * modules/quotearg (Makefile.am): Likewise.
75834         * modules/raise (Makefile.am): Likewise.
75835         * modules/read-file (Makefile.am): Likewise.
75836         * modules/readline (Makefile.am): Likewise.
75837         * modules/readlink (Makefile.am): Likewise.
75838         * modules/readtokens (Makefile.am): Likewise.
75839         * modules/readutmp (Makefile.am): Likewise.
75840         * modules/realloc (Makefile.am): Likewise.
75841         * modules/regex (Makefile.am): Likewise.
75842         * modules/rename (Makefile.am): Likewise.
75843         * modules/rename-dest-slash (Makefile.am): Likewise.
75844         * modules/rijndael (Makefile.am): Likewise.
75845         * modules/rmdir (Makefile.am): Likewise.
75846         * modules/rpmatch (Makefile.am): Likewise.
75847         * modules/safe-read (Makefile.am): Likewise.
75848         * modules/safe-write (Makefile.am): Likewise.
75849         * modules/same (Makefile.am): Likewise.
75850         * modules/save-cwd (Makefile.am): Likewise.
75851         * modules/savedir (Makefile.am): Likewise.
75852         * modules/setenv (Makefile.am): Likewise.
75853         * modules/settime (Makefile.am): Likewise.
75854         * modules/sha1 (Makefile.am): Likewise.
75855         * modules/sig2str (Makefile.am): Likewise.
75856         * modules/snprintf (Makefile.am): Likewise.
75857         * modules/stdlib-safer (Makefile.am): Likewise.
75858         * modules/stpcpy (Makefile.am): Likewise.
75859         * modules/stpncpy (Makefile.am): Likewise.
75860         * modules/strcase (Makefile.am): Likewise.
75861         * modules/strcasestr (Makefile.am): Likewise.
75862         * modules/strchrnul (Makefile.am): Likewise.
75863         * modules/strcspn (Makefile.am): Likewise.
75864         * modules/strdup (Makefile.am): Likewise.
75865         * modules/strerror (Makefile.am): Likewise.
75866         * modules/strftime (Makefile.am): Likewise.
75867         * modules/strndup (Makefile.am): Likewise.
75868         * modules/strnlen (Makefile.am): Likewise.
75869         * modules/strpbrk (Makefile.am): Likewise.
75870         * modules/strsep (Makefile.am): Likewise.
75871         * modules/strstr (Makefile.am): Likewise.
75872         * modules/strtod (Makefile.am): Likewise.
75873         * modules/strtoimax (Makefile.am): Likewise.
75874         * modules/strtok_r (Makefile.am): Likewise.
75875         * modules/strtol (Makefile.am): Likewise.
75876         * modules/strtoll (Makefile.am): Likewise.
75877         * modules/strtoul (Makefile.am): Likewise.
75878         * modules/strtoull (Makefile.am): Likewise.
75879         * modules/strtoumax (Makefile.am): Likewise.
75880         * modules/strverscmp (Makefile.am): Likewise.
75881         * modules/time_r (Makefile.am): Likewise.
75882         * modules/timegm (Makefile.am): Likewise.
75883         * modules/tmpfile-safer (Makefile.am): Likewise.
75884         * modules/unistd-safer (Makefile.am): Likewise.
75885         * modules/unlinkdir (Makefile.am): Likewise.
75886         * modules/userspec (Makefile.am): Likewise.
75887         * modules/utime (Makefile.am): Likewise.
75888         * modules/utimecmp (Makefile.am): Likewise.
75889         * modules/utimens (Makefile.am): Likewise.
75890         * modules/vasnprintf (Makefile.am): Likewise.
75891         * modules/vasprintf (Makefile.am): Likewise.
75892         * modules/vsnprintf (Makefile.am): Likewise.
75893         * modules/xalloc (Makefile.am): Likewise.
75894         * modules/xgetcwd (Makefile.am): Likewise.
75895         * modules/xnanosleep (Makefile.am): Likewise.
75896         * modules/xreadlink (Makefile.am): Likewise.
75897         * modules/xstrtod (Makefile.am): Likewise.
75898         * modules/xstrtol (Makefile.am): Likewise.
75899         * modules/xstrtold (Makefile.am): Likewise.
75900         * modules/yesno (Makefile.am): Likewise.
75901
75902 2006-10-12  Jim Meyering  <jim@meyering.net>
75903
75904         * m4/getloadavg.m4: Revert the change below.
75905
75906         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
75907         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
75908         fail with a symlink, which is what coreutils' ./bootstrap now
75909         creates by default.
75910
75911 2006-10-12  Bruno Haible  <bruno@clisp.org>
75912
75913         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
75914         mingw.
75915         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
75916         MSVC and mingw explicitly.
75917
75918 2006-10-11  Simon Josefsson  <jas@extundo.com>
75919             Bruno Haible  <bruno@clisp.org>
75920
75921         Add support for multiple gnulib-tool invocations in the scope of a
75922         single configure.ac file.
75923         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
75924         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
75925         with the same contents as the _LIBADD variable.
75926         (func_emit_initmacro_start, func_emit_initmacro_end,
75927         func_emit_initmacro_done): New functions.
75928         (func_import, func_create_testdir): Invoke them. Allow the identifiers
75929         gl_LIBOBJS and gl_LTLIBOBJS.
75930
75931 2006-10-11  Bruno Haible  <bruno@clisp.org>
75932
75933         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
75934         (func_create_testdir): Don't create po/Makefile.am, don't invoke
75935         autoreconf. Instead, invoke autopoint explicitly but move back the
75936         *.m4 files from gnulib.
75937
75938 2006-10-11  Bruno Haible  <bruno@clisp.org>
75939
75940         * gnulib-tool (func_usage): Make module names after --create-testdir
75941         optional.
75942         (func_create_testdir): If no module was specified, use nearly all
75943         modules.
75944
75945 2006-10-12  Jim Meyering  <jim@meyering.net>
75946
75947         Big performance improvement for fts-based tools that use FTS_NOSTAT.
75948         Avoid spurious inode-mismatch problems on non-POSIX file systems.
75949         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
75950         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
75951         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
75952         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
75953         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
75954         (fts_set_stat_required): New function.
75955         (fts_open): Defer the calls to fts_stat, if possible or requested.
75956         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
75957         into fts_stat itself.
75958         (fts_read): Perform any required (deferred) fts_stat call.
75959         (fts_build): Likewise, for the directory we're about to open and read.
75960         In the readdir loop, carefully decide whether each entry will require
75961         an eventual call to fts_stat, using dirent.d_type info if available.
75962         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
75963         a command line argument into this function.  Update all callers.
75964         Map a return value of FTS_DOT to FTS_D for a command line argument.
75965         * modules/fts (Depends-on): Add d-type.  Alphabetize.
75966         Thanks to Miklos Szeredi for his tenacity and for the initial
75967         bug report about "find" failing on a FUSE-based file system.
75968
75969         * lib/fts.c (fts_open): Use consistent indentation.
75970
75971 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
75972
75973         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
75974         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
75975         reported by Jim Meyering.  All uses of cache variables renamed
75976         to match Autoconf's.
75977         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
75978         the other one.
75979
75980         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
75981         Fix misspelling in diagnostic.
75982
75983 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
75984
75985         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
75986         defined.  Problem reported by Matthew Woehlke.
75987
75988         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
75989         Add support for Tandem NonStop R series.
75990         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
75991         Use new macro.
75992
75993         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
75994         (has_trailing_slash): Omit size arg; all callers changed.
75995         Omit 'inline', since it doesn't help performance and we'd
75996         need to configure it.
75997         Don't count //, ///, etc. as having a trailing slash.
75998         As a side effect, this removes a C99ism reported by Matthew Woehlke.
75999         (rpl_rename_dest_slash): On failure, use rename's errno rather
76000         than (in some cases) an incorrect or junk errno.
76001         Simplify code by removing need to compute length; this does
76002         cause it to make two passes instead of one over the file name,
76003         but it's worth it.
76004
76005         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
76006         change, since Autoconf's version may no longer be appropriate now
76007         that we are using CVS Autoconf's version.  Add support for Tandem.
76008
76009 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
76010             Bruno Haible  <bruno@clisp.org>
76011
76012         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
76013         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
76014         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
76015         gl_AC_TYPE_LONG_LONG.
76016
76017         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
76018         instead of HAVE_LONG_LONG.
76019         * lib/printf-args.c (printf_fetchargs): Likewise.
76020         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
76021         * lib/vasnprintf.c (VASNPRINTF): Likewise.
76022         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
76023         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
76024         gl_AC_TYPE_LONG_LONG.
76025
76026 2006-10-11  Bruno Haible  <bruno@clisp.org>
76027
76028         * m4/longlong.m4: Add comments.
76029         * m4/ulonglong.m4: Likewise.
76030
76031 2006-10-10  Bruno Haible  <bruno@clisp.org>
76032
76033         Make it possible to #define stpcpy, strdup to aliases.
76034         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
76035         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
76036
76037 2006-10-10  Bruno Haible  <bruno@clisp.org>
76038
76039         Make it possible to #define gcd to an alias.
76040         * lib/gcd.c: Include config.h.
76041
76042 2006-10-10  Bruno Haible  <bruno@clisp.org>
76043
76044         Make it possible to #define c_isascii to an alias.
76045         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
76046         defined. Undefine the macros before defining them, to avoid gcc
76047         warnings.
76048         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
76049         define NO_C_CTYPE_MACROS early.
76050
76051 2006-10-10  Bruno Haible  <bruno@clisp.org>
76052
76053         Make it possible to #define set_program_name to an alias.
76054         * lib/progname.c: Don't undefine set_program_name; instead, undefine
76055         ENABLE_RELOCATABLE early.
76056
76057 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76058
76059         Port to Tandem NSK OSS, which has 64-bit signed int but at most
76060         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
76061         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
76062         More generally, don't assume that 64-bit signed int is available
76063         if unsigned int is, and vice versa.
76064         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
76065         unsigned symbols, not on their signed counterparts.
76066         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
76067         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
76068         (UINT64_C, UINTMAX_C):
76069         Likewise.
76070         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
76071         unsigned counterparts.
76072         (Have_long_long, Unsigned): New macros.
76073         (Int): Renamed from INT.
76074         (strtoimax): Use the new macros.
76075         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
76076         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
76077         * modules/inttypes (inttypes.h): Substitute
76078         HAVE_UNSIGNED_LONG_LONG_INT.
76079         * modules/stdint (stdint.h): Likewise.
76080         (Files): Add m4/ulonglong.m4.
76081
76082 2006-10-10  Bruno Haible  <bruno@clisp.org>
76083
76084         Fix a gcc -Wshadow warning.
76085         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
76086         to 'bucket'.
76087         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
76088         gl_linked_indexof_from_to): Likewise.
76089         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
76090         Likewise.
76091         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
76092         Likewise.
76093         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
76094         Reported by Eric Blake.
76095
76096 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
76097
76098         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
76099         for NetBSD.  Problem reported by Bruno Haible.
76100
76101 2006-10-09  Jim Meyering  <jim@meyering.net>
76102
76103         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
76104         Patch from Bruno Haible.
76105
76106 2006-10-09  Jim Meyering  <jim@meyering.net>
76107
76108         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
76109         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
76110         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
76111
76112 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
76113
76114         Don't include <config.h> twice; this doesn't work in some cases,
76115         e.g., when config.h has "#define intmax_t long long int" and
76116         we include <config.h>, <inttypes.h>, <config.h> in that order.
76117         Problem reported by Matthew Woehlke in:
76118         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
76119         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
76120         * lib/fts-cycle.c: Don't include config.h.
76121         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
76122         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
76123         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
76124         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
76125         inttypes.h.
76126         * lib/xstrtoumax.c: Likewise.
76127         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
76128         __strtol and the like, so that this module is more like its siblings.
76129         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
76130         Remove; no longer needed now that we assume gnulib inttypes.h.
76131
76132 2006-10-08  Bruno Haible  <bruno@clisp.org>
76133
76134         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
76135         option.
76136
76137 2006-10-07  Jim Meyering  <jim@meyering.net>
76138
76139         * modules/inttypes (inttypes.h): Revert what seems to have been
76140         an inadvertent part of today's change: use "|", not "/" in the
76141         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
76142
76143 2006-10-07  Bruno Haible  <bruno@clisp.org>
76144
76145         * modules/sublist: New file.
76146
76147 2006-10-07  Bruno Haible  <bruno@clisp.org>
76148
76149         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
76150         * modules/argz (argz.h): Likewise.
76151         * modules/arpa_inet (arpa/inet.h): Likewise.
76152         * modules/byteswap (byteswap.h): Likewise.
76153         * modules/configmake (configmake.h): Likewise.
76154         * modules/fcntl (fcntl.h): Likewise.
76155         * modules/fnmatch (fnmatch.h): Likewise.
76156         * modules/getopt (getopt.h): Likewise.
76157         * modules/glob (glob.h): Likewise.
76158         * modules/inttypes (inttypes.h): Likewise.
76159         * modules/netinet_in (netinet/in.h): Likewise.
76160         * modules/poll (poll.h): Likewise.
76161         * modules/stdbool (stdbool.h): Likewise.
76162         * modules/stdint (stdint.h): Likewise.
76163         * modules/sys_select (sys/select.h): Likewise.
76164         * modules/sys_socket (sys/socket.h): Likewise.
76165         * modules/sys_stat (sys/stat.h): Likewise.
76166         * modules/sysexits (sysexits.h): Likewise.
76167         * modules/unistd (unistd.h): Likewise.
76168         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76169         Add a "DO NOT EDIT" comment to the generated file.
76170         (func_import): Likewise for gnulib-comp.m4.
76171
76172 2006-10-07  Bruno Haible  <bruno@clisp.org>
76173
76174         * lib/gl_sublist.h: New file.
76175         * lib/gl_sublist.c: New file.
76176
76177 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
76178
76179         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
76180         name (relative to the original working directory) and the file
76181         name component (relative to the temporary working directory).  All
76182         callers changed.
76183         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
76184         * lib/mkdir-p.c (make_dir_parents): Likewise.
76185         * lib/mkdir-p.h (make_dir_parents): Likewise.
76186
76187 2006-10-06  Eric Blake  <ebb9@byu.net>
76188
76189         Define several macros for use by the clean-temp module.
76190         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
76191         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
76192         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
76193
76194         * lib/clean-temp.h (close_stream_temp): New declaration.
76195         * lib/clean-temp.c (includes): Pull in headers according to what
76196         other modules are in use.
76197         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
76198
76199 2006-10-06  Bruno Haible  <bruno@clisp.org>
76200
76201         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
76202         instead of fopen, fwriteerror.
76203
76204 2006-10-06  Bruno Haible  <bruno@clisp.org>
76205
76206         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
76207         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
76208         int.
76209         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
76210         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
76211         Return an error indicator.
76212         Suggested by Eric Blake.
76213
76214 2006-10-06  Bruno Haible  <bruno@clisp.org>
76215
76216         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
76217         Reported by Eric Blake.
76218
76219 2006-10-06  Bruno Haible  <bruno@clisp.org>
76220
76221         * modules/closeout (Description): Mention stderr too.
76222
76223 2006-10-06  Bruno Haible  <bruno@clisp.org>
76224         and Paul Eggert  <eggert@cs.ucla.edu>
76225
76226         * lib/closeout.c (close_stdout): Also close stderr.
76227         * lib/closeout.h: Update comment.
76228
76229 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
76230
76231         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
76232         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
76233         * lib/dirchownmod.c: Include lchown.h.
76234         * lib/lchown.c: Don't include files that lchown.h now includes.
76235         Don't declare chown, since lchown.h now does that.
76236         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
76237         (lchown): Define to rpl_chown if lchown is declared but
76238         does not exist.  Declare using a prototype if lchown is not
76239         declared.  Add a copyright notice.
76240         * lib/mkstemp.h: Include <unistd.h>.
76241         * lib/openat.c: Include lchown.h.
76242
76243         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
76244         we now test for that separately.
76245         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
76246         rather than O_NOFOLLOW, when testing whether it's possible to
76247         avoid a race condition reliably.
76248         * lib/savewd.c (savewd_chdir): Likewise.
76249
76250         Remove macros that are no longer needed now that stdint.h is
76251         reliable.
76252         * lib/fsusage.c (UINTMAX_MAX): Remove.
76253         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
76254         * lib/utimecmp.c (SIZE_MAX): Remove.
76255
76256         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
76257
76258         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
76259         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
76260         O_NOATIME works.
76261
76262 2006-10-05  Bruno Haible  <bruno@clisp.org>
76263
76264         * lib/gl_list.h (gl_sortedlist_search_from_to,
76265         gl_sortedlist_indexof_from_to): New declarations.
76266         (gl_list_implementation): New fields sortedlist_search_from_to,
76267         sortedlist_indexof_from_to.
76268         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
76269         inline functions.
76270         * lib/gl_list.c (gl_sortedlist_search_from_to,
76271         gl_sortedlist_indexof_from_to): New functions.
76272         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
76273         function.
76274         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
76275         (gl_array_sortedlist_search_from_to): New function.
76276         (gl_array_list_implementation): Update.
76277         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
76278         function.
76279         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
76280         (gl_carray_sortedlist_search_from_to): New function.
76281         (gl_carray_list_implementation): Update.
76282         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
76283         gl_linked_sortedlist_indexof_from_to): New functions.
76284         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
76285         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
76286         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
76287         gl_tree_sortedlist_indexof_from_to): New functions.
76288         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
76289         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
76290         Update.
76291         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
76292         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
76293         Update.
76294
76295 2006-10-05  Bruno Haible  <bruno@clisp.org>
76296
76297         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
76298         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
76299         (struct gl_list_implementation): Add fields search_from_to,
76300         indexof_from_to. Remove fields search, indexof.
76301         (gl_list_search): Use the search_from_to method.
76302         (gl_list_search_from, gl_list_search_from_to): New functions.
76303         (gl_list_indexof): Use the indexof_from_to method.
76304         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
76305         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
76306         (gl_list_search_from, gl_list_search_from_to): New functions.
76307         (gl_list_indexof): Use the indexof_from_to method.
76308         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
76309         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
76310         gl_array_indexof. Add start_index, end_index arguments.
76311         (gl_array_search_from_to): Renamed from gl_array_search. Add
76312         start_index, end_index arguments.
76313         (gl_array_remove, gl_array_list_implementation): Update.
76314         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
76315         gl_carray_indexof. Add start_index, end_index arguments.
76316         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
76317         start_index, end_index arguments.
76318         (gl_carray_remove, gl_carray_list_implementation): Update.
76319         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
76320         gl_linked_search. Add start_index, end_index arguments.
76321         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
76322         start_index, end_index arguments.
76323         (gl_linked_remove): Update.
76324         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
76325         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
76326         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
76327         field to 'size_t'.
76328         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
76329         gl_tree_search. Add start_index, end_index arguments.
76330         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
76331         start_index, end_index arguments.
76332         (gl_tree_remove): Update.
76333         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
76334         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
76335         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
76336         function.
76337         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
76338         gl_tree_search. Add start_index, end_index arguments.
76339         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
76340         start_index, end_index arguments.
76341         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
76342         Update.
76343         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
76344
76345 2006-10-05  Bruno Haible  <bruno@clisp.org>
76346
76347         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
76348
76349         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
76350         fwriteerror_temp): New declarations.
76351         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
76352         (descriptors): New variable.
76353         (cleanup): First, close the descriptors.
76354         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
76355         fclose_temp, fwriteerror_temp): New functions.
76356
76357 2006-10-04  Jim Meyering  <jim@meyering.net>
76358
76359         * lib/fts.c (fts_open): Tiny comment change.
76360
76361 2006-10-04  Bruno Haible  <bruno@clisp.org>
76362
76363         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
76364         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
76365         gl_LOCK_BODY.
76366         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
76367         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
76368         gl_LOCK_EARLY_BODY.
76369         (gl_LOCK): Require gl_LOCK_BODY.
76370
76371 2006-10-04  Bruno Haible  <bruno@clisp.org>
76372
76373         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
76374         (gl_oset_search_atleast): New declaration.
76375         (struct gl_oset_implementation): Add field 'search_atleast'.
76376         (gl_oset_search_atleast): New inline function.
76377         * lib/gl_oset.c (gl_oset_search_atleast): New function.
76378         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
76379         (gl_array_oset_implementation): Update.
76380         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
76381         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
76382         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
76383
76384 2006-10-04  Bruno Haible  <bruno@clisp.org>
76385
76386         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
76387
76388 2006-10-03  Bruno Haible  <bruno@clisp.org>
76389
76390         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
76391         from gl_avltreehash_list_implementation.
76392
76393 2006-10-03  Bruno Haible  <bruno@clisp.org>
76394
76395         * lib/gl_oset.c (gl_oset_add): Fix return type.
76396
76397 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
76398
76399         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
76400
76401 2006-10-02  Eric Blake  <ebb9@byu.net>
76402
76403         * modules/strnlen (Depends-on): Add extensions.
76404
76405 2006-10-02  Eric Blake  <ebb9@byu.net>
76406
76407         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
76408         definition in 2.60+.
76409
76410 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
76411
76412         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
76413         checks.
76414
76415 2006-10-02  Bruno Haible  <bruno@clisp.org>
76416
76417         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
76418         to the AUTOMAKE_OPTIONS.
76419         Reported by Jim Meyering.
76420
76421 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
76422
76423         Work around bug in Solaris 10 /proc file system:
76424         /proc/self/fd/NNN/.. isn't the parent directory of
76425         the directory whose file descriptor is NNN.  This needs to
76426         be worked around at run time, not compile time, since a
76427         program might be built on Solaris 8, where things work, and
76428         run on Solaris 10.
76429         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
76430         to use the following interface instead:
76431         (OPENAT_BUFFER_SIZE): New macro.
76432         (openat_proc_name): New function.
76433         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
76434         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
76435         Likewise.
76436         * lib/openat-proc.c: New file.
76437         * modules/openat (Files): Add lib/openat-proc.c.
76438         (Depends-on): Add same-inode, stdbool.
76439         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
76440
76441 2006-09-29  Bruno Haible  <bruno@clisp.org>
76442
76443         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
76444         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
76445         argument. Set stdout_closed before testing for ferror, not after.
76446         (fwriteerror, fwriteerror_no_ebadf): New functions.
76447
76448 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76449
76450         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
76451
76452 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
76453
76454         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
76455         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
76456
76457 2006-09-28  Jim Meyering  <jim@meyering.net>
76458
76459         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
76460         Include <unistd.h>.
76461
76462 2006-09-28  Bruno Haible  <bruno@clisp.org>
76463
76464         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
76465         * modules/linkedhash-list (Depends-on): Likewise.
76466         * modules/rbtreehash-list (Depends-on): Likewise.
76467
76468 2006-09-28  Bruno Haible  <bruno@clisp.org>
76469
76470         * lib/strndup.h: Simplify the redefinition of strndup.
76471         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
76472         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
76473
76474 2006-09-28  Bruno Haible  <bruno@clisp.org>
76475
76476         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
76477         * lib/gl_linkedhash_list.c: Likewise.
76478         * lib/gl_rbtreehash_list.c: Likewise.
76479
76480 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
76481
76482         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
76483         getaddrinfo.
76484
76485         * lib/__fpending.h: Don't include <stdio_ext.h> unless
76486         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
76487         it causes <stdio_ext.h> to cause a compile-time error.
76488         Problem reported by Nelson H. F. Beebe.
76489         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
76490         of HAVE_DECL___PENDING.
76491
76492         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
76493         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
76494         declaration.
76495
76496 2006-09-27  Jim Meyering  <jim@meyering.net>
76497
76498         This file could end up with a definition for a function
76499         named __strndup, rather than rpl_strndup on a system with
76500         incomplete weak_alias support.
76501         * lib/strndup.c (strndup): Rename from __strndup.
76502         Remove #defines that used to map __strndup to strndup.
76503         Don't use K&R prototypes.
76504         Remove LIBC-related code, since this file is not sync'd with glibc.
76505         * lib/strndup.h: Revamp, accordingly.
76506         * m4/strndup.m4: Modernize.
76507
76508 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
76509
76510         * modules/savewd (Depends-on): Add 'raise'.
76511         * lib/savewd.c: Include <signal.h>, for 'raise'.
76512
76513 2006-09-26  Jim Meyering  <jim@meyering.net>
76514
76515         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
76516         when we detect Darwin 8.7.0's acl_get_file bug.
76517         Rearrange to perform the new (below) run-test while $LIBS
76518         contains any acl-related library.  Set USE_ACL at the end.
76519         (gl_ACL_GET_FILE): New function.
76520
76521 2006-09-26  Eric Blake  <ebb9@byu.net>
76522
76523         * lib/verror.c: Include <config.h> unconditionally.
76524
76525 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
76526
76527         * modules/clock-time (Maintainer): Add self.
76528         * modules/getlogin_r (Depends-on): Add extensions.
76529
76530 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76531
76532         * modules/clock-time: New module.
76533         * modules/nanosleep (Depends-on): Add clock-time.
76534         * modules/gethrxtime (Depends-on): Likewise.
76535         * modules/gettime (Depends-on): Likewise.
76536         * modules/settime (Depends-on): Likewise.
76537
76538         * modules/fts-lgpl: Depend on openat.
76539         * modules/mkancesdirs: Depend on savewd.
76540         * modules/mkdir-p: Likewise.
76541
76542 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76543
76544         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
76545
76546         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
76547         `gl_have_arbitrary_file_name_length_limit' to
76548         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
76549         actually works between configure runs.
76550
76551 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76552             Bruno Haible  <bruno@clisp.org>
76553
76554         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
76555
76556 2006-09-25  Jim Meyering  <jim@meyering.net>
76557
76558         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
76559         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
76560
76561 2006-09-25  Eric Blake  <ebb9@byu.net>
76562
76563         * gnulib-tool (func_import, func_create_testdir): Fix typos in
76564         exec's in 2006-09-18 patch when shuffling fds.
76565
76566 2006-09-25  Bruno Haible  <bruno@clisp.org>
76567
76568         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
76569         Reported by Jim Meyering.
76570
76571 2006-09-24  Jim Meyering  <jim@meyering.net>
76572
76573         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
76574         compare a pointer against a literal "0".  That caused failures with
76575         at least HP-UX's hpcc.
76576
76577 2006-09-22  Simon Josefsson  <jas@extundo.com>
76578
76579         * modules/gc-sha1:
76580         * modules/gc-md4:
76581         * modules/gc-hmac-sha1:
76582         * modules/gc-hmac-md5:
76583         * modules/gc-des:
76584         * modules/gc-arcfour: Distribute more files.
76585
76586 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76587
76588         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
76589         (gl_linked_iterator_from_to): Initialize struct completely.
76590         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
76591         (gl_tree_iterator_from_to): Likewise
76592         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
76593         * lib/gl_array_list.c [lint] (gl_array_iterator)
76594         (gl_array_iterator_from_to): Likewise.
76595         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
76596         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
76597         (gl_carray_iterator_from_to): Likewise.
76598
76599         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
76600         * lib/md4.c (md4_process_block): Remove unused variable.
76601         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
76602         parentheses for clarity.
76603
76604 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76605
76606         * modules/bison-i18n (Depends-on): Add gettext.
76607
76608 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76609
76610         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
76611         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
76612         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
76613         also add missing comma that caused broken test.
76614         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
76615         stdlib.h, for `abort'.
76616         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
76617         variables.
76618         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
76619         include unistd.h if present, for `rmdir'.
76620         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
76621         variables.
76622         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
76623         in the process include standard headers for prototypes.
76624         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
76625         gets declared on GNU/Linux.
76626         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
76627         unistd.h, for `rmdir'.
76628         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
76629
76630         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
76631         always true.
76632         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
76633
76634         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
76635
76636 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76637
76638         * gnulib-tool (func_version): Create output all at once.  This
76639         may help avoid triggering unnecessary SIGPIPEs, and at any
76640         rate it doesn't hurt.
76641
76642 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76643             Bruno Haible  <bruno@clisp.org>
76644
76645         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
76646         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
76647         * m4/signed.m4 (bh_C_SIGNED): Likewise.
76648
76649         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
76650         (gl_FUNC_VASPRINTF): Invoke it.
76651
76652 2006-09-22  Bruno Haible  <bruno@clisp.org>
76653
76654         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
76655         getloadavg.c as first argument.
76656
76657 2006-09-22  Bruno Haible  <bruno@clisp.org>
76658
76659         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
76660         at the beginning of the gl_INIT macro.
76661         * modules/getloadavg (configure.ac): Pass $gl_source_base to
76662         gl_GETLOADAVG.
76663
76664 2006-09-22  Bruno Haible  <bruno@clisp.org>
76665
76666         * gnulib-tool (func_create_megatestdir): Don't include the config-h
76667         module.
76668         Suggested by Ralf Wildenhues.
76669
76670 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
76671
76672         Import this patch from libc:
76673
76674         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
76675
76676         * lib/regex_internal.c (re_string_reconstruct): Handle
76677         offset < pstr->valid_raw_len && pstr->offsets_needed case.
76678         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
76679         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
76680         re_string_context_at.
76681
76682         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
76683         now requires it.
76684         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
76685         gl_REGEX now does it for us.
76686         (gl_REGEX): Add test taken from
76687         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
76688
76689         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
76690         Check that large offsets work.  Modernize Autoconf usages.
76691         Prefer "yes" to mean a good thing rather than a bad.
76692         Don't put "#define mkstemp" in config.h, as this might interfere
76693         with standard system headers that "#define mkstemp mkstemp64".
76694
76695         * modules/mkstemp (Depends-on): Add extensions, so that
76696         mkstemp is visible on some platforms.
76697         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
76698         (Include): Change to "mkstemp.h" from <stdlib.h>.
76699         (Files): Add mkstemp.h.
76700
76701         * lib/mkstemp.h: New file, since some standard headers
76702         #define mkstemp.
76703         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
76704         Include "mkstemp.h".
76705         Make the _LIBC code resemble glibc original more,
76706         e.g., use K&R style.
76707         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
76708         (mkstemp): Remove, since mkstemp.h does this for us.
76709         * lib/stdlib--.h: Include mkstemp.h.
76710
76711         Import this patch from libc:
76712
76713         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
76714
76715         * lib/tempname.c (__gen_tempname): Change attempts_min
76716         into a macro.  Use preprocessor to decide how to initialize
76717         attempts [Coverity CID 67].
76718
76719 2006-09-20  Bruno Haible  <bruno@clisp.org>
76720
76721         * lib/mkdtemp.c: Import from libc.
76722         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
76723                 * sysdeps/posix/tempname.c (__gen_tempname): Change
76724                 attempts_min into a macro.  Use preprocessor to decide how to
76725                 initialize attempts [Coverity CID 67].
76726         2001-11-27  Paul Eggert  <eggert@twinsun.com>
76727                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
76728                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
76729
76730 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76731
76732         * gnulib-tool (func_exit): New function, to allow to pass the
76733         exit status portably through the trap.  Use everywhere.
76734         (--help, --version): Signal a write error.
76735         (trap): catch SIGPIPE, for write errors.
76736         Exit at the end of the trap, with the correct exit status.
76737
76738 2006-09-19  Karl Berry  <karl@gnu.org>
76739
76740         * doc/gnulib.texi: note about the license texinfo files.
76741
76742 2006-09-19  Eric Blake  <ebb9@byu.net>
76743
76744         * gnulib-tool: Avoid space-tab.
76745
76746 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
76747
76748         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
76749         that prevented coreutils 6.1 from building.  Problem reported
76750         by Petter Reinholdtsen.
76751
76752 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
76753
76754         * gnulib-tool (avoidlist): Fix typo that broke options like
76755         --avoid=lock that are used by coreutils bootstrap.
76756
76757 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
76758
76759         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
76760         more systematically.
76761
76762 2006-09-18  Jim Meyering  <jim@meyering.net>
76763
76764         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
76765
76766 2006-09-18  Bruno Haible  <bruno@clisp.org>
76767
76768         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
76769
76770 2006-09-18  Bruno Haible  <bruno@clisp.org>
76771
76772         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
76773         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
76774         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
76775         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
76776         * m4/gettext.m4: Require autoconf >= 2.52.
76777         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
76778         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
76779         of gl_cv_header_inttypes_h.
76780
76781 2006-09-18  Bruno Haible  <bruno@clisp.org>
76782
76783         * lib/javaversion.c: Include configmake.h.
76784
76785 2006-09-18  Bruno Haible  <bruno@clisp.org>
76786
76787         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
76788         avoid that the while loops be executed in a subshell.
76789
76790 2006-09-18  Bruno Haible  <bruno@clisp.org>
76791
76792         * MODULES.html.sh (func_module): Break long lines.
76793         Suggested by Bruce Korb <bkorb@gnu.org>.
76794
76795 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76796
76797         Speed up by a factor of 1.12.
76798         * gnulib-tool (nl): New variable.
76799         (func_import): Rewrite include directive extraction to only read each
76800         directive once.
76801
76802 2006-09-17  Bruno Haible  <bruno@clisp.org>
76803
76804         * modules/javaversion (Makefile.am): Remove DEFS setting.
76805         (Depends-on): Add configmake, for PKGDATADIR definition.
76806
76807 2006-09-17  Bruno Haible  <bruno@clisp.org>
76808
76809         * gnulib-tool (func_create_testdir): Rewrite all files at once.
76810
76811 2006-09-17  Bruno Haible  <bruno@clisp.org>
76812
76813         * gnulib-tool (func_append): New function, stolen from libtool.m4.
76814         (func_modules_transitive_closure, func_modules_add_dummy,
76815         func_modules_to_filelist, func_import, func_create_testdir,
76816         func_create_megatestdir, ...): Use it wherever possible.
76817         Suggested by Ralf Wildenhues.
76818
76819 2006-09-16  Karl Berry  <karl@gnu.org>
76820
76821         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
76822         to avoid sectioning errors.
76823         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
76824         [ifinfo]: blank line after @center-ed titles.
76825         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
76826         Spell FSF address consistently with others.
76827         (These changes approved by rms.)
76828
76829 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76830
76831         Speed up by a factor of 1.61.
76832         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
76833         already checked module names again.
76834
76835 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76836
76837         Speed up by a factor of 1.13.
76838         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
76839         for new_files, and the input to func_add_or_update.
76840
76841 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76842
76843         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
76844         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
76845
76846 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76847
76848         * modules/mkancesdirs (Depends-on): Add fcntl.
76849         * modules/savewd: New file.
76850         * MODULES.html.sh (File system functions): Add savewd.
76851
76852         * modules/configmake (Makefile.am): Add support for the
76853         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
76854
76855 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76856
76857         * m4/savewd.m4: New file.
76858
76859 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76860
76861         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
76862         (dirchownmod): New arg FD.  All callers changed.
76863         Use FD rather than opening the directory ourself, as opening is
76864         now the caller's responsibility.
76865         * lib/dirchownmod.h: Likewise.
76866         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
76867         hosts that require <sys/types.h> before <sys/stat.h>.  Include
76868         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
76869         (test_dir): Remove.
76870         (mkancesdirs): Return length of prefix of FILE that has already
76871         been made, or -2 if there is a child doing the work.  Redo
76872         algorithm so that it is O(N) rather than O(N**2).  Optimize away
76873         ".", and treat ".." specially since it might stray back into
76874         already-created areas.  Use a subprocess if necessary.  New arg
76875         WD; all users changed.  MAKE_DIR function should now return 1
76876         if it creates a directory that is not readable.  Return -2 if
76877         a child process is spun off.
76878         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
76879         Adjust signature to match code.
76880         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
76881         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
76882         all users changed.
76883         * lib/savewd.c, lib/savewd.h: New files.
76884
76885 2006-09-15  Jim Meyering  <jim@meyering.net>
76886
76887         * modules/rename-dest-slash: New module.
76888         * MODULES.html.sh (posix_compat): Add it here.
76889
76890         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
76891
76892 2006-09-15  Jim Meyering  <jim@meyering.net>
76893
76894         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
76895         file.
76896
76897         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
76898
76899 2006-09-15  Jim Meyering  <jim@meyering.net>
76900
76901         * lib/rename-dest-slash.c (has_trailing_slash): Use
76902         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
76903         (rpl_rename_dest_slash): Perform the cheaper trailing slash
76904         test before testing whether SRC is a directory.
76905         Suggestions from Bruno Haible.
76906
76907         Avoid a warning about an unused variable.
76908         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
76909         into the #ifdef block where it's used.
76910
76911         * lib/rename-dest-slash.c: New file.
76912
76913 2006-09-14  Bruno Haible  <bruno@clisp.org>
76914
76915         * lib/allocsa.c: Include <config.h> unconditionally.
76916         * lib/asnprintf.c: Likewise.
76917         * lib/asprintf.c: Likewise.
76918         * lib/c-strcasecmp.c: Likewise.
76919         * lib/c-strcasestr.c: Likewise.
76920         * lib/c-strncasecmp.c: Likewise.
76921         * lib/c-strstr.c: Likewise.
76922         * lib/classpath.c: Likewise.
76923         * lib/clean-temp.c: Likewise.
76924         * lib/concatpath.c: Likewise.
76925         * lib/copy-file.c: Likewise.
76926         * lib/csharpcomp.c: Likewise.
76927         * lib/csharpexec.c: Likewise.
76928         * lib/execute.c: Likewise.
76929         * lib/fatal-signal.c: Likewise.
76930         * lib/findprog.c: Likewise.
76931         * lib/fwriteerror.c: Likewise.
76932         * lib/gl_array_list.c: Likewise.
76933         * lib/gl_array_oset.c: Likewise.
76934         * lib/gl_avltree_list.c: Likewise.
76935         * lib/gl_avltree_oset.c: Likewise.
76936         * lib/gl_avltreehash_list.c: Likewise.
76937         * lib/gl_carray_list.c: Likewise.
76938         * lib/gl_linked_list.c: Likewise.
76939         * lib/gl_linkedhash_list.c: Likewise.
76940         * lib/gl_list.c: Likewise.
76941         * lib/gl_oset.c: Likewise.
76942         * lib/gl_rbtree_list.c: Likewise.
76943         * lib/gl_rbtree_oset.c: Likewise.
76944         * lib/gl_rbtreehash_list.c: Likewise.
76945         * lib/imaxabs.c: Likewise.
76946         * lib/imaxdiv.c: Likewise.
76947         * lib/javacomp.c: Likewise.
76948         * lib/javaexec.c: Likewise.
76949         * lib/javaversion.c: Likewise.
76950         * lib/linebreak.c: Likewise.
76951         * lib/localcharset.c: Likewise.
76952         * lib/lock.c: Likewise.
76953         * lib/mbchar.c: Likewise.
76954         * lib/mbswidth.c: Likewise.
76955         * lib/mkdtemp.c: Likewise.
76956         * lib/pipe.c: Likewise.
76957         * lib/printf-args.c: Likewise.
76958         * lib/printf-parse.c: Likewise.
76959         * lib/progname.c: Likewise.
76960         * lib/progreloc.c: Likewise.
76961         * lib/readlink.c: Likewise.
76962         * lib/sh-quote.c: Likewise.
76963         * lib/stpcpy.c: Likewise.
76964         * lib/stpncpy.c: Likewise.
76965         * lib/strcasecmp.c: Likewise.
76966         * lib/strcasestr.c: Likewise.
76967         * lib/strcspn.c: Likewise.
76968         * lib/striconv.c: Likewise.
76969         * lib/strncasecmp.c: Likewise.
76970         * lib/strnlen1.c: Likewise.
76971         * lib/strstr.c: Likewise.
76972         * lib/strtok_r.c: Likewise.
76973         * lib/tls.c: Likewise.
76974         * lib/tmpdir.c: Likewise.
76975         * lib/unicodeio.c: Likewise.
76976         * lib/unsetenv.c: Likewise.
76977         * lib/vasnprintf.c: Likewise.
76978         * lib/vasprintf.c: Likewise.
76979         * lib/wait-process.c: Likewise.
76980         * lib/xallocsa.c: Likewise.
76981         * lib/xsetenv.c: Likewise.
76982         * lib/xstriconv.c: Likewise.
76983
76984 2006-09-13  Simon Josefsson  <jas@extundo.com>
76985
76986         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
76987         that internally, suggested by Ralf Wildenhues
76988         <Ralf.Wildenhues@gmx.de>.
76989
76990 2006-09-13  Simon Josefsson  <jas@extundo.com>
76991
76992         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
76993         @LIBOBJS@.
76994         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
76995
76996 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
76997
76998         * lib/_fpending.c: Include <config.h> unconditionally, since we no
76999         longer worry about uses that don't define HAVE_CONFIG_H.
77000         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
77001         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
77002         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
77003         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
77004         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
77005         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
77006         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
77007         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
77008         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
77009         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
77010         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
77011         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
77012         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
77013         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
77014         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
77015         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
77016         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
77017         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
77018         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
77019         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
77020         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
77021         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
77022         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
77023         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
77024         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
77025         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
77026         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
77027         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
77028         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
77029         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
77030         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
77031         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
77032         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
77033         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
77034         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
77035         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
77036         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
77037         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
77038         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
77039         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
77040         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
77041         Likewise.
77042
77043 2006-09-13  Eric Blake  <ebb9@byu.net>
77044
77045         * lib/getopt.c: Fix typo in last commit.
77046
77047 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
77048
77049         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
77050         dgettext.
77051
77052 2006-09-12  Jim Meyering  <jim@meyering.net>
77053
77054         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
77055         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
77056         Reported by Nelson H. F. Beebe.
77057
77058 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
77059
77060         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
77061         program_invocation_name and program_invocation_short_name are
77062         initialized.
77063         * lib/argp-namefrob.h: Move declarations of program_invocation_name
77064         and program_invocation_short_name to argp.h, so they are visible
77065         to user programs.
77066         * lib/argp.h: Likewise
77067
77068 2006-09-10  Bruno Haible  <bruno@clisp.org>
77069
77070         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
77071         m4/inttypes_h.m4, m4/uintmax_t.m4.
77072
77073 2006-09-10  Bruno Haible  <bruno@clisp.org>
77074
77075         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
77076         gl_AC_TYPE_UINTMAX_T.
77077
77078 2006-09-10  Bruno Haible  <bruno@clisp.org>
77079
77080         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
77081
77082 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
77083
77084         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
77085         convention.  Text proposed by Bruno Haible.
77086         (struct argp_option): Document the use of N_() wrappers.
77087
77088         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
77089         '\v', and translate the two parts separately, instead of feeding
77090         the whole string to gettext.  This allows to exclude
77091         '\v' from the strings visible to the translator by writing doc
77092         strings as N_("..") "\v" N_("..").
77093
77094 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
77095
77096         * config/srclist.txt: Undo latest change; the bug was fixed.
77097
77098 2006-09-09  Bruno Haible  <bruno@clisp.org>
77099
77100         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
77101         assignments if building a library without libtool.
77102         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
77103         in func_emit_lib_Makefile_am.
77104         (func_import): When building a static library libfoo.a, arrange to
77105         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
77106         (func_create_testdir): Likewise.
77107         * modules/gc (configure.ac, Makefile.am): If building statically,
77108         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
77109         * modules/iconvme (configure.ac, Makefile.am): Likewise.
77110         * modules/striconv (configure.ac, Makefile.am): Likewise.
77111         Based on a suggestion by Ralf Wildenhues.
77112
77113 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77114
77115         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
77116         Check for unistd.h too, since Autoconf doesn't assume POSIX.
77117         Also:
77118
77119         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77120         Add year_2050_test to catch glibc bug 2821
77121         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
77122
77123         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
77124         Prefer #ifdef to #if.
77125
77126         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
77127         Return from 'main' instead of calling 'exit'.
77128
77129 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77130
77131         * lib/mktime.c (guess_time_tm): Fix bug where mktime
77132         returned the maximum time_t value rather than (time_t) -1.
77133         Problem originally reported by William Bardwell
77134         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
77135
77136         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
77137         Moved to here ...
77138         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
77139         ... from here.
77140
77141 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77142
77143         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
77144         2821 is fixed.
77145
77146 2006-09-08  Jim Meyering  <jim@meyering.net>
77147
77148         Don't make generated files read-only.  That would bother too many
77149         people.  However, do retain the ability to work when targets are
77150         read-only: remove the destination and temporary files before writing
77151         them (when generated via sed or echo), or by using the -f option for
77152         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
77153         * modules/alloca-opt, modules/argz, modules/arpa_inet:
77154         * modules/byteswap, modules/configmake, modules/fcntl:
77155         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
77156         * modules/localcharset, modules/netinet_in, modules/poll:
77157         * modules/stdbool, modules/stdint, modules/sys_select:
77158         * modules/sys_socket, modules/sys_stat, modules/sysexits:
77159
77160 2006-09-08  Jim Meyering  <jim@meyering.net>
77161
77162         Avoid new build failure on FreeBSD 6.0.
77163         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
77164         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
77165         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
77166
77167 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77168
77169         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
77170
77171 2006-09-07  Jim Meyering  <jim@meyering.net>
77172
77173         Fix global typo in last change: use chmod u-w, not chmod u-x.
77174         Spotted by Paul Eggert and Bruce Korb.
77175         * modules/alloca-opt, modules/argz, modules/arpa_inet:
77176         * modules/byteswap, modules/configmake, modules/fcntl:
77177         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
77178         * modules/localcharset, modules/netinet_in, modules/poll:
77179         * modules/stdbool, modules/stdint, modules/sys_select:
77180         * modules/sys_socket, modules/sys_stat, modules/sysexits:
77181
77182 2006-09-06  Jim Meyering  <jim@meyering.net>
77183
77184         Make generated files be read-only.
77185         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
77186         Ensure that each generated file is now read-only.
77187         * modules/argz: Likewise.
77188         * modules/arpa_inet: Likewise.
77189         * modules/byteswap: Likewise.
77190         * modules/configmake: Likewise.
77191         * modules/fcntl: Likewise.
77192         * modules/fnmatch: Likewise.
77193         * modules/getopt: Likewise.
77194         * modules/glob: Likewise.
77195         * modules/inttypes: Likewise.
77196         * modules/netinet_in: Likewise.
77197         * modules/poll: Likewise.
77198         * modules/stdbool: Likewise.
77199         * modules/stdint: Likewise.
77200         * modules/sys_select: Likewise.
77201         * modules/sys_socket: Likewise.
77202         * modules/sys_stat: Likewise.
77203         * modules/sysexits: Likewise.
77204         * modules/localcharset: Same as above, but continue using temporary
77205         file named "t-$@" (why different?) rather than the "$@-t" used
77206         everywhere else.
77207
77208         * modules/sysexits (Makefile.am): Replace literal occurrences
77209         of "sysexit.h" more readable, and more consistent, "$@".
77210
77211 2006-09-06  Bruno Haible  <bruno@clisp.org>
77212
77213         * modules/striconv: New file.
77214         * modules/xstriconv: New file.
77215         * MODULES.html.sh (Internationalization functions): Add striconv,
77216         xstriconv.
77217
77218 2006-09-06  Bruno Haible  <bruno@clisp.org>
77219
77220         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
77221         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
77222         not using libtool correctly.
77223
77224 2006-09-06  Bruno Haible  <bruno@clisp.org>
77225
77226         * lib/striconv.h: New file.
77227         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
77228         iconvstring.c.
77229         * lib/xstriconv.h: New file.
77230         * lib/xstriconv.c: New file.
77231
77232 2006-09-06  Bruno Haible  <bruno@clisp.org>
77233
77234         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
77235         lib_..._LDFLAGS.
77236
77237 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77238
77239         * lib/argz_.h: Sync from Libtool.
77240
77241         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
77242                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
77243
77244         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
77245
77246 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
77247
77248         * modules/trim: New file.
77249
77250 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
77251
77252         * lib/trim.h: New file.
77253         * lib/trim.c: New file.
77254
77255 2006-09-05  Bruno Haible  <bruno@clisp.org>
77256
77257         * MODULES.html.sh (String handling): Add trim.
77258
77259 2006-09-04  Karl Berry  <karl@gnu.org>
77260
77261         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
77262         until next release.
77263
77264 2006-09-03  Bruno Haible  <bruno@clisp.org>
77265
77266         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
77267         correctly.
77268
77269 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77270
77271         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
77272         not gl_GETLOADAVG.  Omit unneeded semicolons.
77273         Problems reported by Ralf Wildenhues in
77274         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
77275         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
77276         at the end, which is the usual gnulib style.
77277
77278         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
77279         of doing all the work ourselves.
77280         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
77281         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
77282
77283 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77284
77285         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
77286         Problem reported by Ralf Wildenhues in
77287         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
77288
77289         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
77290         HAVE_STRUCT_STATFS_F_FSTYPENAME.
77291
77292 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77293
77294         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
77295         yesterday's patch by changing test -n to test -z.
77296
77297 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77298
77299         * modules/getloadavg (Files): Add m4/getloadavg.m4.
77300         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
77301         the former is now obsolescent.
77302
77303         * modules/chdir-long (Depends-on): Add fcntl.
77304
77305 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77306
77307         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
77308         obsolescent, and programs should use gnulib instead.
77309         * m4/getloadavg.m4: New file, with contents taken from Autoconf
77310         but with prefixes changed.
77311
77312 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77313
77314         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
77315         or stdbool.h, because they might not exist while configuring.
77316
77317         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
77318         Don't include unistd.h or limits.h; not needed, since chdir-long.h
77319         does that for us.
77320         (O_DIRECTORY): Remove.
77321
77322 2006-08-31  Eric Blake  <ebb9@byu.net>
77323
77324         * gnulib-tool: Don't let emacs change spaces to TAB.
77325
77326 2006-08-31  Bruno Haible  <bruno@clisp.org>
77327
77328         * gnulib-tool: When calling func_import more than once, do it in a
77329         subshell.
77330         Reported by Eric Blake <ebb9@byu.net>.
77331
77332 2006-08-31  Bruno Haible  <bruno@clisp.org>
77333
77334         * gnulib-tool (nl): Remove variable.
77335         (sed_transform_lib_file): Use more robust test for config-h module.
77336         (func_import): Fix typo in 2006-08-25 patch.
77337
77338 2006-08-31  Bruno Haible  <bruno@clisp.org>
77339
77340         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
77341         specified, augment Makefile.am variables instead of assigning them.
77342
77343 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77344
77345         Work around a bug in both the Linux and SunOS 64-bit kernels:
77346         nanosleep mishandles sleeps for longer than 2**31 seconds.
77347         Problem reported by Frank v Waveren in
77348         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
77349         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
77350         Check for nanosleep bug.
77351         (LIB_NANOSLEEP): Append clock_gettime library if needed.
77352
77353 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77354
77355         Work around a bug in both the Linux and SunOS 64-bit kernels:
77356         nanosleep mishandles sleeps for longer than 2**31 seconds.
77357         Problem reported by Frank v Waveren in
77358         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
77359         * lib/nanosleep.c (BILLION): New constant.
77360         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
77361         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
77362         implementation.
77363
77364 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77365
77366         * modules/nanosleep (Depends-on): Add gettime.
77367
77368 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
77369         and Simon Josefsson  <jas@extundo.com>
77370         and Oskar Liljeblad  <oskar@osk.mine.nu>
77371
77372         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
77373         * gnulib-tool (func_import): New license type 'unmodifiable license
77374         text'.
77375         * modules/fdl: Use it.  Longer description.
77376         * module/gpl, module/lgpl: New files.
77377
77378 2006-08-30  Jim Meyering  <jim@meyering.net>
77379
77380         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
77381         shadowing the parameter.
77382
77383 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77384
77385         Sync from Libtool:
77386
77387         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77388
77389         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
77390         sharing with gnulib.  Report by Eric Blake.
77391
77392 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77393
77394         * modules/isapipe: New file.
77395         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
77396
77397 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77398
77399         * modules/configmake (Makefile.am): Add a comment, and omit
77400         the CONFIGMAKE_ prefix from generated macro names.  Suggested
77401         by Bruno Haible.
77402
77403 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77404
77405         * m4/isapipe.m4: New file.
77406
77407 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
77408
77409         * lib/isapipe.c, lib/isapipe.h: New files.
77410
77411 2006-08-29  Jim Meyering  <jim@meyering.net>
77412
77413         * modules/configmake (Makefile.am): Make configmake.h depend on
77414         Makefile.  Otherwise, a stale configmake.h could hang around.
77415
77416 2006-08-29  Eric Blake  <ebb9@byu.net>
77417
77418         * lib/error.c (error_at_line, print_errno_message): Match libc, after
77419         resolution of upstream bug 3044.
77420
77421 2006-08-29  Bruno Haible  <bruno@clisp.org>
77422
77423         * modules/localcharset (Depends-on): Add configmake.
77424         (Makefile.am): Remove setting of LIBDIR through DEFS.
77425
77426 2006-08-29  Bruno Haible  <bruno@clisp.org>
77427
77428         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
77429         defined.
77430
77431 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77432
77433         * modules/fcntl: New file.
77434         * modules/chdir-safer (Depends-on): Add fcntl.
77435         * modules/fts: Likewise.
77436         * modules/mkdir-p: Likewise.
77437
77438         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
77439         This undoes the most recent change, since we're now addressing the
77440         problem in a different way.
77441
77442         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
77443         into output, since the output might be called Makefile.am even
77444         if $makefile_name is something different.
77445         (func_import): Use $makefile_am rather than
77446         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
77447         empty.
77448
77449         * modules/inttypes (Files): Add m4/inttypes-h.m4.
77450
77451 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77452
77453         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
77454         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
77455         recent change to stdint.m4, since we're now addressing the problem in a
77456         different way.
77457
77458 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77459
77460         * m4/fcntl_h.m4: New file.
77461
77462 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
77463
77464         * lib/fcntl_.h: New file.
77465         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
77466         the fcntl module.
77467         * lib/dirchownmod.c: Likewise.
77468         * lib/fts.c: Likewise.
77469
77470         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
77471         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
77472         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
77473         just before including <inttypes.h>, to avoid circular inclusion.
77474
77475 2006-08-28  Jim Meyering  <jim@meyering.net>
77476
77477         * doc/visibility.texi: Actually read and correct the grammar of the
77478         sentence affected by yesterday's change.
77479
77480 2006-08-28  Eric Blake  <ebb9@byu.net>
77481
77482         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
77483         needs wrapper.
77484
77485 2006-08-28  Eric Blake  <ebb9@byu.net>
77486
77487         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
77488
77489 2006-08-28  Eric Blake  <ebb9@byu.net>
77490
77491         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
77492
77493 2006-08-28  Bruno Haible  <bruno@clisp.org>
77494
77495         * modules/c-strstr: New file, from GNU gettext.
77496         * MODULES.html.sh (String handling): Add c-strstr.
77497
77498 2006-08-28  Bruno Haible  <bruno@clisp.org>
77499
77500         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
77501         macros.
77502         Reported by Eric Blake.
77503
77504 2006-08-28  Bruno Haible  <bruno@clisp.org>
77505
77506         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
77507         (VASNPRINTF): Return a string of length > INT_MAX without failing.
77508         * lib/vasprintf.c: Include errno.h, limits.h.
77509         (EOVERFLOW): New fallback definition.
77510         (vasprintf): Test here whether the string length is > INT_MAX.
77511         * lib/vsnprintf.c: Include errno.h, limits.h.
77512         (EOVERFLOW): New fallback definition.
77513         (vsnprintf): Fix bug when generated string was too long for the buffer.
77514         Test here whether the string length is > INT_MAX.
77515
77516 2006-08-28  Bruno Haible  <bruno@clisp.org>
77517
77518         * lib/inttypes_.h (SCNX*): Remove definitions.
77519         Reported by Eric Blake.
77520
77521 2006-08-28  Bruno Haible  <bruno@clisp.org>
77522
77523         * lib/c-strstr.h: New file, from GNU gettext.
77524         * lib/c-strstr.c: New file, from GNU gettext.
77525
77526 2006-08-28  Bruno Haible  <bruno@clisp.org>
77527
77528         * gnulib-tool: Reorder some statements.
77529
77530 2006-08-28  Bruno Haible  <bruno@clisp.org>
77531
77532         * gnulib-tool: New option --makefile-name.
77533         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
77534         $makefile_name.
77535         (func_import): Write $makefile_name to the cache file, and read it from
77536         there unless explicitly specified. Use $makefile_name as file name
77537         instead of Makefile.am. Adjust the recommendations accordingly.
77538
77539 2006-08-28  Bruno Haible  <bruno@clisp.org>
77540
77541         * gnulib-tool (func_verify_module): Check against misapplying patch.
77542
77543 2006-08-28  Bruno Haible  <bruno@clisp.org>
77544
77545         * gnulib-tool (func_relativize, func_relconcat): New functions.
77546         Give an error if --local-dir is given with --update.
77547         Remove trailing slashes from $local_gnulib_dir.
77548         (func_import): Store the relativized $local_gnulib_dir in
77549         gnulib-cache.m4, and read it from there if not specified explicitly.
77550
77551 2006-08-28  Bruno Haible  <bruno@clisp.org>
77552
77553         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
77554         is the current directory. Respect also $local_gnulib_dir.
77555
77556 2006-08-28  Bruno Haible  <bruno@clisp.org>
77557             Simon Josefsson  <jas@extundo.com>
77558
77559         BeOS portability.
77560         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
77561
77562 2006-08-27  Jim Meyering  <jim@meyering.net>
77563
77564         * doc/visibility.texi: Remove duplicate word: "pointer".
77565
77566 2006-08-26  Bruno Haible  <bruno@clisp.org>
77567
77568         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
77569         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
77570         (Makefile.am): Create inttypes.h from inttypes_.h.
77571         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
77572
77573         * modules/imaxabs: New file.
77574
77575         * modules/imaxdiv: New file.
77576
77577 2006-08-26  Bruno Haible  <bruno@clisp.org>
77578
77579         * m4/inttypes.m4: New file.
77580         * m4/_inttypes_h.m4: Remove file.
77581         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
77582         PRI_MACROS_BROKEN.
77583         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
77584
77585         * m4/imaxabs.m4: New file.
77586
77587         * m4/imaxdiv.m4: New file.
77588
77589 2006-08-26  Bruno Haible  <bruno@clisp.org>
77590
77591         * lib/inttypes_.h: New file.
77592         * lib/inttypes.h: Remove file.
77593         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
77594
77595         * lib/imaxabs.c: New file.
77596
77597         * lib/imaxdiv.c: New file.
77598
77599 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77600
77601         New config-h module, so that "make" output needn't be cluttered
77602         by -DHAVE_CONFIG_H.
77603         * MODULES.html.sh (Support for building libraries and executables):
77604         Add config-h.
77605         * modules/config-h: New file.
77606         * gnulib-tool (nl, sed_transform_lib_file): New vars.
77607         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
77608         the config-h module is used.
77609
77610         New configmake module, so that "make" output needn't be cluttered
77611         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
77612         * MODULES.html.sh (Support for building libraries and executables):
77613         Add configmake.
77614         * modules/configmake: New file.
77615
77616 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77617
77618         * m4/config-h.m4: New file.
77619
77620 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77621
77622         * config/srclist.txt: Add elisp-comp.
77623
77624 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77625
77626         * MODULES.html.sh (Support for building libraries and executables):
77627         Add elisp-comp.
77628         * build-aux/elisp-comp: New file.
77629         * modules/elisp-comp: New file.
77630
77631 2006-08-24  Bruno Haible  <bruno@clisp.org>
77632
77633         * gnulib-tool (func_create_testdir): Use non-default values of
77634         sourcebase and m4base.
77635
77636 2006-08-24  Bruno Haible  <bruno@clisp.org>
77637
77638         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
77639         HTML structure.
77640
77641 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77642
77643         * modules/openat (Depends-on): Add lchown.
77644
77645 2006-08-23  Bruno Haible  <bruno@clisp.org>
77646
77647         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
77648         of gl_LOCK_EARLY instead of gl_LOCK.
77649
77650 2006-08-23  Bruno Haible  <bruno@clisp.org>
77651
77652         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
77653         on OSF/1 to no.
77654         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
77655
77656 2006-08-23  Bruno Haible  <bruno@clisp.org>
77657
77658         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
77659         as unusable.
77660
77661         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
77662         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
77663         (gl_LOCK): New macro.
77664
77665 2006-08-22  Simon Josefsson  <jas@extundo.com>
77666
77667         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
77668         to md5 module.
77669
77670 2006-08-22  Simon Josefsson  <jas@extundo.com>
77671
77672         * MODULES.html.sh: Add "Support for maintaining and release
77673         projects".
77674
77675         * build-aux/gnupload: New file, from coreutils.
77676
77677 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77678
77679         Avoid the need for AC_LIBSOURCES in m4 macros.
77680         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
77681         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
77682         * modules/check-version (EXTRA_DIST): Add check-version.h.
77683         * modules/crc (EXTRA_DIST): Add crc.h.
77684         * modules/des (EXTRA_DIST): Add des.h.
77685         * modules/gc (EXTRA_DIST): Add gc.h.
77686         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
77687         * modules/getline (EXTRA_DIST): Add getline.h.
77688         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
77689         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
77690         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
77691         * modules/md2 (EXTRA_DIST): Add md2.h.
77692         * modules/md4 (EXTRA_DIST): Add md4.h.
77693         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
77694         * modules/read-file (EXTRA_DIST): Add read-file.h.
77695         * modules/readline (EXTRA_DIST): Add readline.h.
77696         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
77697         rijndael-api-fst.h.
77698
77699 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77700
77701         * m4/rijndael.m4 (gl_ARCFOUR):
77702         * m4/arctwo.m4 (gl_ARCTWO):
77703         * m4/check-version.m4 (gl_CHECK_VERSION):
77704         * m4/crc.m4 (gl_CRC):
77705         * m4/des.m4 (gl_DES):
77706         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
77707         * m4/gc.m4 (gl_GC):
77708         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
77709         * m4/getline.m4 (gl_FUNC_GETLINE):
77710         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
77711         * m4/hmac-md5.m4 (gl_HMAC_MD5):
77712         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
77713         * m4/md2.m4 (gl_MD2):
77714         * m4/md4.m4 (gl_MD4):
77715         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
77716         * m4/read-file.m4 (gl_FUNC_READ_FILE):
77717         * m4/readline.m4 (gl_FUNC_READLINE):
77718         * m4/rijndael.m4 (gl_RIJNDAEL):
77719         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
77720         to get the necessary .h files and whatnot.
77721
77722 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
77723
77724         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
77725         gnulib rather than the other way around.
77726         * config/srclistvars.sh (COREUTILS): Remove.
77727
77728 2006-08-22  Jim Meyering  <jim@meyering.net>
77729
77730         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
77731
77732         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
77733
77734 2006-08-22  Eric Blake  <ebb9@byu.net>
77735
77736         * modules/regexprops-generic: New file.
77737         * MODULES.html.sh (Support for building documentation): List it.
77738
77739 2006-08-22  Eric Blake  <ebb9@byu.net>
77740
77741         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
77742         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
77743         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
77744         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
77745
77746 2006-08-22  Bruno Haible  <bruno@clisp.org>
77747
77748         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
77749         and lib_LTLIBRARIES like the other lib_* variables.
77750
77751 2006-08-22  Bruno Haible  <bruno@clisp.org>
77752
77753         * build-aux/x-to-1.in: New file, from GNU gettext.
77754
77755 2006-08-22  Bruno Haible  <bruno@clisp.org>
77756
77757         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
77758         <utmpx.h> exists.
77759
77760 2006-08-22  Bruno Haible  <bruno@clisp.org>
77761
77762         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
77763         <utmpx.h> exists.
77764
77765 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77766
77767         BeOS portability.
77768         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
77769         exist.
77770         Problem reported by Bruno Haible.
77771
77772 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77773
77774         Avoid the need for AC_LIBSOURCES in m4 macros.
77775         * modules/acl (EXTRA_DIST): Add acl.h.
77776         * modules/argmatch (Files): Add m4/argmatch.m4.
77777         (configure.ac): Add gl_ARGMATCH.
77778         (EXTRA_DIST): Renamed from lib_SOURCES, for
77779         consistency with the other modules.  Remove argmatch.c.
77780         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
77781         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
77782         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
77783         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
77784         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
77785         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
77786         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
77787         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
77788         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
77789         * modules/closeout (EXTRA_DIST): Add closeout.h.
77790         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
77791         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
77792         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
77793         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
77794         dirname.h; remove basename.c and stripslash.c.
77795         * modules/exclude (EXTRA_DIST): Add exclude.h.
77796         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
77797         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
77798         * modules/file-type (EXTRA_DIST): Add file-type.h.
77799         * modules/filemode (EXTRA_DIST): Add filemode.h.
77800         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
77801         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
77802         * modules/fpending (EXTRA_DIST): Add __fpending.h.
77803         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
77804         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
77805         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
77806         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
77807         * modules/getdate (EXTRA_DIST): Add getdate.c.
77808         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
77809         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
77810         * modules/getpass (EXTRA_DIST): Add getpass.h.
77811         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
77812         * modules/group-member (EXTRA_DIST): Add group-member.h.
77813         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
77814         * modules/hash (EXTRA_DIST): Add hash.h.
77815         * modules/human (EXTRA_DIST): Add human.h.
77816         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
77817         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
77818         * modules/lchown (EXTRA_DIST): Add lchown.h.
77819         * modules/long-options (EXTRA_DIST): Add long-options.h.
77820         * modules/lstat (EXTRA_DIST): Add lstat.h.
77821         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
77822         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
77823         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
77824         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
77825         * modules/memxor (EXTRA_DIST): Add memxor.h.
77826         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
77827         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
77828         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
77829         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
77830         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
77831         * modules/physmem (EXTRA_DIST): Add physmem.h.
77832         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
77833         * modules/posixver (EXTRA_DIST): Add posixver.h.
77834         * modules/quote (EXTRA_DIST): Add quote.h.
77835         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
77836         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
77837         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
77838         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
77839         regex_internal.h regexec.c.
77840         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
77841         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
77842         * modules/same (EXTRA_DIST): Add same.h.
77843         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
77844         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
77845         * modules/savedir (EXTRA_DIST): Add savedir.h.
77846         * modules/sha1 (EXTRA_DIST): Add sha1.h.
77847         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
77848         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
77849         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
77850         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
77851         * modules/strdup (EXTRA_DIST): Add strdup.h.
77852         * modules/strftime (EXTRA_DIST): Add strftime.h.
77853         * modules/strndup (EXTRA_DIST): Add strndup.h.
77854         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
77855         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
77856         * modules/time_r (EXTRA_DIST): Add time_r.h.
77857         * modules/timespec (EXTRA_DIST): Add timespec.h.
77858         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
77859         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
77860         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
77861         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
77862         * modules/userspec (EXTRA_DIST): Add userspec.h.
77863         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
77864         * modules/utimens (EXTRA_DIST): Add utimens.h.
77865         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
77866         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
77867         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
77868         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
77869         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
77870         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
77871         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
77872         * modules/yesno (EXTRA_DIST): Add yesno.h.
77873
77874 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
77875
77876         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
77877
77878         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
77879         * m4/dev-ino.m4, same-inode.m4: Remove.
77880
77881         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
77882         * m4/acl.m4 (AC_FUNC_ACL):
77883         * m4/backupfile.m4 (gl_BACKUPFILE):
77884         * m4/c-strtod.m4 (gl_C99_STRTOLD):
77885         * m4/canon-host.m4 (gl_CANON_HOST):
77886         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
77887         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
77888         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
77889         * m4/cloexec.m4 (gl_CLOEXEC):
77890         * m4/close-stream.m4 (gl_CLOSE_STREAM):
77891         * m4/closeout.m4 (gl_CLOSEOUT):
77892         * m4/dirfd.m4 (gl_FUNC_DIRFD):
77893         * m4/dirname.m4 (gl_DIRNAME):
77894         * m4/exclude.m4 (gl_EXCLUDE):
77895         * m4/exitfail.m4 (gl_EXITFAIL):
77896         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
77897         * m4/file-type.m4 (gl_FILE_TYPE):
77898         * m4/filemode.m4 (gl_FILEMODE):
77899         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
77900         * m4/fpending.m4 (gl_FUNC_FPENDING):
77901         * m4/fprintftime.m4 (gl_FPRINTFTIME):
77902         * m4/fts.m4 (gl_FUNC_FTS):
77903         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
77904         * m4/getdate.m4 (gl_GETDATE):
77905         * m4/gethrxtime.m4 (gl_GETHRXTIME):
77906         * m4/getpagesize.m4 (gl_GETPAGESIZE):
77907         * m4/getpass.m4 (gl_FUNC_GETPASS):
77908         * m4/gettime.m4 (gl_GETTIME):
77909         * m4/getugroups.m4 (gl_GETUGROUPS):
77910         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
77911         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
77912         * m4/hard-locale.m4 (gl_HARD_LOCALE):
77913         * m4/hash.m4 (gl_HASH):
77914         * m4/idcache.m4 (gl_IDCACHE):
77915         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
77916         * m4/lchown.m4 (gl_FUNC_LCHOWN):
77917         * m4/long-options.m4 (gl_LONG_OPTIONS):
77918         * m4/lstat.m4 (gl_FUNC_LSTAT):
77919         * m4/md5.m4 (gl_MD5):
77920         * m4/memcasecmp.m4 (gl_MEMCASECMP):
77921         * m4/memcoll.m4 (gl_MEMCOLL):
77922         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
77923         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
77924         * m4/memxor.m4 (gl_MEMXOR):
77925         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
77926         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
77927         * m4/modechange.m4 (gl_MODECHANGE):
77928         * m4/mountlist.m4 (gl_MOUNTLIST):
77929         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
77930         * m4/openat.m4 (gl_FUNC_OPENAT):
77931         * m4/pathmax.m4 (gl_PATHMAX):
77932         * m4/physmem.m4 (gl_PHYSMEM):
77933         * m4/posixtm.m4 (gl_POSIXTM):
77934         * m4/posixver.m4 (gl_POSIXVER):
77935         * m4/quote.m4 (gl_QUOTE):
77936         * m4/quotearg.m4 (gl_QUOTEARG):
77937         * m4/readtokens.m4 (gl_READTOKENS):
77938         * m4/readutmp.m4 (gl_READUTMP):
77939         * m4/regex.m4 (gl_REGEX):
77940         * m4/safe-read.m4 (gl_SAFE_READ):
77941         * m4/safe-write.m4 (gl_SAFE_WRITE):
77942         * m4/same.m4 (gl_SAME):
77943         * m4/save-cwd.m4 (gl_SAVE_CWD):
77944         * m4/savedir.m4 (gl_SAVEDIR):
77945         * m4/settime.m4 (gl_SETTIME):
77946         * m4/sha1.m4 (gl_SHA1):
77947         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
77948         * m4/stat-macros.m4 (gl_STAT_MACROS):
77949         * m4/stat-time.m4 (gl_STAT_TIME):
77950         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
77951         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
77952         * m4/strdup.m4 (gl_FUNC_STRDUP):
77953         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
77954         * m4/strndup.m4 (gl_FUNC_STRNDUP):
77955         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
77956         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
77957         * m4/time_r.m4 (gl_TIME_R):
77958         * m4/timespec.m4 (gl_TIMESPEC):
77959         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
77960         * m4/unlinkdir.m4 (gl_UNLINKDIR):
77961         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
77962         * m4/userspec.m4 (gl_USERSPEC):
77963         * m4/utimecmp.m4 (gl_UTIMECMP):
77964         * m4/utimens.m4 (gl_UTIMENS):
77965         * m4/xalloc.m4 (gl_XALLOC):
77966         * m4/xgetcwd.m4 (gl_XGETCWD):
77967         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
77968         * m4/xreadlink.m4 (gl_XREADLINK):
77969         * m4/xstrtod.m4 (gl_XSTRTOD):
77970         * m4/yesno.m4 (gl_YESNO):
77971         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
77972         to get the necessary .h files and whatnot.
77973
77974 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
77975             Bruno Haible  <bruno@clisp.org>
77976
77977         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
77978         /bin/sh understanding of '!' conditional negation.
77979
77980 2006-08-21  Jim Meyering  <jim@meyering.net>
77981
77982         * modules/openat (Depends-on): Really alphabetize.
77983
77984         * modules/acl (Depends-on): Add error and quote.
77985
77986         * check-module (find_included_lib_files): Add at-func.c to the
77987         ok-to-include-more-than-once white list.
77988
77989         * modules/openat (Depends-on): Add lstat.  Alphabetize.
77990
77991 2006-08-21  Bruno Haible  <bruno@clisp.org>
77992
77993         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77994         Emit a pkgdata_DATA variable only if some snippets add contents to it.
77995         Reported by Martin Lambers <marlam@marlam.de>.
77996
77997 2006-08-21  Bruno Haible  <bruno@clisp.org>
77998
77999         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
78000         specify an installation location, don't emit a noinst_LIBRARIES or
78001         noinst_LTLIBRARIES assignment.
78002
78003 2006-08-21  Bruno Haible  <bruno@clisp.org>
78004
78005         BeOS portability.
78006         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
78007         BeOS has mbrtowc() but no <wctype.h>.
78008
78009 2006-08-21  Bruno Haible  <bruno@clisp.org>
78010
78011         BeOS portability.
78012         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
78013         exist.
78014
78015 2006-08-21  Bruno Haible  <bruno@clisp.org>
78016
78017         BeOS portability.
78018         * lib/mbchar.h: Include <wctype.h> only if it exists.
78019
78020 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78021
78022         Remove files that are no longer needed by their respective modules.
78023         * m4/obstack.m4: Remove.
78024         * m4/strerror_r.m4: Remove.
78025         * m4/uint32_t.m4: Remove.
78026         * m4/uintptr_t.m4: Remove.
78027         * m4/ullong_max.m4: Remove.
78028         * m4/xstrtoimax.m4: Remove.
78029         * m4/xstrtoumax.m4: Remove.
78030
78031         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
78032         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
78033         dependencies now capture this.
78034
78035         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
78036         Do not use AC_LIBSOURCES, since gnulib modules now do this.
78037         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
78038         * m4/human.m4 (gl_HUMAN): Likewise.
78039         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
78040         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
78041
78042         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
78043
78044         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
78045         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
78046         stdint.
78047         * m4/human.m4 (gl_HUMAN): Likewise.
78048         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
78049         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
78050         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
78051         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
78052         * m4/xstrtol (gl_XSTRTOL): Likewise.
78053
78054         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
78055         AC_TYPE_LONG_LONG_INT.
78056         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
78057         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
78058         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
78059         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
78060
78061         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
78062         on stdbool.
78063
78064         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
78065         (gl_PREREQ_XSTRTOUL): Remove.
78066
78067         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
78068
78069         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
78070         mode.
78071
78072 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78073
78074         Add and change modules to make it easier for coreutils to use
78075         gnulib-tool.
78076         * modules/backupfile (Files): Remove m4/d-ino.m4.
78077         (Depends-on): Add d-ino.
78078         * modules/cycle-check (Depends-on): Add stdint.
78079         (lib_SOURCES): Add cycle-check.h.
78080         * modules/d-ino: New module.
78081         * modules/d-type: New module.
78082         * modules/error (Files): Remove m4/strerror_r.m4.
78083         * modules/filemode (Files): Add m4/st_dm_mode.m4.
78084         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
78085         m4/inttypes_h.m4, m4/uintmax_t.m4.
78086         (Depends-on): Add stdint.
78087         (lib_SOURCES): Add fsusage.h.
78088         * modules/getcwd (Files): Remove d-ino.m4.
78089         (Depends-on): Add d-ino.
78090         * modules/getndelim2 (Depends-on): Add stdint.
78091         * modules/glob (Files): Remove m4/d-type.m4.
78092         (Depends-on): Add d-type.
78093         * modules/host-os: New module.
78094         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
78095         m4/inttypes_h.m4, m4/uintmax_t.m4.
78096         * Depends-on: Add stdint.
78097         (lib_SOURCES): Add human.h.
78098         * modules/inttostr (Files): Remove m4/intmax_t.m4,
78099         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
78100         m4/uintmax_t.m4, m4/ulonglong.m4.
78101         (Depends-on): Add stdint.
78102         (EXTRA_DIST): Add inttostr.h.
78103         * modules/lchmod: New module.
78104         * modules/link-follow: New module.
78105         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
78106         (Depends-on): Add lchmod.
78107         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
78108         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
78109         (Depends-on): Add stdint.
78110         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
78111         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
78112         (Depends-on): Add stdint.
78113         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
78114         * modules/perl: New module.
78115         * modules/regex (Depends-on): Add stdint.
78116         * modules/rmdir-errno: New module.
78117         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
78118         m4/intmax_t.m4.
78119         (Depends-on): Add stdint.
78120         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
78121         m4/uintmax_t.m4.
78122         (Depends-on): Add stdint.
78123         * modules/unlink-busy: New module.
78124         * modules/utimecmp (Depends-on): Add stdint.
78125         * modules/uptime: New module.
78126         * modules/winsz-ioctl: New module.
78127         * modules/winsz-termios: New module.
78128         * modules/xnanosleep (Depends-on): Add nanosleep.
78129         * modules/ullong_max: Remove.
78130         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
78131         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
78132         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
78133         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
78134         (Depends-on): Add inttypes.
78135         (lib_SOURCES): Add xstrtol.h.
78136         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
78137         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
78138         * MODULES.html.sh: Move 'assert' into the assert section.
78139         Move 'dummy' into the linking section.
78140         Remove ullong_max.
78141         Add section for compatibility checks for POSIX:2001 functions,
78142         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
78143         winsz-ioctl, and winsz-termios into it.
78144         Add lchmod.
78145         Add top-level Misc section and put host-os, perl, and uptime
78146         into it.
78147
78148 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78149
78150         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
78151         now assume the stdint module.  Do not include inttypes.h.
78152         * lib/fsusage.h: Likewise.
78153         * lib/getndelim2.c: Likewise.
78154         * lib/human.h: Likewise.
78155         * lib/inttostr.h: Likewise.
78156         * lib/obstack.c: Likewise.
78157         * lib/regex_internal.h: Likewise.
78158         * lib/tempname.c: Likewise.
78159         * lib/utimecmp.c: Likewise.
78160         * lib/xstrtol.h: Likewise.
78161
78162         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
78163
78164         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
78165         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
78166         * lib/xtime.h: Likewise.
78167
78168 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78169
78170         * modules/openat (Files): Add lib/fchmodat.c.
78171         Fixes problem reported by Jay Youngman.
78172
78173 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78174
78175         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
78176         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
78177
78178 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
78179             Bruno Haible  <bruno@clisp.org>
78180
78181         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
78182         and is a script that invokes bison. Tighten the code. Add comments.
78183
78184 2006-08-18  Jim Meyering  <jim@meyering.net>
78185
78186         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
78187         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
78188         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
78189         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
78190
78191 2006-08-18  Bruno Haible  <bruno@clisp.org>
78192
78193         * modules/bison-i18n: New file.
78194         * MODULES.html.sh (Internationalization functions): Add it.
78195
78196 2006-08-18  Bruno Haible  <bruno@clisp.org>
78197
78198         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
78199         sys/statvfs.h. When getmntinfo was found, check its declaration and
78200         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
78201
78202 2006-08-18  Bruno Haible  <bruno@clisp.org>
78203
78204         * m4/bison-i18n.m4: New file, from bison.
78205
78206 2006-08-18  Bruno Haible  <bruno@clisp.org>
78207
78208         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
78209         (ME_DUMMY): Treat "kernfs" as a dummy.
78210         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
78211
78212 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78213
78214         Update from coreutils.
78215
78216         2006-08-15  Jim Meyering  <jim@meyering.net>
78217
78218         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
78219
78220         2006-01-17  Jim Meyering  <jim@meyering.net>
78221
78222         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
78223
78224         2006-01-11  Jim Meyering  <jim@meyering.net>
78225
78226         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
78227         Check for the lchmod function.
78228
78229 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78230
78231         Update from coreutils.
78232
78233         * lib/__fpending.h: Add copyright notice.
78234         * lib/fprintftime.h: Likewise.
78235         * lib/savedir.c: Use (C) in copyright notice.
78236         * lib/savedir.h: Likewise.
78237
78238         2006-08-15  Jim Meyering  <jim@meyering.net>
78239
78240         * lib/at-func.c: New file, with the logic of all emulated at-functions.
78241         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
78242         in support of the EXPECTED_ERRNO macro.
78243         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
78244         definitions.  Instead, define the appropriate symbols and include
78245         "at-func.c".
78246         * lib/mkdirat.c (mkdirat): Likewise.
78247         * lib/fchmodat.c (fchmodat): Likewise.
78248         (ENOSYS): Remove definition.
78249         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
78250         it.  Don't include "unistd--.h" -- it wasn't ever used.
78251
78252         2006-01-17  Jim Meyering  <jim@meyering.net>
78253
78254         Rewrite fts.c not to change the current working directory,
78255         by using openat, fstatat, fdopendir, etc..
78256
78257         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
78258         (HAVE_OPENAT_SUPPORT): Define.
78259         [_LIBC] (fchdir): Don't undef or define; no longer used.
78260         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
78261         Now, this `function' always succeeds, and consumes its file descriptor
78262         parameter -- so callers must not close such FDs.  Update callers.
78263         (diropen_fd, opendirat, cwd_advance_fd): New functions.
78264         (diropen): Add parameter, SP.  Adjust all callers.
78265         Implement using diropen_fd, rather than open.
78266         (fts_open): Initialize new member, fts_cwd_fd.
78267         Remove fts_rft-setting code.
78268         (fts_close): Close fts_cwd_fd, if necessary.
78269         (__opendir2): Define in terms of opendir or opendirat,
78270         depending on whether the FST_NOCHDIR flag is set.
78271         (fts_build): Since fts_safe_changedir consumes its FD, and since
78272         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
78273         and close the dup'd file descriptor upon failure.
78274         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
78275         (fts_safe_changedir): Tweak semantics to reflect that this function
78276         now calls cwd_advance_fd and hence consumes its FD argument.
78277         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
78278         [struct FTS] (fts_rft): Remove now-unused member.
78279         [struct FTS] (fts_cycle.state): Improve comment.
78280
78281         * lib/openat.c (openat_needs_fchdir): New function.
78282         * lib/openat.h (openat_needs_fchdir): Declare it.
78283
78284 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
78285
78286         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
78287         Problem and fix reported by Pádraig Brady in
78288         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
78289
78290 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78291
78292         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
78293
78294 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78295
78296         * lib/memcoll.c (memcoll): Optimize for the common case where the
78297         arguments are bytewise equal.
78298
78299 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78300
78301         * doc/regexprops-generic.texi: Add a copyright notice.
78302
78303 2006-08-15  Bruno Haible  <bruno@clisp.org>
78304
78305         * modules/tmpdir (License): Change to LGPL.
78306
78307 2006-08-15  Bruno Haible  <bruno@clisp.org>
78308
78309         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
78310         module.
78311
78312 2006-08-14  Simon Josefsson  <jas@extundo.com>
78313
78314         * config/srclist.txt: Add gnupload.
78315
78316 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78317
78318         Change copyright notice from LGPL 2 to GPL 2, since that's the
78319         standard form used in the gnulib repository.
78320         * tests/test-lock.c: Likewise.
78321         * tests/test-stdint.c: Likewise.
78322         * tests/test-tls.c: Likewise.
78323
78324         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
78325         prelude-manager.  User shorter URLs for GNU projects, without '?'.
78326         Add copyright notice.
78327
78328         * check-module: Add copyright notice.  Output a copyright
78329         notice if "--version" is specified.
78330         * modules/COPYING: New file.
78331         * tests/test-getaddrinfo.c: Add copyright notice.
78332         * tests/test-verify.c: Likewise.
78333
78334 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78335
78336         Change copyright notice from LGPL 2 to GPL 2, since that's the
78337         standard form used in the gnulib repository.
78338         * lib/lock.c: LGPL -> GPL.
78339         * lib/lock.h: Likewise.
78340         * lib/strnlen1.c: Likewise.
78341         * lib/strnlen1.h: Likewise.
78342         * lib/tls.c: Likewise.
78343         * lib/tls.h: Likewise.
78344         * lib/tmpdir.c: Likewise.
78345
78346         * lib/TODO: Remove; this belongs only in coreutils.
78347
78348 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78349
78350         Add copyright notices to long-enough files that lack them, since
78351         otherwise the files aren't clearly free.  Use the same notice that
78352         getdate.texi already uses.
78353         * doc/alloca-opt.texi: Add copyright notice.
78354         * doc/alloca.texi: Likewise.
78355         * doc/ctime.texi: Likewise.
78356         * doc/functions.texi: Likewise.
78357         * doc/gcd.texi: Likewise.
78358         * doc/gnulib-tool.texi: Likewise.
78359         * doc/inet_ntoa.texi: Likewise.
78360         * doc/visibility.texi: Likewise.
78361
78362         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
78363         * doc/quote.texi: Add copyright notice.
78364
78365         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
78366         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
78367         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
78368         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
78369         is now obsolete, and give a pointer to the Sun list.
78370         Add copyright notice.
78371
78372 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
78373
78374         * config/srclistvars.sh: Add copyright notice.
78375
78376 2006-08-14  Eric Blake  <ebb9@byu.net>
78377
78378         Import the following change from libc:
78379
78380         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
78381
78382         Upstream bug 2997.
78383         * lib/misc/error.c: Add space between program name and message if file
78384         name is missing.
78385
78386 2006-08-12  Karl Berry  <karl@gnu.org>
78387
78388         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
78389         remove, these originate in gnulib now.
78390
78391 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78392
78393         * doc/Makefile (standards.info standards.html standards.dvi):
78394         Also depend on make-stds.texi.
78395
78396 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
78397
78398         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
78399         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
78400
78401         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
78402         in wchar_t.  Problem reported by Eric Blake.
78403
78404         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
78405         LEN is smaller than SIZE.  Suggested by Bruno Haible.
78406         Also, help the compiler to keep LEN in a register.
78407
78408 2006-08-11  Eric Blake  <ebb9@byu.net>
78409
78410         * users.txt: Sort.  Add tar.
78411
78412 2006-08-11  Bruno Haible  <bruno@clisp.org>
78413
78414         * users.txt: New file.
78415
78416 2006-08-11  Bruno Haible  <bruno@clisp.org>
78417
78418         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
78419         before <wchar.h>. Needed for OSF/1 and BSD/OS.
78420
78421 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
78422
78423         * modules/snprintf (Depends-on): Remove minmax.
78424         (Maintainer): Add self and Bruno.
78425
78426 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
78427
78428         * lib/.cppi-disable: Add snprintf.h, socket_.h.
78429         * lib/snprintf.c: Include <errno.h> and <limits.h>.
78430         (EOVERFLOW): Define if the system does not.
78431         Do not include "minmax.h"; it wasn't used.
78432         (snprintf): Don't assume size_t promotes to an unsigned type.
78433         Fix bug when generated string was too long for the buffer: the
78434         buffer's contents are supposed to be the initial prefix of the
78435         output.  Don't assume vasnprintf returns EOVERFLOW if the size
78436         exceeds INT_MAX; do the check ourselves.
78437
78438         Import the following changes from libc:
78439
78440         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
78441
78442         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
78443         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
78444         set wc to the byte which couldn't be converted.
78445         (re_string_reconstruct): Don't clear valid_raw_len before calling
78446         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
78447         tip_context using re_string_context_at.
78448
78449         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
78450
78451         * lib/posix/regex.h: g++ still cannot handled [restrict].
78452
78453         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
78454
78455         * lib/posix/regex.h: Remove special handling for VMS.
78456
78457 2006-08-10  Jim Meyering  <jim@meyering.net>
78458
78459         * modules/same-inode: New module.
78460         * modules/dev-ino: New module.
78461         * modules/cycle-check: Depend on these modules, rather than simply
78462         including their .h files.
78463         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
78464         required via m4/cycle-check.m4.
78465         * modules/same: Depend on new same-inode module, rather than
78466         including same-inode.h.
78467         * modules/chdir-safer: New file.
78468
78469         * modules/chown (Depends-on): Add stat-macros.
78470
78471 2006-08-10  Jim Meyering  <jim@meyering.net>
78472
78473         * m4/cycle-check.m4: New file.
78474         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
78475         * m4/dev-ino.m4, m4/same-inode.m4: New files.
78476
78477 2006-08-10  Eric Blake  <ebb9@byu.net>
78478
78479         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
78480         in from original proposal.
78481
78482 2006-08-10  Eric Blake  <ebb9@byu.net>
78483         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
78484
78485         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
78486         namespace.
78487
78488 2006-08-10  Bruno Haible  <bruno@clisp.org>
78489
78490         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
78491         as well.
78492
78493 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78494
78495         Sync from coreutils.
78496
78497         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
78498
78499         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
78500         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
78501
78502 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78503
78504         * modules/restrict: Remove; no longer needed now that we assume
78505         Autoconf 2.59 or later.
78506         * MODULES.html.sh: Remove 'restrict'.
78507         * modules/argp (Depends-on): Remove 'restrict'.
78508         * modules/base64 (Depends-on): Likewise.
78509         * modules/gc (Depends-on): Likewise.
78510         * modules/getaddrinfo (Depends-on): Likewise.
78511         * modules/glob (Depends-on): Likewise.
78512         * modules/inet_ntop (Depends-on): Likewise.
78513         * modules/inet_pton (Depends-on): Likewise.
78514         * modules/memxor (Depends-on): Likewise.
78515         * modules/regex (Depends-on): Likewise.
78516         * modules/strtok_r (Depends-on): Likewise.
78517         * modules/time_r (Depends-on): Likewise.
78518
78519 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
78520
78521         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
78522         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
78523         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
78524         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
78525         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
78526         * m4/memxor.m4 (gl_MEMXOR): Likewise.
78527         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
78528         gl_C_RESTRICT replaced by AC_C_RESTRICT.
78529
78530         Merge from coreutils.
78531         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
78532         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
78533         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
78534         * m4/time_r.m4 (gl_TIME_R): Likewise.
78535
78536 2006-08-09  Karl Berry  <karl@gnu.org>
78537
78538         * config/srclist.txt: no more gettext-tools, per Bruno.
78539
78540 2006-08-08  Eric Blake  <ebb9@byu.net>
78541
78542         * modules/verror: New module.
78543         * MODULES.html.sh: Document it.
78544
78545 2006-08-08  Eric Blake  <ebb9@byu.net>
78546
78547         * lib/verror.h, lib/verror.c: New files.
78548
78549 2006-08-08  Eric Blake  <ebb9@byu.net>
78550
78551         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
78552         verror_at_line output complies with GNU Coding Standards even when
78553         file is NULL.
78554
78555 2006-08-07  Bruno Haible  <bruno@clisp.org>
78556
78557         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
78558         versions of AIX.
78559         Reported by Ralf Wildenhues.
78560
78561 2006-08-07  Bruno Haible  <bruno@clisp.org>
78562
78563         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
78564         in an AC_DEFUN. Needed so that the autoconf snippets can use
78565         AC_REQUIRE.
78566
78567 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78568
78569         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78570         Initialize pkgdata_DATA.
78571         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
78572         overriding it.
78573
78574 2006-08-06  Eric Blake  <ebb9@byu.net>
78575
78576         * lib/error.h: Fold in some upstream changes from glibc.
78577         * lib/error.c: Likewise.
78578
78579 2006-08-04  Bruno Haible  <bruno@clisp.org>
78580
78581         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78582         Make the mostlyclean-local rule depend on mostlyclean-generic.
78583         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
78584
78585 2006-07-31  Bruno Haible  <bruno@clisp.org>
78586
78587         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
78588         <stdlib.h>, <string.h>.
78589
78590 2006-07-30  Bruno Haible  <bruno@clisp.org>
78591
78592         * modules/readlink (License): Change to LGPL.
78593
78594 2006-07-30  Bruno Haible  <bruno@clisp.org>
78595
78596         * modules/javaversion (Makefile.am): Distribute javaversion.java and
78597         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
78598         set PKGDATADIR to point to it.
78599
78600 2006-07-30  Bruno Haible  <bruno@clisp.org>
78601
78602         * modules/csharpexec (configure.ac): Comment out macro invocation.
78603         * modules/javaexec (configure.ac): Likewise.
78604         * modules/javacomp-script (configure.ac): Likewise.
78605
78606         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
78607
78608 2006-07-30  Bruno Haible  <bruno@clisp.org>
78609
78610         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
78611         linked-list.
78612
78613 2006-07-30  Bruno Haible  <bruno@clisp.org>
78614
78615         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
78616
78617 2006-07-30  Bruno Haible  <bruno@clisp.org>
78618
78619         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
78620         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
78621         get removed.
78622
78623 2006-07-29  Bruno Haible  <bruno@clisp.org>
78624
78625         Make it possible for gnulib-tool to work with locally modified or
78626         augmented gnulib repositories.
78627         * gnulib-tool (func_usage): Document --local-dir option.
78628         (local_gnulib_dir): New variable.
78629         Handle --local-dir option.
78630         (func_lookup_file): New function.
78631         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
78632         (func_get_description, func_get_filelist, func_get_description,
78633         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
78634         func_get_automake_snippet, func_get_include_directive,
78635         func_get_license, func_get_maintainer): Use func_lookup_file.
78636         (func_import, func_create_testdir): Use func_lookup_file.
78637
78638 2006-07-29  Bruno Haible  <bruno@clisp.org>
78639
78640         * modules/setenv (Depends-on): Add unistd.
78641
78642 2006-07-29  Bruno Haible  <bruno@clisp.org>
78643
78644         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
78645
78646 2006-07-29  Bruno Haible  <bruno@clisp.org>
78647
78648         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
78649
78650 2006-07-29  Bruno Haible  <bruno@clisp.org>
78651
78652         * gnulib-tool (import, update): If there is no Makefile.am, look at
78653         aclocal.m4, instead of bailing out.
78654
78655 2006-07-29  Bruno Haible  <bruno@clisp.org>
78656
78657         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
78658         Categorize the options by when they are useful.
78659
78660 2006-07-29  Bruno Haible  <bruno@clisp.org>
78661
78662         * gnulib-tool (func_usage): Document option --no-libtool.
78663         Handle option --no-libtool.
78664         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
78665         for changed semantics of $libtool variable.
78666         (func_import): Likewise. If libtool is not used, show this through
78667         an option --no-libtool.
78668         (func_create_testdir): Update.
78669
78670 2006-07-29  Bruno Haible  <bruno@clisp.org>
78671
78672         * gnulib-tool (func_import): Extend error message about missing
78673         --doc-base.
78674
78675 2006-07-29  Bruno Haible  <bruno@clisp.org>
78676
78677         * gnulib-tool (func_import): Don't create the $docbase directory if
78678         there is no file to store there.
78679
78680 2006-07-29  Bruno Haible  <bruno@clisp.org>
78681
78682         * gnulib-tool (autoconf_minversion): If a --dir option is given and
78683         relevant, look for configure.ac there, not in the current directory.
78684         Also use a simple search for AC_PREREQ, not "autoconf --trace".
78685
78686 2006-07-29  Bruno Haible  <bruno@clisp.org>
78687
78688         * gnulib-tool (SORT): New variable.
78689         (func_usage): Undocument --assume-autoconf option.
78690         Remove --assume-autoconf option handling.
78691         (autoconf_minversion): Determine from the contents of configure.ac.
78692         (func_import): Remove autoconf_minversion handling.
78693         Suggested by Eric Blake.
78694
78695 2006-07-29  Bruno Haible  <bruno@clisp.org>
78696
78697         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
78698
78699 2006-07-29  Bruno Haible  <bruno@clisp.org>
78700
78701         * config/srclist.txt (*setenv.[ch]): Remove rules.
78702
78703 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78704
78705         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
78706
78707 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78708
78709         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
78710         arpa/inet.h.
78711
78712 2006-07-28  Simon Josefsson  <jas@extundo.com>
78713
78714         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
78715         * modules/inet_pton (Depends-on): Likewise.
78716
78717 2006-07-28  Simon Josefsson  <jas@extundo.com>
78718
78719         * m4/netinet_in_h.m4: New file.
78720
78721 2006-07-28  Simon Josefsson  <jas@extundo.com>
78722
78723         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
78724         #include's.
78725
78726 2006-07-28  Simon Josefsson  <jas@extundo.com>
78727
78728         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
78729         #include's.
78730
78731 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
78732
78733         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
78734         setgid on directories only if they set these bits.
78735         * lib/modechange.h: Remove obsolete comment about masks.
78736
78737 2006-07-28  Eric Blake  <ebb9@byu.net>
78738
78739         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
78740         macro expansion.
78741
78742 2006-07-28  Bruno Haible  <bruno@clisp.org>
78743
78744         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
78745
78746 2006-07-28  Bruno Haible  <bruno@clisp.org>
78747
78748         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
78749
78750 2006-07-28  Bruno Haible  <bruno@clisp.org>
78751
78752         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
78753         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
78754         Define fallbacks.
78755         Avoids link error on FreeBSD 4.x.
78756         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
78757
78758         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
78759         encoding.
78760         * lib/mbswidth.c (iswcntrl): Likewise.
78761
78762 2006-07-27  Bruno Haible  <bruno@clisp.org>
78763
78764         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
78765         test.
78766
78767 2006-07-27  Bruno Haible  <bruno@clisp.org>
78768
78769         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
78770         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
78771         defined.
78772
78773 2006-07-26  Eric Blake  <ebb9@byu.net>
78774
78775         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
78776
78777 2006-07-26  Eric Blake  <ebb9@byu.net>
78778
78779         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
78780         like mingw that lack mkstemp.
78781         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
78782         avoid compilation warning on mingw.
78783
78784 2006-07-26  Bruno Haible  <bruno@clisp.org>
78785
78786         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
78787         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
78788         INT_FAST*_MIN, INTPTR_MIN.
78789
78790 2006-07-25  Bruno Haible  <bruno@clisp.org>
78791
78792         * modules/version-etc (Depends-on): Add stdarg.
78793
78794 2006-07-25  Bruno Haible  <bruno@clisp.org>
78795
78796         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
78797         complex commands.
78798
78799 2006-07-25  Bruno Haible  <bruno@clisp.org>
78800
78801         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
78802         defined in <stdarg.h> or config.h.
78803
78804 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
78805
78806         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
78807         (gl_STDIO_SAFER): Remove.
78808
78809 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
78810
78811         * MODULES.html.sh (File stream based Input/Output):
78812         Add fopen-safer, tmpfile-safer; remove stdio-safer.
78813         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
78814         * modules/fopen-safer, modules/tmpfile-safer: New files.
78815         * modules/stdio-safer: Remove.
78816
78817 2006-07-24  Bruno Haible  <bruno@clisp.org>
78818
78819         * modules/tmpdir: New file.
78820         * MODULES.html.sh (File system functions): Add it.
78821
78822 2006-07-24  Bruno Haible  <bruno@clisp.org>
78823
78824         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
78825         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
78826
78827 2006-07-24  Bruno Haible  <bruno@clisp.org>
78828
78829         * modules/clean-temp: New file.
78830
78831 2006-07-24  Bruno Haible  <bruno@clisp.org>
78832
78833         * m4/tmpdir.m4: New file, from GNU gettext.
78834
78835 2006-07-24  Bruno Haible  <bruno@clisp.org>
78836
78837         * lib/tmpdir.h: New file, from GNU gettext.
78838         * lib/tmpdir.c: New file, from GNU gettext.
78839
78840 2006-07-24  Bruno Haible  <bruno@clisp.org>
78841
78842         * lib/clean-temp.h: New file, from GNU gettext.
78843         * lib/clean-temp.c: New file, from GNU gettext.
78844
78845 2006-07-23  Eric Blake  <ebb9@byu.net>
78846
78847         * modules/stdio-safer (Files): Add tmpfile-safer.c.
78848         (Depends-on): Add binary-io.
78849
78850 2006-07-23  Eric Blake  <ebb9@byu.net>
78851
78852         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
78853
78854 2006-07-23  Eric Blake  <ebb9@byu.net>
78855
78856         * lib/tmpfile-safer.c: New file.
78857         * lib/stdio-safer.h (fopen_safer): Add prototype.
78858         * lib/stdio--.h (tmpfile): Make safer.
78859
78860 2006-07-23  Bruno Haible  <bruno@clisp.org>
78861
78862         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
78863         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
78864         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
78865         gl_linked_remove_at): Use it.
78866
78867 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78868         and Simon Josefsson <jas@extundo.com>
78869
78870         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
78871
78872         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
78873
78874 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
78875
78876         * modules/close-stream: New file.
78877         * modules/closeout (Description): Make it clear that it exits
78878         with a diagnostic on error.
78879         (Depends-on): Add close-stream.  Remove fpending, stdbool.
78880         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
78881
78882 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
78883
78884         * m4/close-stream.m4: New file.
78885
78886 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
78887
78888         * lib/close-stream.c, lib/close-stream.h: New files.
78889
78890 2006-07-22  Bruno Haible  <bruno@clisp.org>
78891
78892         Merge from GNU gettext 0.15.
78893
78894         2006-05-01  Bruno Haible  <bruno@clisp.org>
78895
78896                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
78897
78898         2006-07-22  Bruno Haible  <bruno@clisp.org>
78899
78900                 * modules/javaversion: New file.
78901                 * MODULES.html.sh (Java): Add javaversion.
78902
78903         2006-03-12  Bruno Haible  <bruno@clisp.org>
78904
78905                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
78906
78907         2005-12-04  Bruno Haible  <bruno@clisp.org>
78908
78909                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
78910                 (untested).
78911
78912         2006-06-21  Bruno Haible  <bruno@clisp.org>
78913
78914                 Avoid warnings from recent versions of mcs.
78915                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
78916                 -o, -L, -r any more. Use options documented since mcs-1.0
78917                 instead. Similarly for -g.
78918
78919         2005-12-04  Bruno Haible  <bruno@clisp.org>
78920
78921                 * build-aux/csharpcomp.sh.in: Suffix for resources is
78922                 .resources, not .resource.
78923
78924         2005-07-09  Bruno Haible  <bruno@clisp.org>
78925
78926                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
78927                 add a .dll suffix.
78928                 Reported by Mark Junker <mjscod@gmx.de>.
78929
78930         2006-07-22  Bruno Haible  <bruno@clisp.org>
78931
78932                 * modules/gettext: Upgrade to gettext-0.15.
78933                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
78934                 m4/visibility.m4.
78935                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
78936
78937 2006-07-22  Bruno Haible  <bruno@clisp.org>
78938
78939         Merge from GNU gettext 0.15.
78940
78941         2006-03-25  Bruno Haible  <bruno@clisp.org>
78942
78943                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
78944
78945         2006-07-21  Bruno Haible  <bruno@clisp.org>
78946
78947                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
78948                 "1.1".
78949
78950         2006-05-09  Bruno Haible  <bruno@clisp.org>
78951
78952                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
78953                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
78954                 for the conftestver execution.
78955
78956         2006-05-01  Bruno Haible  <bruno@clisp.org>
78957
78958                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
78959                 optional target-version argument. Verify that the compiler
78960                 groks source of the specified source-version, or add -source
78961                 option as necessary. Verify that the compiler produces
78962                 bytecode in the specified target-version, or add -target and
78963                 -source options as necessary. Make the result of the test
78964                 available as variable CONF_JAVAC. Also log error output in
78965                 config.log.
78966
78967         2006-03-11  Bruno Haible  <bruno@clisp.org>
78968
78969                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
78970
78971         2006-05-09  Bruno Haible  <bruno@clisp.org>
78972
78973                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
78974                 CLASSPATH_SEPARATOR to a semicolon.
78975
78976         2006-03-12  Bruno Haible  <bruno@clisp.org>
78977
78978                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
78979                 available as variable CONF_JAVA, for subsequent autoconf
78980                 tests. Also log error output in config.log.
78981
78982         2006-07-19  Bruno Haible  <bruno@clisp.org>
78983
78984                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
78985                 that getline works on glibc2 systems. Needed to avoid trouble
78986                 in relocatable.c.
78987                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
78988
78989         2005-12-04  Bruno Haible  <bruno@clisp.org>
78990
78991                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
78992                 launcher (untested).
78993
78994         2005-12-04  Bruno Haible  <bruno@clisp.org>
78995
78996                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
78997
78998         2006-07-22  Bruno Haible  <bruno@clisp.org>
78999
79000                 * gettext.m4: Update from GNU gettext-0.15.
79001                 * nls.m4: Likewise.
79002                 * po.m4: Likewise.
79003                 * inttypes-pri.m4: Likewise.
79004                 * inttypes-h.m4: Renamed from inttypes.m4.
79005                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
79006
79007 2006-07-22  Bruno Haible  <bruno@clisp.org>
79008
79009         Merge from GNU gettext 0.15.
79010
79011         2005-07-05  Bruno Haible  <bruno@clisp.org>
79012
79013                 * printf-args.c (printf_fetchargs): Work around broken
79014                 definition of wint_t on mingw.
79015
79016         2005-02-12  Bruno Haible  <bruno@clisp.org>
79017
79018                 * xallocsa.h: Add extern "C" for C++.
79019
79020         2006-05-17  Bruno Haible  <bruno@clisp.org>
79021
79022                 Cygwin portability.
79023                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
79024
79025         2006-04-30  Bruno Haible  <bruno@clisp.org>
79026
79027                 * progreloc.c: Include <mach-o/dyld.h> if available.
79028                 (find_executable): Use _NSGetExecutablePath when possible.
79029
79030         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
79031
79032                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
79033                 function.
79034
79035         2005-12-29  Bruno Haible  <bruno@clisp.org>
79036
79037                 * progreloc.c (set_program_name_and_installdir): Fix
79038                 compilation error.
79039
79040         2005-12-04  Bruno Haible  <bruno@clisp.org>
79041
79042                 Cygwin portability.
79043                 * progreloc.c: Include <windows.h> also on Cygwin.
79044                 (find_executable): Add support for Cygwin.
79045                 (set_program_name_and_installdir): Handle also platforms with
79046                 nonempty EXEEXT.
79047
79048         2006-07-11  Bruno Haible  <bruno@clisp.org>
79049
79050                 * javacomp.c: Fix a comment.
79051                 Reported by Jim Meyering.
79052
79053         2006-04-30  Bruno Haible  <bruno@clisp.org>
79054
79055                 * javacomp.h (compile_java_class): Add source_version,
79056                 target_version arguments.
79057                 * javacomp.c: Rewritten to choose only a compiler that
79058                 respects the specified source_version and target_version.
79059
79060         2006-06-27  Bruno Haible  <bruno@clisp.org>
79061
79062                 Assume correct S_ISDIR macro.
79063                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
79064
79065         2006-07-22  Bruno Haible  <bruno@clisp.org>
79066
79067                 * javaversion.h: New file, from GNU gettext.
79068                 * javaversion.c: New file, from GNU gettext.
79069                 * javaversion.java: New file, from GNU gettext.
79070                 * javaversion.class: New file, from GNU gettext.
79071
79072         2006-05-17  Bruno Haible  <bruno@clisp.org>
79073
79074                 Cygwin portability.
79075                 * javaexec.c (execute_java_class): Test for jview program
79076                 also on Cygwin.
79077
79078         2006-04-09  Bruno Haible  <bruno@clisp.org>
79079
79080                 * fatal-signal.c: Don't include string.h.
79081                 (at_fatal_signal): Use a copying loop instead of memcpy.
79082
79083         2005-12-04  Bruno Haible  <bruno@clisp.org>
79084
79085                 * csharpexec.c: Add support for 'clix' launcher (untested).
79086                 (execute_csharp_using_sscli): New function.
79087                 (execute_csharp_program): Call it.
79088
79089         2006-06-21  Bruno Haible  <bruno@clisp.org>
79090
79091                 Avoid warnings from recent versions of mcs.
79092                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
79093                 -o, -L, -r any more. Use options documented since mcs-1.0
79094                 instead. Similarly for -g.
79095
79096         2005-07-09  Bruno Haible  <bruno@clisp.org>
79097
79098                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
79099                 add a .dll suffix.
79100                 Reported by Mark Junker <mjscod@gmx.de>.
79101
79102         2006-06-17  Bruno Haible  <bruno@clisp.org>
79103
79104                 * config.charset: Update for NetBSD 3.0.
79105
79106         2006-05-17  Bruno Haible  <bruno@clisp.org>
79107
79108                 Cygwin portability.
79109                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
79110
79111         2006-05-16  Bruno Haible  <bruno@clisp.org>
79112
79113                 * localcharset.c [CYGWIN]: Include <windows.h>.
79114                 (get_charset_aliases): For Cygwin, return the same CPxxx
79115                 aliases list as under WIN32.
79116                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
79117                 the environment variables. Fall back to GetACP().
79118
79119         2006-04-05  Bruno Haible  <bruno@clisp.org>
79120
79121                 * config.charset: Update Juan Manuel Guerrero's address.
79122
79123         2005-02-12  Bruno Haible  <bruno@clisp.org>
79124
79125                 * allocsa.h: Add extern "C" for C++.
79126
79127         2005-02-10  Bruno Haible  <bruno@clisp.org>
79128
79129                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
79130                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
79131
79132         2006-07-22  Bruno Haible  <bruno@clisp.org>
79133
79134                 * gettext.h: Update to GNU gettext-0.15.
79135
79136 2006-07-22  Bruno Haible  <bruno@clisp.org>
79137
79138         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
79139         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
79140         lib-prefix.m4, longdouble.m4, ssize_t.m4.
79141
79142 2006-07-21  Eric Blake  <ebb9@byu.net>
79143
79144         * modules/stdlib-safer: New file.
79145         * MODULES.html.sh (File stream based Input/Output): Add
79146         stdlib-safer.
79147
79148 2006-07-21  Eric Blake  <ebb9@byu.net>
79149
79150         * lib/stdlib-safer.h: New file from coreutils, required by
79151         stdlib--.h.
79152
79153 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
79154
79155         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
79156
79157 2006-07-20  Bruno Haible  <bruno@clisp.org>
79158
79159         * gnulib-tool: Recognize new option --assume-autoconf.
79160         (autoconf_minversion): New variable.
79161         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
79162
79163 2006-07-20  Bruno Haible  <bruno@clisp.org>
79164
79165         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
79166
79167 2006-07-19  Derek R. Price  <derek@ximbiot.com>
79168
79169         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
79170         Reindent and repaginate.
79171
79172 2006-07-19  Derek Price  <derek@ximbiot.com>
79173
79174         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
79175         Correct grammar.
79176
79177 2006-07-17  Bruno Haible  <bruno@clisp.org>
79178
79179         * modules/list: New file.
79180         * modules/array-list: New file.
79181         * modules/carray-list, modules/carray-list-tests: New files.
79182         * modules/linked-list, modules/linked-list-tests: New files.
79183         * modules/avltree-list, modules/avltree-list-tests: New files.
79184         * modules/rbtree-list, modules/rbtree-list-tests: New files.
79185         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
79186         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
79187         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
79188         * modules/oset: New file.
79189         * modules/array-oset: New file.
79190         * modules/avltree-oset, modules/avltree-oset-tests: New files.
79191         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
79192         * tests/test-carray_list.c: New file.
79193         * tests/test-linked_list.c: New file.
79194         * tests/test-avltree_list.c: New file.
79195         * tests/test-rbtree_list.c: New file.
79196         * tests/test-linkedhash_list.c: New file.
79197         * tests/test-avltreehash_list.c: New file.
79198         * tests/test-rbtreehash_list.c: New file.
79199         * tests/test-avltree_oset.c: New file.
79200         * tests/test-rbtree_oset.c: New file.
79201         * MODULES.html.sh (Container data structures): New section.
79202
79203 2006-07-17  Bruno Haible  <bruno@clisp.org>
79204
79205         * m4/gl_list.m4: New file.
79206
79207 2006-07-17  Bruno Haible  <bruno@clisp.org>
79208
79209         * lib/gl_list.h: New file.
79210         * lib/gl_list.c: New file.
79211         * lib/gl_array_list.h: New file.
79212         * lib/gl_array_list.c: New file.
79213         * lib/gl_carray_list.h: New file.
79214         * lib/gl_carray_list.c: New file.
79215         * lib/gl_linked_list.h: New file.
79216         * lib/gl_linked_list.c: New file.
79217         * lib/gl_anylinked_list1.h: New file.
79218         * lib/gl_anylinked_list2.h: New file.
79219         * lib/gl_avltree_list.h: New file.
79220         * lib/gl_avltree_list.c: New file.
79221         * lib/gl_anyavltree_list1.h: New file.
79222         * lib/gl_anyavltree_list2.h: New file.
79223         * lib/gl_rbtree_list.h: New file.
79224         * lib/gl_rbtree_list.c: New file.
79225         * lib/gl_anyrbtree_list1.h: New file.
79226         * lib/gl_anyrbtree_list2.h: New file.
79227         * lib/gl_anytree_list1.h: New file.
79228         * lib/gl_anytree_list2.h: New file.
79229         * lib/gl_linkedhash_list.h: New file.
79230         * lib/gl_linkedhash_list.c: New file.
79231         * lib/gl_anyhash_list1.h: New file.
79232         * lib/gl_anyhash_list2.h: New file.
79233         * lib/gl_avltreehash_list.h: New file.
79234         * lib/gl_avltreehash_list.c: New file.
79235         * lib/gl_rbtreehash_list.h: New file.
79236         * lib/gl_rbtreehash_list.c: New file.
79237         * lib/gl_anytreehash_list1.h: New file.
79238         * lib/gl_anytreehash_list2.h: New file.
79239
79240         * lib/gl_oset.h: New file.
79241         * lib/gl_oset.c: New file.
79242         * lib/gl_array_oset.h: New file.
79243         * lib/gl_array_oset.c: New file.
79244         * lib/gl_avltree_oset.h: New file.
79245         * lib/gl_avltree_oset.c: New file.
79246         * lib/gl_rbtree_oset.h: New file.
79247         * lib/gl_rbtree_oset.c: New file.
79248         * lib/gl_anytree_oset.h: New file.
79249
79250 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79251
79252         * m4/mkancesdirs.m4: New file.
79253         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
79254         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
79255         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
79256         it.
79257
79258 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79259
79260         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
79261         * lib/mkancesdirs.h: New files.
79262         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
79263         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
79264         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
79265         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
79266         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
79267         callers changed.  Revamp internals significantly, by not
79268         attempting to create directories that are temporarily more
79269         permissive than the final results.  Do not attempt to use
79270         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
79271         This removes some race conditions, fixes some bugs, and simplifies
79272         things.  Use new dirchownmod function to do owner and mode changes.
79273         * lib/mkdir-p.h: Likewise.
79274         * lib/modechange.c (octal_to_mode): New function.
79275         (struct mode_change): New member mentioned.
79276         (make_node_op_equals): New arg mentioned.  All callers changed.
79277         (mode_compile): Keep track of which mode bits the user has explicitly
79278         mentioned.
79279         (mode_adjust): New arg DIR, so that we implement the X op correctly.
79280         New arg PMODE_BITS, to keep track of which mode bits the user
79281         mentioned; it treats S_ISUID and S_ISGID speciall.
79282         All callers changed.
79283         * lib/modechange.h: Likewise.
79284
79285 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
79286
79287         * MODULES.html.sh: Add mkancestors.
79288         * modules/mkancesdirs: New module.
79289         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
79290         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
79291         The chdir-safer and afs files are now orphans; I'll remove them
79292         unless someone speaks up.
79293         Add lib/dirchownmod.c, lib/dirchownmod.h.
79294         (Depends-on): Remove alloca, chown, save-cwd, dirname.
79295         Add lchown, mkancesdirs.
79296         (Maintainer): Add self.
79297
79298 2006-07-15  Karl Berry  <karl@gnu.org>
79299
79300         * gnulib-tool: help message wording/arrangement.
79301
79302 2006-07-14  Simon Josefsson  <jas@extundo.com>
79303
79304         * doc/gnulib.texi (Libtool and Windows): New section.
79305
79306 2006-07-12  Simon Josefsson  <jas@extundo.com>
79307
79308         * modules/gendocs (License): Fix license, approved by Karl.
79309
79310 2006-07-12  Eric Blake  <ebb9@byu.net>
79311
79312         * MODULES.html.sh: Add gendocs.
79313
79314 2006-07-11  Eric Blake  <ebb9@byu.net>
79315
79316         * modules/fdl: New module, to install doc/fdl.texi.
79317         * MODULES.html.sh: Add new section for documentation modules.
79318         * gnulib-tool: Avoid space-tab.
79319         (--doc-base): New option, to manage files from doc.
79320
79321 2006-07-11  Eric Blake  <ebb9@byu.net>
79322
79323         * m4/absolute-header.m4: Fix comments to match recent change.
79324
79325 2006-07-11  Eric Blake  <ebb9@byu.net>
79326
79327         * gnulib-tool: List --doc-base before --tests-base.
79328
79329 2006-07-11  Derek R. Price  <derek@ximbiot.com>
79330
79331         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
79332
79333 2006-07-11  Bruno Haible  <bruno@clisp.org>
79334
79335         * README: Mention where to put documentation.
79336
79337 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79338
79339         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
79340
79341 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
79342
79343         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
79344         to stdint.m4.
79345
79346 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
79347
79348         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
79349         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
79350         "no/such/file/stdint.h" when there is no such file, so that
79351         the resulting C code can be parsed by dodgy compilers.
79352         Problems reported by Bob Proulx.
79353
79354 2006-07-10  Derek R. Price  <derek@ximbiot.com>
79355
79356         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
79357         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
79358         macros into the GNU _D_EXACT_NAMLEN.
79359         * lib/savedir.c:  Likewise.
79360         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
79361
79362 2006-07-10  Derek R. Price  <derek@ximbiot.com>
79363         and Paul Eggert  <eggert@cs.ucla.edu>
79364
79365         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
79366         * m4/savedir.m4:
79367         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
79368         macros into the GNU _D_EXACT_NAMLEN.
79369
79370 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79371
79372         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
79373         around the absolute name, to work around a problem with the HP-UX
79374         11.23 native C compiler, reported by Bob Proulx.
79375
79376 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79377
79378         * doc/maintain.texi, make-stds.texi: Sync from
79379         <http://savannah.gnu.org/projects/gnustandards>.
79380
79381 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
79382
79383         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
79384
79385 2006-07-09  Jim Meyering  <jim@meyering.net>
79386
79387         * m4/glob.m4: Remove a doubled word in a comment.
79388
79389 2006-07-09  Jim Meyering  <jim@meyering.net>
79390
79391         * lib/argp-pv.c: Remove a doubled word in a comment.
79392         * lib/check-version.c (check_version): Likewise.
79393         * lib/javacomp.c (compile_java_class): Likewise.
79394
79395 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
79396
79397         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
79398         for the benefit of people using Autoconf 2.60.  If you want to
79399         support older Autoconf versions you can copy m4/onceonly_2_57.m4
79400         (or m4/onceonly.m4, if pre-2.57) manually.
79401
79402 2006-07-08  Jim Meyering  <jim@meyering.net>
79403
79404         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
79405         comment.
79406         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
79407         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
79408         comment.
79409
79410 2006-07-08  Jim Meyering  <jim@meyering.net>
79411
79412         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
79413
79414 2006-07-07  Simon Josefsson  <jas@extundo.com>
79415
79416         * tests/test-crc.c: Change expected crc value, the test vector
79417         were probably computed using the old broken crc.c?
79418
79419 2006-07-06  Simon Josefsson  <jas@extundo.com>
79420
79421         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
79422         now the canonical place for the M4 file).
79423
79424         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
79425         from the sys_socket dependency now.
79426
79427         * modules/inet_pton (Files): Ditto.
79428
79429         * modules/inet_ntop (Files): Ditto.
79430
79431 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
79432
79433         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
79434         not gl_PREREQ_GETUSERSHELL.
79435
79436 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79437
79438         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
79439         with only one argument, for Autoconf 2.60.
79440         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
79441         expand to nothing, so add a shell command to avoid syntax error.
79442         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
79443
79444 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79445
79446         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
79447
79448 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79449
79450         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
79451         no longer needed.  Check for isblank decl.
79452         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
79453         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
79454         of existence.
79455
79456 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79457
79458         * lib/getloadavg.c: Use __VMS, not VMS.
79459         * lib/getopt.c: Likewise.
79460         * lib/getpagesize.h: Likewise.
79461         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
79462         and probably does not work.
79463
79464 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
79465
79466         * lib/.cppi-disable: Add wcwidth.
79467         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
79468         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
79469         (ISGRAPH): Remove.  All uses changed to isgraph.
79470         (FOLD) [!defined _LIBC]: Remove special case.
79471         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
79472         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
79473         HAVE_ISBLANK.
79474         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
79475         case.
79476
79477 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
79478
79479         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
79480         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
79481         brackets.  Other minor changes to suppress some compiler
79482         warnings.
79483
79484 2006-07-06  Derek R. Price  <derek@ximbiot.com>
79485         and Paul Eggert  <eggert@cs.ucla.edu>
79486
79487         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
79488         of invoking obsolescent AC_HEADER_DIRENT macro.
79489         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
79490         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
79491         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
79492         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
79493         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
79494         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
79495         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
79496         * m4/readdir.m4: Remove; no longer needed.
79497
79498 2006-07-06  Derek R. Price  <derek@ximbiot.com>
79499         and Paul Eggert  <eggert@cs.ucla.edu>
79500
79501         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
79502         Don't worry about this obsolete case any more.
79503         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
79504         directories.
79505         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
79506         worry about this obsolete case any more.
79507         * lib/fts.c: Likewise.
79508         * lib/getcwd.c: Likewise.
79509         * lib/glob.h: Likewise.
79510         * lib/savedir.c: Likewise.
79511
79512 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79513
79514         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
79515         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
79516         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
79517         needed.
79518         All uses removed.
79519         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79520         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
79521         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
79522         needed.
79523         * m4/getdate.m4 (gl_GETDATE): Likewise.
79524         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
79525         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
79526         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
79527         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79528         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
79529         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79530         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
79531         needed.
79532
79533 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
79534
79535         * lib/memcasecmp.c: Include <limits.h>.
79536         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
79537         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
79538         Don't assume isdigit succeeds only on '0' through '9'.
79539
79540 2006-07-05  Eric Blake  <ebb9@byu.net>
79541
79542         * modules/getaddrinfo (Depends-on): Add snprintf.
79543
79544 2006-07-05  Eric Blake  <ebb9@byu.net>
79545
79546         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
79547         to avoid 'header present but could not be compiled' on cygwin.
79548
79549 2006-07-05  Eric Blake  <ebb9@byu.net>
79550
79551         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
79552         missing from netdb.h.
79553         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
79554
79555 2006-07-05  Derek R. Price  <derek@ximbiot.com>
79556
79557         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
79558         no longer needed.
79559         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
79560         * m4/getdate.m4 (gl_GETDATE): Likewise.
79561         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
79562         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
79563         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
79564         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
79565         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
79566
79567 2006-07-05  Derek R. Price  <derek@ximbiot.com>
79568
79569         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
79570         All uses of is_space replaced by isspace.
79571         * lib/exit.h: Don't talk about STDC_HEADERS.
79572         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
79573         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
79574         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
79575         replaced by isprint etc.
79576         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
79577         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
79578         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
79579         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
79580         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
79581         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
79582
79583 2006-07-05  Bruno Haible  <bruno@clisp.org>
79584
79585         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
79586         the function exists, before testing against AIX.
79587         Reported by Martin Lambers <marlam@marlam.de>.
79588
79589 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
79590
79591         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
79592         From Mark D. Baushke.
79593
79594 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
79595
79596         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
79597         to the absolute name, not just one, to bypass Sun C 5.8's
79598         "warning: #include of /usr/include/... may be non-portable".
79599
79600 2006-07-04  Eric Blake  <ebb9@byu.net>
79601
79602         * modules/dirname-tests: New test module.
79603         * tests/test-dirname.c: New file, replacing dirname.c
79604         TEST_DIRNAME section that was recently deleted.
79605
79606 2006-07-04  Bruno Haible  <bruno@clisp.org>
79607
79608         Assume ANSI C header files and <ctype.h> functions.
79609         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
79610         (mbsnwidth): Use isprint, iscntrl instead.
79611
79612 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79613
79614         Merge from coreutils.
79615         * MODULES.html.sh: Add xstrtold.
79616         * modules/xstrtold: New file.
79617         * modules/cycle-check (Files): Add lib/same-inode.h.
79618         * modules/dirname (Files): Add m4/double-slash-root.m4.
79619         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
79620         * modules/mkdir-p (Files): Add lib/same-inode.h.
79621         * modules/same (Files): Add lib/same-inode.h.
79622
79623 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79624
79625         * m4/absolute-header.m4: Renamed from full-header-path.m4.
79626         This is to keep the terminology clean; POSIX talks about
79627         "absolute pathnames", not "full pathnames", but the GNU
79628         Coding Standards say to use "path" for something else;
79629         so use "absolute" to keep both sides happy.
79630         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
79631         Set gl_absolute_header, not gl_full_header_path.
79632         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
79633         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
79634         All uses changed.
79635
79636         Merge from coreutils.
79637
79638         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
79639
79640         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
79641         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
79642         want to require the building of c-strtod.o.
79643         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
79644         needs -lm directly.
79645         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
79646
79647         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
79648
79649         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
79650         --as-needed option if available.  Problem reported by Albert Chin in
79651         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
79652         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
79653         cc merely issues a bunch of annoying warnings for --as-needed
79654         (this problem was reported by Bob Proulx).  Also, try linking with
79655         -lm to detect a bug in binutils 2.16 (this problem was reported
79656         by Ralf Wildenhues).
79657
79658         2006-06-18  Jim Meyering  <jim@meyering.net>
79659
79660         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
79661         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
79662         macro.
79663         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
79664         also check for glibc-2.4's abort-inducing bug.
79665
79666         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
79667         Low-probability clean-up should be to use rmdir to get rid of
79668         the just-created directory, not unlink.
79669
79670         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
79671         configure fail, and request a bug report to inform us about it.
79672         Add a comment that, barring reports to the contrary, in 2007 we'll
79673         assume ftruncate is universally available.
79674
79675         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
79676
79677         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
79678
79679         2006-03-12  Jim Meyering  <jim@meyering.net>
79680
79681         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
79682         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
79683         * m4/same.m4 (gl_SAME): Likewise.
79684         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
79685
79686         2006-03-11  Eric Blake  <ebb9@byu.net>
79687
79688         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
79689         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
79690         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
79691         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
79692
79693 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
79694
79695         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
79696         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
79697         reported by Mark D. Baushke, one in
79698         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
79699
79700         Merge from coreutils.
79701
79702         * lib/.cppi-disable: Add stdint_.h.
79703         * lib/.cvsignore: Add stdint.h.
79704
79705         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
79706
79707         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
79708         both double and long double versions.
79709         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
79710         * lib/xstrtold.c: New file.
79711         * lib/xstrtod.h (xstrtold): New decl.
79712
79713         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
79714
79715         * lib/filemode.c (setst): Remove.
79716         (strmode): Rewrite to avoid setst.  This makes the code shorter,
79717         (arguably) clearer, and the generated code is a bit smaller on my
79718         Debian GNU/Linux stable x86 host.
79719
79720         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
79721
79722         * lib/filemode.c: Include "filemode.h" first, to test the interface.
79723         Assume that filemode.h includes sys/types.h and sys/stat.h.
79724         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
79725         (ftypelet): Reorder to put common cases first, for efficiency.
79726         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
79727         to do 'M'.
79728         (strmode): Renamed from mode_string, and now stores 12 bytes instead
79729         of 10, for compatibility with FreeBSD.  All callers changed.
79730         (filemodestring): Now stores 12 bytes instead of 10, and sets file
79731         types that can't be deduced solely from st_mode.  First arg is now a
79732         const pointer.
79733         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
79734         (strmode): Renamed from mode_string.
79735         (filemodestring): New decl.
79736         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
79737         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
79738         needed.
79739         (S_ISPORT, S_ISWHT): New macros, if not already defined.
79740
79741         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
79742
79743         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
79744         fsusage.h now does that.  Include fsusage.h first, to test interface.
79745         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
79746         at most one method (the old code could have generated decls that
79747         didn't conform to C89, not that this was ever exercised).
79748         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
79749
79750         2006-03-19  Jim Meyering  <jim@meyering.net>
79751
79752         Work even in a chroot where d_ino values for entries in "/"
79753         don't match the stat.st_ino values for the same names.
79754         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
79755         number, iterate through all entries again, using lstat instead.
79756         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
79757         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
79758
79759         * lib/getcwd.c (__getcwd): Clarify a comment.
79760         Use memcpy in place of a call to strcpy.
79761
79762         2006-03-12  Jim Meyering  <jim@meyering.net>
79763
79764         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
79765         matches that of the current directory (which we're about to chdir ".."
79766         out of), then save the dev-ino of the parent, instead.
79767
79768         * lib/same-inode.h (SAME_INODE): New file/macro.
79769         * lib/chdir-safer.c (SAME_INODE): Remove definition.
79770         Include "same-inode.h", instead.
79771         * lib/same.c: Likewise.
79772         * lib/cycle-check.h: Include "same-inode.h".
79773         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
79774         * lib/cycle-check.c (SAME_INODE): Remove definition.
79775         * lib/root-dev-ino.h: Include "same-inode.h".
79776
79777         2006-03-11  Eric Blake  <ebb9@byu.net>
79778
79779         * lib/same.c (same_name): s/base_name/last_component/
79780         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
79781         * lib/filenamecat.c (file_name_concat): Likewise.
79782
79783         2006-03-11  Eric Blake  <ebb9@byu.net>,
79784                     Paul Eggert  <eggert@cs.ucla.edu>
79785
79786         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
79787         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
79788         drive prefix.
79789         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
79790         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
79791         (last_component): New method.
79792         * lib/dirname.c (dir_len): Determine when drive letters need a
79793         subsequent slash.  Preserve // when it is special.
79794         (dir_name): Don't append dot when drive letter is absolute.
79795         [TEST_DIRNAME]: Move into a full-blown gnulib test.
79796         * lib/basename.c (base_name): New semantics - malloc the result.
79797         Preserve // when it is special.  Preserve relative files that look
79798         like drive letters.
79799         (base_len): Preserve // when it is special.
79800         (last_component): New method, similar to old base_name semantics.
79801         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
79802         base_name.  Strip redundant slashes from ///.
79803
79804 2006-07-03  Jim Meyering  <jim@meyering.net>
79805
79806         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
79807         macro is used before the first cycle_check call.
79808
79809 2006-07-03  Eric Blake  <ebb9@byu.net>
79810
79811         * modules/dirname (Depends-on): Add xstrndup.
79812
79813 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
79814
79815         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
79816         test cases, so that config.log is a bit easier to follow.
79817
79818 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
79819
79820         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
79821         both are 64 bits, since this seems to be the tradition, and this
79822         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
79823         we ever run into a host that prefers long long to long in this
79824         case, we'll need another configure-time test.  Problem reported by
79825         Jim Meyering.
79826
79827 2006-07-02  Eric Blake  <ebb9@byu.net>
79828
79829         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
79830
79831 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79832
79833         * modules/inttypes (Depends-on): No longer depends on stdint.
79834         * modules/stdint (Description): Say more about assumptions.
79835         Say that the fast types might differ.  Say macros are used.
79836         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
79837         (Makefile.am): Revise list of substituted symbols to match
79838         new stdint.m4.
79839         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
79840         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
79841         * tests/test-stdint.c (verify_same_types)
79842         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
79843         the code conforms to C99/C89.
79844         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
79845         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
79846
79847 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79848
79849         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
79850         but fix a bug, by requiring at least 64 bits.
79851         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
79852         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
79853         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
79854         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
79855
79856         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
79857         changes.  Make 2.59 a prerequisite.  Check and substitute for
79858         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
79859         inttypes.h.  Do not use special include files; just use the
79860         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
79861         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
79862         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
79863         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
79864         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
79865         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
79866         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
79867         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
79868         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
79869         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
79870         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
79871         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
79872         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
79873         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
79874         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
79875         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
79876         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
79877         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
79878         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
79879         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
79880         WINT_MAX.  Check for C99 conformance more strictly, by detecting
79881         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
79882         not check for things that C99 does not require, e.g., int8_t.  If
79883         a test isn't needed unless <stdint.h> isn't working, and is
79884         unlikely to be needed for any other reason, then don't do it
79885         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
79886         size_t, since we assume C89 freestanding at least.  Do not check
79887         for sig_atomic_t, wchar_t, or wint_t, since the code now does
79888         the right thing even if the types are not defined.  Instead use:
79889         (gl_STDINT_TYPE_PROPERTIES): New macro.
79890         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
79891         testing whether <sys/types.h> clashes, as Autoconf does this for
79892         us now.  All uses removed.
79893         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
79894         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
79895         (gl_CHECK_TYPE_SAME):
79896         Remove; no longer needed.
79897         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
79898         exists, since we'll return 0 anyway in that case.
79899         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
79900
79901 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
79902
79903         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
79904         possible collision with system files.
79905         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
79906         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
79907         WCHAR_MIN and WCHAR_MAX in this case.
79908         (<stddef.h>): Do not include; no longer needed.
79909         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
79910         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
79911         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
79912         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
79913         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
79914         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
79915         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
79916         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
79917         !defined(__c99))]: Include in this case too, since it's harmless
79918         now.
79919         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
79920         dangerous to do so.
79921         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
79922         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
79923         (_STDINT_MIN, _STDINT_MAX): New macros.
79924         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
79925         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
79926         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
79927         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
79928         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
79929         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
79930         macros, not typedefs; this simplifies things quite a bit.
79931         Use long int for all types narrower than int64_t.
79932         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
79933         Define in terms of long long int or int64_t or long int,
79934         not int64_t or int32_t.  This saves some compile-time testing.
79935         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
79936         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
79937         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
79938         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
79939         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
79940         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
79941         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
79942         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
79943         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
79944         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
79945         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
79946         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
79947         undef any previous version and define our own version, for
79948         simplicity and consistency with the new macros for types.
79949         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
79950         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
79951         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
79952         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
79953         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
79954         @WINT_T_SUFFIX@ to keep things simple here.
79955         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
79956         Simplify by assuming typical 8/16/32/64 host, since we're
79957         already doing that elsewhere anyway.
79958         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
79959         and assume long long int is 64 bits if available.  This
79960         speeds up 'configure'.
79961
79962 2006-07-01  Eric Blake  <ebb9@byu.net>
79963
79964         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
79965         Reported by Andreas Buening.
79966
79967 2006-07-01  Eric Blake  <ebb9@byu.net>
79968
79969         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
79970
79971 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
79972
79973         * lib/getaddrinfo.c: fixed typo
79974
79975 2006-06-29  Jim Meyering  <jim@meyering.net>
79976
79977         * modules/strftime (Maintainer): Add my name, since with the
79978         FPRINTFTIME changes strftime.c has forked from glibc.
79979
79980 2006-06-29  Eric Blake  <ebb9@byu.net>
79981
79982         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
79983
79984 2006-06-29  Eric Blake  <ebb9@byu.net>
79985
79986         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
79987
79988 2006-06-29  Eric Blake  <ebb9@byu.net>
79989
79990         * lib/stat_.h: New file.
79991
79992 2006-06-29  Eric Blake  <ebb9@byu.net>
79993
79994         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
79995         unused static function.
79996
79997 2006-06-29  Eric Blake  <ebb9@byu.net>
79998
79999         * doc/functions.texi (Function Portability): Document missing lstat
80000         on mingw.
80001
80002 2006-06-29  Eric Blake  <ebb9@byu.net>
80003
80004         * MODULES.html.sh: Add sys_stat.
80005         * modules/sys_stat: New module.
80006         * modules/mkstemp (Depends-on): Add sys_stat.
80007
80008 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80009
80010         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
80011
80012 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80013
80014         * m4/c-bs-a.m4: Removed.
80015
80016 2006-06-29  Derek R. Price  <derek@ximbiot.com>
80017
80018         * lib/strftime.c: Assume strftime() exists.
80019
80020 2006-06-29  Derek Price  <derek@ximbiot.com>
80021
80022         * modules/c-bs-a: Removed - \a is C89.
80023         * MODULES.html.sh: Remove c-bs-a.
80024
80025 2006-06-29  Bruno Haible  <bruno@clisp.org>
80026
80027         * modules/wcwidth (License): Change to LGPL.
80028
80029 2006-06-28  Simon Josefsson  <jas@extundo.com>
80030
80031         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
80032         on _WIN32.
80033
80034         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
80035         getnameinfo.
80036
80037 2006-06-28  Simon Josefsson  <jas@extundo.com>
80038
80039         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
80040
80041 2006-06-28  Simon Josefsson  <jas@extundo.com>
80042
80043         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
80044         functions there.  It will succeed on Windows XP, but on Windows
80045         2000 and (presumably) earlier, it will fail, and use the internal
80046         re-implementation.
80047         (use_win32_p): New function.
80048         (getaddrinfo): Use strtoul on servname, to support numeric ports.
80049         Support AI_NUMERICSERV to disable getservbyname.
80050         (getnameinfo): New function, only supports
80051         NI_NUMERICHOST|NI_NUMERICSERV for now.
80052
80053         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
80054         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
80055         getnameinfo.
80056
80057 2006-06-28  Eric Blake  <ebb9@byu.net>
80058
80059         * modules/wcwidth: New file.
80060         * modules/mbchar (Depends-on): Add wcwidth.
80061         * modules/mbswidth (Depends-on): Add wcwidth.
80062         * MODULES.html.sh: Add wcwidth.
80063
80064 2006-06-28  Eric Blake  <ebb9@byu.net>
80065
80066         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
80067         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
80068
80069 2006-06-28  Eric Blake  <ebb9@byu.net>
80070
80071         * lib/xvasprintf.h: Fix comments.
80072
80073 2006-06-28  Eric Blake  <ebb9@byu.net>
80074
80075         * lib/mbchar.h (wcwidth): Include wcwidth.h.
80076         * lib/mbswidth.c (wcwidth): Move from here...
80077         * lib/wcwidth.h: ...to this new file.
80078
80079 2006-06-28  Derek R. Price  <derek@ximbiot.com>
80080
80081         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
80082
80083         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
80084         it's obsolete.
80085         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
80086
80087 2006-06-28  Derek R. Price  <derek@ximbiot.com>
80088
80089         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
80090         Autoconf 2.60 says this stuff was obsolete.
80091
80092 2006-06-28  Bruno Haible  <bruno@clisp.org>
80093
80094         * modules/wcwidth (Files): Add m4/wchar_t.m4.
80095
80096 2006-06-28  Bruno Haible  <bruno@clisp.org>
80097
80098         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
80099         gt_TYPE_WCHAR_T.
80100
80101 2006-06-28  Bruno Haible  <bruno@clisp.org>
80102
80103         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
80104         declaration for wcwidth.
80105         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
80106
80107 2006-06-28  Bruno Haible  <bruno@clisp.org>
80108
80109         * lib/mkdtemp.c [MINGW]: Include <io.h>.
80110         (mkdir): Define using _mkdir.
80111
80112 2006-06-28  Bruno Haible  <bruno@clisp.org>
80113
80114         * lib/getaddrinfo.h: Fix POSIX URL.
80115         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
80116         _WIN32.
80117         (use_win32_p): Make static.
80118         (getaddrinfo): Reject service name if it is empty or does not consist
80119         solely of decimal digits, or if its value is > 65535.
80120         (getnameinfo): Remove useless casts.
80121
80122 2006-06-27  Simon Josefsson  <jas@extundo.com>
80123
80124         * modules/sys_select: New file, suggested by Bruno Haible, Paul
80125         Eggert and Martin Lambers.
80126
80127 2006-06-27  Simon Josefsson  <jas@extundo.com>
80128
80129         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
80130         Eggert and Martin Lambers.
80131
80132 2006-06-27  Bruno Haible  <bruno@clisp.org>
80133
80134         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
80135         result to 0, not to empty.
80136         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
80137
80138 2006-06-27  Bruno Haible  <bruno@clisp.org>
80139
80140         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
80141
80142 2006-06-26  Simon Josefsson  <jas@extundo.com>
80143
80144         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
80145         present.
80146
80147 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
80148
80149         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
80150         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
80151         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
80152
80153 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
80154
80155         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
80156
80157 2006-06-26  Bruno Haible  <bruno@clisp.org>
80158
80159         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
80160
80161 2006-06-26  Bruno Haible  <bruno@clisp.org>
80162
80163         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
80164
80165 2006-06-26  Bruno Haible  <bruno@clisp.org>
80166
80167         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
80168         SGI C compiler in pre-C99 mode.
80169         Suggested by Mark D. Baushke and Larry Jones.
80170
80171 2006-06-26  Bruno Haible  <bruno@clisp.org>
80172
80173         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
80174         WCHAR_MAX.
80175         Reported by Mark D. Baushke and Larry Jones.
80176
80177 2006-06-26  Bruno Haible  <bruno@clisp.org>
80178
80179         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
80180         in pre-C99 mode.
80181         Suggested by Mark D. Baushke and Larry Jones.
80182
80183 2006-06-23  Simon Josefsson  <jas@extundo.com>
80184             Bruno Haible  <bruno@clisp.org>
80185
80186         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
80187         Emit mostlyclean-local rule.
80188         (func_emit_tests_Makefile_am): Likewise.
80189         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
80190
80191 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
80192
80193         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
80194
80195 2006-06-23  Bruno Haible  <bruno@clisp.org>
80196
80197         * tests/test-stdint.c: Update to match ISO C 99 Technical
80198         Corrigendum 1.
80199
80200 2006-06-23  Bruno Haible  <bruno@clisp.org>
80201
80202         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
80203
80204 2006-06-23  Bruno Haible  <bruno@clisp.org>
80205
80206         * lib/stdint_.h: Treat IRIX like OpenBSD.
80207
80208 2006-06-23  Bruno Haible  <bruno@clisp.org>
80209
80210         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
80211         ISO C 99 Technical Corrigendum 1.
80212
80213 2006-06-22  Simon Josefsson  <jas@extundo.com>
80214
80215         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
80216         MinGW.
80217
80218 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
80219
80220         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
80221         needed.  Some compiler complained about some of them.  Problem reported
80222         by Larry Jones in
80223         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
80224
80225 2006-06-21  Simon Josefsson  <jas@extundo.com>
80226
80227         * tests/test-getaddrinfo.c: New file.
80228
80229         * modules/getaddrinfo-tests: New file.
80230
80231         * MODULES.html.sh: Add inet_pton.
80232
80233         * modules/inet_pton: New file.
80234
80235 2006-06-21  Simon Josefsson  <jas@extundo.com>
80236
80237         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
80238         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
80239         of using the (limited) gnulib implementation on Windows XP.
80240
80241         * m4/inet_pton.m4: New file.
80242
80243 2006-06-21  Simon Josefsson  <jas@extundo.com>
80244
80245         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
80246         variable.
80247
80248         * lib/socket_.h: Don't define WINVER.
80249
80250         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
80251         slightly modified to work in gnulib.
80252
80253 2006-06-21  Simon Josefsson  <jas@extundo.com>
80254
80255         * doc/gnulib.texi (Windows sockets): Add.
80256
80257 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
80258
80259         * lib/read-file.c (fread_file): Start with buffer allocation of
80260         0 bytes rather than 1 byte; this simplifies the code.
80261         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
80262         code to free buffer and save/restore errno.
80263         (internal_read_file): Remove unused local.
80264
80265 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
80266
80267         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
80268         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
80269         Problem reported by Denis Excoffier in
80270         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
80271
80272 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
80273
80274         * modules/sys_socket, modules/socklen: Include sys/types since
80275         FreeBSD 4.x's sys/socket.h needs it.
80276
80277 2006-06-19  Simon Josefsson  <jas@extundo.com>
80278
80279         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
80280
80281 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
80282
80283         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
80284
80285 2006-06-19  Bruno Haible  <bruno@clisp.org>
80286
80287         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
80288         and FULL_PATH_INTTYPES_H in angle brackets.
80289         Reported by Mark D. Baushke <mdb@gnu.org>.
80290
80291 2006-06-17  Eric Blake  <ebb9@byu.net>
80292
80293         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
80294         errno.
80295
80296 2006-06-17  Bruno Haible  <bruno@clisp.org>
80297
80298         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
80299         <sys/inttypes.h>.
80300
80301 2006-06-17  Bruno Haible  <bruno@clisp.org>
80302
80303         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
80304         whether errno is declared. Assume <errno.h> declares errno.
80305
80306 2006-06-17  Bruno Haible  <bruno@clisp.org>
80307
80308         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
80309
80310 2006-06-17  Bruno Haible  <bruno@clisp.org>
80311
80312         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
80313         problem on Solaris 2.5.1.
80314
80315 2006-06-16  Eric Blake  <ebb9@byu.net>
80316
80317         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
80318         * lib/unicodeio.c [!defined errno]: Likewise.
80319         * lib/strtol.c [!defined errno]: Likewise.
80320         * lib/strtod.c [!defined errno]: Likewise.
80321
80322 2006-06-15  Eric Blake  <ebb9@byu.net>
80323
80324         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
80325
80326 2006-06-15  Eric Blake  <ebb9@byu.net>
80327
80328         * config/srclist.txt (ssize_t.m4): Lose sync.
80329
80330 2006-06-15  Bruno Haible  <bruno@clisp.org>
80331
80332         * modules/stdint (Files): Include m4/full-header-path.m4,
80333         m4/size_max.m4, m4/wchar_t.m4.
80334         (Makefile.am): Many more substitutions.
80335         * modules/stdint-tests: New file.
80336         * tests/test-stdint.c: New file.
80337
80338 2006-06-15  Bruno Haible  <bruno@clisp.org>
80339
80340         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
80341         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
80342         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
80343         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
80344         gl_CHECK_TYPE_SAME): New macros.
80345
80346 2006-06-15  Bruno Haible  <bruno@clisp.org>
80347
80348         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
80349
80350 2006-06-15  Bruno Haible  <bruno@clisp.org>
80351
80352         * lib/stdint_.h: Rewritten to be fully auto-configured.
80353         Fixes bug on HP-UX/IA64.
80354
80355 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
80356
80357         * lib/getdate.y (__attribute__): Don't define if already defined.
80358         Problem reported by Larry Jones.
80359         * lib/utimens.c (__attribute__): Likewise.
80360
80361 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
80362
80363         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
80364         reported by Andreas Schwab.
80365
80366 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80367             Bruno Haible  <bruno@clisp.org>
80368
80369         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
80370         check for the declaration of strnlen and a run test that exposes the
80371         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
80372         rpl_strndup.
80373
80374 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80375             Bruno Haible  <bruno@clisp.org>
80376
80377         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
80378
80379 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80380
80381         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
80382         compile test, for Tru64 4.0D.
80383
80384 2006-05-28  Karl Berry  <karl@gnu.org>
80385
80386         * config/srclist.txt (printf-args.c): lose sync.
80387
80388 2006-05-26  Martin Lambers  <marlam@marlam.de>
80389
80390         * lib/getpass.c: Updates the test for the native W32 API, and adds
80391         missing includes, thus fixing compilation warnings.
80392
80393 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
80394
80395         * lib/exclude.c (exclude_fnmatch): New function.
80396         (excluded_file_name): Call exclude_fnmatch.
80397         * lib/exclude.h (excluded_file_name): New prototype
80398
80399 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
80400
80401         * lib/tempname.c (small_open, large_open): New macros.
80402         (__open, __open64) [!_LIBC]: Remove.
80403         (__gen_tempname): Use small_open and large_open instead of __open
80404         and __open64.  This fixes a portability bug on HP-UX 11.11i
80405         reported by Simon Wing-Tang in
80406         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
80407
80408 2006-05-24  Bruno Haible  <bruno@clisp.org>
80409
80410         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
80411         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
80412         Reported by Thorsten Maerz <torte@netztorte.de> via
80413         Aaron Stone <aaron@serendipity.cx>.
80414
80415 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80416
80417         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
80418         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
80419         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
80420         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
80421         not really conditional on the cache.
80422         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
80423
80424 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
80425
80426         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
80427         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
80428         (my_usleep): Don't mishandle maximum value.
80429
80430 2006-05-19  Jim Meyering  <jim@meyering.net>
80431
80432         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
80433
80434 2006-05-17  Bruno Haible  <bruno@clisp.org>
80435
80436         Cygwin portability.
80437         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
80438
80439 2006-05-17  Bruno Haible  <bruno@clisp.org>
80440
80441         * lib/stdint_.h: Fix recognition of Cygwin.
80442
80443 2006-05-15  Bruno Haible  <bruno@clisp.org>
80444
80445         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
80446         on libtool patch by Ralf Wildenhues.
80447
80448 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
80449
80450         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
80451         test for C99 conformance; (bool) 0.5 is an integer constant
80452         expression, but (bool) -0.5 is not.  Problem reported by Fedor
80453         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
80454
80455 2006-05-11  Simon Josefsson  <jas@extundo.com>
80456
80457         * m4/xvasprintf.m4: Fix obvious typo.
80458
80459 2006-05-11  Jim Meyering  <jim@meyering.net>
80460
80461         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
80462         James Lemley.
80463
80464 2006-05-10  Simon Josefsson  <jas@extundo.com>
80465
80466         * lib/md4.c: Typo fix, update copyright years.
80467         (K1, K2): Don't use L because it turn computations into 64-bit on
80468         64-bit platforms.
80469
80470 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
80471
80472         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
80473         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
80474         unwanted sign propagation, e.g., on hosts with 64-bit int.
80475         There still are some problems with reeelly weird theoretical hosts
80476         (e.g., 33-bit int) but it's not worth worrying about now.
80477         * lib/sha1.c (rol): Likewise.
80478         (K1, K2, K3, K4): Remove unnecessary L suffix.
80479
80480 2006-05-10  Bruno Haible  <bruno@clisp.org>
80481
80482         * lib/des.c: Cast to avoid warnings.
80483
80484 2006-05-09  Bruno Haible  <bruno@clisp.org>
80485
80486         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
80487         (Depends-on): Depend also on xsize, stdarg.
80488         (configure.ac): Add gl_XVASPRINTF.
80489
80490 2006-05-09  Bruno Haible  <bruno@clisp.org>
80491
80492         * m4/xvasprintf.m4: New file.
80493
80494 2006-05-09  Bruno Haible  <bruno@clisp.org>
80495
80496         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
80497         (EOVERFLOW): Define fallback value.
80498         (xstrcat): New function.
80499         (xvasprintf): Recognize the special case of a string concatenation.
80500
80501 2006-05-08  Eric Blake  <ebb9@byu.net>
80502
80503         * gnulib-tool (func_version): Base copyright year on CVS date.
80504         (func_emit_copyright_notice): New function.
80505         (func_emit_lib_Makefile_am): Use it.
80506         (func_emit_tests_Makefile_am): Likewise.
80507         (func_import): Likewise.
80508
80509 2006-05-08  Bruno Haible  <bruno@clisp.org>
80510
80511         * modules/stdarg: New file.
80512         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
80513
80514 2006-05-08  Bruno Haible  <bruno@clisp.org>
80515
80516         * m4/stdarg.m4: New file, from GNU gettext.
80517
80518 2006-05-08  Bruno Haible  <bruno@clisp.org>
80519
80520         * config/srclist.txt (build-aux/config.rpath): different from latest
80521         release.
80522
80523 2006-05-08  Bruno Haible  <bruno@clisp.org>
80524
80525         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
80526
80527 2006-05-05  Jim Meyering  <jim@meyering.net>
80528
80529         * m4/warning.m4: New file, derived from bison's file by the same name.
80530
80531 2006-05-03  Bruno Haible  <bruno@clisp.org>
80532
80533         * lib/stdint_.h: Shorter URL.
80534         * lib/inttypes.h: Likewise.
80535
80536 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80537
80538         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
80539
80540 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80541
80542         * lib/verify.h: Document the internals better.  Most of this change
80543         was written by Bruno Haible.
80544
80545 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
80546
80547         * doc/verify.texi: New file, partly based on a proposal by
80548         Bruno Haible.
80549
80550 2006-05-02  Bruno Haible  <bruno@clisp.org>
80551
80552         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
80553         test from here...
80554         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
80555
80556 2006-04-29  Bruno Haible  <bruno@clisp.org>
80557
80558         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
80559         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
80560
80561 2006-04-29  Bruno Haible  <bruno@clisp.org>
80562
80563         * gnulib-tool: Make --update option actually work.
80564
80565 2006-04-29  Bruno Haible  <bruno@clisp.org>
80566
80567         * doc/gcd.texi: New file.
80568         * doc/gnulib.texi: Include it.
80569
80570 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
80571
80572         * lib/getdate.y (get_date): When adding relative date, start with the
80573         initial time, not with the result of the first mktime call.
80574
80575 2006-04-25  Bruno Haible  <bruno@clisp.org>
80576
80577         * gnulib-tool (func_import): Output the include directives in three
80578         blocks, sorted separately.
80579         Reported by Ben Pfaff <blp@cs.stanford.edu>.
80580
80581 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
80582
80583         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
80584         to define main with arguments, for C++.  Reported by Eric Blake.
80585         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
80586         Prefer 'int main ()' to 'int main (void)', for C++.
80587         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
80588         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
80589         for 'main', for C99 and C++.
80590
80591 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
80592
80593         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
80594         Don't assume that exit status -1 is valid.
80595         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
80596         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
80597         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
80598         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
80599         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
80600         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
80601         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
80602         functions can be used without declaring them, or that you can
80603         exit with status -1.
80604         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
80605
80606 2006-04-24  Karl Berry  <karl@gnu.org>
80607
80608         * config/srclist.txt (longdouble.m4): sync lost.
80609
80610 2006-04-24  Eric Blake  <ebb9@byu.net>
80611
80612         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
80613
80614 2006-04-24  Bruno Haible  <bruno@clisp.org>
80615
80616         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
80617         poll() implementation in AIX.
80618         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80619
80620 2006-04-24  Bruno Haible  <bruno@clisp.org>
80621
80622         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
80623         assigned exactly once.
80624
80625 2006-04-23  Claudio Fontana  <claudio@gnu.org>
80626             Bruno Haible  <bruno@clisp.org>
80627
80628         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
80629         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
80630         for AM_CPPFLAGS.
80631
80632 2006-04-23  Bruno Haible  <bruno@clisp.org>
80633
80634         * modules/copy-file: Depend on unistd.
80635         * modules/execute: Likewise.
80636         * modules/fatal-signal: Likewise.
80637         * modules/findprog: Likewise.
80638         * modules/mkdtemp : Likewise.
80639         * modules/pipe: Likewise.
80640         * modules/wait-process: Likewise.
80641
80642 2006-04-23  Bruno Haible  <bruno@clisp.org>
80643
80644         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
80645         condition was already detected.
80646         Reported by Ben Pfaff <blp@cs.stanford.edu>.
80647
80648 2006-04-23  Bruno Haible  <bruno@clisp.org>
80649
80650         * lib/copy-file.c: Include <unistd.h> unconditionally.
80651         * lib/execute.c: Likewise.
80652         * lib/fatal-signal.c: Likewise.
80653         * lib/findprog.c: Likewise.
80654         * lib/mkdtemp.c: Likewise.
80655         * lib/pipe.h: Likewise.
80656         * lib/pipe.c: Likewise.
80657         * lib/wait-process.h: Likewise.
80658
80659 2006-04-23  Bruno Haible  <bruno@clisp.org>
80660
80661         * gnulib-tool (func_usage): Fix --import description. Document
80662         --update.
80663         (func_import): Create temporary file in a temporary directory, if
80664         --dry-run is specified. Silence errors from 'grep' when there are no
80665         m4 files in $m4dir.
80666         (func_create_testdir): Silence errors from 'grep' when there are no
80667         m4 files in $m4dir.
80668         Reported by Karl Berry <karl@freefriends.org>.
80669
80670 2006-04-20  Bruno Haible  <bruno@clisp.org>
80671
80672         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
80673         one argument, so that the code will be portable to Autoconf 2.60.
80674         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
80675         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
80676         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
80677
80678 2006-04-19  Derek Price  <derek@ximbiot.com>
80679             Eric Blake  <ebb9@byu.net>
80680
80681         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
80682         rather than "/full/path.h".  Update comment to match.  Shorten &
80683         generalize m4_translit call via AS_TR_CPP.
80684
80685 2006-04-19  Derek Price  <derek@ximbiot.com>
80686             Eric Blake  <ebb9@byu.net>
80687
80688         * lib/inttypes.h: Correct grammar in comment.
80689
80690 2006-04-18  Derek Price  <derek@ximbiot.com>
80691             Paul Eggert  <eggert@cs.ucla.edu>
80692
80693         * modules/inttypes: New file.
80694         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
80695
80696 2006-04-18  Derek Price  <derek@ximbiot.com>
80697             Paul Eggert  <eggert@cs.ucla.edu>
80698
80699         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
80700         New files.
80701
80702 2006-04-18  Derek Price  <derek@ximbiot.com>
80703             Paul Eggert  <eggert@cs.ucla.edu>
80704
80705         * lib/inttypes.h: New file.
80706         * lib/strtoimax.c: Assume <inttypes.h>.
80707
80708 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
80709
80710         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
80711         isn't mounted.  Problem reported by Kir Kolyshkin.
80712
80713 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
80714
80715         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
80716         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
80717         Derek R. Price.
80718         * lib/regex.h (RE_DUP_MAX): Update comment to match current
80719         implementation.
80720
80721 2006-04-12  Eric Blake  <ebb9@byu.net>
80722
80723         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
80724         is now done automatically by the corresponding Autoconf macro.
80725
80726 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
80727
80728         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
80729         time_r.h.
80730
80731 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80732
80733         Merge regex changes from libc, removing some of our
80734         POSIX-conformance changes that were rejected and redoing them in a
80735         less-intrusive way.
80736
80737         * lib/regcomp.c (re_compile_internal, init_dfa):
80738         Length arg is now size_t, not Idx.  All uses changed.
80739         (peek_token): Forward decl now says internal_function.
80740         (__re_error_msgid, __re_error_msgid_idx):
80741         Now static rather than extern with attribute_hidden.
80742         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
80743         For some reason libc prefers K&R style defns for external functions.
80744         (regerror) [!defined _LIBC]: Likewise.
80745         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
80746         (seek_collating_symbol_entry, lookup_collation_sequence_value):
80747         (build_range_exp, build_collating_symbol):
80748         Use K&R-style defn.
80749         (re_compile_fastmap): Use '\0' to memset, not 0.
80750         (utf8_sb_map): Make the calculations more obvious.
80751         (init_dfa, parse_bracket_exp, build_charclass_op):
80752         Call calloc and cast result, as glibc does.
80753         (init_word_char, fetch_token, peek_token, peek_token_bracket):
80754         (build_range_exp, build_collating_symbol):
80755         Now internal functions.
80756
80757         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
80758
80759         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
80760         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
80761         Don't depend on VMS; depend on __VMS instead, for POSIX
80762         namespace cleanness.
80763         (regoff_t): Define to ssize_t, not long int.
80764
80765         Remove the REG_ macros named below.  Instead, make the old names
80766         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
80767         __USE_GNU_REGEX.
80768         (REG_BACKSLASH_ESCAPE_IN_LISTS):
80769         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
80770         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
80771         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
80772         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
80773         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
80774         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
80775         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
80776         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
80777         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
80778         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
80779         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
80780         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
80781         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
80782         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
80783         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
80784         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
80785         (REG_NREGS):
80786         Remove.  All uses replaced by the old RE_* names.
80787         (RE_BACKSLASH_ESCAPE_IN_LISTS):
80788         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
80789         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
80790         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
80791         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
80792         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
80793         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
80794         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
80795         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
80796         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
80797         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
80798         Don't bother having these macros be independent of each others'
80799         values, since they no longer exist in the POSIX name space.
80800
80801         Rename the following member names back to their old names,
80802         unless !__USE_GNU_REGEX.  All uses changed back.
80803         (buffer): Renamed from re_buffer.
80804         (allocated): Renamed from re_allocated.
80805         (used): Renamed from re_used.
80806         (syntax): Renamed from re_syntax.
80807         (fastmap): Renamed from re_fastmap.
80808         (translate): Renamed from re_translate.
80809         (can_be_null): Renamed from re_can_be_null.
80810         (regs_allocated): Renamed from re_regs_allocated.
80811         (fastmap_accurate): Renamed from re_fastmap_accurate.
80812         (no_sub): Renamed from re_no_sub.
80813         (not_bol): Renamed from re_not_bol.
80814         (not_eol): Renamed from re_not_eol.
80815         (newline_anchor): Renamed from re_newline_anchor.
80816         (num_regs): Renamed from rm_num_regs.
80817         (start): Renamed from rm_start.
80818         (end): Renamed from rm_end.
80819
80820         (free_state): Move up a bit.
80821
80822         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
80823         #define to be empty.
80824         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
80825         when that is what is intended.
80826         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
80827         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
80828         (MAX): New macro.
80829         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
80830         All uses changed back to re_malloc, etc.  It's now the caller's
80831         responsibility to check for overflow; all callers changed.
80832         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
80833         (re_x2nrealloc): Remove.
80834         (free_state): Remove decl.
80835
80836         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
80837         (re_set_registers, re_exec):
80838         Use K&R-style defn.
80839
80840         2006-01-31  Roland McGrath  <roland@redhat.com>
80841
80842         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
80843         Reported by Mike Frysinger <vapier@gentoo.org>.
80844
80845         2006-01-15  Andreas Jaeger  <aj@suse.de>
80846
80847         [BZ #1950]
80848         * lib/regex_internal.c (re_string_reconstruct): Adjust for
80849         build_wcs_upper_buffer change.
80850         (build_wcs_upper_buffer): Change return type.
80851
80852         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
80853
80854         * lib/regex_internal.h: Include <stdint.h> if available.
80855
80856         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
80857
80858         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
80859
80860         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
80861
80862         * lib/regcomp.c: Adjust for changed secondary hash function.
80863
80864         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
80865
80866         * lib/regex.h: Pretty printing.
80867         Clean up namespace a bit.
80868
80869         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
80870
80871         * lib/regexec.c (update_cur_sifted_state, check_arrival,
80872         check_arrival_add_next_nodes): Avoid using uninitialized variable.
80873
80874         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
80875                     Ulrich Drepper  <drepper@redhat.com>
80876
80877         [BZ #1302]
80878         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
80879         changed.
80880         (bitset_word_t): Renamed from bitset_word.  All uses changed.
80881
80882         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
80883
80884         [BZ #281]
80885         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
80886         * lib/regcomp.c: Remove unnecessary uses of
80887         unsigned RE_TRANSLATE_TYPE.
80888         * lib/regex_internal.h: Likewise.
80889         * lib/regex_internal.c: Likewise.
80890         * lib/regexec.c: Likewise.
80891         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
80892
80893         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
80894
80895         * lib/regexec.c (find_recover_state): Remove unnecessary
80896         initialization.
80897         (transit_state_bkref): Make DFA a const pointer.
80898         (get_subexp): Likewise.
80899         (check_arrival): Likewise.
80900         (update_cur_sifted_state): Likewise.
80901         (re_search_internal): Likewise.
80902         (prune_impossible_nodes): Likewise.
80903         (acquire_init_state_context): Likewise.
80904         (proceed_next_node): Likewise.
80905         (set_regs): Likewise.
80906         (free_fail_stack_return): Likewise.
80907         (check_arrival_expand_ecl): Mark DFA parameter as const.
80908         (check_arrival_expand_ecl_sub): Likewise.
80909         (check_subexp_limits): Likewise.
80910         (sub_epsilon_src_nodes):  Likewise.
80911         (add_epsilon_src_nodes):  Likewise.
80912         (merge_state_array): Likewise.
80913         (update_regs): Likewise.
80914         (build_trtable): Likewise.
80915         (sift_states_backward): Mark MCTX parameter as const.
80916         (build_sifted_states): Likewise.
80917         (update_cur_sifted_state): Likewise.
80918         (sift_states_mkref): Likewise.
80919         (check_arrival_expand_ecl): Mark eclosure as const.
80920         (check_dst_limits_calc_pos_1): Likewise.
80921         * lib/regex_internal.h (re_match_context_t): Make dfa a const
80922         pointer.
80923
80924         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
80925
80926         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
80927         (transit_state_sb): Likewise.
80928         (transit_state_mb): Likewise.
80929         (sift_states_iter_mb): Likewise.
80930         (check_arrival_add_next_nodes): Likewise.
80931         (check_node_accept_bytes): Change first parameter to pointer-to-const.
80932         [_LIBC] (re_search_2_stub): Use mempcpy.
80933
80934         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
80935         mbrtowc for very simple UTF-8 case.
80936
80937         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
80938         a pointer-to-const.
80939         (re_acquire_state_context): Likewise.
80940         * lib/regex_internal.h: Adjust prototypes.
80941
80942         * lib/regex.c: Prevent using C++ compilers.
80943
80944         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
80945         (re_acquire_state_context): Likewise.
80946
80947 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80948
80949         * modules/regex (Depends-on): Add ssize_t.
80950
80951 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80952
80953         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
80954         translation table.
80955
80956 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
80957
80958         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
80959
80960 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
80961             Bruno Haible  <bruno@clisp.org>
80962
80963         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
80964         <sys/types.h> and <inttypes.h>.
80965
80966 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80967
80968         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
80969         `__error_t_defined', so argp.h will not typedef the former.
80970
80971 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
80972
80973         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
80974         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
80975         glibc names.  Even if glibc is changed to conform to POSIX, the
80976         traditional names will be available anyway, since regex depends on
80977         the extensions module.  Also, fix a longstanding typo in the
80978         implementation of Spencer ERE test #75 from grep 2.3.  Problems
80979         reported by Emanuele Giaquinta.  Also, change sense of cached
80980         variable, so that the message makes sense.
80981
80982 2006-03-24  Simon Josefsson  <jas@extundo.com>
80983
80984         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
80985         including some doc fixes.
80986         (base64_encode_alloc): Fix +1 bug on allocation failures.
80987
80988 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80989
80990         * lib/base64.c (base64_encode): Do not read past end of array with
80991         unsanitized input on systems with CHAR_BIT > 8.
80992
80993 2006-03-24  Eric Blake  <ebb9@byu.net>
80994
80995         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
80996
80997 2006-03-22  Karl Berry  <karl@gnu.org>
80998
80999         * config/srclist.txt (*setenv.[ch]): get from coreutils.
81000         * config/srclistvars.sh (COREUTILS): new var.
81001
81002 2006-03-17  Jim Meyering  <jim@meyering.net>
81003
81004         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
81005         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
81006
81007 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
81008
81009         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
81010         no longer needs it.  Instead, check that regoff_t is as least
81011         as wide as ptrdiff_t.
81012
81013         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
81014         so that our regex.h stays compatible with the installed regex.
81015         This is helpful for installers who configure --without-included-regex.
81016         Problem reported by Emanuele Giaquinta.
81017
81018 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
81019
81020         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
81021         Typedef to long int, not to off_, as POSIX will likely change
81022         in that direction.
81023
81024 2006-03-15  Eric Blake  <ebb9@byu.net>
81025
81026         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
81027
81028 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
81029
81030         * lib/argp-help.c (validate_uparams): Fix typo
81031         * lib/argp-parse.c (argp_default_options): Consistently begin help
81032         messages with a lowercase letter.
81033
81034 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
81035
81036         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
81037         overrun buffers and shouldn't be used (much as gets shouldn't be
81038         used).
81039         * lib/time_r.c (asctime_r, ctime_r): Likewise.
81040
81041 2006-03-08  Simon Josefsson  <jas@extundo.com>
81042
81043         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
81044         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81045
81046 2006-03-08  Simon Josefsson  <jas@extundo.com>
81047
81048         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
81049         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81050
81051 2006-03-08  Simon Josefsson  <jas@extundo.com>
81052
81053         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
81054         signal that configure disabled the device.
81055
81056 2006-03-08  Simon Josefsson  <jas@extundo.com>
81057
81058         * build-aux/maint.mk: Fix refresh-po, to handle no translated
81059         languages.
81060
81061 2006-03-07  Simon Josefsson  <jas@extundo.com>
81062
81063         * modules/getopt (Depends-on): Add unistd.
81064
81065         * modules/unistd: New file.
81066
81067 2006-03-07  Simon Josefsson  <jas@extundo.com>
81068
81069         * modules/gc-random: New file.
81070
81071 2006-03-07  Simon Josefsson  <jas@extundo.com>
81072
81073         * m4/unistd_h.m4: New file.
81074
81075 2006-03-07  Simon Josefsson  <jas@extundo.com>
81076
81077         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
81078         test to be side-effect free by storing the result in the cache
81079         variable gl_cv_lib_readline, and moving the assignment of
81080         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
81081         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81082
81083 2006-03-07  Simon Josefsson  <jas@extundo.com>
81084
81085         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
81086         error on missing devices (the functions will return an error).
81087
81088         * m4/gc.m4: Move random stuff to gc-random.m4
81089
81090 2006-03-07  Simon Josefsson  <jas@extundo.com>
81091
81092         * lib/unistd_.h: New file.
81093
81094 2006-03-07  Simon Josefsson  <jas@extundo.com>
81095
81096         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
81097
81098 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81099
81100         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
81101         Problem reported by Juan Manuel Guerrero.
81102
81103 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81104
81105         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
81106         the unistd module.
81107         * lib/getlogin_r.c: Likewise.
81108         * lib/getlogin_r.h: Likewise.
81109         * lib/glob.c: Likewise.
81110         * lib/pagealign_alloc.c: Likewise.
81111         * lib/unistd_.h: Remove; no longer needed.
81112
81113 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
81114
81115         * MODULES.html.sh (Support for systems lacking POSIX:2001):
81116         Add unistd.
81117         * modules/c-stack (Depends-on): Add unistd.
81118         * modules/getlogin_r: Likewise.
81119         * modules/glob: Likewise.
81120         * modules/pagealign_alloc: Likewise.
81121         * modules/unistd (Files): Remove lib/unistd_.h.
81122         (EXTRA_DIST): Remove.
81123         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
81124         need unistd_.h.
81125         (MOSTLYCLEANFILES): Remove unistd.h-t.
81126
81127 2006-03-03  Simon Josefsson  <jas@extundo.com>
81128
81129         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
81130
81131 2006-03-03  Simon Josefsson  <jas@extundo.com>
81132
81133         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
81134         libidn and bison.
81135
81136 2006-03-03  Simon Josefsson  <jas@extundo.com>
81137
81138         * build-aux/maint.mk: Add indent target.
81139
81140 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
81141
81142         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
81143         our replacement poll.h in any case, to avoid a differing
81144         declaration from a system header.  Seen on AIX.
81145
81146 2006-03-01  Simon Josefsson  <jas@extundo.com>
81147
81148         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
81149         <kasal@ucw.cz>.
81150
81151 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81152
81153         * modules/gettime (Depends-on): Add extensions module.
81154         * modules/nanosleep (Depends-on): Likewise.
81155         * modules/settime (Depends-on): Likewise.
81156
81157 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
81158
81159         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
81160         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
81161         pedantically.
81162         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
81163         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
81164
81165         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
81166         not "==".  Reported by Ralf Wildenhues.
81167
81168 2006-03-01  Karl Berry  <karl@gnu.org>
81169
81170         * doc/Copyright/request-*: new files, synced from gnuorg.
81171
81172 2006-03-01  Karl Berry  <karl@gnu.org>
81173
81174         * config/srclist.txt (Copyright/*): new entries.
81175
81176 2006-02-28  Simon Josefsson  <jas@extundo.com>
81177
81178         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
81179
81180 2006-02-27  Simon Josefsson  <jas@extundo.com>
81181
81182         * lib/base64.h: Indent #define's.  From Jim Meyering
81183         <jim@meyering.net>.
81184
81185 2006-02-27  Jim Meyering  <jim@meyering.net>
81186
81187         Revert the change of 2006-02-24, so these files can continue
81188         to be sync'd from gettext.
81189         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
81190         of `config.h'.
81191
81192 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
81193
81194         * modules/intprops: New file.
81195         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
81196         Add intprops.
81197         * modules/getloadavg (Files): Remove lib/intprops.h.
81198         (Depends-on): Add intprops.
81199         * modules/human: Likewise.
81200         * modules/inttostr: Likewise.
81201         * modules/openat: Likewise.
81202         * modules/sig2str: Likewise.
81203         * modules/userspec: Likewise.
81204         * modules/utimecmp: Likewise.
81205         * modules/xnanosleep: Likewise.
81206         * modules/xstrtol: Likewise.
81207
81208 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
81209
81210         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
81211         * modules/lock-tests (TESTS): Use $(EXEEXT).
81212         * modules/tls-tests: Likewise.
81213         * modules/argp-tests: Likewise.
81214         (check_PROGRAMS): New var, replacing...
81215         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
81216
81217 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81218
81219         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
81220         `config.h'.
81221
81222 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
81223
81224         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
81225
81226 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81227
81228         Sync from coreutils.
81229         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
81230         gl_CHDIR_SAFER.
81231
81232 2006-02-22  Jim Meyering  <jim@meyering.net>
81233
81234         Sync from coreutils.
81235         * m4/chdir-safer.m4: New file.
81236
81237 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
81238
81239         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
81240         AT_FDCWD exceeds INT_MAX.
81241         * lib/openat.h (AT_FDCWD): Likewise.
81242
81243 2006-02-17  Eric Blake  <address@hidden>
81244
81245         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
81246
81247 2006-02-16  Simon Josefsson  <jas@extundo.com>
81248
81249         * modules/getaddrinfo (Depends-on): Add sys_socket.
81250
81251 2006-02-15  Simon Josefsson  <jas@extundo.com>
81252
81253         * build-aux/maint.mk: Add dsyntax-check rule.
81254
81255 2006-02-15  Eric Blake  <ebb9@byu.net>
81256
81257         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
81258         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
81259         'present but cannot compile' warnings on cygwin.
81260         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
81261         use ws2tcpip.h if sys/socket.h works.
81262         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
81263         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
81264
81265 2006-02-14  Simon Josefsson  <jas@extundo.com>
81266
81267         * modules/maintainer-makefile (Files): Rename.
81268
81269         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
81270         and (the local) Makefile.cfg to maint-cfg.mk.
81271
81272         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
81273         to the latter.
81274
81275         * modules/maintainer-makefile: New module.
81276
81277         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
81278         severaly stripped to make it possible to build it up from scratch
81279         with reliable tests.
81280
81281         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
81282         fixes to permit overriding the default actions when configure and
81283         makefile are not available.
81284
81285 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
81286
81287         Sync from coreutils.
81288         * modules/lstat (Depends-on): Don't depend on xalloc.
81289         (License): Change from GPL to LGPL, since this is now simply a
81290         replacement for a libc function.
81291
81292 2006-02-14  Jim Meyering  <jim@meyering.net>
81293
81294         Sync from coreutils.
81295
81296         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
81297         failure on deficient systems, and simplify gnulib lgpl dependencies.
81298         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
81299         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
81300
81301         * lib/xalloc-die.c: Remove unused definition of N_.
81302
81303 2006-02-14  Jim Meyering  <jim@meyering.net>
81304
81305         Sync from coreutils.
81306         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
81307         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
81308         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
81309         double-quote uses of that variable, to accommodate the rare case in
81310         which getmntent is available in none of the libraries checked.  This
81311         happens at least on FreeBSD 5.0.
81312
81313 2006-02-13  Simon Josefsson  <jas@extundo.com>
81314
81315         * gnulib-tool (Usage): Fix --import, from
81316         karl@freefriends.org (Karl Berry).
81317
81318 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
81319
81320         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
81321
81322 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
81323
81324         * lib/argp-namefrob.h: Restore changes accidentally lost during the
81325         "autoupdate" on 2005-12-12.
81326
81327 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
81328
81329         * modules/closeout (Depends-on): Remove atexit.
81330
81331 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
81332
81333         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
81334         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
81335
81336 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
81337
81338         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
81339         __EXTENSIONS__ if this causes compilation to fail.  Problem
81340         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
81341         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
81342
81343 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
81344
81345         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
81346         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
81347         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
81348         All uses changed.
81349
81350 2006-01-26  Simon Josefsson  <jas@extundo.com>
81351
81352         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
81353         prototype is visible on mingw32.
81354
81355         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
81356         for mingw32.
81357
81358         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
81359         mingw32).
81360
81361 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
81362
81363         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
81364         attempt to open for write; this always fails, at least on POSIX
81365         hosts.  This reinstates the 2006-01-09 change, which was
81366         inadvertently removed.
81367
81368 2006-01-26  Bruno Haible  <bruno@clisp.org>
81369
81370         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
81371         Reported by Paul Eggert.
81372
81373 2006-01-26  Bruno Haible  <bruno@clisp.org>
81374             Paul Eggert  <eggert@cs.ucla.edu>
81375
81376         * lib/stdbool_.h (_Bool)
81377         [(! (defined __cplusplus || defined __BEOS__)
81378           && !defined __GNUC__
81379           && !(defined __HP_cc || defined __xlc__
81380                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
81381                || defined __sgi))]:
81382         #define to signed char in these cases too; this simplifies
81383         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
81384         etc., separately) and makes it more conservative.
81385
81386 2006-01-25  Simon Josefsson  <jas@extundo.com>
81387
81388         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
81389         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
81390         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
81391
81392 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
81393
81394         * lib/argp-namefrob.h: Bugfix. Remove stray #
81395
81396 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
81397
81398         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
81399         so that we test the test.
81400         Check for yet another HP-UX cc bug involving *bool |= bool.
81401
81402 2006-01-25  Karl Berry  <karl@gnu.org>
81403
81404         * config/srclist.txt (vasnprintf.c): sync lost.
81405
81406 2006-01-25  Jim Meyering  <jim@meyering.net>
81407
81408         Sync from the stable (b5) branch of coreutils:
81409
81410         * lib/fts.c (fts_children): Don't let close() clobber errno from
81411         failed fchdir().
81412
81413         * lib/fts.c (fts_stat): When following a symlink-to-directory,
81414         don't necessarily interpret stat-fails+lstat-succeeds as indicating
81415         a dangling symlink.  That can also happen at least for ELOOP.
81416         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
81417         FYI, this bug predates the inclusion of fts.c in coreutils.
81418
81419         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
81420         in their own block, so pre-c99 compilers don't object.
81421
81422         Avoid the double-free (first in fts_read, second in fts_close) that
81423         would occur when an `active' directory is made inaccessible (e.g.,
81424         via chmod a-x) during a traversal.
81425         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
81426         before returning.  Reproduce this failure by
81427         mkdir -p a/b; cd a; chmod a-x . b
81428         Reported by Stavros Passas.
81429
81430 2006-01-25  Jim Meyering  <jim@meyering.net>
81431
81432         * lib/fileblocks.c: Remove more useless parentheses.
81433         * lib/readutmp.h: Likewise.
81434
81435 2006-01-25  Bruno Haible  <bruno@clisp.org>
81436
81437         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
81438         warnings.
81439         Reported by Paul Eggert.
81440
81441 2006-01-25  Bruno Haible  <bruno@clisp.org>
81442
81443         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
81444         rid of a trap command. For Solaris sh.
81445         Reported by Mark D. Baushke <mdb@gnu.org>.
81446
81447 2006-01-24  Simon Josefsson  <jas@extundo.com>
81448
81449         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
81450         Bruno.
81451
81452 2006-01-24  Karl Berry  <karl@gnu.org>
81453
81454         * config/srclist.txt (argp-namefrob.h): sync lost.
81455
81456 2006-01-24  Jim Meyering  <jim@meyering.net>
81457
81458         * modules/openat (Files): Add lib/intprops.h.
81459         From Mark D. Baushke.
81460
81461 2006-01-24  Jim Meyering  <jim@meyering.net>
81462
81463         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
81464         Reported by Mark D. Baushke.
81465
81466 2006-01-24  Jim Meyering  <jim@meyering.net>
81467
81468         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
81469
81470 2006-01-24  Bruno Haible  <bruno@clisp.org>
81471
81472         * modules/strnlen (Maintainer): Change from glibc to all.
81473
81474 2006-01-24  Bruno Haible  <bruno@clisp.org>
81475
81476         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
81477         Patch by Paul Eggert.
81478
81479 2006-01-24  Bruno Haible  <bruno@clisp.org>
81480
81481         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
81482         already has it.
81483         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
81484         2005-11-26.
81485
81486         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
81487         'signed char' to avoid problems with the built-in _Bool type.
81488         Reported by Paul Eggert on 2005-11-26.
81489
81490 2006-01-24  Bruno Haible  <bruno@clisp.org>
81491
81492         * gnulib-tool (func_import): Avoid constructing complicated sed
81493         expressions inside backquote.
81494         Report and solution by Mark D. Baushke <mdb@gnu.org>.
81495
81496 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
81497
81498         These changes imported from libc.
81499         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
81500         test and two separate function calls.
81501         * lib/strndup.c (__strndup): Add libc_hidden_def.
81502
81503 2006-01-23  Simon Josefsson  <jas@extundo.com>
81504
81505         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
81506         Remove the test_*_SOURCES variable: automake infers it by default.
81507         * modules/tls-tests: Likewise.
81508
81509 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81510
81511         Work around porting bugs reported by Dieter in
81512         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
81513         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
81514         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
81515         Include "getopt.h" first, to check interface.
81516         (getenv): Declare only if defined HAVE_DECL_GETENV &&
81517         !HAVE_DECL_GETENV.
81518         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
81519         (__strndup): Revert to K&R-style function dfns, the glibc style.
81520         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
81521         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
81522         Include strnlen.h first, to get prototype properly.
81523         (strnlen): Renamed from __strnlen.
81524         Remove weak alias.
81525
81526 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81527
81528         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
81529
81530 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
81531
81532         * config/srclist.txt: Adjust to reflect glibc reorganization.
81533         This affects only comments.
81534
81535 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
81536
81537          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
81538          Reported by Bruce Korb <bkorb@gnu.org>.
81539
81540 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
81541
81542         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
81543         to pacify gcc -Wswitch-default.
81544
81545 2006-01-22  Bruno Haible  <bruno@clisp.org>
81546
81547         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
81548         temporary buffer for sprintf, take into account the precision also
81549         for 'd', 'i', 'u', 'o', 'x', 'X'.
81550
81551 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
81552
81553         * modules/argp-tests: New module
81554         * tests/test-argp.c: New file
81555         * tests/test-argp-2.sh: New file
81556
81557 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
81558
81559         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
81560         (__argp_base_name): Removed
81561         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
81562         typo.
81563         (__argp_base_name): Provide macro definition or extern declaration
81564         depending on the configuration
81565
81566 2006-01-20  Simon Josefsson  <jas@extundo.com>
81567
81568         * modules/inet_ntop (Depends-on): Depend on sys_socket.
81569
81570 2006-01-20  Simon Josefsson  <jas@extundo.com>
81571
81572         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
81573
81574 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
81575
81576         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
81577         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
81578         Suggested by Bruno Haible.
81579
81580 2006-01-20  Karl Berry  <karl@gnu.org>
81581
81582         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
81583         until changes propagate, I guess.
81584
81585 2006-01-19  Simon Josefsson  <jas@extundo.com>
81586
81587         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
81588
81589 2006-01-19  Simon Josefsson  <jas@extundo.com>
81590
81591         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
81592
81593 2006-01-19  Simon Josefsson  <jas@extundo.com>
81594
81595         * gnulib-tool: Set check_PROGRAMS.
81596
81597         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
81598         modules/des-tests, modules/gc-arcfour-tests,
81599         modules/gc-arctwo-tests, modules/gc-des-tests,
81600         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
81601         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
81602         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
81603         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
81604         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
81605         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
81606         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
81607         test_*_SOURCES.
81608
81609 2006-01-18  Simon Josefsson  <jas@extundo.com>
81610
81611         * modules/socklen (Depends-on): Depend on sys_socket.
81612
81613 2006-01-18  Simon Josefsson  <jas@extundo.com>
81614
81615         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
81616         modules/des-tests, modules/gc-arcfour-tests,
81617         modules/gc-arctwo-tests, modules/gc-des-tests,
81618         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
81619         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
81620         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
81621         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
81622         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
81623         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
81624         $(EXEEXT) to automake TESTS variable, for mingw32.
81625
81626 2006-01-17  Simon Josefsson  <jas@extundo.com>
81627
81628         * modules/socklen (Include): Need sys/socket.h.
81629
81630 2006-01-17  Bruno Haible  <bruno@clisp.org>
81631
81632         * modules/ssize_t (Include): Add <sys/types.h>.
81633
81634 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
81635
81636         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
81637         it's not portable and it doesn't work with cross-compiles.
81638         Problem reported by Bruno Haible.  Fix missing-$ typo in
81639         'test "gl_cv_ignore_unused_libraries" ...' that prevented
81640         -zignore from being used with Sun's C compiler.
81641
81642 2006-01-12  Simon Josefsson  <jas@extundo.com>
81643
81644         * lib/base64.c: Fix warning, reported by Bruno Haible
81645         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
81646
81647 2006-01-12  Bruno Haible  <bruno@clisp.org>
81648
81649         * modules/ldd: New file.
81650         * build-aux/ldd.sh.in: New file.
81651         * MODULES.html.sh (Support for building libraries and executables): Add
81652         ldd.
81653
81654 2006-01-12  Bruno Haible  <bruno@clisp.org>
81655
81656         * m4/ldd.m4: New file.
81657
81658 2006-01-12  Bruno Haible  <bruno@clisp.org>
81659
81660         * gnulib-tool (func_import, func_create_testdir): Don't go into an
81661         endless loop while replacing $auxdir with build-aux.
81662
81663 2006-01-11  Simon Josefsson  <jas@extundo.com>
81664
81665         * lib/stdint_.h (SIZE_MAX): Add missing (.
81666
81667 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
81668
81669         Sync from coreutils.
81670         * lib/md5.c: Fix commentary typos.
81671         (alignof, UNALIGNED_P): No need for a GCC-specific version.
81672         * lib/md5.h (__attribute__): Remove; unused.
81673         * lib/sha1.c: Fix commentary to match md5 better.
81674         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
81675         so that we don't need to worry about alignment.  All uses changed.
81676         This merges the 2005-10-28 md5 change into sha1.
81677
81678 2006-01-11  Jim Meyering  <jim@meyering.net>
81679
81680         Sync from coreutils.
81681         * lib/md5.c (OP): Fix spacing.
81682
81683 2006-01-11  Bruno Haible  <bruno@clisp.org>
81684
81685         Ensure automatic ordering between gl_LOCK and gl_ARGP.
81686         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
81687         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
81688
81689 2006-01-11  Bruno Haible  <bruno@clisp.org>
81690
81691         Ensure automatic ordering between gl_LOCK and gl_ARGP.
81692         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
81693         the "early" section as well.
81694
81695 2006-01-11  Bruno Haible  <bruno@clisp.org>
81696
81697         Avoid "ar: no archive members specified" error on MacOS X.
81698         * gnulib-tool (func_modules_add_dummy): New function.
81699         (func_import, func_create_testdir): Invoke it.
81700
81701 2006-01-11  Bruno Haible  <bruno@clisp.org>
81702
81703         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
81704         with $auxdir in AC_CONFIG_FILES statements.
81705
81706 2006-01-11  Bruno Haible  <bruno@clisp.org>
81707
81708         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
81709         Initialize also noinst_HEADERS to empty.
81710
81711 2006-01-11  Bruno Haible  <bruno@clisp.org>
81712
81713         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
81714         variables.
81715         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
81716         autoreconf.
81717
81718 2006-01-11  Bruno Haible  <bruno@clisp.org>
81719
81720         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
81721         overridable by the user.
81722         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81723
81724 2006-01-10  Simon Josefsson  <jas@extundo.com>
81725
81726         * modules/sys_socket: New file.
81727
81728 2006-01-10  Simon Josefsson  <jas@extundo.com>
81729
81730         * m4/sys_socket_h.m4: New file.
81731
81732 2006-01-10  Simon Josefsson  <jas@extundo.com>
81733
81734         * lib/socket_.h: New file.
81735
81736 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81737
81738         * modules/readutmp (Maintainer): Add myself.
81739
81740 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81741
81742         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
81743         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
81744         People who are still concerned with buggy memcmp implementations
81745         can invoke gl_FUNC_MEMCMP themselves.
81746
81747 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
81748
81749         * lib/regex_internal.h (BITSET_WORD_BITS):
81750         Work around a bug in 64-bit PGC (before version 6.1-2), where the
81751         preprocessor mishandles large unsigned values as if they were signed.
81752         Problem reported by Claudio Fontana in
81753         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
81754
81755 2006-01-10  Jim Meyering  <jim@meyering.net>
81756
81757         Avoid the double-free (first in fts_read, second in fts_close) that
81758         would occur when an `active' directory is made inaccessible (e.g.,
81759         via chmod a-x) during a traversal.
81760         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
81761         before returning.  Reproduce this failure by
81762         mkdir -p a/b; cd a; chmod a-x . b
81763         Reported by Stavros Passas.
81764
81765         Sync from coreutils.
81766         * lib/sha1.c: Tweak grammar in a comment.
81767
81768 2006-01-10  Jim Meyering  <jim@meyering.net>
81769
81770         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
81771         Patch by Joerg Sonnenberger.
81772
81773 2006-01-10  Bruno Haible  <bruno@clisp.org>
81774
81775         * modules/readutmp: Depend on module free.
81776         * modules/strtok_r: Depend on module restrict.
81777
81778 2006-01-10  Bruno Haible  <bruno@clisp.org>
81779
81780         * modules/gettext (configure.ac): Add an invocation of
81781         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
81782
81783 2006-01-10  Bruno Haible  <bruno@clisp.org>
81784
81785         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
81786         Reported by Werner Lemberg <wl@gnu.org>.
81787
81788 2006-01-10  Bruno Haible  <bruno@clisp.org>
81789
81790         * lib/localcharset.c: Update from GNU gettext.
81791
81792 2006-01-10  Bruno Haible  <bruno@clisp.org>
81793
81794         * lib/argp.h (__const): Remove macro. Use const instead.
81795         * lib/argp-fmtstream.h (__const): Likewise.
81796         * lib/glob_.h (__const): Remove macro.
81797         * lib/glob-libc.h: Use const instead of __const.
81798
81799 2006-01-10  Bruno Haible  <bruno@clisp.org>
81800
81801         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
81802         variable.
81803         Needed to avoid an automake error regarding the 'gettext' module.
81804
81805 2006-01-09  Simon Josefsson  <jas@extundo.com>
81806
81807         * modules/inet_ntop (Depends-on): Add restrict.
81808
81809 2006-01-09  Simon Josefsson  <jas@extundo.com>
81810
81811         * modules/gc-rijndael-tests (License): Put under LGPL.
81812
81813         * modules/gc-des-tests (License): Likewise.
81814
81815         * modules/gc-arcfour-tests (License): Likewise.
81816
81817         * modules/gc-arctwo-tests (License): Likewise.
81818
81819         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
81820
81821         * modules/gc-hmac-sha1-tests (Files): Likewise.
81822
81823         * modules/gc-hmac-md5-tests (License): Likewise.
81824
81825         * modules/gc-sha1-tests (License): Likewise.
81826
81827         * modules/gc-md5-tests (License): Likewise.
81828
81829         * modules/gc-md4-tests (License): Likewise.
81830
81831         * modules/gc-md2-tests (License): Likewise.
81832
81833         * modules/gc-tests (License): Likewise.
81834
81835         * modules/des-tests (License): Likewise.
81836
81837         * modules/md4-tests (License): Likewise.
81838
81839         * modules/md2-tests (License): Likewise.
81840
81841 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81842
81843         Sync from coreutils:
81844
81845         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
81846         * modules/lib-ignore: New file.
81847         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
81848         chdir-safer.m4, lchmod.m4.
81849         * modules/openat: Add mkdirat.c, openat-priv.h.
81850
81851 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81852
81853         Sync from coreutils.
81854         * m4/lib-ignore.m4: New file.
81855         * m4/lchmod.m4: New file.
81856
81857 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81858
81859         Sync from coreutils.
81860         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
81861         for write access: POSIX says that must fail.
81862         * lib/fts.c (diropen): Likewise.
81863         * lib/save-cwd.c (save_cwd): Likewise.
81864         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
81865         well, for minor improvements on hosts that lack O_DIRECTORY.
81866         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
81867         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
81868         Fall back on chown if open failed with EACCES.
81869
81870         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
81871         Report an error at compile-time if only a 1-second nominal clock
81872         resolution is found.
81873
81874         * lib/lchmod.h: New file.
81875         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
81876         (make_dir_parents): Use lchown rather than chown, and
81877         lchmod rather than chmod.
81878
81879         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
81880         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
81881         "proc" reported by n0dalus.
81882
81883         * lib/mountlist.c: Include <limits.h>.
81884         (dev_from_mount_options)
81885         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
81886         New function.  It no longer assumes "dev=" has the System V meaning
81887         on Linux (since it doesn't).  It also parses "dev=" more carefully.
81888         (read_file_system_list)
81889         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
81890         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
81891         dev= in that case.
81892
81893         * lib/posixtm.h (PDS_PRE_2000): New macro.
81894         * lib/posixtm.c (year): Arg is now syntax_bits rather than
81895         allow_century.  All usages changed.  Reject dates outside the range
81896         1969-1999 if PDS_PRE_2000 is used.
81897
81898 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
81899
81900         Sync from coreutils.
81901         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
81902         (Time of day items): Mention the possibility of leap seconds.
81903         Problem reported by Dr. David Alan Gilbert.
81904
81905 2006-01-09  Jim Meyering  <jim@meyering.net>
81906
81907         Sync from coreutils.
81908
81909         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
81910
81911         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
81912
81913         * lib/modechange.c (mode_compile): Reject an invalid mode string
81914         that starts with an octal digit.  From Andreas Gruenbacher.
81915
81916         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
81917         and dup to open_safer and dup_safer, respectively.
81918         (openat_permissive): Fix typo in comment.
81919
81920         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
81921         "gettext.h"; either no longer needed or are guaranteed by openat.h.
81922         (_): Remove; no longer needed.
81923         (openat): Renamed from rpl_openat; no need for rpl_openat
81924         since openat.h renames openat for us.
81925         Replace most of the body with a call to openat_permissive,
81926         to avoid duplicate code.
81927         Port to (probably hypothetical) environments were mode_t is
81928         wider than int.
81929         (openat_permissive): Require mode arg, so that we can check
81930         types better.  Put it just after flags.  Change cwd failure
81931         indicator from pointer-to-bool to pointer-to-errno-value.
81932         All callers changed.
81933         Invoke openat_save_fail and/or openat_restore_fail if
81934         cwd_errno is null, so that openat can call us.
81935         (openat_permissive, fdopendir, fstatat, unlinkat):
81936         Simplify errno handling to avoid some duplicate code,
81937         as it's OK to set errno on success.
81938         * lib/openat.h: Revamp code so that function macros depend on
81939         __OPENAT_PREFIX only, not also on AT_FDCWD.
81940         (openat_ro): Remove.  Caller changed to use openat_permissive.
81941         (openat_permissive): Now a macro, if not a function.
81942         (openat_restore_fail, openat_save_fail): Now always functions,
81943         since mkdirat needs them even if __OPENAT_PREFIX is defined.
81944
81945         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
81946         and openat.c.
81947         * lib/mkdirat.c: Include openat-priv.h.
81948         Remove definitions of macros defined therein.
81949         * lib/openat.c: Likewise.
81950
81951         * lib/mkdirat.c (mkdirat): New file and function.
81952         * lib/openat.h (mkdirat): Declare.
81953
81954         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
81955
81956         * lib/openat.h (openat_permissive): Declare.
81957         (openat_ro): Define.
81958
81959         * lib/openat.c (EXPECTED_ERRNO): New macro.
81960         (openat_permissive): New function -- used in remove.c rewrite.
81961         (all functions): Set errno just before returning, only if there
81962         was an actual failure.
81963         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
81964
81965         Emulate openat-family functions using Linux's procfs, if possible.
81966         Idea and some code based on Ulrich Drepper's glibc changes.
81967
81968         * lib/openat.c: (BUILD_PROC_NAME): New macro.
81969         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
81970         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
81971         before falling back on save_cwd and restore_cwd.
81972         (fdopendir, fstatat, unlinkat): Likewise.
81973
81974         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
81975         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
81976
81977         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
81978         as second argument to va_arg.  Otherwise, some versions of gcc
81979         warn that `if this code is reached, the program will abort'.
81980
81981 2006-01-09  Jim Meyering  <jim@meyering.net>
81982
81983         Sync from coreutils.
81984         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
81985         Require openat-priv.h.
81986
81987 2006-01-09  Bruno Haible  <bruno@clisp.org>
81988
81989         * modules/strnlen (Include): Use strnlen.h.
81990
81991 2006-01-09  Bruno Haible  <bruno@clisp.org>
81992
81993         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
81994
81995 2006-01-09  Bruno Haible  <bruno@clisp.org>
81996
81997         * lib/sysexit_.h (EX_OK): New macro.
81998         Suggested by Martin Lambers <marlam@marlam.de>.
81999
82000 2006-01-09  Bruno Haible  <bruno@clisp.org>
82001
82002         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
82003         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
82004
82005 2006-01-09  Bruno Haible  <bruno@clisp.org>
82006
82007         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
82008         numbers.
82009
82010 2006-01-09  Bruno Haible  <bruno@clisp.org>
82011
82012         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
82013         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
82014         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
82015         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
82016
82017 2006-01-09  Bruno Haible  <bruno@clisp.org>
82018
82019         * build-aux/javacomp.sh.in: New file, moved from lib/.
82020         * modules/javacomp-script (Files): Update.
82021         (configure.ac): Add AC_CONFIG_FILES invocation.
82022         (EXTRA_DIST): Remove variable.
82023
82024         * build-aux/javaexec.sh.in: New file, moved from lib/.
82025         * modules/javaexec (Files): Update.
82026         (configure.ac): Add AC_CONFIG_FILES invocation.
82027         (EXTRA_DIST): Remove javaexec.sh.in.
82028
82029         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
82030         * modules/csharpcomp-script (Files): Update.
82031         (configure.ac): Add AC_CONFIG_FILES invocation.
82032         (EXTRA_DIST): Remove variable.
82033
82034         * build-aux/csharpexec.sh.in: New file, moved from lib/.
82035         * modules/csharpexec (Files): Update.
82036         (configure.ac): Add AC_CONFIG_FILES invocation.
82037         (EXTRA_DIST): Remove csharpexec.sh.in.
82038
82039 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
82040
82041         Sync from coreutils.
82042
82043         Add POSIX ACL support
82044         * lib/acl.h (copy_acl, set_acl): Add declarations.
82045         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
82046         systems other than Linux.
82047         (chmod_or_fchmod): New function: use fchmod when possible,
82048         and chmod otherwise.
82049         (file_has_acl): Add a POSIX ACL implementation, with a
82050         Linux-specific subcase.
82051         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
82052         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
82053         acls are unsupported.
82054         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
82055         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
82056         are unsupported.
82057
82058 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
82059
82060         Sync from coreutils.
82061         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
82062
82063 2006-01-07  Bruno Haible  <bruno@clisp.org>
82064
82065         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
82066         gl_EARLY.
82067
82068 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
82069
82070         * lib/strftime.c (tzname): Don't declare if it is already #defined.
82071         Problem reported for Mingw by Mark Junker.
82072
82073 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
82074
82075         * README: Gnulib normally doesn't generate a tarball.
82076
82077 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
82078
82079         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
82080         long int, not int, for nanosecond counts, so that people who are
82081         used to POSIX struct timespec won't be surprised.  Reported by Jim
82082         Meyering.
82083
82084 2005-12-28  Bruno Haible  <bruno@clisp.org>
82085
82086         * build-aux/config.rpath: Update from GNU gettext.
82087
82088 2005-12-16  Jim Meyering  <jim@meyering.net>
82089
82090         * modules/fprintftime: New module.
82091         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
82092
82093 2005-12-16  Jim Meyering  <jim@meyering.net>
82094
82095         * m4/fprintftime.m4: New file.
82096
82097 2005-12-16  Jim Meyering  <jim@meyering.net>
82098
82099         * lib/fprintftime.c, lib/fprintftime.h: New files.
82100
82101 2005-12-15  Simon Josefsson  <jas@extundo.com>
82102
82103         * modules/socklen (configure.ac): Fix M4 macro name, to align with
82104         new m4/socklen.m4.
82105
82106 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
82107
82108         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
82109         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
82110
82111 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
82112
82113         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
82114         * lib/argp-help.c (fill_in_uparams): Check if the constructed
82115         struct uparams is valid. Fall back to the default values if it is
82116         not.
82117
82118 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82119
82120         * modules/argp (Files): Add argp-pin.c
82121         (Depends-on): dirname
82122         (lib_SOURCES): Add argp-pin.c
82123
82124 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82125
82126         * m4/argp.m4:  Check if program_invocation_name and
82127         program_invocation_short_name are declared and define appropriate
82128         macros if they are not.
82129
82130 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
82131
82132         * lib/argp-help.c (__argp_base_name): New function
82133         (__argp_short_program_name): Rewrite using __argp_base_name
82134         * lib/argp-namefrob.h: Define program_invocation_name and
82135         program_invocation_short_name if requested
82136         (__argp_base_name): Add prototype
82137         * lib/argp-parse.c (argp_def): Use gettext wrappers
82138         (argp_default_parser): Use __argp_base_name
82139         * lib/argp-pin.c: New file. Defines program_invocation_name and
82140         program_invocation_short_name on systems that lack them.
82141
82142 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
82143
82144         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
82145         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
82146         porting problem reported by Georg Schwarz in
82147         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
82148
82149 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
82150
82151         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
82152         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
82153         porting problem reported by Georg Schwarz in
82154         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
82155
82156 2005-12-05  Bruno Haible  <bruno@clisp.org>
82157
82158         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
82159         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
82160         Reported by Mark Junker <mjscod@gmx.de>.
82161
82162 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
82163
82164         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
82165         Use implementation from Albert Chin, with some
82166         comments/corrections by Stepan Kasal and myself.
82167
82168 2005-12-02  Bruno Haible  <bruno@clisp.org>
82169
82170         * gnulib-tool (func_import): Accept GPLed build tool modules when
82171         --lgpl is given.
82172         * modules/csharpcomp-script: New file.
82173         * modules/csharpcomp: Depend on it.
82174         * modules/javacomp-script: New file.
82175         * modules/javacomp: Depend on it.
82176         Suggested by Simon Josefsson.
82177
82178 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
82179
82180         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
82181         statement, to work around an HP-UX 10.20 compiler bug reported by
82182         Peter O'Gorman.
82183
82184 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
82185
82186         * modules/savedir (Depends-on): Add openat.
82187
82188 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
82189
82190         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
82191         (uintmax_t) [defined uintmax_t]: Do not declare.
82192         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
82193         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
82194         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
82195         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
82196         sake of portability to weird hosts that C allows (though we don't
82197         know of any practical examples).
82198
82199         * lib/savedir.h (fdsavedir): New decl.
82200         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
82201         contains most of the former guts of savedir.
82202         (savedir): Use savedirstream.
82203         Include "openat.h".
82204
82205 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
82206
82207         * modules/obstack (Files): Add m4/ulonglong.m4.
82208         Problem reported by Davide Angelocola.
82209
82210 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
82211
82212         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
82213         coreutils no longer futzes with rounding modes.
82214
82215 2005-11-14  Jim Meyering  <jim@meyering.net>
82216
82217         * lib/mkstemp-safer.c: Include <config.h>, required for possible
82218         replacement of mkstemp.
82219
82220 2005-11-10  Simon Josefsson  <jas@extundo.com>
82221
82222         * lib/readline.c: Remove EOL.
82223
82224 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82225
82226         * modules/gethrxtime (Depends-on): Add gettime.
82227
82228 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82229
82230         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
82231         or gettimeofday; no longer needed.
82232
82233 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
82234
82235         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
82236         time business.
82237         (gethrxtime) [! (HAVE_NANOUPTIME
82238         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
82239         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
82240         our own approximation.
82241
82242 2005-11-08  Eric Blake  <ebb9@byu.net>
82243
82244         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
82245
82246 2005-11-08  Eric Blake  <ebb9@byu.net>
82247
82248         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
82249
82250 2005-11-04  Bruno Haible  <bruno@clisp.org>
82251
82252         * gnulib-tool: Implement --update mode.
82253
82254 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82255
82256         Fix porting problem reported by Theodoros V. Kalamatianos.
82257         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
82258         Don't assume that futimes failing means we must fail.
82259
82260 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
82261
82262         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
82263         variables to suggest the intended function of the PATH_MAX check.
82264
82265 2005-10-30  Kean Johnston  <jkj@sco.com>
82266
82267         Trivial changes to support SCO systems.
82268         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
82269         as PATH_MAX.
82270         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
82271         where __ptr is null when no I/O is pending.
82272
82273 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
82274
82275         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
82276         leave errno alone.  Problem reported by Dmitry V. Levin.
82277
82278 2005-10-28  Simon Josefsson  <jas@extundo.com>
82279
82280         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
82281         Test more.
82282
82283         * tests/test-gc-md2.c, tests/test-md2.c: New files.
82284
82285         * modules/md2, modules/md2-tests: New files.
82286
82287 2005-10-28  Simon Josefsson  <jas@extundo.com>
82288
82289         * m4/inet_ntop.m4: More tests.
82290
82291         * m4/gc-md2.m4, md2.m4: New file.
82292
82293 2005-10-28  Simon Josefsson  <jas@extundo.com>
82294
82295         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
82296         "restrict" keywords, as per POSIX.  Protect the function
82297         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
82298         Don't use K&R prototypes.  Check the sprintf return values.
82299         Re-define EAFNOSUPPORT if not present.  Indent.
82300
82301         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
82302         suggested by Bruno Haible <bruno@clisp.org>.
82303
82304         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
82305
82306         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
82307
82308         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
82309         libgcrypt).
82310
82311         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
82312
82313         * lib/md2.h, lib/md2.c: New files.
82314
82315 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
82316
82317         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
82318         errno alone.  Problem reported by Frederic Jolliton.
82319
82320 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
82321
82322         * modules/verify (License): Change from GPL to LGPL.  This is a
82323         tiny module and there are apparently near-equivalents that are
82324         under the BSD license.
82325
82326 2005-10-24  Simon Josefsson  <jas@extundo.com>
82327
82328         * modules/sha1: Relicense to LGPL.
82329
82330 2005-10-24  Simon Josefsson  <jas@extundo.com>
82331
82332         * lib/md4.h: Shrink buffer size, now that we changed the type.
82333
82334 2005-10-23  Simon Josefsson  <jas@extundo.com>
82335
82336         * gnulib-tool (func_import): Fix --tests-base.
82337
82338 2005-10-22  Simon Josefsson  <jas@extundo.com>
82339
82340         * modules/arcfour (Depends-on): Need stdint.
82341
82342 2005-10-22  Simon Josefsson  <jas@extundo.com>
82343
82344         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
82345         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
82346
82347 2005-10-22  Simon Josefsson  <jas@extundo.com>
82348
82349         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
82350         suggested by Bruno Haible <bruno@clisp.org>.
82351
82352 2005-10-22  Simon Josefsson  <jas@extundo.com>
82353
82354         * lib/crc.h: Include stddef.h, for size_t.
82355
82356 2005-10-22  Simon Josefsson  <jas@extundo.com>
82357
82358         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
82359         arcfour_context struct (simplify test vector testing in GNU
82360         Shishi).
82361
82362 2005-10-21  Simon Josefsson  <jas@extundo.com>
82363
82364         * modules/des, modules/des-tests: New files.
82365
82366         * modules/gc-des, modules/gc-des-tests: New files.
82367
82368         * tests/test-des.c, tests/test-gc-des.c: New file.
82369
82370 2005-10-21  Simon Josefsson  <jas@extundo.com>
82371
82372         * modules/arctwo, modules/arctwo-tests: New files.
82373
82374         * tests/test-arctwo.c: New file.
82375
82376         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
82377
82378         * tests/test-gc-arctwo.c: New file.
82379
82380 2005-10-21  Simon Josefsson  <jas@extundo.com>
82381
82382         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
82383         Bruno Haible <bruno@clisp.org>.
82384
82385         * m4/gc-des.m4: New file.
82386
82387 2005-10-21  Simon Josefsson  <jas@extundo.com>
82388
82389         * m4/arctwo.m4: New file.
82390
82391         * m4/gc-arctwo.m4: New file.
82392
82393 2005-10-21  Simon Josefsson  <jas@extundo.com>
82394
82395         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
82396         block.
82397
82398 2005-10-21  Simon Josefsson  <jas@extundo.com>
82399
82400         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
82401         <bruno@clisp.org>.
82402
82403         * lib/hmac-sha1.c (hmac_sha1): Likewise.
82404
82405         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
82406         Bruno Haible <bruno@clisp.org>.
82407
82408         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
82409         <bruno@clisp.org>.
82410
82411 2005-10-21  Simon Josefsson  <jas@extundo.com>
82412
82413         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
82414
82415 2005-10-21  Simon Josefsson  <jas@extundo.com>
82416
82417         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
82418
82419 2005-10-21  Simon Josefsson  <jas@extundo.com>
82420
82421         * lib/des.h, lib/des.c: New files.
82422
82423         * lib/gc-gnulib.c: Support DES.c
82424
82425 2005-10-21  Simon Josefsson  <jas@extundo.com>
82426
82427         * lib/arctwo.h, lib/arctwo.c: New files.
82428
82429         * lib/gc-gnulib.c: Support ARCTWO.
82430
82431 2005-10-21  Simon Josefsson  <jas@extundo.com>
82432
82433         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
82434         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
82435
82436 2005-10-21  Simon Josefsson  <jas@extundo.com>
82437
82438         * gnulib-tool (func_import, func_create_testdir): Define automake
82439         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
82440         Makefile.am snippet),
82441         suggested by Bruno Haible <bruno@clisp.org>.
82442
82443         * modules/gc (Makefile.am): Use it.
82444
82445 2005-10-21  Bruno Haible  <bruno@clisp.org>
82446
82447         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
82448         patch.
82449
82450 2005-10-19  Simon Josefsson  <jas@extundo.com>
82451
82452         * tests/test-gc-rijndael.c: New file.
82453
82454         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
82455
82456 2005-10-19  Simon Josefsson  <jas@extundo.com>
82457
82458         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
82459         interface too.
82460
82461 2005-10-19  Simon Josefsson  <jas@extundo.com>
82462
82463         * tests/test-gc-arcfour.c: New file.
82464
82465         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
82466
82467 2005-10-19  Simon Josefsson  <jas@extundo.com>
82468
82469         * modules/gc-md4, modules/gc-md4-tests: New file.
82470
82471         * tests/test-gc-md4.c: New file.
82472
82473 2005-10-19  Simon Josefsson  <jas@extundo.com>
82474
82475         * m4/gc-md4.m4: New file.
82476
82477 2005-10-19  Simon Josefsson  <jas@extundo.com>
82478
82479         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
82480         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
82481         <kasal@ucw.cz>.
82482
82483 2005-10-19  Simon Josefsson  <jas@extundo.com>
82484
82485         * m4/gc-arcfour.m4: New file.
82486
82487         * m4/gc-rijndael.m4: New file.
82488
82489 2005-10-19  Simon Josefsson  <jas@extundo.com>
82490
82491         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
82492
82493 2005-10-19  Simon Josefsson  <jas@extundo.com>
82494
82495         * lib/gc-gnulib.c: Support ARCFOUR.
82496
82497 2005-10-19  Simon Josefsson  <jas@extundo.com>
82498
82499         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
82500         support.
82501
82502         * lib/gc.h: Add ECB enum type.
82503
82504         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
82505
82506 2005-10-18  Simon Josefsson  <jas@extundo.com>
82507
82508         * tests/test-md5.c: New file.
82509
82510         * modules/md5-tests: New file.
82511
82512 2005-10-18  Simon Josefsson  <jas@extundo.com>
82513
82514         * tests/test-md4.c: New file.
82515
82516         * modules/md4, modules/md4-tests: New files.
82517
82518 2005-10-18  Simon Josefsson  <jas@extundo.com>
82519
82520         * m4/md4.m4: New file.
82521
82522 2005-10-18  Simon Josefsson  <jas@extundo.com>
82523
82524         * lib/md4.h, lib/md4.c: New files, based on md5.?.
82525
82526 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
82527
82528         * gnulib-tool (func_create_testdir): Omit the second check whether
82529         BUILT_SOURCES in nonempty.
82530
82531 2005-10-17  Simon Josefsson  <jas@extundo.com>
82532
82533         * tests/test-rijndael.c: New file.
82534
82535 2005-10-17  Simon Josefsson  <jas@extundo.com>
82536
82537         * modules/sha1: Depend on stdint instead of md5.
82538
82539         * modules/md5: Depend on stdint, remove uint32_t.
82540
82541 2005-10-17  Simon Josefsson  <jas@extundo.com>
82542
82543         * modules/gc-sha1-tests: New file.
82544
82545         * tests/test-gc-sha1.c: New file.
82546
82547 2005-10-17  Simon Josefsson  <jas@extundo.com>
82548
82549         * m4/md5.m4: Remove call to uint32_t.m4.
82550
82551 2005-10-17  Simon Josefsson  <jas@extundo.com>
82552
82553         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
82554
82555         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
82556         md5.h.
82557
82558         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
82559
82560         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
82561
82562 2005-10-17  Simon Josefsson  <jas@extundo.com>
82563
82564         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
82565
82566 2005-10-17  Simon Josefsson  <jas@extundo.com>
82567
82568         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
82569
82570 2005-10-17  Simon Josefsson  <jas@extundo.com>
82571
82572         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
82573
82574         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
82575
82576 2005-10-17  Bruno Haible  <bruno@clisp.org>
82577
82578         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
82579         that it can also be used in a test.
82580
82581 2005-10-16  Bruno Haible  <bruno@clisp.org>
82582
82583         * gnulib-tool (func_emit_tests_Makefile_am): Also define
82584         TESTS_ENVIRONMENT, so that individual tests can augment it.
82585
82586         * gnulib-tool (func_create_testdir): Use an intermediate target for
82587         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
82588         macros, like $(ALLOCA_H), which cannot be passed through the command
82589         line.
82590
82591 2005-10-15  Simon Josefsson  <jas@extundo.com>
82592
82593         * modules/rijndael-tests: New file.
82594
82595         * modules/rijndael: New file.
82596
82597 2005-10-15  Simon Josefsson  <jas@extundo.com>
82598
82599         * m4/rijndael.m4: New file.
82600
82601 2005-10-15  Simon Josefsson  <jas@extundo.com>
82602
82603         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
82604
82605         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
82606
82607 2005-10-14  Simon Josefsson  <jas@extundo.com>
82608
82609         * tests/test-arcfour.c: New file.
82610
82611         * modules/arcfour, modules/arcfour-tests: New files.
82612
82613 2005-10-14  Simon Josefsson  <jas@extundo.com>
82614
82615         * m4/arcfour.m4: New file.
82616
82617 2005-10-14  Simon Josefsson  <jas@extundo.com>
82618
82619         * lib/arcfour.h, lib/arcfour.c: New files.
82620
82621 2005-10-14  Roland McGrath  <roland@redhat.com>
82622
82623         Import from libc.  [BZ #1331]
82624         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
82625         macro argument.
82626         Reported by Matej Vela <vela@debian.org>.
82627
82628 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
82629
82630         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
82631         include <wchar.h>; no longer needed.
82632
82633 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
82634
82635         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
82636
82637 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
82638         and  Ulrich Drepper  <drepper@redhat.com>
82639
82640         Import from libc.
82641         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
82642         instead of inline stream orientation test and two separate
82643         function calls.  Pay no attention to USE_IN_LIBIO.
82644
82645 2005-10-13  Simon Josefsson  <jas@extundo.com>
82646
82647         * modules/gc-hmac-md5-tests: New file.
82648
82649         * tests/test-gc-hmac-sha1.c: New file.
82650
82651         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
82652
82653         * modules/gc-hmac-md5-tests: New file.
82654
82655         * tests/test-gc-md5.c: New file.
82656
82657         * modules/gc-md5-tests: New file.
82658
82659 2005-10-13  Simon Josefsson  <jas@extundo.com>
82660
82661         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
82662         Move memory allocation outside of loop.
82663
82664 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
82665
82666         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
82667         intermediate directory is in a read-only file system.  Problem
82668         reported by Eric Blake.
82669
82670 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
82671
82672         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
82673
82674 2005-10-12  Simon Josefsson  <jas@extundo.com>
82675
82676         * tests/test-hmac-sha1.c: New file.
82677
82678         * modules/hmac-sha1-tests: New file.
82679
82680         * modules/hmac-sha1: New file.
82681
82682 2005-10-12  Simon Josefsson  <jas@extundo.com>
82683
82684         * modules/gc-sha1: New file.
82685
82686 2005-10-12  Simon Josefsson  <jas@extundo.com>
82687
82688         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
82689
82690         * tests/test-gc-pbkdf2-sha1.c: New file.
82691
82692 2005-10-12  Simon Josefsson  <jas@extundo.com>
82693
82694         * modules/gc-md5, modules/gc-hmac-md5: New files.
82695
82696         * modules/gc (Files): Remove md5, memxor and hmac files.
82697
82698 2005-10-12  Simon Josefsson  <jas@extundo.com>
82699
82700         * m4/gc-pbkdf2-sha1.m4: New file.
82701
82702         * m4/gc-hmac-sha1.m4: New file.
82703
82704         * m4/gc-sha1: New file.
82705
82706         * m4/hmac-sha1.m4: New file.
82707
82708 2005-10-12  Simon Josefsson  <jas@extundo.com>
82709
82710         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
82711
82712         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
82713
82714 2005-10-12  Simon Josefsson  <jas@extundo.com>
82715
82716         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
82717         suggested by Bruno Haible <bruno@clisp.org>.
82718
82719 2005-10-12  Simon Josefsson  <jas@extundo.com>
82720
82721         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
82722
82723 2005-10-12  Simon Josefsson  <jas@extundo.com>
82724
82725         * lib/gc-pbkdf2-sha1.c: New file.
82726
82727         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
82728
82729 2005-10-12  Simon Josefsson  <jas@extundo.com>
82730
82731         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
82732
82733         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
82734
82735 2005-10-12  Simon Josefsson  <jas@extundo.com>
82736
82737         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
82738         GC_USE_HMAC_MD5, respectively.
82739
82740         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
82741         (gc_md5): Fix typo.
82742
82743         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
82744
82745         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
82746
82747         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
82748
82749 2005-10-12  Bruno Haible  <bruno@clisp.org>
82750
82751         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
82752         Reported by Stepan Kasal <kasal@ucw.cz>.
82753
82754 2005-10-11  Simon Josefsson  <jas@extundo.com>
82755
82756         * tests/test-crc.c: New file.
82757
82758         * modules/crc, modules/crc-tests: New files.
82759
82760 2005-10-11  Simon Josefsson  <jas@extundo.com>
82761
82762         * m4/crc.m4: New file.
82763
82764 2005-10-11  Simon Josefsson  <jas@extundo.com>
82765
82766         * lib/gc.h: Add gc_hash and gc_hash_buffer.
82767
82768         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
82769
82770         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
82771
82772 2005-10-11  Simon Josefsson  <jas@extundo.com>
82773
82774         * lib/crc.h, lib/crc.c: New files.
82775
82776         * lib/gc.h (gc_hash_buffer): Add doc.
82777
82778 2005-10-11  Bruno Haible  <bruno@clisp.org>
82779
82780         * modules/c-strcasestr: New file.
82781         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
82782
82783 2005-10-11  Bruno Haible  <bruno@clisp.org>
82784
82785         * modules/c-strcase: New file.
82786         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
82787
82788 2005-10-11  Bruno Haible  <bruno@clisp.org>
82789
82790         * lib/strcasecmp.c: Include limits.h.
82791         (strcasecmp): Avoid integer overflow on exotic platforms.
82792         * lib/strncasecmp.c: Include limits.h.
82793         (strncasecmp): Avoid integer overflow on exotic platforms.
82794         Reported by Paul Eggert.
82795
82796 2005-10-11  Bruno Haible  <bruno@clisp.org>
82797
82798         * lib/c-strcasestr.h: New file, from GNU gettext.
82799         * lib/c-strcasestr.c: New file, from GNU gettext.
82800
82801 2005-10-11  Bruno Haible  <bruno@clisp.org>
82802
82803         * lib/c-strcase.h: New file, from GNU gettext.
82804         * lib/c-strcasecmp.c: New file, from GNU gettext.
82805         * lib/c-strncasecmp.c: New file, from GNU gettext.
82806
82807 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
82808
82809         * modules/mempcpy (License): GPL -> LGPL.
82810         * modules/strchrnul (License): Likewise.
82811         * modules/sysexits (License): Likewise.
82812
82813 2005-10-08  Simon Josefsson  <jas@extundo.com>
82814
82815         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
82816
82817 2005-10-07  Simon Josefsson  <jas@extundo.com>
82818
82819         * m4/memxor.m4: Remove gl_C_RESTRICT call.
82820
82821 2005-10-06  Simon Josefsson  <jas@extundo.com>
82822
82823         * tests/test-hmac-md5.c: New file.
82824
82825         * modules/hmac-md5-tests: New file.
82826
82827         * modules/hmac-md5: New file.
82828
82829 2005-10-06  Simon Josefsson  <jas@extundo.com>
82830
82831         * m4/hmac-md5.m4: New file.
82832
82833         * m4/memxor.m4: Require gl_C_RESTRICT.
82834
82835 2005-10-06  Simon Josefsson  <jas@extundo.com>
82836
82837         * lib/memxor.c (memxor): Avoid casts and warnings.
82838
82839 2005-10-06  Simon Josefsson  <jas@extundo.com>
82840
82841         * lib/hmac-md5.c: New file.
82842
82843         * lib/hmac.h: New file.
82844
82845 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
82846
82847         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
82848         promotes to int, not unsigned int, to catch the AIX 5.3
82849         compiler bug.
82850
82851 2005-10-05  Simon Josefsson  <jas@extundo.com>
82852
82853         * modules/memxor: New file.
82854
82855         * modules/iconv (Files): Move config.rpath to havelib, it is used
82856         there.
82857
82858         * modules/havelib (Files): Add config.rpath.
82859
82860 2005-10-05  Simon Josefsson  <jas@extundo.com>
82861
82862         * m4/memxor.m4: New file.
82863
82864 2005-10-05  Simon Josefsson  <jas@extundo.com>
82865
82866         * lib/memxor.c (memxor): Fix compiler error.
82867
82868         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
82869         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
82870
82871         * lib/memxor.h, lib/memxor.c: New files.
82872
82873         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
82874         we assume all systems have it, suggested by Jim Meyering
82875         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
82876         any systems lack sys/socket.h; mingw32 is known to lack it, but we
82877         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
82878         same reasons.
82879
82880 2005-10-05  Simon Josefsson  <jas@extundo.com>
82881
82882         * config/srclist.txt: Add glibc bug 1423 for md5.h.
82883
82884 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
82885
82886         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
82887         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
82888         needed, since the source code now assumes these .h files.
82889
82890 2005-10-05  Derek Price  <derek@ximbiot.com>
82891
82892         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
82893
82894 2005-10-05  Bruno Haible  <bruno@clisp.org>
82895
82896         * modules/stdint (License): Change to LGPL.
82897
82898 2005-10-04  Simon Josefsson  <jas@extundo.com>
82899
82900         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
82901         D. Baushke" <mdb@gnu.org>.
82902
82903 2005-10-04  Bruno Haible  <bruno@clisp.org>
82904
82905         * lib/verify.h (verify_true): Provide alternative definition for C++.
82906
82907 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
82908
82909         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
82910         (SSIZE_MAX): New macro, if not already defined.
82911         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
82912         than 2 GiB.
82913
82914 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
82915
82916         Sync from coreutils.
82917         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
82918         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
82919         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
82920         ULLONG_MAX doesn't work with 2.7.2.1.
82921
82922 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
82923
82924         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
82925         From Ben Pfaff.
82926
82927         * modules/exclude (Depends-on): Depend on verify.
82928         * modules/strtoimax (Depends-on): Likewise.
82929         * modules/utimecmp (Depends-on): Likewise.
82930
82931 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
82932
82933         * lib/exclude.c: Include verify.h.
82934         (verify): Remove.  All callers changed to use verify.h's version.
82935         * lib/strtoimax.c: Likewise.
82936         * lib/utimecmp.c: Likewis.e
82937
82938         Sync from coreutils.
82939         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
82940         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
82941         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
82942         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
82943         bother returning ENOSYS if settimeofday or stime fails; just let
82944         them return whatever errno they want to return.
82945         * lib/utimens.c: Include unistd.h, for dup2.
82946         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
82947         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
82948
82949 2005-10-02  Jim Meyering  <jim@meyering.net>
82950
82951         Sync from coreutils.
82952         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
82953         from glibc-2.2.5 that fails for read-only files.
82954
82955 2005-10-02  Jim Meyering  <jim@meyering.net>
82956
82957         Sync from coreutils.
82958         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
82959         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
82960         `#if HAVE_CONFIG_H'.
82961         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
82962         Remove AT_FDCWD test.
82963         Do not consume the fd unless successful.
82964         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
82965         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
82966         block, so that we don't even try to compile it if settimeofday is
82967         available.  This works around a compilation failure on OSF1 V5.1,
82968         due to stime requiring a `long int*' while tv_sec is `int'.
82969
82970 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
82971
82972         Sync from coreutils.
82973         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
82974         against `yes', rather than just testing for nonempty.
82975
82976 2005-10-01  Simon Josefsson  <jas@extundo.com>
82977
82978         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
82979         and Darwin.
82980
82981         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
82982         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
82983         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
82984         freeaddrinfo and gai_strerror are declared by the POSIX headers.
82985         Check if struct addrinfo is declared.
82986
82987 2005-10-01  Simon Josefsson  <jas@extundo.com>
82988
82989         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
82990         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
82991         AI_* and EAI_* definitions.  Protect function declarations.
82992
82993 2005-10-01  Jim Meyering  <jim@meyering.net>
82994
82995         Sync from coreutils.
82996
82997         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
82998         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
82999         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
83000         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
83001         in the inet and nsl libraries.  Required on Solaris 5.7.
83002
83003 2005-10-01  Jim Meyering  <jim@meyering.net>
83004
83005         Sync from coreutils.
83006         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
83007         in the inet and nsl libraries.  Required on Solaris 5.7.
83008
83009 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
83010
83011         * lib/getdelim.c (getdelim): Remove unused variables.
83012
83013 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
83014
83015         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
83016         so that the code works even with ancient cpp.  Portability problem
83017         with GCC 2.7.2.1 reported by Thomas M.Ott.
83018
83019 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
83020
83021         * modules/regex (Depends-on): Add strcase.
83022
83023         * modules/gethostname (Licence): Change from GPL to LGPL, since
83024         gethostname.c is a trivial implementation of a standard library
83025         function.
83026         * modules/poll (License): Change from GPL to LGPL, since it's
83027         derived from LGPL code.
83028
83029 2005-09-27  Jim Meyering  <jim@meyering.net>
83030
83031         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
83032         HAVE_CONFIG_H.
83033
83034         * lib/intprops.h (signed_type_or_expr__): Define.
83035         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
83036         for unsigned types.
83037
83038 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
83039
83040         * lib/verify.h (verify_expr): Remove, replacing with:
83041         (verify_true): New macro that returns true instead of void.
83042         (verify_type__): Remove.
83043         (verify): Use verify_true rather than verify_type__.
83044
83045 2005-09-26  Bruno Haible  <bruno@clisp.org>
83046
83047         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
83048         is necessary.
83049         (lib_SOURCES): Remove mbchar.c.
83050         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
83051         (Files): Add m4/mbrtowc.m4.
83052         * modules/mbiter: Likewise.
83053         * modules/mbuiter: Likewise.
83054
83055 2005-09-26  Bruno Haible  <bruno@clisp.org>
83056
83057         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
83058         compile mbchar.c if they are not both present.
83059         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
83060         * m4/mbiter.m4 (gl_MBITER): Likewise.
83061         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
83062         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
83063         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
83064
83065 2005-09-25  Jim Meyering  <jim@meyering.net>
83066
83067         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
83068         also uses socklen_t.
83069
83070 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
83071
83072         * lib/utimens.c (ENOSYS): Define if not already defined.
83073         (futimens): Support having a null PATH if the file descriptor
83074         is nonnegative.
83075
83076         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
83077         Remove.
83078         (__attribute): Define to empty unless GCC 3.1 or later.
83079         This works around a core dump on OpenBSD 3.4, which has GCC
83080         2.95.3, which dumps core when given __attribute__(()).  It also
83081         simplifies other tests, since we really don't want to bother with
83082         worrying about which ancient version of GCC supported what.
83083         Original problem reported by Yoann Vandoorselaere, with part of
83084         the fix suggested by Derek Price.
83085
83086 2005-09-24  Jim Meyering  <jim@meyering.net>
83087
83088         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
83089         so we can once again use a positive bitfield width of 1 -- now we
83090         don't have to explain why we were using a bitfield width of 2.
83091
83092 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
83093
83094         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
83095         and similarly for the other external symbols.  Problem reported
83096         by James Gallager.
83097
83098         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
83099         bug reported by Jim Meyering.
83100
83101         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
83102         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
83103         not needed, since socklen is a prerequisite module.
83104
83105 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
83106
83107         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
83108         Problem reported by Eric Blake.
83109         (getaddrinfo): Initialize se so that it's not garbage.
83110         Redo internal storage allocation so that it doesn't make unportable
83111         assumptions about alignment.
83112         Fix a memory leak.
83113
83114         * lib/utimens.c (futimens): Use futimesat if available.
83115         Prefer it to futimes since it doesn't have the futimes bug.
83116
83117         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
83118         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
83119         Instead, declare a function that returns a pointer to an array,
83120         and use verify_type__ to declare the size of the array.
83121         Problem and germ of a solution reported by Bruno Haible.
83122         (verify_type__): Use 2, not 1, for bitfield size, to avoid
83123         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
83124
83125 2005-09-23  Jim Meyering  <jim@meyering.net>
83126
83127         Sync from coreutils.
83128         Correct build failure (socklen_t not defined) on at least
83129         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
83130         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
83131
83132 2005-09-23  Jim Meyering  <jim@meyering.net>
83133
83134         * modules/getaddrinfo (Depends-on): Add socklen.
83135
83136 2005-09-23  Bruno Haible  <bruno@clisp.org>
83137
83138         * tests/test-verify.c: New file.
83139
83140 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83141
83142         Sync from coreutils.
83143
83144         * modules/argmatch (Depends-on): Add verify.
83145         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
83146         unistd-safer.
83147         * modules/save-cwd (Depends-on): Likewise.
83148
83149         * modules/openat (Files): Add lib/openat-die.c.
83150         (Depends-on): Remove error, exitfail.
83151         Add dirname.
83152
83153         * modules/verify: New file.
83154         * MODULES.html.sh (Diagnostics <assert.h>): New section,
83155         with "verify" module.
83156
83157 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83158
83159         Sync from coreutils.
83160
83161         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
83162         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
83163         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
83164         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
83165         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
83166         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
83167         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
83168         Don't bother checking for string.h, stdlib.h, unistd.h.
83169         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
83170         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
83171         module's job.
83172         * m4/jm-macros.m4 (gl_MACROS): Likewise.
83173         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
83174
83175         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
83176         (gl_GETDATE): Use it.
83177
83178         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
83179
83180 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83181
83182         Sync from coreutils.
83183
83184         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
83185         stat-time.h.
83186         * lib/argmatch.h: Include verify.h
83187         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
83188         (ARGMATCH_ASSERT): Remove; unused.
83189         * lib/canonicalize.c: Assume STDC_HEADERS.
83190         * lib/exclude.c: Include "strcase.h".
83191         * lib/regex_internal.h [!defined _LIBC]: Likewise.
83192         * lib/getusershell.c: Include stdio--.h rather than stdio.h
83193         and stdio-safer.h.
83194         (getusershell): Call fopen, not fopen_safer.
83195         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
83196         Do not include unistd-safer.h.
83197         (save_cwd): Don't call fd_safer; no longer needed
83198         now that we include fcntl--.h.
83199
83200         * lib/getdate.y (relative_time): New type.
83201         (RELATIVE_TIME_0): New constant.
83202         (parser_control): Use relative_time instead of doing it ourselves.
83203         (%union): Add new relative_time rel member.
83204         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
83205         Now typeless.
83206         (relunit, relunit_snumber): Now of type rel.
83207         (zone, rel, relunit, get_date): Adjust to above changes.
83208
83209         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
83210         Do not include unistd-safer.h.
83211         (getloadavg): Don't call fd_safer; no longer needed
83212         now that we include fcntl--.h.
83213
83214         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
83215         (make_dir_parents): Treat ENOSYS like EEXIST.
83216
83217         Improve quality of diagnostics on restore_cwd failure.
83218         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
83219         (make_dir_parents): Last arg is now int * (for errno), not bool *.
83220         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
83221         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
83222         each time through the loop.  Do not diagnose restore_cwd failure;
83223         that is the caller's job (and perhaps the caller does not care).
83224
83225         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
83226         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
83227         If the file already exists but is not a directory, don't bother
83228         to try to make its parents.
83229         Close potential file descriptor leak if we can't chdir("/") (!).
83230         Don't always return true if chdir($PWD) fails; return true only
83231         if the requested action was done successfully (except for the
83232         chdir($PWD)).
83233         Don't log final directory unless we actually made it.
83234         Refactor to avoid duplicate code to fix up permissions.
83235         Don't attempt to fix up parent permissions if chdir($PWD) fails.
83236
83237         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
83238         to make it a bit faster and (I hope) clearer.
83239         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
83240         Fix bug in formats like %2N.
83241
83242         * lib/verify.h: New file.
83243
83244 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
83245
83246         Sync from coreutils.
83247         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
83248
83249 2005-09-22  Jim Meyering  <jim@meyering.net>
83250
83251         Sync from coreutils.
83252
83253         * m4/lstat.m4 (gl_FUNC_LSTAT):
83254         Use AC_LIBSOURCES to require lstat.c and lstat.h.
83255         Remove obsolete comment.
83256         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
83257         * m4/xstrtod.m4: Likewise.
83258
83259         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
83260
83261 2005-09-22  Jim Meyering  <jim@meyering.net>
83262
83263         Sync from coreutils.
83264
83265         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
83266
83267         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
83268         the .tm_year member, since otherwise gcc-4.0 would now warn about
83269         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
83270
83271         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
83272         order to avoid an unsuppressible warning from gcc on 64-bit systems.
83273
83274         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
83275         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
83276         when run in a time zone for which daylight savings time is in effect
83277         for the starting date.
83278
83279         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
83280         stop us from restricting permissions of just-created absolute-named
83281         directories.
83282         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
83283         to restore initial working directory.
83284         * lib/mkdir-p.c (make_dir_parents): New parameter:
83285         different_working_dir, to tell caller if/when we change the working
83286         directory and are unable to return to the initial one.
83287         * lib/mkdir-p.h (make_dir_parents): Update prototype.
83288         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
83289         `return false'.  This fixes a bug introduced on 2004-07-30.
83290
83291         * lib/openat.c (fdopendir): Be sure to close the supplied
83292         file descriptor before returning.  This makes our replacement
83293         implementation a little closer to Solaris's, where fdopendir
83294         ties the file descriptor to the returned DIR* pointer.
83295         * lib/openat.c (unlinkat): New function.
83296         * lib/openat.h (unlinkat): Add prototype.
83297         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
83298         (openat_restore_fail): Rename from openat_restore_die.
83299         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
83300
83301         Provide an alternative to exiting immediately upon save_cwd or
83302         restore_cwd failure.  Now, an application can arrange e.g.,
83303         to perform a longjump in that case.
83304         * lib/openat.c: Include dirname.h.
83305         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
83306         (rpl_openat, fdopendir, fstatat): Call openat_save_die
83307         and openat_restore_die rather than calling error directly.
83308         Don't include "error.h" or "exitfail.h"; they're no longer needed.
83309
83310         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
83311         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
83312         define.
83313
83314         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
83315         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
83316                             int utc, int nanoseconds);
83317         Background:
83318         date should not have to allocate a megabyte of virtual memory to
83319         handle a format argument like +%1048575T.  When implemented with
83320         strftime, it must allocate such a buffer, use strftime to fill it
83321         in, print it, then free it.
83322         With fprintftime, it simply prints everything and exits.
83323         With no need for memory allocation, that's one fewer way to fail.
83324         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
83325         optional field width, not before, so we accept %9:z, not %:9z.
83326         (my_strftime): Be sure to use L_('x') for literals.
83327
83328         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
83329         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
83330         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
83331         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
83332         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
83333         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
83334         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
83335         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
83336         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
83337         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
83338         * lib/xgethostname.c, lib/xreadlink.c:
83339         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
83340
83341         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
83342         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
83343         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
83344         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
83345         and don't include <sys/file.h>).
83346
83347 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
83348
83349         Sync from coreutils.
83350
83351         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
83352         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
83353         [!LDAV_DONE]: Avoid unused variable warning.
83354
83355 2005-09-21  Bruno Haible  <bruno@clisp.org>
83356
83357         * lib/unicodeio.h (unicode_to_mb): New declaration.
83358
83359 2005-09-20  Derek Price  <derek@ximbiot.com>
83360
83361         * lib/getaddrinfo.c: Don't include <netdb.h> included from
83362         getaddrinfo.h.
83363
83364 2005-09-20  Bruno Haible  <bruno@clisp.org>
83365
83366         * gnulib-tool: Remove trailing slashes from the values specified for
83367         --source-base, --m4-base, --tests-base, --aux-dir.
83368         Suggested by Simon Josefsson <jas@extundo.com>.
83369
83370 2005-09-20  Bruno Haible  <bruno@clisp.org>
83371
83372         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
83373         func_modules_to_filelist, func_import, func_create_testdir): Make all
83374         sorting results locale-independent, so that gnulib-cache.m4 doesn't
83375         change when gnulib-tool is invoked in a different locale.
83376
83377 2005-09-19  Simon Josefsson  <jas@extundo.com>
83378
83379         * m4/socklen.m4: Fix typo.
83380
83381 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
83382
83383         Use a consistent style for including <config.h>.
83384         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
83385         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
83386         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
83387         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
83388         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
83389         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
83390         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
83391         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
83392         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
83393         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
83394         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
83395         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
83396         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
83397         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
83398         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
83399         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
83400         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
83401         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
83402         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
83403         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
83404         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
83405         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
83406         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
83407         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
83408         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
83409         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
83410         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
83411         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
83412         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
83413         lib/xstrtoumax.c, lib/yesno.c:
83414         Standardize inclusion of config.h.
83415         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
83416         lib/inttostr.h:  Removed inclusion of config.h from header files.
83417         * lib/inttostr.c:  Adjusted in-tree users.
83418         * lib/timespec.h: Remove superfluous warning to include config.h.
83419         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
83420         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
83421         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
83422         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
83423         config.h with HAVE_CONFIG_H.
83424
83425 2005-09-19  Jim Meyering  <jim@meyering.net>
83426
83427         * modules/pathmax (License): Change to LGPL.
83428
83429 2005-09-19  Derek Price  <derek@ximbiot.com>
83430
83431         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
83432
83433 2005-09-19  Bruno Haible  <bruno@clisp.org>
83434
83435         * gnulib-tool (import): Provide default for --tests-base.
83436
83437 2005-09-19  Bruno Haible  <bruno@clisp.org>
83438
83439         * doc/quote.texi: New file, extracted from gnulib.texi.
83440         * doc/ctime.texi: New file, extracted from gnulib.texi.
83441         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
83442         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
83443         * doc/gnulib.texi: Include them.
83444
83445 2005-09-18  Bruno Haible  <bruno@clisp.org>
83446
83447         Portability fix.
83448         * gnulib-tool (func_readlink): New function.
83449         (func_ln_if_changed): Use it.
83450
83451 2005-09-18  Bruno Haible  <bruno@clisp.org>
83452
83453         * gnulib-tool: Support --with-tests also with --import.
83454         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
83455         (func_import): Use variables $testsbase and $inctests. Emit a
83456         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
83457         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
83458         SUBDIRS += $testsdir.
83459         (func_create_testdir): Update.
83460
83461 2005-09-18  Bruno Haible  <bruno@clisp.org>
83462
83463         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
83464         instead of $dry_run.
83465         (func_cp_if_changed, func_mv_if_changed): Remove functions.
83466         (func_ln_if_changed): Don't handle dry-run here.
83467         (func_import): In dry-run mode, detect more precisely which actions
83468         would be performed, and don't use "...ing" verbs.
83469
83470 2005-09-18  Bruno Haible  <bruno@clisp.org>
83471
83472         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
83473         (func_import): Use join on two temporary files instead of three nested
83474         loops, in order to determine which files are new or old.
83475
83476 2005-09-18  Bruno Haible  <bruno@clisp.org>
83477
83478         * gnulib-tool (func_import): Comment out code that spits out the
83479         new files with --dry-run.
83480
83481 2005-09-18  Bruno Haible  <bruno@clisp.org>
83482
83483         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
83484
83485 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83486
83487         * lib/stat-time.h: New file.
83488         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
83489         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
83490         in a different way.
83491         (timespec_cmp): New function.
83492         * lib/utimecmp.c: Include stat-time.h.
83493         (SYSCALL_RESOLUTION): Depend on whether various struct stat
83494         members exist, not on the obsolescent ST_MTIM_NSEC.
83495         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
83496
83497 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83498
83499         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
83500
83501 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
83502
83503         * MODULES.html.sh (File system functions): Add stat-time.
83504         * modules/stat-time: New file.
83505         * modules/timespec (Files): Remove m4/st_mtim.m4; this
83506         is now done in a different way, by the stat-time module.
83507         * modules/utimecmp (Depends-on): Add stat-time.
83508
83509 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
83510
83511         * m4/st_mtim.m4: Remove.  Superseded by...
83512         * m4/stat-time.m4: New file.
83513         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
83514         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
83515
83516 2005-09-15  Derek Price  <derek@ximbiot.com>
83517
83518         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
83519
83520 2005-09-15  Derek Price  <derek@ximbiot.com>
83521
83522         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
83523         * lib/regex_internal.c: Ditto, using this...
83524         (__GNUC_PREREQ): ...new macro.
83525         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
83526         using...
83527         (__GNUC_PREREQ): ...this new macro.
83528
83529         * lib/strstr.h: Include string.h. Define strstr as a macro here.
83530
83531 2005-09-15  Derek Price  <derek@ximbiot.com>
83532             Paul Eggert  <eggert@cs.ucla.edu>
83533
83534         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
83535         changes, consolidating in...
83536         * lib/regex_internal.h: ...this file.
83537
83538 2005-09-13  Jim Meyering  <jim@meyering.net>
83539
83540         * lib/canon-host.c: Filter through gnu indent and reword comments
83541         slightly.
83542         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
83543
83544 2005-09-13  Derek Price  <derek@ximbiot.com>
83545
83546         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
83547         failure.
83548         Reported by Jim Meyering  <jim@meyering.net>.
83549
83550 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83551
83552         * lib/base64.c: Typo.
83553         (base64_encode): Put b64str in initialized data section.
83554
83555 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
83556
83557         Merge glibc and coreutils changes into gnulib, plus a few
83558         extra fixes.
83559         * lib/md5.c: Use #error rather than a string.
83560         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
83561         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
83562         (__attribute__): Define to empty for non recent-GCC.
83563         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
83564         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
83565         Renamed from their non-__ counterparts, with new macros replacing
83566         them if not _LIBC.  Add __THROW attribute.
83567         (rol): Remove.
83568         (struct md5_ctx): Align buffer if using GCC.
83569         * lib/sha1.h (struct sha1_ctx): Likewise.
83570         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
83571         The old name was backwards.
83572         (NOTSWAP): Remove; not used.
83573         (rol): New macro, moved here from md5.h.
83574         (sha1_process_block): Remove a FIXME that doesn't make sense.
83575
83576 2005-09-12  Derek Price  <derek@ximbiot.com>
83577
83578         Return usable errors from canon-host.
83579         * lib/canon-host.h: New file.
83580         * lib/canon-host.c (canon_host): Wrap...
83581         (canon_host_r): ...this new function, which now relies exclusively on
83582         getaddrinfo.
83583         (ch_strerror): New function.
83584         (last_cherror): New global.
83585         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
83586         interface.
83587         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
83588         void *.
83589         (freeaddrinfo): Free ai->ai_canonname when set.
83590
83591 2005-09-12  Derek Price  <derek@ximbiot.com>
83592
83593         Make canon-host require getaddrinfo.
83594         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
83595         AC_LIBSOURCE canon-host.h.  Call...
83596         (gl_PREREQ_CANON_HOST): ...this new function, which requires
83597         gl_GETADDRINFO.
83598         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
83599
83600 2005-09-12  Derek Price  <derek@ximbiot.com>
83601
83602         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
83603         LGPL.
83604         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
83605
83606 2005-09-12  Derek Price  <derek@ximbiot.com>
83607
83608         * lib/gai_strerror.c: Include config.h when available.  Include
83609         getaddrinfo.h before other headers to test interface.
83610         Reported by Larry Jones <lawrence.jones@ugs.com>.
83611
83612 2005-09-12  Derek Price  <derek@ximbiot.com>
83613             Paul Eggert  <eggert@cs.ucla.edu>
83614
83615         * modules/glob (Files): Add glob-libc.h.
83616
83617 2005-09-12  Derek Price  <derek@ximbiot.com>
83618             Paul Eggert  <eggert@cs.ucla.edu>
83619
83620         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
83621         glob_.h, glob-libc.h.
83622         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
83623
83624 2005-09-12  Derek Price  <derek@ximbiot.com>
83625             Paul Eggert  <eggert@cs.ucla.edu>
83626
83627         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
83628         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
83629         protecting things that should be done only in gnulib contexts.
83630         * lib/glob_.h: New file, containing only the glob things needed for
83631         gnulib.
83632         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
83633         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
83634         (glob, globfree, glob_pattern_p): Now defined simply in terms of
83635         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
83636         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
83637         and to respect the namespace rules better.
83638
83639 2005-09-08  Simon Josefsson  <jas@extundo.com>
83640
83641         * modules/socklen: New file.
83642
83643 2005-09-08  Simon Josefsson  <jas@extundo.com>
83644
83645         * m4/socklen.m4: New file.
83646
83647 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83648
83649         * modules/utimens (Files): Add m4/utimbuf.m4, since
83650         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
83651         Reported by Sergey Poznyakoff.
83652
83653 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83654
83655         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
83656         definitions, since that's the preferred style in glibc.
83657         Fix a minor spacing issue, and update copyright notice to match
83658         glibc's.
83659
83660 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
83661
83662         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
83663
83664 2005-09-06  Simon Josefsson  <jas@extundo.com>
83665
83666         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
83667         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
83668
83669 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83670
83671         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
83672         warning.
83673
83674 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
83675
83676         * config/srclist.txt: Add glibc bug 1302.
83677
83678 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
83679
83680         Change bitset word type from unsigned int to unsigned long int,
83681         as this has better performance on typical 64-bit hosts.
83682         Port bitset code to hosts with unusual word sizes.
83683         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
83684         (build_collating_symbol):
83685         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
83686         argument is a bitset.  This is merely a style issue, but it makes
83687         it clearer that an entire array is expected.
83688         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
83689         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
83690         Port to the case where bitset_word is not the same as unsigned int.
83691         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
83692         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
83693         Likewise.
83694         * lib/regexec.c (check_dst_limits_calc_pos_1,
83695         check_subexp_matching_top):
83696         (build_trtable, group_nodes_into_DFAstates):
83697         Likewise.
83698         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
83699         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
83700         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
83701         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
83702         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
83703         * lib/regcomp.c (optimize_subexps, lower_subexp):
83704         Work even if bitset_word has holes in its bitwise representation.
83705         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
83706         * lib/regexec.c (check_dst_limits_calc_pos_1,
83707         check_subexp_matching_top):
83708         Likewise.
83709         * lib/regex_internal.c (re_string_reconstruct):
83710         Don't assume UCHAR_MAX == 255.
83711         * lib/regex_internal.h (bitset_set_all): Likewise.
83712         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
83713         All uses changed.
83714         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
83715         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
83716         All uses changed.
83717         (BITSET_WORD_MAX): New macro.
83718         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
83719         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
83720         (bitset_empty, bitset_copy):
83721         Prefer sizeof (bitset) to multiplying it out ourselves.
83722         (bitset_not_merge): Remove; unused.
83723         (bitset_contain): Return bool, not unsigned int with one bit on.
83724         All callers changed.
83725         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
83726         alignment than re_node_set; do this by defining a new internal
83727         type struct dests_alloc and using it to allocate memory.
83728
83729 2005-09-05  Bruno Haible  <bruno@clisp.org>
83730
83731         * gnulib-tool (func_import): Fix comparison in handling of symbolic
83732         links.
83733
83734 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
83735
83736         * modules/size_max (Makefile.am): Add size_max.h
83737
83738 2005-09-04  Derek Price  <derek@ximbiot.com>
83739
83740         * gnulib-tool (func_import): Fix reversed $symbolic logic.
83741
83742 2005-09-03  Simon Josefsson  <jas@extundo.com>
83743
83744         * gnulib-tool: Fix typo.
83745
83746 2005-09-03  Simon Josefsson  <jas@extundo.com>
83747
83748         * config/srclist.txt: Add glibc bug 1293.
83749
83750 2005-09-03  Derek Price  <derek@ximbiot.com>
83751
83752         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
83753         From Larry Jones <lawrence.jones@ugs.com>.
83754
83755 2005-09-02  Simon Josefsson  <jas@extundo.com>
83756
83757         * modules/socklen: New file.
83758
83759 2005-09-02  Simon Josefsson  <jas@extundo.com>
83760
83761         * modules/havelib: New module.
83762
83763         * modules/gettext, modules/iconv, modules/lock, modules/readline:
83764         Use havelib.
83765
83766 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
83767
83768         Check for arithmetic overflow when calculating sizes, to prevent
83769         some buffer-overflow issues.  These patches are conservative, in the
83770         sense that when I couldn't determine whether an overflow was possible,
83771         I inserted a run-time check.
83772         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
83773         macros.
83774         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
83775         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
83776         (re_xnrealloc, re_x2nrealloc): New inline functions.
83777         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
83778         parse_bracket_exp):
83779         (build_equiv_class, build_charclass): Check for arithmetic overflow
83780         in size expression calculations.
83781         * lib/regex_internal.c (re_string_realloc_buffers):
83782         (build_wcs_upper_buffer, re_node_set_add_intersect):
83783         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
83784         (re_dfa_add_node, register_state): Likewise.
83785         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
83786         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
83787         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
83788         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
83789
83790 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
83791
83792         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
83793         m4/ulonglong.m4.  Problem reported by Martin Lambers.
83794
83795 2005-09-02  Bruno Haible  <bruno@clisp.org>
83796
83797         Support for lib vs. lib64 distinction on biarch platforms.
83798         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
83799         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
83800         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
83801
83802 2005-09-02  Bruno Haible  <bruno@clisp.org>
83803
83804         * gnulib-tool (import): In the other first-use case, provide defaults
83805         as well.
83806
83807 2005-09-02  Bruno Haible  <bruno@clisp.org>
83808
83809         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
83810         patches not yet found in the latest gettext release.
83811
83812 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
83813
83814         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
83815         to avoid a collision with bits/local_lim.h in glibc.
83816         All uses changed.  Problem reported by Dmitry V. Levin in
83817         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
83818
83819         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
83820         bugs in int versus size_t comparisons.
83821         (re_string_context_at): Fix bug where the code assumed that
83822         Idx is signed.
83823
83824         Use bool where appropriate.
83825         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
83826         All callers changed.
83827         (calc_eclosure_iter): Likewise, for ROOT arg.
83828         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
83829         (build_charclass_op): Likewise, for NON_MATCH arg.
83830         * lib/regex_internal.c (re_string_allocate, re_string_construct):
83831         (re_string_construct_common): Likewise, for ICASE arg.
83832         * lib/regexec.c (re_search_2_stub, re_search_stub):
83833         Likewise, for RET_LEN arg.
83834         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
83835         (set_regs): Likewise, for FL_BACKTRACK arg.
83836         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
83837         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
83838         (calc_eclosure_iter, parse_bracket_exp):
83839         Use bool for internal variables that are booleans.
83840         * lib/regexec.c (re_search_internal, check_matching,
83841         proceed_next_node):
83842         (set_regs, build_sifted_states, sift_states_bkref):
83843         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
83844         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
83845         (find_collation_sequence_value):
83846         Likewise.
83847         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
83848         (re_node_set_compare):
83849         Return bool, not int. All callers changed.
83850         * lib/regexec.c (check_halt_node_context, check_dst_limits):
83851         (build_trtable, check_node_accept): Likewise.
83852         * lib/regex_internal.h: Include stdbool.h.
83853
83854         Fix bugs uncovered when converting to bool.
83855         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
83856         failure instead of charging ahead blindly.
83857         * lib/regex_internal.c (register_state): Likewise.
83858         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
83859         for freeing internal storage.
83860         (group_nodes_into_DFA_states): Use unsigned int, not int, for
83861         bitset pieces used as boolean, to avoid undefined behavior
83862         on hosts that do int overflow checking.
83863
83864 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
83865
83866         * config/srclist.txt: Add glibc bugs 1285-1287.
83867
83868 2005-09-01  Jim Meyering  <jim@meyering.net>
83869
83870         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
83871         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
83872         Require gl_STAT_MACROS, too.
83873
83874 2005-09-01  Bruno Haible  <bruno@clisp.org>
83875
83876         * gnulib-tool (import): In the first-use case, provide defaults.
83877
83878 2005-09-01  Bruno Haible  <bruno@clisp.org>
83879
83880         * gnulib-tool (func_import): Remove the .tmp files.
83881
83882 2005-09-01  Bruno Haible  <bruno@clisp.org>
83883
83884         * gnulib-tool (func_import): Fix handling of symbolic links.
83885
83886 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
83887
83888         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
83889         old glibc regex code mishandles strings longer than 2**31 bytes.
83890         This patch fixes this when the regex code is used in gnulib
83891         (i.e., outside glibc).
83892
83893         This patch should not affect the use of the regex code inside
83894         glibc.  No doubt this problem also needs to be handled for glibc
83895         as well, but the result will be an incompatible change to the
83896         glibc ABI, and the old ABI will have to be supported too.  That
83897         can be the the subject for another patch.
83898
83899         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
83900         governing whether the rest of this patch is active.  By default,
83901         the macro is disabled and the patch has no effect.
83902         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
83903         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
83904         (struct re_pattern_buffer, re_search, re_search_2, re_match):
83905         (re_match_2, re_set_registers): Use the new types.
83906         * lib/regex_internal.h (Idx, re_hashval_t): New types.
83907         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
83908         New macros.
83909         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
83910         (re_string_context_at, bin_tree_t, re_dfastate_t):
83911         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
83912         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
83913         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
83914         (re_string_char_size_at, re_string_wchar_at):
83915         (re_string_elem_size_at):
83916         Use the new types and macros to port to 64-bit hosts.
83917         Use unsigned types for internal values, so that the code
83918         mostly works even for arrays larger than SSIZE_MAX.
83919         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
83920         (search_duplicated_node, calc_eclosure_iter, fetch_number):
83921         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
83922         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
83923         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
83924         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
83925         (calc_inveclosure, parse_dup_op, build_range_exp):
83926         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
83927         (fetch_number, create_token_tree, mark_opt_subexp):
83928         Likewise.
83929         * lib/regex_internal.c (re_string_construct_common,
83930         create_ci_newstate):
83931         (create_cd_newstate, re_string_allocate, re_string_construct):
83932         (re_string_realloc_buffers, build_wcs_upper_buffer):
83933         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
83934         (re_string_reconstruct, re_string_peek_byte_case):
83935         (re_string_fetch_byte_case, re_string_context_at):
83936         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
83937         (re_node_set_init_copy, re_node_set_add_intersect):
83938         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
83939         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
83940         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
83941         (re_acquire_state, re_acquire_state_context, register_state):
83942         Likewise.
83943         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
83944         search_cur_bkref_entry):
83945         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
83946         (re_search_internal, re_search_2_stub, re_search_stub)
83947         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
83948         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
83949         (update_cur_sifted_state, check_dst_limits):
83950         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
83951         (check_subexp_limits, sift_states_bkref, merge_state_array):
83952         (check_subexp_matching_top, get_subexp, get_subexp_sub):
83953         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
83954         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
83955         (expand_bkref_cache, check_node_accept_bytes):
83956         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
83957         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
83958         (acquire_init_state_context, check_halt_node_context):
83959         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
83960         (sift_states_backward, clean_state_log_if_needed):
83961         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
83962         (find_recover_state, transit_state_sb, transit_state_mb):
83963         (transit_state_bkref, build_trtable, match_ctx_clean):
83964         Likewise.
83965         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
83966         to work around an assumption that REG_MISSING is negative.
83967
83968         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
83969         (seek_collating_symbol_entry) [defined _LIBC]:
83970         (lookup_collation_sequence_value) [defined _LIBC]:
83971         (build_range_exp, build_collating_symbol) [defined _LIBC]:
83972         Use prototypes rather than old-style function definitions.
83973         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
83974         (transit_state_sb) [0]:
83975         (find_collation_sequence_value) [defined _LIBC]: Likewise.
83976
83977         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
83978         rm_eo.
83979
83980         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
83981         (optimize_subexps, lower_subexp):
83982         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
83983         since the signed shift might overflow.  Use 1u<<31 instead.
83984         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
83985         Likewise.
83986         * lib/regexec.c (check_dst_limits_calc_pos_1,
83987         check_subexp_matching_top): Likewise.
83988
83989         * lib/regcomp.c (optimize_subexps, lower_subexp):
83990         Use CHAR_BIT rather than 8, for clarity.
83991         * lib/regexec.c (check_dst_limits_calc_pos_1):
83992         (check_subexp_matching_top): Likewise.
83993         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
83994         have to worry about portability issues when shifting it left.
83995         Remove no-longer-needed test for table_size > 0.
83996         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
83997         in a word, as the resulting behavior is undefined.
83998         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
83999         in one case, a <= should have been an <, and in another case the
84000         whole test was missing.
84001         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
84002         the standard name CHAR_BIT.
84003         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
84004         this is not true on one's complement and signed-magnitude hosts.
84005
84006         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
84007         next_last_offset.
84008         (struct re_dfa_t): Remove unused member states_alloc.
84009         * lib/regcomp.c (init_dfa): Don't initialize unused members.
84010
84011 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84012
84013         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
84014         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
84015         and large-file glibc and in 32-bit large-file Solaris.
84016
84017 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84018
84019         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
84020         lengths fit in regoff_t; this isn't true if regoff_t is the same
84021         width as size_t.
84022         * lib/regex.c (re_search_internal): 5th arg is LAST_START
84023         (= START + RANGE) instead of RANGE.  This avoids overflow
84024         problems when regoff_t is the same width as size_t.
84025         All callers changed.
84026         (re_search_2_stub): Check for overflow when adding the
84027         sizes of the two strings.
84028         (re_search_stub): Check for overflow when adding START
84029         to RANGE; if it occurs, substitute the extreme value.
84030
84031 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
84032
84033         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
84034
84035 2005-08-31  Jim Meyering  <jim@meyering.net>
84036
84037         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
84038         a pointer-to-const.
84039         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
84040         (register_state): Likewise.
84041         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
84042         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
84043         (group_nodes_into_DFAstates): Likewise.
84044
84045 2005-08-31  Jim Meyering  <jim@meyering.net>
84046
84047         * check-module: Add a FIXME comment.
84048
84049 2005-08-31  Eric Blake  <ebb9@byu.net>
84050
84051         * modules/unistd-safer (Files): Add unistd--.h.
84052         * modules/stdio-safer (Files): Add stdio--.h.
84053
84054 2005-08-31  Derek Price  <derek@ximbiot.com>
84055
84056         * lib/getdelim.c (getdelim): Return EOF on EOF.
84057         Reported by Larry Jones <lawrence.jones@ugs.com>.
84058
84059 2005-08-31  Bruno Haible  <bruno@clisp.org>
84060
84061         Avoid unnecessary diffs in the generated lib/Makefile.am.
84062         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
84063         the generated files.
84064         (func_import): Don't set cmd.
84065
84066 2005-08-31  Bruno Haible  <bruno@clisp.org>
84067
84068         * lib/strstr.c: Include <stddef.h>, for NULL.
84069         * lib/strcasestr.c: Likewise.
84070         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
84071
84072 2005-08-31  Bruno Haible  <bruno@clisp.org>
84073
84074         * gnulib-tool: New option --macro-prefix.
84075         (func_import): Use macro_prefix.
84076         (import): Handle option --macro-prefix.
84077
84078 2005-08-31  Bruno Haible  <bruno@clisp.org>
84079
84080         * gnulib-tool (import): Rename most ac_* variables to cached_*.
84081         Also use new variables cached_lgpl, cached_libtool.
84082
84083 2005-08-31  Bruno Haible  <bruno@clisp.org>
84084
84085         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
84086         always instantiating them.
84087
84088 2005-08-31  Bruno Haible  <bruno@clisp.org>
84089
84090         * gnulib-tool (func_import): Read the previous cached settings
84091         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
84092         earlier added by gnulib but are now dropped. Warn when a gnulib file
84093         overwrites a non-gnulib file.
84094
84095 2005-08-31  Bruno Haible  <bruno@clisp.org>
84096
84097         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
84098         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
84099         projects that don't keep autogenerated files in CVS. Put into
84100         actioncmd only the specified modules, not the transitive closure.
84101
84102 2005-08-31  Bruno Haible  <bruno@clisp.org>
84103
84104         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
84105         Create directories that shall be filled.
84106         (import): Don't look for gl_* macros in configure.ac. Recurse across
84107         all directories containing a gnulib-cache.m4 files, if meaningful.
84108
84109 2005-08-31  Bruno Haible  <bruno@clisp.org>
84110
84111         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
84112         (import): Set seen_libtool when we see gl_LIBTOOL.
84113
84114 2005-08-31  Bruno Haible  <bruno@clisp.org>
84115
84116         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
84117         declaration macro definitions from generated gnulib.m4.
84118
84119 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
84120
84121         * lib/iconvme.h: Add prototype for iconv_alloc.
84122
84123 2005-08-29  Simon Josefsson  <jas@extundo.com>
84124
84125         * lib/iconvme.c: Fix errno.
84126
84127 2005-08-29  Bruno Haible  <bruno@clisp.org>
84128
84129         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
84130         that it works when the directory contains spaces.
84131
84132 2005-08-29  Bruno Haible  <bruno@clisp.org>
84133
84134         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
84135
84136 2005-08-29  Bruno Haible  <bruno@clisp.org>
84137
84138         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
84139         Emit more advice.
84140
84141 2005-08-29  Bruno Haible  <bruno@clisp.org>
84142         and Stepan Kasal  <kasal@ucw.cz>
84143
84144         * check-module: If more parameters are given, check each of them
84145         separately; add more exceptions, as noted by Jim Meyering.
84146         (check_module): New procedure.
84147         (%exempt_header): Now contains all exceptions.
84148
84149 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
84150
84151         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
84152
84153 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
84154
84155         * lib/iconvme.c: Split iconv_string into iconv_alloc.
84156
84157 2005-08-28  Bruno Haible  <bruno@clisp.org>
84158
84159         * m4/gnulib-tool.m4: New file.
84160
84161 2005-08-27  Jim Meyering  <jim@meyering.net>
84162
84163         * modules/unistd-safer (Files): Add pipe-safer.c.
84164         * modules/fcntl-safer (Files): Add creat-safer.c.
84165
84166 2005-08-27  Jim Meyering  <jim@meyering.net>
84167
84168         * m4/stdlib-safer.m4: New file.  From coreutils.
84169         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
84170         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
84171         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
84172         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
84173         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
84174
84175 2005-08-27  Jim Meyering  <jim@meyering.net>
84176
84177         * lib/fopen-safer.c: Merge minor changes from coreutils.
84178         * lib/dup-safer.c: Likewise.
84179         * lib/fd-safer.c: Likewise.
84180
84181         Merge from coreutils.
84182         * lib/stdio--.h: New file.
84183         * lib/stdlib--.h: New file.
84184         * lib/mkstemp-safer.c: New file.
84185
84186         GNU tar needs these.
84187         * lib/pipe-safer.c: New file.
84188         * lib/creat-safer.c: New file.
84189         * lib/fcntl--.h (creat): Define to creat_safer.
84190         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
84191         * lib/unistd--.h (pipe): Define to pipe_safer.
84192         * lib/unistd-safer.h: Declare pipe_safer.
84193
84194 2005-08-26  Simon Josefsson  <jas@extundo.com>
84195
84196         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
84197         Haible <bruno@clisp.org>.
84198
84199 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
84200
84201         * lib/regex_internal.h: Remove all references to
84202         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
84203         or better.
84204         (bitset_not, bitset_merge, bitset_not_merge):
84205         (bitset_mask, re_string_allocate, re_string_construct):
84206         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
84207         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
84208         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
84209         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
84210         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84211         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84212         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
84213         (re_acquire_state_context):
84214         Remove unnecessary forward decls.
84215         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
84216         Put __attribute at function definition,
84217         now that the function decl has been removed.
84218         * lib/regex_internal.c (re_string_peek_byte_case):
84219         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
84220         Likewise.
84221
84222 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
84223
84224         * m4/regex.m4: Add AC_PREREQ(2.50).
84225         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
84226
84227 2005-08-25  Simon Josefsson  <jas@extundo.com>
84228
84229         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
84230         __fsetlocking.
84231
84232 2005-08-25  Simon Josefsson  <jas@extundo.com>
84233
84234         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
84235         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
84236         GLIBC specific code.
84237
84238 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84239
84240         Make regex safe for g++.  This fixes one real bug (an "err"
84241         that should have been "*err").  g++ problem reported by
84242         Sam Steingold.
84243         * lib/regex_internal.h (re_calloc): New macro, consistent with
84244         re_malloc etc.  All callers of calloc changed to use re_calloc.
84245         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
84246         not int.  All callers changed.
84247         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
84248         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
84249         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
84250         (find_recover_state): Change "err" to "*err"; this fixes what
84251         appears to be a real bug.
84252         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
84253         versus int.
84254
84255 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84256
84257         * modules/regex (Depends-on): Add malloc, since the code
84258         assumes that !malloc(0) means failure.
84259
84260 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84261
84262         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
84263
84264         alloca modernization/simplification for regex.
84265         * lib/regex.c: Remove portability cruft for alloca.  This no longer
84266         needs to be at the start of the file, and can be moved into
84267         regex_internal.h and simplified.
84268         * lib/regex_internal.h: Include <alloca.h>.
84269         (__libc_use_alloca) [!defined _LIBC]: New macro.
84270         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
84271         now works outside glibc.
84272
84273 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
84274
84275         * config/srclist.txt: Add glibc bugs 1241, 1245.
84276
84277 2005-08-25  Jim Meyering  <jim@meyering.net>
84278
84279         * lib/open-safer.c: Include <config.h>.
84280         Otherwise, we'd lose LARGEFILE support in any file using
84281         e.g. "fcntl--.h"
84282
84283 2005-08-25  Bruno Haible  <bruno@clisp.org>
84284
84285         * m4/minmax.m4: Require autoconf 2.52.
84286         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
84287         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
84288         alternatives of translit over the alphabet.
84289         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
84290
84291 2005-08-24  Simon Josefsson  <jas@extundo.com>
84292
84293         * tests/test-getpass.c: New file.
84294
84295 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84296
84297         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
84298         for GNU regex features.
84299
84300 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84301
84302         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
84303         * lib/regex.h (regerror): Likewise.
84304
84305         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
84306         requires this.  (The code never needed it.)
84307
84308         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
84309         All uses of recently-renamed identifiers changed to use the new,
84310         POSIX-compliant names.  The code will build and run just fine
84311         without these changes, but it's better to eat our own dog food
84312         and use the standard-conforming names.
84313
84314         * lib/regex.h: Fix a multitude of POSIX name space violations.
84315         These changes have an effect only for programs that define
84316         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
84317         do not change anything for programs compiled in the normal way.
84318         Also, there is no effect on the ABI.
84319
84320         (_REGEX_SOURCE): New macro.
84321         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
84322         defined and _GNU_SOURCE is not; this fixes a name space violation.
84323
84324         Rename the following macros to obey POSIX requirements.
84325         The old names are still visible as macros if _REGEX_SOURCE is defined.
84326         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
84327         RE_BACKSLASH_ESCAPE_IN_LISTS.
84328         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
84329         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
84330         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
84331         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
84332         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
84333         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
84334         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
84335         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
84336         (REG_INTERVALS): renamed from RE_INTERVALS.
84337         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
84338         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
84339         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
84340         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
84341         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
84342         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
84343         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
84344         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
84345         RE_UNMATCHED_RIGHT_PAREN_ORD.
84346         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
84347         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
84348         (REG_DEBUG): renamed from RE_DEBUG.
84349         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
84350         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
84351         unusual, since we can't clash with the POSIX REG_ICASE.
84352         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
84353         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
84354         (REG_NO_SUB): renamed from RE_NO_SUB.
84355         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
84356         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
84357         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
84358         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
84359         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
84360         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
84361         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
84362         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
84363         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
84364         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
84365         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
84366         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
84367         RE_SYNTAX_POSIX_MINIMAL_BASIC.
84368         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
84369         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
84370         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
84371         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
84372         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
84373         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
84374         (REG_FIXED): Renamed from REGS_FIXED.
84375         (REG_NREGS): Renamed from RE_NREGS.
84376
84377         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
84378         of other REG_* macros, since POSIX says the user is allowed to
84379         #undef these macros selectively.
84380
84381         (reg_errcode_t): Update comment stating what other tables need
84382         to be consistent.
84383
84384         Rename the following enum values to obey POSIX requirements.
84385         The old names are still visible as macros.
84386         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
84387         is not defined, since GNU is supposed to be a superset of POSIX as
84388         much as possible, and since we want reg_errcode_t to be a signed
84389         type for implementation consistency.
84390         (_REG_NOERROR): Renamed from REG_NOERROR.
84391         (_REG_NOMATCH): Renamed from REG_NOMATCH.
84392         (_REG_BADPAT): Renamed from REG_BADPAT.
84393         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
84394         (_REG_ECTYPE): Renamed from REG_ECTYPE.
84395         (_REG_EESCAPE): Renamed from REG_EESCAPE.
84396         (_REG_ESUBREG): Renamed from REG_ESUBREG.
84397         (_REG_EBRACK): Renamed from REG_EBRACK.
84398         (_REG_EPAREN): Renamed from REG_EPAREN.
84399         (_REG_EBRACE): Renamed from REG_EBRACE.
84400         (_REG_BADBR): Renamed from REG_BADBR.
84401         (_REG_ERANGE): Renamed from REG_ERANGE.
84402         (_REG_ESPACE): Renamed from REG_ESPACE.
84403         (_REG_BADRPT): Renamed from REG_BADRPT.
84404         (_REG_EEND): Renamed from REG_EEND.
84405         (_REG_ESIZE): Renamed from REG_ESIZE.
84406         (_REG_ERPAREN): Renamed from REG_ERPAREN.
84407         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
84408         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
84409         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
84410         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
84411
84412         (_REG_RE_NAME, _REG_RM_NAME): New macros.
84413         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
84414         changed.  But support the old name if the new one is not defined
84415         and if _REGEX_SOURCE.
84416
84417         Change the following member names in struct re_pattern_buffer.
84418         The old names are still supported if !_REGEX_SOURCE.
84419         The new names are always supported, regardless of _REGEX_SOURCE.
84420         (re_buffer): Renamed from buffer.
84421         (re_allocated): Renamed from allocated.
84422         (re_used): Renamed from used.
84423         (re_syntax): Renamed from syntax.
84424         (re_fastmap): Renamed from fastmap.
84425         (re_translate): Renamed from translate.
84426         (re_can_be_null): Renamed from can_be_null.
84427         (re_regs_allocated): Renamed from regs_allocated.
84428         (re_fastmap_accurate): Renamed from fastmap_accurate.
84429         (re_no_sub): Renamed from no_sub.
84430         (re_not_bol): Renamed from not_bol.
84431         (re_not_eol): Renamed from not_eol.
84432         (re_newline_anchor): Renamed from newline_anchor.
84433
84434         Change the following member names in struct re_registers.
84435         The old names are still supported if !_REGEX_SOURCE.
84436         The new names are always supported, regardless of _REGEX_SOURCE.
84437         (rm_num_regs): Renamed from num_regs.
84438         (rm_start): Renamed from start.
84439         (rm_end): Renamed from end.
84440
84441         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
84442         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
84443         Prepend __ to parameter names.
84444
84445         Undo yesterday's changes.
84446
84447 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
84448
84449         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
84450         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
84451         lib/regex.c.
84452
84453 2005-08-24  Jim Meyering  <jim@meyering.net>
84454
84455         Sync from coreutils.
84456         * m4/fcntl-safer.m4: New file.
84457
84458         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
84459         and object files for this module.
84460
84461 2005-08-24  Jim Meyering  <jim@meyering.net>
84462
84463         Sync from coreutils.
84464         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
84465
84466 2005-08-24  Jim Meyering  <jim@meyering.net>
84467
84468         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
84469         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
84470
84471 2005-08-24  Jim Meyering  <jim@meyering.net>
84472
84473         * modules/fcntl-safer: New module.
84474         * modules/fts (Depends-on): Add fcntl-safer.
84475         * MODULES.html.sh (File descriptor based Input/Output):
84476         Add fcntl-safer.
84477
84478 2005-08-24  Bruno Haible  <bruno@clisp.org>
84479
84480         Support for unit test modules.
84481         * modules/README: Mention tests modules.
84482         * modules/TEMPLATE-TESTS: New file.
84483         * gnulib-tool: New options --extract-tests-module, --with-tests and
84484         --tests-base (unused for the moment).
84485         (testsbase, inctests): New variables.
84486         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
84487         (func_verify_module): Exclude TEMPLATE-TESTS.
84488         (func_verify_nontests_module, func_verify_tests_module): New functions.
84489         (func_get_dependencies): Add implicit dependency for tests modules.
84490         (func_get_tests_module): New function.
84491         (func_modules_transitive_closure): When --with-tests was specified,
84492         include the unit tests as well, unless explicitly avoided.
84493         (func_emit_lib_Makefile_am): Ignore the tests modules here.
84494         (func_emit_tests_Makefile_am): New function.
84495         (func_create_testdir): When --with-tests was specified, emit a
84496         tests/ directory.
84497         * MODULES.html.sh (Future developments): Update.
84498
84499 2005-08-24  Bruno Haible  <bruno@clisp.org>
84500
84501         * modules/tls-tests: New file.
84502         * tests/test-tls.c: New file, from GNU gettext.
84503
84504 2005-08-24  Bruno Haible  <bruno@clisp.org>
84505
84506         * modules/lock-tests: New file.
84507         * tests/test-lock.c: New file, from GNU gettext.
84508
84509 2005-08-24  Bruno Haible  <bruno@clisp.org>
84510
84511         * lib/lock.h: Add multiple inclusion guard.
84512         * lib/tls.h: Add multiple inclusion guard.
84513
84514 2005-08-24  Bruno Haible  <bruno@clisp.org>
84515
84516         * gnulib-tool: Add support for the --aux-dir option to
84517         --create-testdir, --create-megatestdir, --test, --megatest.
84518         (func_create_testdir, func_create_megatestdir): Optionally emit a
84519         AC_CONFIG_AUX_DIR directive.
84520         (create-testdir, create-megatestdir, test, megatest): Provide a
84521         default value for $auxdir.
84522
84523 2005-08-24  Bruno Haible  <bruno@clisp.org>
84524
84525         * gnulib-tool (import): Use compound statement instead of subshell
84526         where possible.
84527
84528 2005-08-24  Bruno Haible  <bruno@clisp.org>
84529
84530         * gnulib-tool (import): Change --aux-dir default to "build-aux".
84531
84532 2005-08-24  Bruno Haible  <bruno@clisp.org>
84533
84534         * gnulib-tool (func_version): Update.
84535
84536 2005-08-24  Bruno Haible  <bruno@clisp.org>
84537
84538         * gnulib-tool (func_import, func_create_testdir,
84539         func_create_megatestdir): Quote all autoconf macro arguments.
84540
84541 2005-08-24  Bruno Haible  <bruno@clisp.org>
84542
84543         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
84544         option --force, because --force causes the aclocal.m4 of each
84545         subdirectory to be newer than the corresponding config.h.in.
84546
84547 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84548
84549         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
84550         All contents moved to gl_REGEX.
84551         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
84552         assume that it does.
84553
84554 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84555
84556         * lib/regex.h (REG_NOSYS)
84557         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
84558         Define, since POSIX requires it as of 2001.
84559         (_REG_ENOSYS)
84560         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
84561         New private symbol, used to keep the enum signed in all cases.
84562         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
84563         Youngman in
84564         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
84565
84566         * lib/regex_internal.c (re_string_skip_chars, register_state):
84567         (calc_state_hash):
84568         Remove forward decls; no longer needed now that we use prototypes.
84569         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
84570         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
84571         (clean_state_log_if_needed): Likewise.
84572
84573 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
84574
84575         * config/srclist.txt: Add glibc bugs 1231-1233.
84576
84577 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84578
84579         Fix problems reported by Sam Steingold in
84580         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
84581         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
84582         assumed that reg_errcode_t is a signed type, which is not
84583         necessarily true if _XOPEN_SOURCE is not defined.
84584         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
84585         since some compilers warn about it otherwise.
84586
84587 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84588
84589         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
84590         (init_word_char, create_initial_state, duplicate_node_closure):
84591         (fetch_token, peek_token_bracket, build_range_exp):
84592         (build_collating_symbol): Remove forward decls; no longer needed
84593         now that we use prototypes.
84594
84595         * lib/regcomp.c:
84596         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
84597         (re_compile_fastmap_iter, regcomp, regerror, regfree):
84598         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
84599         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
84600         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
84601         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
84602         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
84603         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
84604         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
84605         (build_range_exp, build_collating_symbol, parse_bracket_exp):
84606         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
84607         (build_charclass, build_charclass_op, fetch_number, create_tree):
84608         (create_token_tree, mark_opt_subexp, duplicate_tree):
84609         Use prototypes rather than old-style definitions.
84610
84611         * lib/regex_internal.c:
84612         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
84613         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
84614         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
84615         (re_string_reconstruct, re_string_peek_byte_case):
84616         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
84617         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
84618         (re_node_set_init_copy, re_node_set_add_intersect):
84619         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
84620         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
84621         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
84622         (re_acquire_state, re_acquire_state_context, register_state):
84623         (create_ci_newstate, create_cd_newstate, free_state):
84624         Likewise.
84625         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
84626         re_search_2):
84627         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
84628         (re_search_internal, prune_impossible_nodes):
84629         (acquire_init_state_context, check_matching, static):
84630         (check_halt_node_context, check_halt_state_context, proceed_next_node):
84631         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
84632         (update_regs, sift_states_backward, build_sifted_states):
84633         (clean_state_log_if_needed, merge_state_array):
84634         (update_cur_sifted_state, add_epsilon_src_nodes):
84635         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
84636         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
84637         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
84638         (find_recover_state, check_subexp_matching_top, transit_state_mb):
84639         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
84640         (check_arrival, check_arrival_add_next_nodes):
84641         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
84642         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
84643         (check_node_accept_bytes, check_node_accept, extend_buffers):
84644         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
84645         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
84646         (sift_ctx_init):
84647         Likewise.
84648
84649         * lib/regex_internal.h:
84650         (re_string_allocate, re_string_construct, re_string_reconstruct):
84651         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
84652         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
84653         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
84654         (re_string_context_at, re_string_peek_byte_case):
84655         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
84656         is defined, since we now use prototypes always.
84657
84658         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
84659         C89 or better.  All uses removed.
84660
84661 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
84662
84663         * config/srclist.txt: Add glibc bugs 1220-1227.
84664
84665 2005-08-20  Jim Meyering  <jim@meyering.net>
84666
84667         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
84668         of unused local, dfa.
84669
84670 2005-08-20  Bruno Haible  <bruno@clisp.org>
84671
84672         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
84673
84674 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84675
84676         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
84677         (re_node_set_insert_last, re_dfa_add_node):
84678         Rename local variables to avoid GCC shadowing warnings.
84679
84680 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84681
84682         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
84683         [defined lint]: Suppress bogus uninitialized-variable warnings.
84684
84685         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
84686         and let the caller return REG_ESPACE if out of space.  This
84687         removes an uninitialied-variable warning with GCC 4.0.1, and also
84688         avoids taking the address of a local variable.  All callers
84689         changed.
84690
84691 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
84692
84693         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
84694         $LIBCSRC/posix/regexec.c.
84695         Add glibc bug 1217 for regcomp.c.
84696
84697 2005-08-19  Jim Meyering  <jim@meyering.net>
84698
84699         * lib/regexec.c (proceed_next_node): Redo local variables to
84700         avoid GCC shadowing warnings.
84701
84702 2005-08-18  Bruno Haible  <bruno@clisp.org>
84703
84704         * lib/strstr.c (strstr): Fix return value in multibyte case.
84705         * lib/strcasestr.c (strcasestr): Likewise.
84706
84707 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
84708
84709         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
84710
84711 2005-08-17  Jim Meyering  <jim@meyering.net>
84712
84713         Make the %s format (seconds since the epoch) work for a negative
84714         number and when used with a zero-padded field width, e.g. %015s.
84715
84716         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
84717         label so that it precedes the code to set `digits'.  Otherwise,
84718         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
84719         print `00-22'.  Now, it prints `-0022', as it should.
84720
84721 2005-08-17  Bruno Haible  <bruno@clisp.org>
84722
84723         * modules/strstr (Files): Add m4/mbrtowc.m4.
84724         (Depends-on): Add mbuiter.
84725
84726 2005-08-17  Bruno Haible  <bruno@clisp.org>
84727
84728         * modules/strcasestr: New file.
84729         * MODULES.html.sh (String handling, based on ANSI C 89): Add
84730         strcasestr.
84731
84732 2005-08-17  Bruno Haible  <bruno@clisp.org>
84733
84734         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
84735
84736 2005-08-17  Bruno Haible  <bruno@clisp.org>
84737
84738         * modules/mbuiter: New file.
84739         * MODULES.html.sh (Extended multibyte and wide character utilities):
84740         Add mbuiter.
84741
84742 2005-08-17  Bruno Haible  <bruno@clisp.org>
84743
84744         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
84745         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
84746
84747 2005-08-17  Bruno Haible  <bruno@clisp.org>
84748
84749         * m4/strcasestr.m4: New file.
84750
84751 2005-08-17  Bruno Haible  <bruno@clisp.org>
84752
84753         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
84754         * lib/strstr.c: Completely rewritten, with multibyte locale support.
84755
84756 2005-08-17  Bruno Haible  <bruno@clisp.org>
84757
84758         * lib/strcasestr.h: New file.
84759         * lib/strcasestr.c: New file.
84760
84761 2005-08-17  Bruno Haible  <bruno@clisp.org>
84762
84763         * lib/strcasecmp.c: Use mbuiter.h.
84764
84765 2005-08-17  Bruno Haible  <bruno@clisp.org>
84766
84767         * lib/mbuiter.h: New file.
84768
84769 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
84770
84771         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
84772         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
84773         and gl_GETOPT are both invoked via different paths (as happens
84774         with GNU tar CVS because it uses both argp and getopt), the former
84775         wins.
84776
84777 2005-08-16  Bruno Haible  <bruno@clisp.org>
84778
84779         * modules/tls: New file.
84780         * MODULES.html.sh (Multithreading): Add tls.
84781
84782 2005-08-16  Bruno Haible  <bruno@clisp.org>
84783
84784         * modules/strnlen1: New file.
84785         * MODULES.html.sh (String handling): Add strnlen1.
84786
84787 2005-08-16  Bruno Haible  <bruno@clisp.org>
84788
84789         * modules/strcase (Files): Add m4/mbrtowc.m4.
84790         (Depends-on): Add strnlen1, mbchar.
84791
84792 2005-08-16  Bruno Haible  <bruno@clisp.org>
84793
84794         * modules/mbiter: New file.
84795         * MODULES.html.sh (Extended multibyte and wide character utilities):
84796         Add mbiter.
84797
84798 2005-08-16  Bruno Haible  <bruno@clisp.org>
84799
84800         * modules/mbfile: New file.
84801         * MODULES.html.sh (Extended multibyte and wide character utilities):
84802         Add mbfile.
84803
84804 2005-08-16  Bruno Haible  <bruno@clisp.org>
84805
84806         * modules/mbchar: New file.
84807         * MODULES.html.sh (Extended multibyte and wide character utilities):
84808         New section.
84809
84810 2005-08-16  Bruno Haible  <bruno@clisp.org>
84811
84812         * m4/tls.m4: New file, from GNU gettext.
84813
84814 2005-08-16  Bruno Haible  <bruno@clisp.org>
84815
84816         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
84817         always.
84818         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
84819
84820 2005-08-16  Bruno Haible  <bruno@clisp.org>
84821
84822         * m4/mbiter.m4: New file.
84823
84824 2005-08-16  Bruno Haible  <bruno@clisp.org>
84825
84826         * m4/mbfile.m4: New file.
84827
84828 2005-08-16  Bruno Haible  <bruno@clisp.org>
84829
84830         * m4/mbchar.m4: New file.
84831
84832 2005-08-16  Bruno Haible  <bruno@clisp.org>
84833
84834         * lib/tls.h: New file, from GNU gettext.
84835         * lib/tls.c: New file, from GNU gettext.
84836
84837 2005-08-16  Bruno Haible  <bruno@clisp.org>
84838
84839         * lib/strnlen1.h: New file.
84840         * lib/strnlen1.c: New file.
84841
84842 2005-08-16  Bruno Haible  <bruno@clisp.org>
84843
84844         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
84845         (mbi_init): Update.
84846         (mbi_avail, mbi_advance): Let the iteration end before the terminating
84847         NUL byte, not after it.
84848
84849 2005-08-16  Bruno Haible  <bruno@clisp.org>
84850
84851         * lib/strcase.h (strcasecmp): Add note in comments.
84852         * lib/strncasecmp.c: Use code from strcasecmp.c.
84853         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
84854         (strcasecmp): Work correctly in multibyte locales.
84855
84856 2005-08-16  Bruno Haible  <bruno@clisp.org>
84857
84858         * lib/mbiter.h: New file.
84859
84860 2005-08-16  Bruno Haible  <bruno@clisp.org>
84861
84862         * lib/mbfile.h: New file.
84863
84864 2005-08-16  Bruno Haible  <bruno@clisp.org>
84865
84866         * lib/mbchar.h: New file.
84867         * lib/mbchar.c: New file.
84868
84869 2005-08-16  Bruno Haible  <bruno@clisp.org>
84870
84871         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
84872         the valid ones. Makes the comparison operations transitive:
84873         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
84874         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
84875
84876 2005-08-15  Simon Josefsson  <jas@extundo.com>
84877
84878         * modules/ssize_t (License): Change to 'unlimited'.
84879
84880         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
84881
84882 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
84883
84884         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
84885         Add comments for each pending glibc patch.
84886
84887 2005-08-15  Bruno Haible  <bruno@clisp.org>
84888
84889         * lib/regex.h (__restrict_arr): Don't define to __restrict if
84890         __cplusplus is defined.
84891
84892 2005-08-14  Jim Meyering  <jim@meyering.net>
84893
84894         Sync from coreutils.
84895
84896         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
84897         Use the hash-table-based cycle-detection code not just when
84898         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
84899         Reported by James Youngman in
84900         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
84901         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
84902         FTS_TIGHT_CYCLE_CHECK.
84903         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
84904         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
84905         once again.
84906         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
84907         * lib/fts.c (fd_safer): Remove decl.
84908         Include fcntl--.h rather than unistd-safer.h
84909         (fts_safe_changedir): Don't call fd_safer; no longer needed
84910         now that we include fcntl--.h.
84911
84912 2005-08-12  Simon Josefsson  <jas@extundo.com>
84913
84914         * modules/getndelim2: Use ssize_t module.
84915         * modules/getnline: Likewise.
84916         * modules/safe-read: Likewise.
84917         * modules/xreadlink: Likewise.
84918
84919         * modules/ssize_t: New file.
84920
84921 2005-08-12  Simon Josefsson  <jas@extundo.com>
84922
84923         * m4/readline.m4: Look for termcap, curses or ncurses if required.
84924
84925 2005-08-12  Simon Josefsson  <jas@extundo.com>
84926
84927         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84928         ssize_t.
84929
84930 2005-08-12  Simon Josefsson  <jas@extundo.com>
84931
84932         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
84933         readline, getdelim and check_version.
84934         (Support for systems lacking ISO C 99: Sizes of integer types):
84935         Add size_max.
84936
84937 2005-08-12  Bruno Haible  <bruno@clisp.org>
84938
84939         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
84940
84941 2005-08-11  Simon Josefsson  <jas@extundo.com>
84942
84943         * modules/readline: New file.
84944
84945         * modules/strnlen (Files): Add strnlen.h.
84946
84947 2005-08-11  Simon Josefsson  <jas@extundo.com>
84948
84949         * m4/readline.m4: New file.
84950
84951 2005-08-11  Simon Josefsson  <jas@extundo.com>
84952
84953         * lib/readline.h, readline.c: New file.
84954
84955 2005-08-11  Simon Josefsson  <jas@extundo.com>
84956
84957         * doc/gnulib.texi (Initial import, Finishing touches): Mention
84958         gl_AVOID.
84959
84960 2005-08-11  Bruno Haible  <bruno@clisp.org>
84961
84962         * lib/strnlen.h (strnlen): Change parameter name to match comment.
84963
84964 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
84965
84966         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
84967
84968 2005-08-10  Simon Josefsson  <jas@extundo.com>
84969
84970         * tests/test-iconvme.c: New file.
84971
84972 2005-08-10  Simon Josefsson  <jas@extundo.com>
84973
84974         * m4/strnlen.m4: New file.
84975
84976         * m4/strndup.m4: Don't check for strnlen declaration, done in
84977         strnlen.m4.
84978
84979 2005-08-10  Simon Josefsson  <jas@extundo.com>
84980
84981         * lib/strndup.c: Use strnlen.h.
84982
84983         * lib/strnlen.h: New file.
84984
84985 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
84986
84987         * README: Typos.
84988
84989 2005-08-02  Simon Josefsson  <jas@extundo.com>
84990
84991         * modules/readline: New file.
84992
84993 2005-08-02  Simon Josefsson  <jas@extundo.com>
84994
84995         * modules/getdelim: New file.
84996
84997         * modules/getline: Rewrite, don't use getndelim2.
84998
84999 2005-08-02  Simon Josefsson  <jas@extundo.com>
85000
85001         * m4/getline.m4: Separate out getdelim stuff into separate module.
85002
85003         * m4/getdelim.m4: New file.
85004
85005 2005-08-02  Simon Josefsson  <jas@extundo.com>
85006
85007         * lib/getline.h, getline.c: Rewrite.
85008
85009         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
85010
85011 2005-07-31  Bruno Haible  <bruno@clisp.org>
85012
85013         * lib/lock.h (gl_lock_initializer): New macro.
85014         (gl_lock_define_initialized): Use it.
85015         (gl_rwlock_initializer): New macro.
85016         (gl_rwlock_define_initialized): Use it.
85017         (gl_recursive_lock_initializer): New macro.
85018         (gl_recursive_lock_define_initialized): Use it.
85019
85020 2005-07-30  Karl Berry  <karl@gnu.org>
85021
85022         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
85023         Report from Ben Pfaff, regarding getopt.
85024
85025 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
85026
85027         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
85028         normal way.
85029         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
85030         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
85031         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
85032         (gl_GETOPT): Use the new macros.  Most of the implementation
85033         is moved to the new macros.  This is for programs like Emacs
85034         that don't want all the functionality of gl_GETOPT.
85035
85036 2005-07-26  Bruno Haible  <bruno@clisp.org>
85037
85038         * m4/lock.m4: Update from GNU gettext.
85039
85040 2005-07-26  Bruno Haible  <bruno@clisp.org>
85041
85042         * lib/lock.h: Update from GNU gettext.
85043         * lib/lock.c: Update from GNU gettext.
85044
85045 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
85046
85047         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
85048         obsolescent AC_TRY_RUN.  Include the default includes files, for
85049         'exit'.
85050
85051 2005-07-24  Bruno Haible  <bruno@clisp.org>
85052
85053         * modules/visibility: New file.
85054         * MODULES.html.sh (Misc): Add visibility.
85055
85056 2005-07-24  Bruno Haible  <bruno@clisp.org>
85057
85058         * m4/visibility.m4: New file.
85059
85060 2005-07-24  Bruno Haible  <bruno@clisp.org>
85061
85062         * doc/visibility.texi: New file.
85063
85064 2005-07-22  Bruno Haible  <bruno@clisp.org>
85065
85066         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
85067         $(ALLOCA_H), redundant through BUILT_SOURCES.
85068         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
85069         redundant through BUILT_SOURCES.
85070         * modules/byteswap (Makefile.am): Remove explicit dependency on
85071         $(BYTESWAP_H), redundant through BUILT_SOURCES.
85072         * modules/fnmatch (Makefile.am): Remove explicit dependency on
85073         $(FNMATCH_H), redundant through BUILT_SOURCES.
85074         * modules/getopt (Makefile.am): Remove explicit dependency on
85075         $(GETOPT_H), redundant through BUILT_SOURCES.
85076         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
85077         redundant through BUILT_SOURCES.
85078         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
85079         redundant through BUILT_SOURCES.
85080         * modules/stdbool (Makefile.am): Remove explicit dependency on
85081         $(STDBOOL_H), redundant through BUILT_SOURCES.
85082         * modules/stdint (Makefile.am): Remove explicit dependency on
85083         $(STDINT_H), redundant through BUILT_SOURCES.
85084         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
85085         Remove explicit dependency on $(SYSEXITS_H).
85086         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
85087
85088 2005-07-18  Simon Josefsson  <jas@extundo.com>
85089
85090         * lib/check-version.c (check_version): Accept identical versions too.
85091
85092 2005-07-18  Bruno Haible  <bruno@clisp.org>
85093
85094         * modules/lock: New file.
85095         * MODULES.html.sh (Multithreading): New section.
85096
85097 2005-07-18  Bruno Haible  <bruno@clisp.org>
85098
85099         * m4/lock.m4: New file, from GNU gettext.
85100
85101 2005-07-18  Bruno Haible  <bruno@clisp.org>
85102
85103         * lib/lock.h: New file, from GNU gettext.
85104         * lib/lock.c: New file, from GNU gettext.
85105
85106 2005-07-18  Bruno Haible  <bruno@clisp.org>
85107
85108         * lib/lock.h (gl_once_t): New type.
85109         (gl_once_define, gl_once): New macros.
85110         * lib/lock.c (fresh_once): New variable.
85111         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
85112         functions.
85113
85114 2005-07-16  Simon Josefsson  <jas@extundo.com>
85115
85116         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
85117         workaround, suggested by Bruno.
85118
85119 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
85120
85121         * modules/xalloc (Depends-on): Add xalloc-die.
85122         * modules/xvasprintf (Depends-on): Add xalloc-die.
85123
85124 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
85125
85126         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
85127         with a minor change.
85128
85129 2005-07-15  Bruno Haible  <bruno@clisp.org>
85130
85131         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
85132         When using lib/poll.c, define poll as rpl_poll.
85133
85134 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
85135
85136         * modules/argp (Depends-on): Remove unlocked-io.
85137
85138 2005-07-14  Derek Price  <derek@ximbiot.com>
85139
85140         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
85141         for glob symlink bug.
85142
85143 2005-07-14  Bruno Haible  <bruno@clisp.org>
85144
85145         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
85146         Instead, test for *_unlocked function declarations directly.
85147
85148 2005-07-11  Simon Josefsson  <jas@extundo.com>
85149
85150         * modules/size_max: New file.
85151
85152         * modules/xsize: Depend on size_max module for size_max.m4.
85153
85154 2005-07-11  Simon Josefsson  <jas@extundo.com>
85155
85156         * lib/size_max.h: New file.
85157
85158 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
85159
85160         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
85161         copyright symbol and the year.
85162         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
85163         (version_etc_va): Use parameterized copyright notice.
85164         Reword to conform to the current GNU coding standards.
85165
85166 2005-07-11  Karl Berry  <karl@gnu.org>
85167
85168         * doc/gnulib.texi (Quoting): new node.
85169         (Initial import): more info, from Patrice.
85170
85171 2005-07-11  Bruno Haible  <bruno@clisp.org>
85172
85173         * gnulib-tool (func_usage): Document option --avoid.
85174         (Command line options): Handle --avoid.
85175         (func_acceptable): New function.
85176         (func_modules_transitive_closure): Use it.
85177
85178 2005-07-11  Bruno Haible  <bruno@clisp.org>
85179
85180         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
85181         Reported by Jim Meyering.
85182
85183 2005-07-10  Bruno Haible  <bruno@clisp.org>
85184
85185         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
85186         Needed when size_t is smaller than 'unsigned int'.
85187         Reported by Paul Eggert.
85188
85189 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
85190
85191         * modules/argp (Depends-on): Add unlocked-io
85192
85193 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
85194
85195         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
85196         block of defines.
85197
85198 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
85199
85200         * config/srclist.txt: Comment out regcomp.c, since we have a porting
85201         fix now.
85202
85203 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
85204         and Paul Eggert  <eggert@cs.ucla.edu>
85205
85206         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
85207         in wint_t, not wchar_t.  Remove now-unnecessary cast.
85208
85209 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85210
85211         * modules/regex (Files): Add lib/regex_internal.c,
85212         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
85213         (Depends-on): Add extensions.
85214         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
85215
85216 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85217
85218         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
85219         pathconf.
85220         * m4/same.m4 (gl_SAME): Likewise.
85221         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
85222
85223         * m4/regex.m4: Adjust to new libc regex implementation.
85224         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
85225         all the .c and .h parts of (the new) regex.
85226         Quote the m4 stuff better.
85227         Check for RE_ICASE bug of old gnulib.
85228         Check for REG_STARTEND of recent libc.
85229         Rename local variables from jm_* to gl_*.
85230         Quote operand of "test -f".
85231         Say "recent enough" version of libc, not "version 2".
85232         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
85233         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
85234         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
85235         Remove check for btowc, isascii.
85236         Require AM_LANGINFO_CODESET.
85237
85238 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85239
85240         * lib/regex.c, regex.h: Sync from libc.
85241         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
85242         * lib/regexec.c:
85243         New files, synced from libc, except that regex_internal.h
85244         currently has a small porting fix.
85245
85246 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
85247
85248         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
85249         regex_internal.c, regexec.c.
85250         Add regex_internal.h too, but as a comment, since the libc version
85251         is currently broken in gnulib mode.
85252
85253 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
85254
85255         Support programs like Emacs that use gnulib but not gettext.
85256         * MODULES.html.sh (Internationalization functions): Add gettext-h.
85257         * modules/gettext-h: New file.
85258         * modules/gettext (Files): Remove lib/gettext.h.
85259         (Depends-on): Add gettext-h.
85260         (Makefile.am): Remove lib_SOURCES.
85261         * modules/argmatch, modules/c-stack, modules/closeout:
85262         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
85263         * modules/execute, modules/file-type, modules/getaddrinfo:
85264         * modules/getopt, modules/human, modules/javacomp:
85265         * modules/javaexec, modules/mkdir-p, modules/obstack:
85266         * modules/openat, modules/pagealign_alloc, modules/pipe:
85267         * modules/quotearg, modules/regex, modules/rpmatch:
85268         * modules/unicodeio, modules/userspec, modules/version-etc:
85269         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
85270         * modules/xsetenv:
85271         Depend on gettext-h, not gettext.
85272
85273 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
85274
85275         * gnulib-tool (func_import): Add support for 'public domain' license.
85276         * modules/alloca, modules/atexit, modules/memmove:
85277         Now public domain, not GPL.
85278         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
85279         * modules/realloc, modules/strerror, modules/strtod:
85280         Now LGPL, not GPL.
85281
85282 2005-07-05  Bruno Haible  <bruno@clisp.org>
85283
85284         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
85285         autoconf CVS. Needed for mingw.
85286
85287 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85288
85289         Remove the dependency of the strftime module on the tzset module.
85290         * modules/strftime (Depends-on): Remove dependency on tzset.
85291
85292 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85293
85294         Remove the dependency of the strftime module on the tzset module.
85295         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
85296         gl_FUNC_TZSET_CLOBBER.
85297
85298 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
85299
85300         Remove the dependency of the strftime module on the tzset module.
85301         * lib/strftime.c (my_strftime)
85302         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
85303         Copy the input structure, to work around some of the bug with
85304         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
85305         Solaris releases, you should also use the tzset module, but we won't
85306         require it as a dependency any more since we don't want LGPLed code
85307         to depend on GPLed code.
85308
85309 2005-07-02  Jim Meyering  <jim@meyering.net>
85310
85311         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
85312         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
85313         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
85314         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
85315
85316 2005-07-02  Jim Meyering  <jim@meyering.net>
85317
85318         * lib/backupfile.c (backup_args): Change a `0' to NULL.
85319
85320 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
85321
85322         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
85323         declares only 'struct timespec;' (!).
85324
85325 2005-07-01  Jim Meyering  <jim@meyering.net>
85326
85327         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
85328         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
85329         * lib/save-cwd.c, tempname.c:
85330         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
85331         and don't include <sys/file.h>).
85332
85333 2005-06-29  Jim Meyering  <jim@meyering.net>
85334
85335         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
85336         type name.  Use the variable name instead.
85337         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
85338         Likewise.
85339
85340 2005-06-28  Simon Josefsson  <jas@extundo.com>
85341
85342         * modules/check-version (Files): Add check-version.m4.
85343
85344 2005-06-28  Simon Josefsson  <jas@extundo.com>
85345
85346         * m4/check-version.m4: New file, suggested by Jim Meyering
85347         <jim@meyering.net>.
85348
85349 2005-06-28  Simon Josefsson  <jas@extundo.com>
85350
85351         * lib/check-version.h, lib/check-version.c: New files.
85352
85353 2005-06-28  Simon Josefsson  <jas@extundo.com>
85354
85355         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
85356         collision with global variable.  Better indentation.  Don't
85357         increment buffer pointer beyond buffer end.  Based on comments
85358         from Paul Eggert <eggert@cs.ucla.edu>.
85359
85360         * lib/base64.h: Indent.
85361
85362 2005-06-28  Simon Josefsson  <jas@extundo.com>
85363
85364         * doc/gnulib.texi (Library version handling): New section.
85365
85366 2005-06-28  Jim Meyering  <jim@meyering.net>
85367
85368         * check-module (find_included_lib_files): Hard-code another
85369         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
85370         but modules/fts-lgpl (correctly) does not list those files.
85371
85372         * modules/canonicalize (Files): Add lib/pathmax.h.
85373
85374 2005-06-25  Simon Josefsson  <jas@extundo.com>
85375
85376         * modules/check-version: New file.
85377
85378 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
85379
85380         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
85381         initializer of struct addrinfo, as an indication that we don't
85382         care how many members the structure has.
85383
85384 2005-06-24  Derek Price  <derek@ximbiot.com>
85385         and Bruno Haible  <bruno@clisp.org>
85386
85387         Remove stat module & update lstat.
85388         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
85389         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
85390         * m4/stat.m4: Remove this file.
85391
85392 2005-06-24  Derek Price  <derek@ximbiot.com>
85393         and Bruno Haible  <bruno@clisp.org>
85394
85395         Remove stat module & update lstat.
85396         * lib/stat.c: Remove this file...
85397         (slash_aware_lstat): ...moving this content and its support...
85398         * lib/lstat.c (rpl_lstat): ...into here.
85399         * lib/lstat.h: New file.
85400
85401 2005-06-24  Derek Price  <derek@ximbiot.com>
85402         and Bruno Haible  <bruno@clisp.org>
85403
85404         Remove stat module & update lstat.
85405         * config/srclist.txt (libc sources): Remove stat.
85406
85407 2005-06-24  Derek Price  <derek@ximbiot.com>
85408         and Bruno Haible  <bruno@clisp.org>
85409
85410         Remove stat module & update lstat.
85411         * MODULES.html.sh (stat): Remove.
85412         * MODULES.html: Regenerated.
85413         * modules/lstat (Description): Correct function name.
85414         (Files): Add "lstat.h".
85415         (Depends-on): Remove stat, add xalloc, stat-macros.
85416         * modules/stat: Remove this file.
85417         (Include): Add "lstat.h", remove <sys/stat.h>.
85418
85419 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
85420
85421         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
85422         (ranged_convert): Don't save conversion in a temporary struct.
85423         This causes a warning with GCC 4.0.0, and anyway in the typical
85424         case it's not worth the extra 100 bytes or so of code.
85425         (ranged_convert, __mktime_internal): When calling a function via a
85426         pointer P, use P () rather than (*P) (), as we now assume C89 or
85427         better.
85428
85429 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
85430
85431         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
85432         "who -r" failed to give output.  Problem reported by Tim Waugh.
85433
85434         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
85435         (xcalloc): Use it to avoid needless tests.
85436         Problem reported by Jim Meyering.
85437
85438 2005-06-20  Derek Price  <derek@ximbiot.com>
85439
85440         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
85441         unnecessary for Autoconfs > 2.59c.
85442
85443 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85444
85445         * lib/argp.h (__option_is_short): Check upper limit of
85446         __key. Isprint() requires its argument to have the value
85447         of an unsigned char or EOF.
85448
85449 2005-06-16  Jim Meyering  <jim@meyering.net>
85450
85451         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
85452         when either N or S is zero.
85453
85454 2005-06-16  Derek Price  <derek@ximbiot.com>
85455
85456         * m4/bison.m4: Declare YACC & YFLAGS precious.
85457
85458 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
85459
85460         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
85461         multibyte string or pattern, fall back on unibyte matching.
85462         Problem reported by James Youngman.
85463
85464 2005-06-08  Bruno Haible  <bruno@clisp.org>
85465
85466         * modules/csharpcomp: New file.
85467         * MODULES.html.sh (C#): Add csharpcomp.
85468
85469 2005-06-08  Bruno Haible  <bruno@clisp.org>
85470
85471         * m4/csharpcomp.m4: New file, from GNU gettext.
85472
85473 2005-06-08  Bruno Haible  <bruno@clisp.org>
85474
85475         * lib/csharpcomp.h: New file, from GNU gettext.
85476         * lib/csharpcomp.c: New file, from GNU gettext.
85477         * lib/csharpcomp.sh.in: New file, from GNU gettext.
85478
85479 2005-06-08  Bruno Haible  <bruno@clisp.org>
85480
85481         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
85482         warning on mingw.
85483
85484 2005-06-07  Derek Price  <derek@ximbiot.com>
85485
85486         Sync from CVS.
85487         * lib/glob_.h: Indent nested #ifdef.
85488
85489 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85490
85491         Sync from coreutils.
85492         Use "file name" when talking about file names, instead of "filename"
85493         or "path", as per the GNU coding standards.
85494         * lib/mkdir-p.c: Renamed from makepath.c.
85495         (make_dir_parents): Renamed from make_path.  All callers changed.
85496         * lib/mkdir-p.h: Likewise.  All includers changed.
85497         * lib/filenamecat.c: Renamed from path-concat.c.
85498         (file_name_concat): Renamed from path_concat.  All callers changed.
85499         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
85500         * lib/filenamecat.h: Likewise.  All includers changed.
85501         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
85502         in comments or local variable names.
85503         * lib/basename.c: Likewise.
85504         * lib/canonicalize.c, canonicalize.h: Likewise.
85505         * lib/dirname.c, dirname.h: Likewise.
85506         * lib/euidaccess.c: Likewise.
85507         * lib/exclude.c: Likewise
85508         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
85509         * lib/fsusage.c, fsuage.h: Likewise.
85510         * lib/fts.c, fts_.h: Likewise.
85511         * lib/getcwd.c: Likewise.
85512         * lib/getloadavg.c: Likewise.
85513         * lib/mkstemp.c: Likewise.
85514         * lib/mountlist.c, mountlist.h: Likewise.
85515         * lib/openat.c, openat.h: Likewise.
85516         * lib/readlink-stub.c: Likewise.
85517         * lib/readutmp.c, readutmp.h: Likewise.
85518         * lib/rename.c: Likewise.
85519         * lib/rmdir.c: Likewise.
85520         * lib/same.c: Likewise.
85521         * lib/savedir.c: Likewise.
85522         * lib/stripslash.c: Likewise.
85523         * lib/tempname.c: Likewise.
85524         * lib/xreadlink.c: Likewise.
85525         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
85526         All uses changed.
85527         * lib/exclude.h: Likewise.
85528
85529         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
85530         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85531         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
85532         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85533         * lib/pathmax.h: Include <limits.h> unconditionally, since other
85534         files have been getting away with it for years (MORE/BSD 4.3
85535         is extinct now).
85536         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
85537         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
85538
85539         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
85540         Define to 256, not 255, as per modern POSIX.
85541
85542 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85543
85544         Sync from coreutils.
85545         Use "file name" when talking about file names, instead of "filename"
85546         or "path", as per the GNU coding standards.
85547         * MODULES.html.sh: mkdir-p renamed from makepath.
85548         filenamecat renamed from path-concat.
85549         * modules/filenamecat: Renamed from modules/path-concat.
85550         (Files): filenamecat.h and filenamecat.c renamed from
85551         path-concat.h and path-concat.c.
85552         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
85553         (Include): filenamecat.h, not path-concat.h.
85554         * modules/mkdir-p: Renamed from modules/makepath.
85555         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
85556         makepath.c.
85557         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
85558         (Include): mkdir-p.h, not makepath.h.
85559
85560 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
85561
85562         Sync from coreutils.
85563         * m4/mkdir-p.m4: Renamed from makepath.m4.
85564         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
85565         Rename files from makepath.c to mkdir-p.c, and from
85566         makepath.h to mkdir-p.h.
85567         * m4/filenamecat.m4: Renamed from path-concat.m4.
85568         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
85569         Rename files from path-concat.c to filenamecat.c,
85570         and from path-concat.h to filenamecat.h.
85571         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
85572         "file name" in local variables or comments.
85573         * m4/rename.m4: Likewise.
85574
85575 2005-06-01  Bruno Haible  <bruno@clisp.org>
85576
85577         * modules/csharpexec: New file.
85578         * MODULES.html.sh (C#): New section.
85579
85580 2005-06-01  Bruno Haible  <bruno@clisp.org>
85581
85582         * m4/csharp.m4: New file, from GNU gettext.
85583         * m4/csharpexec.m4: New file, from GNU gettext.
85584
85585 2005-06-01  Bruno Haible  <bruno@clisp.org>
85586
85587         * lib/csharpexec.h: New file, from GNU gettext.
85588         * lib/csharpexec.c: New file, from GNU gettext.
85589         * lib/csharpexec.sh.in: New file, from GNU gettext.
85590
85591 2005-05-31  Derek Price  <derek@ximbiot.com>
85592             Paul Eggert  <eggert@cs.ucla.edu>
85593
85594         Sync from cvs.
85595         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
85596
85597 2005-05-31  Derek Price  <derek@ximbiot.com>
85598             Paul Eggert  <eggert@cs.ucla.edu>
85599
85600         Sync from cvs.
85601         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
85602
85603 2005-05-29  Derek Price  <derek@ximbiot.com>
85604
85605         * config/srclist.txt (glob_.h, glob.c): Add these files.
85606
85607 2005-05-29  Derek Price  <derek@ximbiot.com>
85608
85609         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
85610         * modules/glob: New file.
85611         * modules/getlogin_r: Add link to POSIX spec in description.
85612
85613 2005-05-29  Derek Price  <derek@ximbiot.com>
85614             Paul Eggert  <eggert@cs.ucla.edu>
85615
85616         * m4/glob.m4: New file.
85617
85618 2005-05-29  Derek Price  <derek@ximbiot.com>
85619             Paul Eggert  <eggert@cs.ucla.edu>
85620
85621         * lib/glob_.h, lib/glob.c: New files.
85622
85623 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85624
85625         * modules/fts (Files): Remove m4/inttypes-pri.m4.
85626         * modules/fts-lgpl (Depends-on): Remove gettext.
85627
85628 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85629
85630         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
85631         and don't require gt_INTTYPES_PRI.
85632
85633 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
85634
85635         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
85636
85637         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
85638         the configuration hassle isn't worth it.
85639         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
85640         (LONGEST_MODIFIER, PRIuMAX): Remove.
85641
85642 2005-05-27  Bruno Haible  <bruno@clisp.org>
85643
85644         * lib/getlogin_r.h: Remove second include of <stddef.h>.
85645
85646 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
85647
85648         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
85649         _POSIX_PTHREAD_SEMANTICS for Solaris.
85650
85651 2005-05-25  Derek Price  <derek@ximbiot.com>
85652
85653         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
85654
85655 2005-05-25  Derek Price  <derek@ximbiot.com>
85656             Paul Eggert  <eggert@cs.ucla.edu>
85657
85658         * modules/getlogin_r, m4/getlogin_r.m4: New files.
85659         * lib/getlogin_r.c, getlogin_r.h: New files.
85660
85661 2005-05-25  Bruno Haible  <bruno@clisp.org>
85662             Derek Price  <derek@ximbiot.com>
85663
85664         * lib/getlogin_r.h: Simplify API documentation.
85665
85666 2005-05-23  Derek Price  <derek@ximbiot.com>
85667
85668         * modules/minmax (Files): Add m4/minmax.m4.
85669         (configure.ac): Add gl_MINMAX.
85670
85671 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
85672
85673         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
85674         so that unistd-safer.h (GPL'ed code) need not be included.
85675
85676 2005-05-22  Bruno Haible  <bruno@clisp.org>
85677
85678         * m4/minmax.m4: New file.
85679         Based on a patch by Derek Price <derek@ximbiot.com>.
85680
85681 2005-05-22  Bruno Haible  <bruno@clisp.org>
85682
85683         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
85684         (INT64_MIN): Fix definition.
85685         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
85686
85687         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
85688         NEED_SIGNED_INT_TYPES.
85689
85690         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
85691         HAVE_SYSTEM_INTTYPES.
85692
85693 2005-05-22  Bruno Haible  <bruno@clisp.org>
85694
85695         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
85696         Also include <sys/param.h> if it defines MIN, MAX.
85697         Based on a patch by Derek Price <derek@ximbiot.com>.
85698
85699 2005-05-21  Jim Meyering  <jim@meyering.net>
85700
85701         * modules/fts (Files): Add m4/inttypes-pri.m4.
85702         (Depends-on): Add lstat and remove gettext.  Alphabetize.
85703
85704 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85705
85706         New fts module.
85707         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
85708         (setup_dir, free_dir): New functions.
85709         (enter_dir, leave_dir): Define trivial
85710         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
85711         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
85712         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
85713         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
85714         Move to fts-cycle.c.
85715         (fts_open): Use setup_dir.
85716         (fts_close): Use free_dir.
85717         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
85718         This adds a label and some gotos, but the alternatives were messier.
85719         Check for memory allocation failure when entering a dir.
85720         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
85721         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
85722         (FTS): New member fts_cycle, that is a union that contains the
85723         old active_dir_ht and cycle_state.  All uses changed to mention
85724         fts_cycle.ht and fts_cycle.state.
85725         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
85726         fts.c, with the following changes:
85727         (setup_dir, free_dir): New functions.
85728         (enter_dir): Now returns bool.  Return true if successful, false
85729         if memory exhausted.  All callers changed.
85730         Do not bother partly cleaning up on
85731         memory allocation failure; that is free_dir's job.
85732         However, free ad if hash_insert fails, to avoid memory leak.
85733         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
85734         fts->fts_options to see which union member to use.
85735
85736 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85737
85738         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
85739         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
85740
85741 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
85742
85743         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
85744
85745 2005-05-20  Jim Meyering  <jim@meyering.net>
85746
85747         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
85748         Now a macro, to pacify GCC.
85749
85750 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
85751
85752         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
85753         of -1.
85754
85755 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
85756
85757         * lib/chown.c (rpl_chown): Return -1 on failure.
85758
85759 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
85760
85761         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
85762         Don't check for stddef.h.
85763         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
85764         don't use its results.
85765         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
85766         since we include them unconditionally.  Don't require
85767         AM_STDBOOL_H, since stdbool is a prerequisite.
85768         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
85769         since we assume C89 or better.
85770         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
85771         as we don't use their results.
85772         Don't check for fchdir, memmove, memset, strrchr, as we use
85773         them unconditionally.
85774         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
85775         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
85776
85777 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
85778
85779         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
85780         Include <stddef.h> unconditionally, since we assume C89 now.
85781         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
85782         * lib/fts.c: Include fts_.h first, to check interface.
85783         Do not include intprops.h; no longer needed.
85784         Include cycle-check.h and hash.h, since fts_.h no longer does.
85785         Remove unnecessary casts of closedir to void.
85786         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
85787         decide whether to decrement nlinks.
85788         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
85789         (FTS): Use struct hash_table * instead of Hash_table, so that
85790         we no longer need to include hash.h here.
85791
85792 2005-05-18  Jim Meyering  <jim@meyering.net>
85793
85794         * modules/dirfd (License): Change to LGPL.  Most of the code
85795         is already in the public domain.
85796
85797 2005-05-18  Jim Meyering  <jim@meyering.net>
85798
85799         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
85800         Reported by Yoann Vandoorselaere.
85801
85802 2005-05-17  Jim Meyering  <jim@meyering.net>
85803
85804         * m4/fts.m4: New file, from coreutils.
85805
85806 2005-05-17  Jim Meyering  <jim@meyering.net>
85807
85808         * lib/fts.c, lib/fts_.h: New files, from coreutils.
85809
85810 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85811
85812         Sync from coreutils.
85813         * m4/unlinkdir.m4: New file.
85814
85815 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85816
85817         Sync from coreutils.
85818         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
85819         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
85820         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
85821         White space changes only.
85822         * lib/makepath.c (make_path): Port to hosts where leading "//" is
85823         special.
85824         * lib/yesno.c: Include getline.h, not ctype.h.
85825         (yesno): Don't remove leading white space; POSIX doesn't allow it.
85826         Use getline to remove arbitrary restriction on response length.
85827
85828 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
85829
85830         * config/srclist-update: Spell out "Street" in FSF postal
85831         mail address; this is the style the FSF seems to prefer.
85832
85833         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
85834         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
85835         this updates FSF postal mail address.
85836
85837         Sync from coreutils.
85838         * modules/unlinkdir: New file.
85839         * modules/yesno (Depends-on): Add getline.
85840         * MODULES.html.sh (File system functions): Add unlinkdir.
85841
85842 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85843
85844         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
85845         lib/strsep.h:
85846         Change the initial comment to refer to GPL, not LGPL.
85847         gnulib-tool will change it to LGPL as needed.
85848
85849         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
85850         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
85851         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
85852         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
85853         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
85854         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
85855         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
85856         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
85857         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
85858         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
85859         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
85860         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
85861         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
85862         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
85863         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
85864         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
85865         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
85866         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
85867         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
85868         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
85869         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
85870         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
85871         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
85872         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
85873         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
85874         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
85875         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
85876         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
85877         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
85878         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
85879         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
85880         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
85881         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
85882         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
85883         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
85884         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
85885         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
85886         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
85887         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
85888         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
85889         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
85890         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
85891         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
85892         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
85893         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
85894         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
85895         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
85896         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
85897         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
85898         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
85899         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
85900         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
85901         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
85902         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
85903         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
85904         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
85905         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
85906         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
85907         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
85908         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
85909         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
85910         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
85911         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
85912         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
85913         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
85914         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
85915         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
85916         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
85917         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
85918         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
85919         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
85920         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
85921         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
85922         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
85923         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
85924         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
85925         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
85926         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
85927         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
85928         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
85929         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
85930         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
85931         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
85932         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
85933         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
85934         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
85935         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
85936         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
85937         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
85938         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
85939         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
85940         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
85941         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
85942         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
85943         lib/yesno.c, lib/yesno.h:
85944         Update FSF postal mail address.
85945
85946 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
85947
85948         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
85949         tests/test-memmem.c, tests/test-stpncpy.c:
85950         Update FSF postal mail address.
85951
85952 2005-05-13  Bruno Haible  <bruno@clisp.org>
85953
85954         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
85955         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
85956         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
85957         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
85958         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
85959         Add support for 64-bit integers in the MSVC compiler.
85960
85961 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85962
85963         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
85964
85965 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
85966
85967         * gnulib-tool (func_import): Sort and uniquify recommended includes.
85968
85969 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
85970
85971         * doc/getdate.texi (General date syntax): Don't say that date
85972         date --iso-8601=ns generates acceptable dates; it doesn't yet.
85973         Problem reported by Nic Ferrier.
85974
85975 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
85976
85977         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
85978         specified in ai_socktype. Fix invalid ai_protocol
85979         check. ai_protocol is usually set to 0 or depending on
85980         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
85981         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
85982         ai_socktype / ai_protocol in the returned addrinfo structure.
85983
85984 2005-05-10  Simon Josefsson  <jas@extundo.com>
85985
85986         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
85987         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
85988
85989 2005-05-10  Karl Berry  <karl@gnu.org>
85990
85991         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
85992         (from http://www.gnu.org/licenses).
85993         * doc/COPYING.LIB: also rename to COPYING.LESSER.
85994         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
85995         fdl.texi suffices.
85996
85997 2005-05-10  Karl Berry  <karl@gnu.org>
85998
85999         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
86000         (COPYING.DOC): remove.
86001
86002         * config/srclist-update: new FSF address.
86003
86004 2005-05-10  Derek Price  <derek@ximbiot.com>
86005
86006         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
86007         possible.
86008
86009 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86010             Bruno Haible  <bruno@clisp.org>
86011
86012         * modules/inet_ntop: New file.
86013         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86014         inet_ntop.
86015
86016 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86017             Bruno Haible  <bruno@clisp.org>
86018
86019         * m4/inet_ntop.m4: New file.
86020
86021 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
86022             Bruno Haible  <bruno@clisp.org>
86023
86024         * lib/inet_ntop.h: New file.
86025         * lib/inet_ntop.c: New file, from glibc with modifications.
86026
86027 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
86028
86029         * modules/time_r (License): Change to LGPL.
86030         * modules/extensions (License): Change to LGPL.  Actually,
86031         the license is more permissive than that, but currently gnulib-tool
86032         doesn't know how to handle more-permissive licenses.
86033
86034         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
86035         Problem reported by Dave Love.
86036
86037 2005-05-08  Jim Meyering  <jim@meyering.net>
86038
86039         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
86040         blank.
86041
86042 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
86043
86044         * modules/argmatch (Depends-on): Add stdbool.
86045         * modules/backupfile (Depends-on): Likewise.
86046         * modules/chdir-long (Depends-on): Likewise.
86047         * modules/closeout (Depends-on): Likewise.
86048         * modules/cycle-check (Depends-on): Likewise.
86049         * modules/dirname (Depends-on): Likewise.
86050         * modules/fnmatch (Depends-on): Likewise.
86051         * modules/fsusage (Depends-on): Likewise.
86052         * modules/fwriteerror (Depends-on): Likewise.
86053         * modules/getcwd (Depends-on): Likewise.
86054         * modules/getloadavg (Depends-on): Likewise.
86055         * modules/hard-locale (Depends-on): Likewise.
86056         * modules/makepath (Depends-on): Likewise.
86057         * modules/mountlist (Depends-on): Likewise.
86058         * modules/nanosleep (Depends-on): Likewise.
86059         * modules/posixtm (Depends-on): Likewise.
86060         * modules/quotearg (Depends-on): Likewise.
86061         * modules/readtokens (Depends-on): Likewise.
86062         * modules/readtokens0 (Depends-on): Likewise.
86063         * modules/readutmp (Depends-on): Likewise.
86064         * modules/save-cwd (Depends-on): Likewise.
86065         * modules/strftime (Depends-on): Likewise.
86066         * modules/userspec (Depends-on): Likewise.
86067         * modules/utimecmp (Depends-on): Likewise.
86068         * modules/xgetcwd (Depends-on): Likewise.
86069         * modules/xnanosleep (Depends-on): Likewise.
86070         * modules/xstrtod (Depends-on): Likewise.
86071         * modules/yesno (Depends-on): Likewise.
86072
86073 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
86074
86075         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
86076         needless checks.
86077
86078 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86079
86080         Merge from coreutils.  Among other things,
86081         add bulletproofing for cases where stdin, stdout, or stderr are closed.
86082         * lib/fd-safer.c: New file.
86083         * lib/fcntl-safer.h, open-safer.c: Remove.
86084         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
86085         * lib/dup-safer.c: Include unistd-safer.h first.
86086         Don't include errno.h.
86087         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
86088         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
86089         * lib/file-type.c: Rely on file-type.h change.
86090         * lib/getloadavg.c: Include unistd-safer.h.
86091         (getloadavg): Use safer open.
86092         * lib/getusershell.c: Include "stdio-safer.h".
86093         (getusershell): Use safer fopen.
86094         * lib/long-options.c (long_options): Use NULL rather than 0.
86095         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
86096         'free'.
86097         * lib/modechange.c: Likewise.
86098         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
86099         (MODE_DONE): New constant.
86100         (struct mode_change): Remove 'next' member.
86101         (make_node_op_equals): New function; like the old one of the
86102         same name, except it allocates an array.
86103         (mode_compile, mode_create_from_ref): Use it.
86104         (mode_compile): Allocate result as an array, not a linked list.
86105         Parse octal string ourself, so that we catch mistakes like "+0".
86106         (mode_adjust): Arg is an array, not a linked list.
86107         * lib/modechange.c: Include stat-macros.h, xalloc.h.
86108         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
86109         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
86110         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
86111         Remove.  This is now stat-macros.h's job.
86112         (talloc): Remove.  All callers replaced by xalloc, so that
86113         our invokers don't have to worry about reporting memory failures.
86114         (make_node_op_equals): Remove.
86115         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
86116         New constants.
86117         (struct mode_change): Moved here from modechange.h.
86118         (mode_append_entry): Remove.
86119         (mode_compile): Remove MASKED_OPS arg, since it encouraged
86120         apps to have incorrect behavior.  Use simpler algorithm for head
86121         and tail.  Don't futz with umask; that's now the job of mode_adjust.
86122         Detect more invalid usages rather than having somewhat-random behavior.
86123         Don't insert an "a=" action, as that leads to incorrect behavior.
86124         (mode_compile, mode_create_from_ref): Return NULL on error instead
86125         of an enum, since now there's only one way to have an error.  All
86126         callers changed.
86127         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
86128         at the correct time.  Simplify calculation of "+u" and its ilk.
86129         Don't mishandle "+X".
86130         (mode_free): Remove "register" and localize decls.
86131         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
86132         (struct mode_change): Move to modechange.c; callers don't
86133         need to see this stuff.
86134         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
86135         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
86136         (mode_change, mode_adjust): Reflect the new signatures noted above.
86137         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
86138         that might redefine system include files.
86139         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
86140         (my_usleep): Use NULL rather than (void *) 0.
86141         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
86142         Use siginterrupt to specify that system calls should be interrupted.
86143         (rpl_nanosleep): Move initialization of suspended closer to call of
86144         my_usleep.
86145         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
86146         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
86147         (desirable_utmp_entry): New function.
86148         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
86149         using x2nrealloc, to simplify logic.
86150         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
86151         size calculation.  Do not assume utmp file is a regular file.
86152         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
86153         (READ_UTMP_CHECK_PIDS): New constant.
86154         * lib/save-cwd.c: Include unistd-safer.h.
86155         (save_cwd): Use fd_safer.
86156         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
86157         [!_LIBC] Include "stat-macros.h" instead.
86158         * lib/unistd-safer.h (fd_safer): New decl.
86159
86160 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86161
86162         * modules/getloadavg (Depends-on): Add unistd-safer.
86163         * modules/getusershell (Depends-on): Add stdio-safer.
86164         * modules/lstat (Depends-on): Remove xalloc.
86165         * modules/mkstemp (Depends-on): Add stat-macros.
86166         * modules/modechange (Depends-on): Remove xstrtol.
86167         Add stat-macros, xalloc.
86168         * modules/save-cwd (Depends-on): Add unistd-safer.
86169         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
86170         * modules/unistd-safer (Files): Add lib/fd-safer.c
86171         (Makefile.am): Remove lib_SOURCES.
86172
86173         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
86174         Remove fcntl-safer; unistd-safer supersedes it.
86175
86176 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86177
86178         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
86179         AC_HEADER_STAT.
86180         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
86181         (gl_PREREQ_CHOWN): Remove.
86182         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
86183         it.  Don't require AC_HEADER_STAT.
86184         (gl_PREREQ_LSTAT): Remove.
86185         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
86186         Don't require AC_HEADER_STAT.
86187         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
86188         (gl_PREREQ_RMDIR): Remove.
86189         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
86190         mention stat-macros.h or AC_HEADER_STAT, since we'll make
86191         the stat-macros module a prerequisite.
86192         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
86193         * m4/filemode.m4 (gl_FILEMODE): Likewise.
86194         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
86195         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
86196         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
86197         variable names.
86198         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
86199         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
86200         variable prefixes.
86201         * m4/fcntl-safer.m4: Remove.
86202         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
86203         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
86204         Invoke gl_PREREQ_FD_SAFER.
86205         (gl_PREREQ_FD_SAFER): New macro.
86206         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
86207         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
86208         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
86209         Remove duplicate call to AC_LIBOBJ(readutmp).
86210         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
86211
86212         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
86213         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
86214
86215 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
86216
86217         * MODULES.html.sh (Misc): Add byteswap.
86218
86219 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86220
86221         * modules/getcwd (Depends-on): Add extensions.
86222         * modules/openat (Depends-on): Likewise.
86223
86224 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86225
86226         * modules/byteswap: New file.
86227
86228 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86229
86230         * m4/byteswap.m4: New file.
86231
86232 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
86233
86234         * lib/byteswap_.h: New file.
86235
86236 2005-04-25  Karl Berry  <karl@gnu.org>
86237
86238         * m4/gettext.m4: Update from GNU gettext 0.14.4.
86239
86240 2005-04-25  Albert Chin  <china@thewrittenword.com>
86241
86242         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
86243         Toolkit C bug.
86244
86245 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
86246
86247         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
86248         (func_ln_if_changed): Remove forcibly for no error message
86249         in case file does not exist.
86250
86251 2005-04-19  Simon Josefsson  <jas@extundo.com>
86252
86253         * gnulib-tool (Options): Make --symlink mean --symbolic.
86254
86255 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
86256
86257         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
86258
86259 2005-04-16  Simon Josefsson  <jas@extundo.com>
86260
86261         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
86262
86263 2005-04-15  Simon Josefsson  <jas@extundo.com>
86264
86265         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
86266
86267 2005-04-15  Simon Josefsson  <jas@extundo.com>
86268
86269         * gnulib-tool: Rename --symlink to --symbolic.
86270
86271 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
86272
86273         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
86274         symbolic links to files instead of copying/moving.  Add --aux-dir,
86275         specifying directory relative --dir where auxiliary build tools
86276         are placed.
86277
86278 2005-04-14  Bruno Haible  <bruno@clisp.org>
86279
86280         * modules/allocsa (License): Change to LGPL.
86281         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
86282
86283 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
86284
86285         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
86286         that "UTC +1 second" continues to work.  Problem reported
86287         by Dmitry V. Levin.
86288         (relunit_snumber): New rule.
86289         (relunit): Use it.
86290
86291 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
86292
86293         * lib/getdate.y (universal_time_zone_table): New constant.
86294         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
86295         universal_time_zone_table.
86296         (lookup_zone): Prefer universal_time_zone_table to
86297         local_time_zone_table, so that "GMT" time stamps are allowed in
86298         London during the summer.  Problem reported by Ian Abbott.
86299
86300 2005-04-12  Jim Meyering  <jim@meyering.net>
86301
86302         * lib/human.c (humblock): Set *options even when returning due to
86303         xstrtoumax conversion failure.  Thanks to a used-uninitialized
86304         warning from gcc-4.
86305
86306 2005-04-09  Jim Meyering  <jim@meyering.net>
86307
86308         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
86309         -Wuninitialized: initialize tm0.tm_year.
86310
86311 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
86312
86313         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
86314         count, since there's no maximum.  All uses changed.
86315         Add member dsts_seen.
86316         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
86317         not being INT_MAX.
86318         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
86319         Use pc_rels_seen to decide whether a date is absolute.
86320
86321         * lib/getdate.y (number): Don't overwrite year.
86322         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
86323         check.
86324
86325 2005-04-02  Simon Josefsson  <jas@extundo.com>
86326
86327         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
86328         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
86329
86330 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
86331
86332         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
86333         where no absolute path name can be longer than PATH_MAX.
86334
86335 2005-03-27  Jim Meyering  <jim@meyering.net>
86336
86337         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
86338
86339 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
86340
86341         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
86342         "one's complement" -> "ones' complement" in comment, as per Knuth.
86343         "value of type" -> "type or expression" in comment.
86344         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
86345
86346 2005-03-26  Jim Meyering  <jim@meyering.net>
86347
86348         Comment nits.
86349         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
86350         Correct typos: s/or/of/.
86351
86352 2005-03-26  Jim Meyering  <jim@meyering.net>
86353
86354         * modules/check-include-files: Move to ../ and rename to...
86355         * check-module: ...this.
86356
86357 2005-03-25  Jim Meyering  <jim@meyering.net>
86358
86359         * modules/xvasprintf (Files): Add xalloc.h.
86360
86361 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
86362
86363         * modules/gettext (Files): config/config.rpath ->
86364         build-aux/config.rpath
86365         * modules/iconv (Files): Likewise.
86366         Problem reported by Oskar Liljeblad.
86367
86368 2005-03-23  Jim Meyering  <jim@meyering.net>
86369
86370         * modules/check-include-files: New script to check for
86371         missing dependencies, multiple includes, etc.
86372
86373         * modules/c-strtold (Depends-on): Add xalloc.
86374         * modules/c-strtod (Depends-on): Add xalloc.
86375         * modules/hash (Depends-on): Add xalloc.
86376         (Files): Remove lib/xalloc.h.
86377
86378         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
86379         * modules/userspec (Files): Add lib/inttostr.h.
86380
86381 2005-03-23  Jim Meyering  <jim@meyering.net>
86382
86383         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
86384
86385 2005-03-22  Jim Meyering  <jim@meyering.net>
86386
86387         * modules/stat-macros: New module.
86388         * modules/canonicalize, modules/euidaccess, modules/file-type,
86389         * modules/filemode, modules/lchown, modules/makepath,
86390         * modules/rmdir, modules/stat: Depend on new stat-macros module
86391         rather than listing lib/stat-macros.h manually.
86392         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
86393
86394 2005-03-22  Jim Meyering  <jim@meyering.net>
86395
86396         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
86397
86398 2005-03-22  Bruno Haible  <bruno@clisp.org>
86399
86400         * config/srclist.txt: Replace target directory 'config' with
86401         'build-aux'.
86402         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
86403         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
86404         ../build-aux/.
86405
86406 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
86407
86408         * modules/chdir-long (Depends-on): Add mempcpy.
86409
86410         * modules/acl, modules/backupfile, modules/c-strtod,
86411         modules/c-strtold, modules/canon-host, modules/canonicalize,
86412         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
86413         modules/exclude, modules/exitfail, modules/file-type,
86414         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
86415         modules/getdate, modules/getline, modules/getpagesize,
86416         modules/getpass, modules/getugroups, modules/group-member,
86417         modules/hard-locale, modules/hash, modules/human, modules/idcache,
86418         modules/inttostr, modules/long-options, modules/makepath,
86419         modules/md5, modules/memcasecmp, modules/memcoll,
86420         modules/modechange, modules/mountlist, modules/path-concat,
86421         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
86422         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
86423         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
86424         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
86425         modules/strftime, modules/strndup, modules/strverscmp,
86426         modules/timespec, modules/unlocked-io, modules/userspec,
86427         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
86428         modules/yesno:
86429         Remove lib_SOURCES line from Makefile.am section, as this is now
86430         done automatically by the corresponding Autoconf macro.
86431
86432 2005-03-21  Jim Meyering  <jim@meyering.net>
86433
86434         Changes imported from coreutils.
86435
86436         * lib/cycle-check.c: Don't include xalloc.h.
86437
86438         * lib/path-concat.c: Don't include assert.h.
86439         (path_concat): Remove assertion that would have triggered
86440         for ABASE starting with more than one slash.
86441         Reported by Andreas Schwab.
86442
86443         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
86444         properly when ABASE is an absolute file name.
86445         Correct the description of this function.
86446         Include <assert.h>.
86447         Add an assertion and a test driver.
86448         This fixes a bug introduced on 2004-07-02.
86449         Andreas Schwab reported the resulting failure of cp --parents:
86450         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
86451
86452 2005-03-21  Jim Meyering  <jim@meyering.net>
86453
86454         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
86455         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
86456
86457 2005-03-21  Jim Meyering  <jim@meyering.net>
86458         and  Paul Eggert  <eggert@cs.ucla.edu>
86459
86460         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
86461         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
86462         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
86463         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
86464         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
86465         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
86466         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
86467         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
86468         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
86469         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
86470         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
86471         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
86472         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
86473         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
86474         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
86475         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
86476         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
86477         for these modules.
86478
86479 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
86480
86481         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
86482         (which shouldn't happen), generate nothing instead of returning 0
86483         immediately, so that nstrftime (NULL, ...) doesn't return 0.
86484
86485 2005-03-16  Bruno Haible  <bruno@clisp.org>
86486
86487         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
86488         HAVE_LONGLONG_64BIT.
86489
86490 2005-03-16  Bruno Haible  <bruno@clisp.org>
86491
86492         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
86493         HAVE_LONGLONG_64BIT.
86494
86495 2005-03-16  Bruno Haible  <bruno@clisp.org>
86496
86497         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
86498         HAVE_LONGLONG_64BIT.
86499
86500 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
86501
86502         * lib/strftime.c (my_strftime): Prepend space to format so that we can
86503         reliably distinguish strftime failure from empty output on POSIX
86504         hosts.
86505
86506 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
86507
86508         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
86509         (iconv_string): Don't guess a size-zero buffer, as that might cause
86510         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
86511         result would be 'too large', where 'too large' is (heuristically)
86512         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
86513         overflow concerns.  This will prevent some unwanted malloc failures
86514         when the inputs are very large.
86515
86516 2005-03-15  Karl Berry  <karl@gnu.org>
86517
86518         * config/srclist.txt (config.rpath): from gettext.
86519         * config/config.rpath: update.
86520
86521 2005-03-15  Bruno Haible  <bruno@clisp.org>
86522
86523         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
86524         to 'negate'.
86525
86526         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
86527         variable.
86528
86529         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
86530         results.
86531
86532 2005-03-14  Simon Josefsson  <jas@extundo.com>
86533
86534         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
86535         <fx@gnu.org>.
86536
86537 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
86538
86539         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
86540         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
86541         intprops.h.
86542         * lib/strtol.c: Likewise.
86543
86544 2005-03-14  Jim Meyering  <jim@meyering.net>
86545
86546         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
86547         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
86548         to be nonzero so that we (and caller) can detect the difference
86549         between a valid zero-length expansion and an error return, even
86550         when the underlying strftime fails before writing anything into
86551         that location.
86552
86553 2005-03-14  Bruno Haible  <bruno@clisp.org>
86554
86555         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
86556         Update from GNU gettext 0.14.3.
86557
86558 2005-03-10  Jim Meyering  <jim@meyering.net>
86559
86560         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
86561
86562 2005-03-10  Jim Meyering  <jim@meyering.net>
86563
86564         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
86565         so that this module works on systems without fchdir.
86566
86567 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
86568
86569         Factor int-properties macros into a single file, except for
86570         glibc-related files.
86571         * lib/intprops.h: New file.
86572         * lib/getloadavg.c: Include it instead of limits.h.
86573         (INT_STRLEN_BOUND): Remove.
86574         * lib/human.c: Include intprops.h.
86575         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
86576         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
86577         302/1000.
86578         * lib/inttostr.h: Include intprops.h instead of limits.h.
86579         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
86580         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
86581         for consistency with intprops.h.
86582         (time_t_is_integer, twos_complement_arithmetic): Use them.
86583         * lib/sig2str.h: Include <signal.h>, intprops.h.
86584         (INT_STRLEN_BOUND): Remove.
86585         * lib/strftime.c (TYPE_SIGNED): Remove.
86586         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
86587         * lib/strtol.c: Adjust comments to match intprops.h.
86588         * lib/userspec.c: Include intprops.h.
86589         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
86590         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
86591         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
86592         instead of rolling our own expressions.
86593         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
86594
86595         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
86596         instead of int.
86597         (my_strftime): Do not mishandle years close to INT_MAX, by doing
86598         the right thing even if adding 1900 would overflow.  Similarly
86599         for tm_mon + 1 and tm_yday + 1.
86600         Make %Y always equivalent to %C%y, and similarly for %G and %g.
86601         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
86602         (DO_SIGNED_NUMBER): New macro.
86603         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
86604
86605 2005-03-07  Bruno Haible  <bruno@clisp.org>
86606
86607         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
86608
86609 2005-03-07  Bruno Haible  <bruno@clisp.org>
86610
86611         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
86612
86613 2005-03-04  Derek R. Price  <derek@ximbiot.com>
86614
86615         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
86616         (func_import): Only replace files via --import when they have actually
86617         changed.
86618
86619 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86620
86621         * m4/mmap-anon.m4: New file.
86622         * m4/pagealign_alloc.m4: New file.
86623
86624 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86625             Bruno Haible  <bruno@clisp.org>
86626
86627         * modules/pagealign_alloc: New file.
86628         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
86629
86630 2005-03-03  Derek R. Price  <derek@ximbiot.com>
86631             Bruno Haible  <bruno@clisp.org>
86632
86633         * lib/pagealign_alloc.h: New file.
86634         * lib/pagealign_alloc.c: New file.
86635
86636 2005-03-03  Bruno Haible  <bruno@clisp.org>
86637
86638         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
86639         Use an all-permissive copyright notice, recommended by RMS.
86640
86641 2005-03-02  Bruno Haible  <bruno@clisp.org>
86642
86643         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
86644         of AIX, the replacement has to be done only after <string.h> is
86645         included, therefore not in config.h. stpncpy.h does the replacement,
86646         and stpncpy.c uses it.
86647
86648 2005-03-02  Bruno Haible  <bruno@clisp.org>
86649
86650         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
86651         stpncpy.c uses it.
86652
86653 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86654
86655         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
86656         The workaround isn't strictly needed for POSIX conformance, and
86657         it's too much of a pain to configure and maintain.  We'll ask
86658         people to fix their kernels instead.
86659         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
86660         (NANOSLEEP_BUG_WORKAROUND): Remove.
86661         (xnanosleep): Remove the workaround.
86662
86663 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86664
86665         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
86666         Reported by Derek Price.
86667         (Include): Add "timespec.h".
86668
86669         * modules/xnanosleep (Depends-on): Remove gethrxtime.
86670
86671 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
86672
86673         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
86674         to detect nanosleep bug.
86675
86676 2005-03-01  Bruno Haible  <bruno@clisp.org>
86677
86678         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
86679
86680 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
86681
86682         * modules/gethrxtime: New file.
86683         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
86684         (Depends-on): Add gethrxtime.
86685         (configure.ac): Add gl_XNANOSLEEP.
86686         (Makefile.am): Remove lib_SOURCES line.
86687
86688 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
86689
86690         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
86691         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
86692
86693 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
86694
86695         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
86696         * lib/timespec.h (gettime): Return void, since it always
86697         succeeds now.  All uses changed.
86698         * lib/gettime.c (gettime): Likewise.
86699         [HAVE_NANOTIME]: Prefer nanotime.
86700         Assume gettimeofday succeeds, as POSIX requires.
86701         Assime time () succeeds, since other code already does.
86702         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
86703         (timespec_subtract): Remove.
86704         (NANOSLEEP_BUG_WORKAROUND): New constant.
86705         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
86706         things considerably.  Use it only on GNU/Linux hosts, since the
86707         workaround shouldn't be needed elsewhere.
86708
86709 2005-02-24  Bruno Haible  <bruno@clisp.org>
86710
86711         * modules/gettext (Files): Add m4/glibc2.m4.
86712
86713 2005-02-24  Bruno Haible  <bruno@clisp.org>
86714
86715         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
86716         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
86717         * m4/progtest.m4:
86718         Update from GNU gettext 0.14.2.
86719         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
86720
86721 2005-02-24  Bruno Haible  <bruno@clisp.org>
86722
86723         * lib/localcharset.c: Update from GNU gettext 0.14.2.
86724         * lib/config.charset: Update from GNU gettext 0.14.2.
86725
86726 2005-02-24  Bruno Haible  <bruno@clisp.org>
86727
86728         * lib/gettext.h: Update from GNU gettext 0.14.2.
86729
86730 2005-02-23  Simon Josefsson  <jas@extundo.com>
86731
86732         * m4/iconvme.m4: New file.
86733
86734 2005-02-23  Jim Meyering  <jim@meyering.net>
86735
86736         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
86737         change.
86738         Thanks to Bruno Haible for catching it.
86739
86740 2005-02-22  Simon Josefsson  <jas@extundo.com>
86741
86742         * modules/iconvme: New file.
86743
86744         * MODULES.html.sh: Add iconvme.
86745
86746 2005-02-22  Simon Josefsson  <jas@extundo.com>
86747
86748         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
86749
86750 2005-02-22  Simon Josefsson  <jas@extundo.com>
86751
86752         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
86753
86754 2005-02-22  Jim Meyering  <jim@meyering.net>
86755
86756         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
86757         s/ifndef/ifdef/.
86758
86759 2005-02-20  Neil Conway  <neilc@samurai.com>
86760
86761         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
86762         returned by OSX/Darwin if the specified buffer is not large
86763         enough for the hostname.
86764
86765 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86766
86767         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
86768         pass it to _help, otherwise the latter coredumps trying to
86769         dereference state.root_argp.
86770
86771 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86772
86773         * modules/chdir-long (Depends-on): Add memrchr.
86774         * modules/memrchr (Files): Add lib/memrchr.h.
86775         (Include): "memrchr.h".
86776
86777 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86778
86779         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
86780
86781 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
86782
86783         * lib/memrchr.h: New file.
86784         * lib/chdir-long.c: Include it.
86785         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
86786         Don't bother including stddef.h.
86787
86788 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
86789
86790         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
86791         inclusion.
86792         Include <sys/types.h>, for dev_t.
86793         (ME_DUMMY, ME_REMOTE): Move from here....
86794         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
86795         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
86796         Dmitry V. Levin.
86797         Include mountlist.h first, to test the interface.
86798
86799 2005-01-29  Bruno Haible  <bruno@clisp.org>
86800
86801         * lib/progname.c (program_name): Initialize.
86802         Needed when linking statically on MacOS X.
86803
86804 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
86805
86806         Sync from coreutils.
86807         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
86808         (Depends-on): Add c-strtod.
86809         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
86810
86811 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
86812
86813         Sync from coreutils.
86814         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
86815
86816         Remove files that are specific to coreutils.
86817         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
86818
86819 2005-01-28  Bruno Haible  <bruno@clisp.org>
86820
86821         * modules/javacomp: New file.
86822         * MODULES.html.sh (Java): Add javacomp.
86823
86824 2005-01-28  Bruno Haible  <bruno@clisp.org>
86825
86826         * m4/javacomp.m4: New file, from GNU gettext.
86827
86828 2005-01-28  Bruno Haible  <bruno@clisp.org>
86829
86830         * lib/javacomp.sh.in: New file, from GNU gettext.
86831         * lib/javacomp.h: New file, from GNU gettext.
86832         * lib/javacomp.c: New file, from GNU gettext.
86833
86834 2005-01-26  Simon Josefsson  <jas@extundo.com>
86835
86836         * lib/gai_strerror.c: Use GPL in header.
86837
86838 2005-01-26  Bruno Haible  <bruno@clisp.org>
86839
86840         * modules/javaexec: New file.
86841         * MODULES.html.sh (Java): Add javaexec.
86842
86843 2005-01-26  Bruno Haible  <bruno@clisp.org>
86844
86845         * m4/javaexec.m4: New file, from GNU gettext.
86846
86847 2005-01-26  Bruno Haible  <bruno@clisp.org>
86848
86849         * lib/javaexec.sh.in: New file, from GNU gettext.
86850         * lib/javaexec.h: New file, from GNU gettext.
86851         * lib/javaexec.c: New file, from GNU gettext.
86852
86853 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86854
86855         * modules/lchown (Depends-on): Remove lchown.h
86856
86857 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86858
86859         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
86860         must be defined if the header file was not found, in order
86861         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
86862
86863 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86864
86865         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
86866         initializers for struct pentry_state.
86867         (__argp_error): Check return value of __asprintf
86868         (__argp_failure): Translate error message
86869
86870         * lib/argp-parse.c: Removed braces around the expansion of N_()
86871
86872 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
86873
86874         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
86875         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
86876         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
86877         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
86878         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
86879         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
86880         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
86881         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
86882         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
86883         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
86884         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
86885         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
86886         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
86887         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
86888         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
86889         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
86890         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
86891         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
86892         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
86893         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
86894         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
86895         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
86896         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
86897         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
86898         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
86899         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
86900         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
86901         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
86902         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
86903         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
86904         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
86905         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
86906         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
86907         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
86908         xstrtol.m4, xstrtoumax.m4, yesno.m4:
86909         Use an all-permissive copyright notice, recommended by RMS.
86910
86911 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
86912
86913         * modules/chdir-long (Depends-on): Remove mempcpy.
86914
86915 2005-01-21  Jim Meyering  <jim@meyering.net>
86916
86917         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
86918         same value as for Solaris 9.
86919
86920         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
86921         component length.  This included changing the parameter to be
86922         of type `char *' rather than `char const *'.
86923         * lib/chdir-long.h (chdir_long): Update prototype.
86924
86925         * lib/openat.c (fdopendir, fstatat): New functions.
86926         * lib/openat.h: Include headers required for use of DIR and struct
86927         stat.
86928         [AT_SYMLINK_NOFOLLOW]: Define.
86929         (fdopendir, fstatat): Add prototypes.
86930
86931 2005-01-21  Bruno Haible  <bruno@clisp.org>
86932
86933         * modules/classpath: New file.
86934         * MODULES.html.sh (Java): Add classpath.
86935
86936 2005-01-21  Bruno Haible  <bruno@clisp.org>
86937
86938         * lib/classpath.h: New file, from GNU gettext.
86939         * lib/classpath.c: New file, from GNU gettext.
86940
86941 2005-01-20  Simon Josefsson  <jas@extundo.com>
86942
86943         * modules/version-etc-fsf: New file.
86944
86945 2005-01-20  Simon Josefsson  <jas@extundo.com>
86946
86947         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
86948         * lib/version-etc.c: Remove version_etc_copyright.
86949         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
86950         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
86951
86952 2005-01-20  Simon Josefsson  <jas@extundo.com>
86953
86954         * lib/base64.h (isbase64): Add.
86955
86956         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
86957         using a unsigned prototype, don't inline.
86958         (base64_decode): Use it.
86959
86960 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
86961
86962         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
86963         it.
86964
86965 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
86966
86967         * lib/save-cwd.c (save_cwd): Remove code to support the case
86968         where fchdir is missing or flaky.
86969
86970 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
86971
86972         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
86973
86974 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
86975
86976         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
86977         AC_LIBSOURCES now does this.
86978         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
86979         with new ullong_max module.
86980
86981 2005-01-19  Bruno Haible  <bruno@clisp.org>
86982
86983         * modules/sh-quote: New file.
86984         * MODULES.html.sh (Executing programs): Add sh-quote.
86985
86986 2005-01-19  Bruno Haible  <bruno@clisp.org>
86987
86988         * lib/sh-quote.h: New file, from GNU gettext.
86989         * lib/sh-quote.c: New file, from GNU gettext.
86990
86991 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
86992
86993         Merge from coreutils.
86994         * m4/ullong_max.m4: New file.
86995         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
86996         (gl_MACROS): Assume localeconv exists.
86997
86998 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
86999
87000         Merge changes from coreutils, as described below in several
87001         changelogs dated today.
87002
87003         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
87004         (O_DIRECTORY): Remove; not needed here, since "." must be
87005         a directory.  All uses removed.
87006         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
87007         universal on Suns, and we also need to test for IRIX.
87008         Revamp code to use 'if' rather than '#if'.
87009         Avoid unnecessary comparison of cwd->desc to 0.
87010
87011         * lib/utimens.c (futimens): Robustify the previous patch, by checking
87012         for known valid error numbers rather than observed invalid ones.
87013
87014 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
87015
87016         * modules/ullong_max: New file.
87017
87018         * modules/chdir-long, modules/openat: New files.
87019         * modules/save-cwd (Depends-on): Depend on chdir-long.
87020         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
87021
87022 2005-01-18  Jim Meyering  <jim@meyering.net>
87023
87024         Merge from coreutils.
87025         * m4/chdir-long.m4, m4/openat.m4: New files.
87026         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
87027         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
87028         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
87029         is sane and DOES follow symlinks.  Besides, testing 20 different
87030         systems found no broken chown implementations.
87031         Prompted by a change in rsync's copy of this macro.
87032         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
87033
87034         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
87035
87036         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
87037         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
87038         NULL-means-set-to-current-time semantics.
87039         Remove temporary file immediately, rather than waiting
87040         for configure's at-exit trap code to do it.
87041
87042 2005-01-18  Jim Meyering  <jim@meyering.net>
87043
87044         * lib/version-etc.c (version_etc_copyright): Update copyright date.
87045
87046         * lib/utimens.c (futimens): Account for the fact that futimes
87047         can also fail with errno == ENOSYS or errno == ENOENT.
87048         Patch from Dmitry V. Levin.
87049
87050         Change the name of the robust chdir function from chdir to chdir_long.
87051         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
87052         (restore_cwd): Use chdir_long, not chdir.
87053         * lib/chdir-long.c: Renamed from chdir.c.
87054         * lib/chdir-long.h: Renamed from chdir.h.
87055         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
87056         Hurd.
87057
87058 2005-01-18  Bruno Haible  <bruno@clisp.org>
87059
87060         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
87061         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
87062         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
87063         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
87064         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
87065         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
87066         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
87067         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
87068         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
87069         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
87070         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
87071         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
87072         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
87073         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
87074         Use an all-permissive copyright notice, recommended by RMS.
87075
87076 2005-01-18  Bob Proulx  <bob@proulx.com>
87077
87078         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
87079         simplify offsetof() macro construct to avoid compile failure with
87080         native HP-UX 11.0 ANSI C compiler.
87081
87082 2005-01-17  Bruno Haible  <bruno@clisp.org>
87083
87084         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
87085         redundant because stpncpy.m4 takes care of it.
87086
87087 2005-01-17  Bruno Haible  <bruno@clisp.org>
87088
87089         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
87090
87091 2005-01-17  Bruno Haible  <bruno@clisp.org>
87092
87093         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
87094         used.
87095
87096 2005-01-17  Bruno Haible  <bruno@clisp.org>
87097
87098         * lib/fwriteerror.h (fwriteerror): Change specification to include
87099         fclose.
87100         * lib/fwriteerror.c: Include <stdbool.h>.
87101         (fwriteerror): At the end, close the file stream. Record whether
87102         stdout was already closed.
87103
87104 2005-01-17  Bruno Haible  <bruno@clisp.org>
87105
87106         * lib/execute.c (environ): Declare if needed.
87107         * lib/pipe.c (environ): Likewise.
87108         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
87109
87110 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87111
87112         * modules/argp: Depend on vsnprintf
87113
87114 2005-01-10  Jim Meyering  <jim@meyering.net>
87115
87116         * modules/closeout (Depends-on): Add atexit.
87117
87118 2005-01-06  Bruno Haible  <bruno@clisp.org>
87119
87120         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
87121
87122 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
87123
87124         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
87125         definitions to be after all include files, to avoid collisions.
87126         Problem reported by Bob Proulx.
87127
87128 2005-01-04  Jim Meyering  <jim@meyering.net>
87129
87130         Changes imported from coreutils.
87131         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
87132         as the mkstemp template, use a temporary directory and an
87133         8.3-friendly template to avoid trouble on systems like DJGPP.
87134         Reported by Juan M. Guerrero via Stepan Kasal.
87135         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
87136         close. Remove the temporary directory right away, rather than waiting
87137         for configure's at-exit trap code to do it.
87138         Suggestion from Stepan Kasal.
87139
87140 2005-01-01  Simon Josefsson  <jas@extundo.com>
87141
87142         * gnulib-tool: Print #include directives when --import'ing.
87143
87144 2004-12-28  Simon Josefsson  <jas@extundo.com>
87145
87146         * tests/test-base64.c: Include required header files.  Remove
87147         unused variables.
87148
87149 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
87150
87151         * modules/error (Depends-on): Remove gettext.
87152
87153 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
87154
87155         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
87156         not needed.  This removes a dependency on the gettext module.
87157         [defined _LIBC]: Do not include <libintl.h>; not needed.
87158
87159 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
87160
87161         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
87162         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
87163
87164 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
87165
87166         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
87167         HAVE_DECL_STRTOLD.
87168
87169 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87170
87171         * modules/getdate (Depends-on): Remove alloca-opt.
87172
87173 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87174
87175         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
87176
87177 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
87178
87179         * lib/argp-parse.c: Include <stddef.h>.
87180         (alignof, alignto): New macros.
87181         (parser_init): Don't assume that void * is aligned sufficiently
87182         for struct option.
87183
87184         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
87185         need to extend the stack.
87186         (YYINITDEPTH): New macro, so that the initial stack isn't overly
87187         large.
87188
87189 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87190
87191         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
87192
87193 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
87194
87195         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
87196         (2004-10-24) change.  Apparently this was a false alarm.
87197
87198         * modules/getdate: Depend on alloca-opt, not alloca.
87199
87200 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
87201
87202         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
87203         Remove now-obsolete comment about AIX.
87204         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
87205         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
87206         (YYMAXDEPTH): New macro.
87207
87208 2004-12-18  Simon Josefsson  <jas@extundo.com>
87209
87210         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
87211
87212 2004-12-18  Bruno Haible  <bruno@clisp.org>
87213
87214         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
87215
87216 2004-12-18  Bruno Haible  <bruno@clisp.org>
87217
87218         * lib/fatal-signal.c (fatal_signals): Make non-const.
87219         (init_fatal_signals): New function.
87220         (uninstall_handlers, install_handlers): Ignore signals that were set to
87221         SIG_IGN.
87222         (at_fatal_signal): Call init_fatal_signals.
87223         (init_fatal_signal_set): Likewise. Ignore signals that were set to
87224         SIG_IGN.
87225         Reported by Paul Eggert.
87226
87227 2004-12-18  Bruno Haible  <bruno@clisp.org>
87228
87229         * doc/alloca.texi: New file.
87230         * doc/alloca-opt.texi: New file.
87231
87232 2004-12-17  Jim Meyering  <jim@meyering.net>
87233
87234         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
87235         Otherwise, install-sh could exit with improper exit status when
87236         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
87237
87238 2004-12-16  Simon Josefsson  <jas@extundo.com>
87239
87240         * tests/test-base64.c: Add license.
87241
87242 2004-12-15  Stepan Kasal  <address@hidden>
87243
87244         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
87245
87246 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
87247
87248         * modules/getcwd (Files): Add m4/d-ino.m4.
87249         Suggested by Mark D. Baushke.
87250
87251 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
87252
87253         * lib/getdate.y (textint): New member "negative".
87254         (time_zone_hhmm): New function.
87255         Expect 14 shift-reduce conflicts, not 13.
87256         (o_colon_minutes): New rule.
87257         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
87258         (yylex): Set the "negative" member of signed numbers.
87259
87260 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
87261
87262         * doc/getdate.texi (Time of day items, Time zone items):
87263         Describe new formats +00:00, UTC+00:00.
87264
87265 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
87266
87267         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
87268         spurious "-l"s.  Problem reported by Stepan Kasal.
87269
87270 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
87271
87272         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
87273         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
87274
87275 2004-12-04  Simon Josefsson  <jas@extundo.com>
87276
87277         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
87278         Vandoorselaere <yoann@prelude-ids.org>.
87279
87280 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87281
87282         Changes imported from coreutils.
87283         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
87284         exist.
87285         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
87286
87287 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87288
87289         Changes imported from coreutils.
87290         * lib/hard-locale.c: Assume <locale.h> exists.
87291         Include "strdup.h".
87292         (GLIBC_VERSION): New macro.
87293         (hard_locale): Assume setlocale exists.
87294         Rewrite to avoid #ifdef.
87295         Use strdup rather than malloc + strcpy.
87296         * lib/human.c: Assume <locale.h> exists.
87297         (human_readable): Assume localeconv exists.
87298
87299 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
87300
87301         * modules/hard-locale (Depends-on): Add strdup.
87302
87303 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
87304
87305         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
87306         convert T2, not T.  (Imported from libc.)
87307
87308 2004-11-30  Simon Josefsson  <jas@extundo.com>
87309
87310         * modules/restrict (License): Change to LGPL.
87311
87312 2004-11-30  Simon Josefsson  <jas@extundo.com>
87313
87314         * m4/restrict.m4: Add copyright and copying conditions.
87315
87316 2004-11-30  Simon Josefsson  <jas@extundo.com>
87317
87318         * m4/base64.m4: New file.
87319
87320 2004-11-30  Simon Josefsson  <jas@extundo.com>
87321
87322         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
87323         base64.
87324
87325         * tests/test-base64.c: New file.
87326
87327         * modules/base64: New file.
87328
87329 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
87330
87331         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
87332         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
87333
87334         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
87335
87336 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
87337
87338         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
87339         (__getcwd.c): Don't restore errno; glibc doesn't.
87340         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
87341         first, falling back to our code only if its results look suspicious.
87342         Ensure that the resulting buffer is only as large as necessary.
87343
87344         * lib/readutmp.c: Include readutmp.h first.
87345         Include <errno.h>, since readutmp.h no longer does that.
87346         * lib/readutmp.h: Don't include <errno.h>,
87347         <sys/param.h>, <time.h>; not needed to establish interface.
87348         (errno): Remove decl.
87349         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
87350         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
87351         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
87352
87353 2004-11-28  Simon Josefsson  <jas@extundo.com>
87354
87355         * lib/base64.h, base64.c: New file.
87356
87357 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
87358
87359         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
87360
87361 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
87362
87363         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
87364         (Depends-on): Remove pathmax, same.  Add mempcpy.
87365         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
87366         (Makefile.am): Append getcwd.h to lib_SOURCES.
87367         (Include): Add getcwd.h.
87368         (Maintainer): Change from Jim Meyering to "all, glibc",
87369         since getdate now uses intended-for-glibc code.
87370         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
87371         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
87372
87373 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
87374
87375         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
87376         HP's ANSI C compiler.
87377         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
87378         Declaring int functions causes warnings on some modern systems and
87379         shouldn't be needed to compile on ancient ones.
87380         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
87381         defined.
87382
87383         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
87384         with the following changes.
87385         (__set_errno): Parenthesize properly.
87386         Include <stdbool.h>.
87387         (MIN, MAX, MATCHING_INO): New macros.
87388         (__getcwd): Define with prototype, not K&R form.
87389         Use heuristics to allocate default buffer on stack if possible.
87390         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
87391         behavior, and to avoid the PATH_MAX limit when computing
87392         ../../../../...
87393         Use MATCHING_INO to compare inode number to file.
87394         Check for arithmetic overflow in size calculations.
87395         Fix bug in reallocation of dot array that caused getcwd to fail
87396         on directories nested deeper than 75.
87397         Be more careful about saving errno on error.
87398         Do not use realloc; use only free+malloc, as this is a bit
87399         more flexible and avoids a needless copy operation.
87400         Do not inspect st_dev and st_ino for symbolic links; POSIX
87401         doesn't specify the latter.
87402         Check for closedir errors.
87403         Avoid needless casts.
87404         Use "#ifdef weak_alias" around weak_alias, to be like other
87405         glibc code.
87406         The following changes to getcwd.c have effect only when used in
87407         gnulib; they have no effect inside glibc proper.
87408         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
87409         as alloca isn't used.
87410         (alloca, __alloca): Likewise.
87411         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
87412         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
87413         unconditionally, as gnulib assumes C89 or better.
87414         Do not include <sys/param.h>.
87415         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
87416         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
87417         better.
87418         (NULL) [!defined NULL]: Remove; we assume C89 or better.
87419         Include <dirent.h> in a way that is compatible with modern Autoconf.
87420         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
87421         New macros, if not already defined.
87422         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
87423         Use "_LIBC", not "defined _LIBC", for consistency.
87424         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
87425         a mempcpy module.
87426         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
87427         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
87428         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
87429         credit only to Jim Meyering and adjust the copyright dates.
87430         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
87431         <stdlib.h>, <unistd.h>, "pathmax.h".
87432         Instead, include "xgetcwd.h" (first) and "getcwd.h".
87433         (INITIAL_BUFFER_SIZE): Remove.
87434         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
87435
87436 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
87437
87438         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
87439         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
87440         Use the _ONCE methods, for efficiency.
87441         Check for fcntl.h.  In test program, include <errno.h>
87442         and <fcntl.h> if available.  Remove old K&R cruft from
87443         test program.  Check for common errors in GNU/Linux,
87444         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
87445         don't do AC_LIBOBJ, as that's getcwd.m4's job.
87446         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
87447         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
87448         name accordingly.
87449         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
87450         accommodate new getcwd.c.
87451         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
87452         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
87453         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
87454         that's all we need now.
87455
87456 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87457
87458         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
87459         argp-parse.c depends on getopt internals, that means we should
87460         always use our getopt, to be on the safe side.
87461         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
87462         order not to spoil the result of an eventual previous invocation
87463         of gl_GETOPT_SUBSTITUTE.
87464
87465 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
87466
87467         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
87468         redefinition warnings. To avoid them, include the defines
87469         in `#if !defined __need_getopt ... #endif'. The only place
87470         where __getopt_argv_const is used is in definitions
87471         of getopt_long and getopt_long_only below, which are as well
87472         protected by `#ifndef __need_getopt'.
87473         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
87474         __need_getopt after including <stdio.h> and <unistd.h> These
87475         headers might have defined it.
87476
87477 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
87478
87479         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
87480
87481 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
87482
87483         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
87484         (futimens): New function, which uses futimes if available.
87485         (futimens, utimens): Support timespec==NULL, with same semantics
87486         as utime and utimens.
87487         * lib/utimens.h (futimens): New decl.
87488
87489 2004-11-23  Jim Meyering  <jim@meyering.net>
87490
87491         * lib/getopt_.h: Remove trailing blanks.
87492
87493 2004-11-23  Jim Meyering  <jim@meyering.net>
87494
87495         * lib/__fpending.c: Add comment.
87496
87497 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
87498
87499         * modules/canonicalize (Depends-on): Add xreadlink.
87500         Problem reported by James Youngman.
87501
87502 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
87503
87504         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
87505         New macros.
87506         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
87507         optopt): Use them instead of invoking ## directly; otherwise, the
87508         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
87509
87510 2004-11-19  Bruno Haible  <bruno@clisp.org>
87511
87512         * lib/strtok_r.c: Move comments from here...
87513         * lib/strtok_r.h: ... to here.
87514
87515 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
87516
87517         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
87518         implementations that mishandle size_t overflow.
87519
87520 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
87521
87522         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
87523         might fail.  Problem reported by Yoann Vandoorselaere.
87524         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
87525         implementations that mishandle size_t overflow.
87526
87527 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87528
87529         * modules/canon-host (Depends-on): Add strdup.
87530
87531 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87532
87533         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
87534
87535 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87536
87537         * lib/canon-host.c: Include "strdup.h".
87538         (canon_host): Use getaddrinfo if available, so that IPv6 works.
87539         Use strdup instead of malloc/strcpy to duplicate strings.
87540
87541         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
87542         (human_space_before_unit): New constant.
87543         * lib/human.c (human_readable): Support it.
87544
87545         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
87546         (xgetcwd): Set errno correctly when failing.
87547         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
87548         the failure is actually due to a PATH_MAX problem.
87549
87550         Further getopt changes to make it more likely that glibc will
87551         buy the changes back.
87552         * lib/getopt.c (POSIXLY_CORRECT): New constant.
87553         (getopt): Use it, so to preserve glibc semantic
87554         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
87555         when compiling for libc.
87556         * lib/getopt_.h (__getopt_argv_const): Bring it back.
87557         (getopt_long, getopt_long_only): Use it.
87558
87559         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
87560         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
87561         (getopt): Argv is now char * const *, as per standard.
87562         (_getopt_internal_r, _getopt_internal): Argv is now char **,
87563         not char *__getopt_argv_const *.
87564         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
87565         _getopt_long_only_r): Likewise.
87566         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
87567         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
87568         _getopt_long_r, _getopt_long_only_r): Likewise.
87569         * lib/getopt_.h (__getopt_argv_const): Remove.
87570         (getopt): Argv is now char * const *, as per standard.
87571
87572         * lib/getdate.y (tORDINAL): New token.
87573         (day, relunit): Allow it for relative times.
87574         (relative_time_table): Use tORDINAL for ordinals.
87575
87576 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
87577
87578         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
87579         Document that "second" isn't allowed as an ordinal number.
87580
87581 2004-11-16  Jim Meyering  <jim@meyering.net>
87582
87583         * modules/closeout (Depends-on): Add fpending.
87584
87585 2004-11-15  Jim Meyering  <jim@meyering.net>
87586
87587         * lib/closeout.c: Include "__fpending.h" once again.
87588         Include <stdbool.h>.
87589         (close_stdout): Don't fail just because stdout was closed initially,
87590         since some programs don't write to stdout in the normal course of
87591         operation (other than --version and --help), and we don't want this
87592         function to make e.g. `touch file >&-' fail.
87593         But do fail if it was closed and someone has tried to write to it.
87594         E.g., `printf foo >&-' must fail.
87595
87596 2004-11-13  Jim Meyering  <jim@meyering.net>
87597
87598         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
87599
87600 2004-11-12  Simon Josefsson  <jas@extundo.com>
87601
87602         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
87603         small doc fix is still pending.
87604
87605 2004-11-11  Simon Josefsson  <jas@extundo.com>
87606
87607         * modules/strtok_r: New file.
87608
87609         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87610         strtok_r.
87611
87612 2004-11-11  Simon Josefsson  <jas@extundo.com>
87613
87614         * m4/strtok_r.m4: New file.
87615
87616         * m4/getopt.m4: Replace opterr.
87617
87618 2004-11-11  Simon Josefsson  <jas@extundo.com>
87619
87620         * lib/strtok_r.h, strtok_r.c: New file.
87621
87622 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
87623
87624         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
87625         of replacing opterr, getopt, etc.  This should handle the
87626         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
87627
87628 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
87629
87630         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
87631         we can stop lying to compilers about the constness of argv when we
87632         are compiled outside glibc.
87633         (getopt, getopt_long, getopt_long_only): Use it.
87634         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
87635         _getopt_internal, getopt): Likewise.
87636         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
87637         _getopt_long_only_r): Likewise.
87638         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
87639         _getopt_long_r, _getopt_long_only_r): Likewise.
87640
87641         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
87642         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
87643         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
87644         the other external symbols.
87645         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
87646         declaration, since the above renaming now works around collisions.
87647
87648 2004-11-11  Jim Meyering  <jim@meyering.net>
87649
87650         * lib/linebreak.c: Remove trailing blanks.
87651         * lib/alloca_.h: Likewise.
87652         * lib/acosl.c: Likewise.
87653         * lib/euidaccess.c: Likewise.
87654         * lib/allocsa.h: Likewise.
87655
87656 2004-11-10  Simon Josefsson  <jas@extundo.com>
87657
87658         * m4/getaddrinfo.m4: New file.
87659
87660 2004-11-10  Simon Josefsson  <jas@extundo.com>
87661
87662         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
87663
87664 2004-11-10  Simon Josefsson  <jas@extundo.com>
87665
87666         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87667         getaddrinfo.
87668
87669         * modules/getaddrinfo: New file.
87670
87671 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
87672
87673         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
87674
87675 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
87676
87677         * lib/mktime.c (SHR): New macro, which is a portable
87678         substitute for >> that should work even on Crays.
87679         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
87680         Problem reported by Mark D. Baushke in
87681         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
87682         * lib/getdate.y (SHR): Likewise.
87683         (tm_diff): Use it.
87684         * lib/strftime.c (SHR): Likewise.
87685         (tm_diff): Use it.
87686         * lib/quotearg.c (struct quoting_options): Use unsigned int for
87687         quote_these_too, so that right shifts are well defined.  All uses
87688         changed.
87689
87690 2004-11-10  Jim Meyering  <jim@meyering.net>
87691
87692         Ensure that no close failure goes unreported.
87693         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
87694         return early when it seems there's nothing to flush.
87695         Don't include __fpending.h.
87696
87697 2004-11-10  Jim Meyering  <jim@meyering.net>
87698
87699         * modules/closeout (Depends-on): Remove fpending.
87700
87701 2004-11-10  Jim Meyering  <jim@meyering.net>
87702
87703         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
87704
87705 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
87706
87707         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
87708         gl_FUNC_STRFTIME.
87709         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
87710         and AC_REQUIRE when possible, to avoid duplicate checks.
87711         Check for <wchar.h>.
87712
87713 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
87714
87715         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
87716
87717 2004-11-09  Bruno Haible  <bruno@clisp.org>
87718
87719         * m4/sockpfaf.m4: New file.
87720
87721 2004-11-05  Bruno Haible  <bruno@clisp.org>
87722
87723         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
87724         Reported by Mark D. Baushke <mdb@cvshome.org>.
87725
87726 2004-11-04  Bruno Haible  <bruno@clisp.org>
87727
87728         2004-09-11  Bruno Haible  <bruno@clisp.org>
87729                 * allocsa.valgrind: New file.
87730         2004-02-06  Bruno Haible  <bruno@clisp.org>
87731                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
87732                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
87733                 Reported by Christopher Seip <chris.seip@hp.com>.
87734
87735 2004-11-04  Bruno Haible  <bruno@clisp.org>
87736
87737         * modules/allocsa (Files): Add lib/allocsa.valgrind.
87738         (Makefile.am): Distribute it.
87739
87740 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
87741
87742         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
87743         with errno == ERANGE if the buffer is too small.
87744         Problem reported by Mark D. Baushke.
87745
87746 2004-11-03  Albert Chin  <china@thewrittenword.com>
87747             Paul Eggert  <eggert@cs.ucla.edu>
87748
87749         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
87750         equivalent, substitute $ac_type for equivalent type rather than
87751         blindly using uint32_t *always* which won't work if uint32_t is not
87752         available.  Define _UINT32_T to work around typedef of uint32_t if
87753         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
87754         2.5.1.
87755
87756 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87757
87758         * m4/jm-macros.m4: Sync from coreutils.
87759         (gl_MACROS): Check for mbrlen, for pathchk.
87760         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
87761
87762 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87763
87764         * lib/xreadlink.c (MAXSIZE): New macro.
87765         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
87766         size does not exceed MAXSIZE.  Avoid cast.
87767         As suggested by Mark D. Baushke in
87768         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
87769         if readlink fails with buffer size just under MAXSIZE, try again
87770         with MAXSIZE.
87771
87772 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
87773
87774         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
87775
87776 2004-11-02  Derek R. Price  <derek@ximbiot.com>
87777         and  Paul Eggert  <eggert@cs.ucla.edu>
87778
87779         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
87780         (get_date): Overparenthesize to avoid GCC warning.
87781
87782 2004-11-02  Bruno Haible  <bruno@clisp.org>
87783
87784         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
87785         returns void.
87786
87787 2004-11-02  Bruno Haible  <bruno@clisp.org>
87788
87789         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
87790         function returns void.
87791
87792 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
87793
87794         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
87795         fflush_unlocked, flockfile, funlockfile, funlockfile,
87796         fputs_unlocked, putc_unlocked.
87797
87798 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
87799
87800         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
87801         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
87802         already declared.
87803
87804 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87805
87806         * modules/getdate (Files): Add doc/getdate.texi.
87807         (Depends-on): Add setenv, xalloc.
87808
87809 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87810
87811         * lib/getdate.y: Add support for TZ="foo" within a date string.
87812         Fix some bugs near time_t boundaries.  Reject dates with
87813         out-of-range components, e.g., "Sept 31".
87814         Include <stdlib.h>, "setenv.h", "xalloc.h".
87815         (ISDIGIT_LOCALE): Remove; unused.
87816         Note that the TZ and time functions used here are not reentrant.
87817         (mktime_ok, get_tz): New functions.
87818         (TZBUFSIZE): New constant.
87819         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
87820         This requires that we sometimes generate our own TZ="XXX..." setting.
87821
87822 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
87823
87824         * doc/getdate.texi: New file, from coreutils with modifications for
87825         the new TZ parsing.
87826
87827 2004-10-27  Derek R. Price  <derek@ximbiot.com>
87828
87829         * lib/mktime.c (not_equal_tm): Remove redundant check.
87830
87831 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
87832
87833         * modules/regex (lib_SOURCES): Add regex.c.
87834         Reported by James Youngman in
87835         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
87836
87837 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
87838
87839         * lib/getdate.y: Use Bison 1.875 features, and some minor
87840         code cleanups.  This change does not affect semantics.
87841         Don't include <stdlib.h>; no longer needed.
87842         Don't include unlocked-io.h; only the "#if TEST" code uses
87843         stdio, and performance isn't crucial there.
87844         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
87845         Bison 1.875 features as described below.
87846         All uses of "PC." replaced by "pc->".
87847         (YYSTYPE): Add a forward declaration.
87848         (yylex, yyerror): Use full prototypes in forward decls.
87849         Use "%pure-parser" rather than obsolescent "%pure_parser".
87850         Use %parse-param and %lex-param instead of obsolescent
87851         YYPARSE_PARAM and YYLEX_PARAM.
87852         (meridian_table, month_and_day_table, time_units_table,
87853         relative_time_table, time_zone_table, military_table,
87854         lookup_zone, lookup_word, get_date):
87855         Use NULL instead of 0 where appropriate.
87856         (to_hour): Avoid abort (), to avoid a dependency on
87857         stdlib.h.
87858         (yyerror, yylex): Now accepts parser_control * arg.
87859         (main) [TEST]: Use '\0' rather than 0 for char.
87860
87861 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
87862
87863         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
87864
87865 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
87866
87867         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
87868         It's now the caller's responsibility to handle the case where
87869         !HAVE_GETPAGESIZE && !defined getpagesize.
87870
87871         * lib/mktime.c (leapyear): Arg is long int, not int.
87872
87873 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
87874
87875         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
87876
87877 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
87878
87879         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
87880         missing.  Problem reported by James Youngman.
87881
87882 2004-10-16  Simon Josefsson  <jas@extundo.com>
87883
87884         * gnulib-tool: Fix comments.  Fix parse problem.
87885         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
87886
87887 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
87888
87889         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
87890         implementation of getopt_long.  Problem reported by Alexander Taler in:
87891         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
87892
87893 2004-10-15  Bruno Haible  <bruno@clisp.org>
87894
87895         * gnulib-tool: Untabify. Initialize supplied_libname.
87896         (func_usage): More homogenous output.
87897         (func_modules_transitive_closure, func_modules_to_filelist,
87898         func_emit_lib_Makefile_am): New functions.
87899         (func_import): New function, extracted from big case statement. Use
87900         func_get_license, func_modules_transitive_closure,
87901         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
87902         opt_lgpl. Don't use test -a, as it's not portable.
87903         (func_create_testdir): Use func_modules_transitive_closure,
87904         func_modules_to_filelist, func_emit_lib_Makefile_am.
87905
87906 2004-10-15  Bruno Haible  <bruno@clisp.org>
87907
87908         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
87909
87910 2004-10-15  Bruno Haible  <bruno@clisp.org>
87911
87912         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
87913         the portions belonging to each module.
87914         Suggested by Derek Robert Price <derek@ximbiot.com>.
87915
87916 2004-10-12  Simon Josefsson  <jas@extundo.com>
87917
87918         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
87919         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
87920         to real functions.
87921
87922 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87923
87924         * modules/vsnprintf: New file.
87925
87926 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87927
87928         * m4/vsnprintf.m4: New file.
87929
87930 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
87931
87932         * lib/vsnprintf.h: New file.
87933         * lib/vsnprintf.c: New file.
87934
87935 2004-10-11  Bruno Haible  <bruno@clisp.org>
87936
87937         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
87938         vsnprintf.
87939
87940 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
87941
87942         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
87943
87944 2004-10-07  Bruno Haible  <bruno@clisp.org>
87945
87946         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
87947         fits into the provided buffer.
87948
87949 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
87950
87951         * lib/diacrit.c, diacrit.h: Add GPL notice.
87952
87953         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
87954         notice.
87955         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
87956         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
87957         This avoids a potential constant-folding bug.
87958
87959 2004-10-05  Bruno Haible  <bruno@clisp.org>
87960
87961         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
87962         for the declaration of strsep.
87963
87964 2004-10-05  Bruno Haible  <bruno@clisp.org>
87965
87966         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
87967
87968 2004-10-04  Simon Josefsson  <jas@extundo.com>
87969
87970         * modules/memmem: New file.
87971         * tests/test-memmem.c: New file.
87972         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
87973
87974 2004-10-04  Simon Josefsson  <jas@extundo.com>
87975
87976         * m4/memmem.m4: New file.
87977
87978 2004-10-04  Simon Josefsson  <jas@extundo.com>
87979
87980         * lib/memmem.h: New file.
87981         * lib/memmem.c: New file, taken from glibc.
87982
87983 2004-10-04  Simon Josefsson  <jas@extundo.com>
87984
87985         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
87986         '#ifdef USE_UNLOCKED_IO'.
87987
87988 2004-10-04  Simon Josefsson  <jas@extundo.com>
87989
87990         * config/srclist.txt: Add memmem from glibc.
87991
87992 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
87993
87994         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
87995
87996         * modules/argmatch, modules/argp, modules/closeout, modules/error,
87997         modules/exclude, modules/getdate, modules/getline,
87998         modules/getndelim2, modules/getpass, modules/getpass-gnu,
87999         modules/getusershell, modules/linebuffer, modules/md5,
88000         modules/mountlist, modules/posixtm, modules/readtokens,
88001         modules/readutmp, modules/regex, modules/sha1,
88002         modules/version-etc, modules/yesno:
88003         Remove dependency on unlocked-io.
88004
88005 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88006
88007         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
88008
88009         * m4/unlocked-io.m4: Add copyright notice.
88010         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
88011
88012 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88013
88014         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
88015         * lib/xmalloc.c (xmemdup): Likewise.
88016         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
88017         XFREE): Remove these long-obsolescent macros.
88018         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
88019         * lib/xstrdup.c: Remove.
88020
88021         * lib/regex.c (re_comp): Cast gettext return value to char *,
88022         Problem reported by Martin Neitzel via Mark D. Baushke.
88023
88024 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
88025
88026         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
88027         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
88028         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
88029         regex.c, sha1.c, version-etc.c, yesno.c:
88030         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
88031         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
88032         the includer's responsibility.
88033
88034         Sync from coreutils.
88035
88036         * lib/modechange.c (mode_compile): Don't decrement a pointer that
88037         points to the start of a string, as the C Standard says the
88038         resulting behavior is undefined.
88039
88040         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
88041         simple -> simple_backups, numbered_existing ->
88042         numbered_existing_backups, numbered -> numbered_backups
88043         to avoid shadowing problems.  All uses changed.
88044         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
88045         * lib/backupfile.c (check_extension, numbered_backup):
88046         Rename locals to avoid shadowing 'basename'.
88047         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
88048         once.
88049
88050         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
88051         * lib/.cvsignore: Add getopt.h.
88052
88053 2004-10-04  Bruno Haible  <bruno@clisp.org>
88054
88055         * modules/README: New file.
88056         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
88057         not a module.
88058
88059 2004-10-02  Jim Meyering  <jim@meyering.net>
88060
88061         * lib/dirfd.h, getpagesize.h: Add copyright notice.
88062
88063 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88064
88065         * modules/strsep: New file.
88066
88067 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88068
88069         * m4/strsep.m4: New file.
88070
88071 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
88072
88073         * lib/strsep.h: New file.
88074         * lib/strsep.c: New file.
88075
88076 2004-10-01  Simon Josefsson  <jas@extundo.com>
88077
88078         * lib/snprintf.c (snprintf): Handle size==0.
88079
88080 2004-10-01  Simon Josefsson  <jas@extundo.com>
88081             Bruno Haible  <bruno@clisp.org>
88082
88083         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
88084         (snprintf): Declare 'args'.
88085
88086 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
88087
88088         * lib/snprintf.c: Remove comments as to why each header is needed.
88089
88090 2004-10-01  Bruno Haible  <bruno@clisp.org>
88091
88092         * MODULES.html.sh: Add strsep.
88093
88094 2004-09-30  Simon Josefsson  <jas@extundo.com>
88095
88096         * modules/snprintf: New file.
88097
88098 2004-09-30  Simon Josefsson  <jas@extundo.com>
88099
88100         * m4/snprintf.m4: New file.
88101
88102 2004-09-30  Simon Josefsson  <jas@extundo.com>
88103
88104         * lib/snprintf.h, lib/snprintf.c: New files.
88105
88106 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
88107
88108         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
88109         (hol_entry_help): Never translate an empty string.
88110         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
88111         * lib/argp.h (OPTION_NO_TRANS): New option.
88112
88113 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88114
88115         * modules/argp (Maintainer): Replace Simon Josefsson
88116         by Sergey Poznyakoff.
88117
88118 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88119
88120         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
88121         changes merged back into glibc.
88122
88123 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
88124
88125         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
88126
88127 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
88128
88129         * lib/xvasprintf.c: Include xalloc.h.
88130         (xvasprintf): Use xalloc_die, not xmalloc_die.
88131
88132 2004-09-29  Bruno Haible  <bruno@clisp.org>
88133
88134         * modules/alloca-opt: New file, derived from modules/alloca.
88135         * modules/allocsa: Depend on alloca-opt instead of alloca.
88136         * modules/setenv: Likewise.
88137         * modules/vasnprintf: Likewise.
88138         * MODULES.html.sh: Add alloca-opt.
88139
88140 2004-09-28  Simon Josefsson  <jas@extundo.com>
88141
88142         * gnulib-tool: New parameter --lgpl, to asseert that modules are
88143         LGPL, and to replace license template from GPL to LGPL.
88144
88145 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
88146
88147         * modules/dummy: Change license to LGPL.
88148
88149 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
88150
88151         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
88152
88153 2004-09-24  Simon Josefsson  <jas@extundo.com>
88154
88155         * modules/minmax (License): Change from GPL to LGPL.
88156
88157 2004-09-23  Simon Josefsson  <jas@extundo.com>
88158
88159         * gnulib-tool (--import): Typo.
88160
88161 2004-09-23  Simon Josefsson  <jas@extundo.com>
88162
88163         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
88164
88165 2004-09-22  Bruno Haible  <bruno@clisp.org>
88166
88167         * modules/*: Add 'License' field.
88168         * gnulib-tool: Accept --extract-license option.
88169         (func_get_license): New function.
88170
88171 2004-09-21  Bruno Haible  <bruno@clisp.org>
88172
88173         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
88174         Reported by Simon Josefsson.
88175
88176 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
88177
88178         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
88179         gl_AC_TYPE_LONG_LONG.
88180
88181 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
88182
88183         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
88184
88185 2004-09-18  Simon Josefsson  <jas@extundo.com>
88186         and  Paul Eggert  <eggert@cs.ucla.edu>
88187
88188         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
88189         calls with autoreconf.  Define GL_LIB.
88190
88191 2004-09-14  Karl Berry  <karl@gnu.org>
88192
88193         * config/srclist.txt: unsync setenv.c, sigh.
88194
88195 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
88196
88197         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
88198         Problem reported by Bruno Haible in:
88199         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
88200
88201 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
88202
88203         * config/srclist.txt: Comment out argp-pvh.c.
88204
88205 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
88206
88207         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
88208         in case some system header has #define'd it.  Problem reported by
88209         Soeren D. Schulze in
88210         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
88211
88212 2004-09-09  Karl Berry  <karl@gnu.org>
88213
88214         * regex.[ch]: delete from the root.  These were supposed to be
88215                 synced with emacs cvs, but this has not happened for about
88216                 a year, and anyway nothing else uses emacs regex.[ch].
88217                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
88218                 lib/regex[.ch] is untouched.
88219
88220 2004-09-09  Bruno Haible  <bruno@clisp.org>
88221
88222         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
88223
88224 2004-09-09  Bruno Haible  <bruno@clisp.org>
88225
88226         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
88227         modifications.
88228         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
88229
88230 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
88231
88232         * modules/xvasprintf: New file.
88233         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
88234
88235 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
88236
88237         * lib/xvasprintf.h: New file.
88238         * lib/xvasprintf.c: New file.
88239         * lib/xasprintf.c: New file.
88240
88241 2004-09-08  Bruno Haible  <bruno@clisp.org>
88242
88243         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
88244
88245 2004-09-08  Bruno Haible  <bruno@clisp.org>
88246
88247         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
88248         length is > INT_MAX.
88249         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
88250         more.
88251
88252 2004-09-08  Bruno Haible  <bruno@clisp.org>
88253
88254         * lib/stdint_.h: New file, taken from GNU clisp.
88255
88256 2004-09-08  Bruno Haible  <bruno@clisp.org>
88257             Oskar Liljeblad  <oskar@osk.mine.nu>
88258
88259         * modules/stdint: New file.
88260         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
88261
88262 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88263
88264         Import from coreutils.
88265         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
88266         strings on unbounded length.  alloca's performance benefits aren't
88267         that important here.
88268         (V_STRDUP): Remove.
88269         (parse_with_separator): New function, with most of the internals
88270         of the old parse_user_spec.  Allow user to omit both user and group,
88271         for compatibility with FreeBSD.
88272         Clone only the user name, not the entire spec.
88273         Do not set *uid, *gid unless entirely successful.
88274         Avoid memory leak in some failing cases.
88275         Fix regression for USER.GROUP reported by Dmitry V. Levin in
88276         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
88277         (parse_user_spec): Rewrite to use parse_with_separator.
88278
88279 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88280
88281         * modules/userspec: Don't depend on alloca.
88282
88283 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
88284
88285         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
88286
88287 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
88288
88289         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
88290         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
88291         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
88292
88293 2004-08-16  Simon Josefsson  <jas@extundo.com>
88294
88295         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
88296         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
88297         Add --dry-run for --import.
88298         Let user provided command line parameters override configure.ac
88299         settings.
88300
88301 2004-08-12  Simon Josefsson  <jas@extundo.com>
88302
88303         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
88304         as discussed with Paul Eggert in threads rooted at
88305         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
88306         and
88307         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
88308         Before, the test was empty, and relied on ELIDE_CODE in source
88309         code.)
88310         (gl_PREREQ_GETOPT): New macro.
88311         (gl_GETOPT): Use them.
88312
88313 2004-08-12  Simon Josefsson  <jas@extundo.com>
88314
88315         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
88316         * lib/getopt_.h: Renamed from getopt.h.
88317
88318 2004-08-12  Simon Josefsson  <jas@extundo.com>
88319
88320         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
88321         Change default library name from libfoo to libgnu.
88322         Now, if you have a configure.ac that says:
88323                 gl_SOURCE_BASE(gl)
88324                 gl_M4_BASE(gl/m4)
88325                 gl_MODULES(error getopt etcetera)
88326                 gl_INIT
88327         you can import all you need by running:
88328                 ../gnulib/gnulib-tool --import
88329
88330         * modules/getopt (Files): Rename getopt.h to getopt_.h.
88331         (Makefile.am): Rewrite, use logic from argz.
88332         (Include): Use <getopt.h> instead of "getopt.h".
88333
88334 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88335
88336         * modules/argp (Files): Add m4/unlocked-io.m4.
88337         (Depends-on): Add extensions.
88338
88339 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88340
88341         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
88342         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
88343         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
88344         Check for program_invocation_name, program_invocation_short_name,
88345         flockfile, funlockfile, features.h, _getopt_long_only_r.
88346
88347 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88348
88349         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
88350         its complicated substitute.
88351         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
88352         and program_invocation_name.
88353         (__argp_basename) [!_LIBC]: Remove; the only use was
88354         replaced by its body.
88355         (__argp_short_program_name): Change condition from
88356         !defined __argp_short_program_name to
88357         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
88358         to match argp-namefrob.h.
88359         (__argp_failure): Don't assume strerror_r returns char *.
88360         * lib/argp-parse.c (N_): Define unconditionally.
88361         (argp_default_options): Fill out initializers with 0 to avoid
88362         gcc warnings.
88363
88364 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
88365
88366         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
88367         getopt1.c.
88368
88369 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88370
88371         Merge from coreutils.
88372
88373         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
88374
88375         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
88376         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
88377
88378 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88379
88380         Merge from coreutils.
88381
88382         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
88383         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
88384         for Reliant Unix 5.43.
88385
88386         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
88387         (union fooround): Use uintmax_t, not long int.
88388         The rest is a merge from libc:
88389         [defined _LIBC]: Include <shlib-compat.h>.
88390         (_obstack) [defined _LIBC]: Remove after 2.3.4.
88391
88392         * lib/settime.c (settime): Recode to avoid warning with
88393         Sun Forte C 6U2.
88394
88395         * lib/strverscmp.c: Convert to UTF-8.
88396
88397 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
88398
88399         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
88400         m4/uintmax_t.m4.
88401
88402 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88403
88404         * modules/xalloc-die: New file.
88405         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
88406
88407         * modules/md5 (Files): Add m4/uint32_t.m4.
88408         * modules/sha1: Renamed from modules/sha.
88409         (Files):
88410         Rename lib/sha.h to lib/sha1.h.
88411         Rename lib/sha.c to lib/sha1.c.
88412         Rename m4/sha.m4 to m4/sha1.m4.
88413         (lib_SOURCES): Likewise.
88414         (configure.ac): Rename gl_SHA to gl_SHA1.
88415         (Include): sha.h -> sha1.h.
88416
88417 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88418
88419         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
88420         * m4/sha1.m4: Renamed from sha.m4.
88421         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
88422
88423 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
88424
88425         * lib/obstack.h (obstack_empty_p):
88426         Don't assume that chunk->contents is suitably aligned.
88427         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
88428         Likewise. Problem reported by Benno in
88429         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
88430
88431         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
88432         readable.  This could be improved further but it'd take some work.
88433
88434 2004-08-08  Simon Josefsson  <jas@extundo.com>
88435
88436         * modules/xgethostname (Depends-on): Remove exit and error (not
88437         used).
88438
88439         * modules/getpass-gnu: Add getpass.h.
88440         (Depends-on): Add stdbool.
88441         * modules/getpass: Add getpass.h.
88442
88443 2004-08-08  Simon Josefsson  <jas@extundo.com>
88444
88445         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
88446         Check getpass declaration.
88447
88448 2004-08-08  Simon Josefsson  <jas@extundo.com>
88449
88450         * lib/xgethostname.c: Don't include error.h (not used).
88451
88452         * lib/getpass.h: Add.
88453         * lib/getpass.c: Include getpass.h first.
88454
88455 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
88456
88457         * lib/xalloc-die.c: New file.
88458         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
88459         All uses removed.
88460         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
88461         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
88462         xalloc-die.c.
88463         (_, N_, xalloc_die): Move to xalloc-die.c.
88464         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
88465         so that we needn't mess with xalloc_msg_memory_exhausted.
88466
88467         * lib/sha1.h: Renamed from sha.h.
88468         (SHA1_H): Renamed from _SHA_H.
88469         (sha1_ctx): Renamed from sha_ctx.
88470         (sha1_init_ctx): Renamed from sha_init_ctx.
88471         (sha1_process_block): Renamed from sha_process_block.
88472         (sha1_process_bytes): Renamed from sha_process_bytes.
88473         (sha1_finish_ctx): Renamed from sha_finish_ctx.
88474         (sha1_read_ctx): Renamed from sha_read_ctx.
88475         (sha1_stream): Renamed from sha_stream.
88476         (sha1_buffer): Renamed from sha_buffer.
88477         * lib/sha1.c: Likewise; renamed from sha.c.
88478         Do not include <sys/types.h>.
88479         Include <stddef.h> rather than <stdlib.h>.
88480
88481 2004-08-08  Bruno Haible  <bruno@clisp.org>
88482
88483         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
88484         FILESYSTEM_PREFIX_LEN.
88485         * lib/progreloc.c: Likewise.
88486         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
88487
88488 2004-08-06  Simon Josefsson  <jas@extundo.com>
88489
88490         * modules/progname (Depends-on): Don't depend on stdbool.
88491
88492 2004-08-06  Simon Josefsson  <jas@extundo.com>
88493
88494         * modules/getsubopt: New file.
88495         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
88496         getsubopt.
88497
88498 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88499
88500         More merge from coreutils.
88501
88502         * m4/utimens.m4, m4/utimecmp.m4: New files.
88503         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
88504         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
88505         prereq.m4, sha.m4: Import changes from coreutils.
88506
88507 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88508
88509         More merge from coreutils.
88510         * modules/raise, modules/readtokens0, modules/utimens:
88511         * modules/utimecmp, module/xnanosleep: New files.
88512         * modules/strftime: Add lib/strftime.h.
88513         Change include from <time.h> to "strftime.h".
88514         * modules/yesno: Add lib/yesno.h.
88515         * modules/backupfile: Remove lib/addext.c.
88516         * modules/euidaccess: Add stat-macros.h.
88517         * modules/canonicalize, modules/euidaccess,
88518         modules/filemode, modules/lchown, modules/makepath,
88519         modules/rmdir, modules/stat: Likewise.
88520
88521 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
88522
88523         Merge from tar.
88524         * lib/argp-help.c (make_hol, hol_append): Don't assume that
88525         SIZE_MAX is a valid preprocessor constant.
88526         (__argp_basename): Change from "#ifndef _LIBC"
88527         to "#ifndef __argp_short_program_name", so that
88528         we don't compile these functions for tar.
88529
88530         More merges from coreutils.
88531         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
88532         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
88533         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
88534         * lib/addext.c: Remove; no longer needed.
88535         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
88536         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
88537         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
88538         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
88539         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
88540         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
88541         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
88542         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
88543         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
88544         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
88545         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
88546         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
88547         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
88548         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
88549         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
88550         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
88551         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
88552         Import changes from coreutils.
88553
88554 2004-08-05  Simon Josefsson  <jas@extundo.com>
88555
88556         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
88557
88558 2004-08-05  Simon Josefsson  <jas@extundo.com>
88559
88560         * m4/getsubopt.m4: New file.
88561
88562 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88563
88564         Merge from coreutils.
88565
88566         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
88567         * m4/getcwd-path-max.m4: New files.
88568
88569         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
88570         FILESYSTEM_PREFIX_LEN ->
88571         FILE_SYSTEM_PREFIX_LEN.
88572         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
88573         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
88574         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
88575         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
88576
88577         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
88578         prerequisite modules now handle the DOS stuff.
88579         Don't check for unistd.h.
88580
88581 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88582
88583         Merge from coreutils.
88584
88585         * lib/.gdb-history: Remove; this doesn't belong here.
88586
88587         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
88588         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
88589         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
88590         * lib/getcwd.c: New files.
88591
88592         * lib/dirname.h: Include <stdbool.h>.
88593         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
88594         for consistency with POSIX terminology.  All uses changed.
88595         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
88596         (strip_trailing_slashes): Use bool for booleans.
88597         * lib/stripslash.c (strip_trailing_slashes): Likewise.
88598
88599         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
88600         sometimes returns a positive errno value even when it succeeds.
88601         (print_errno_message) [!LIBC]: Fall back on strerror if
88602         __strerror_r fails.
88603
88604         * lib/path-concat.c (mempcpy): Don't define if a system header defines
88605         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
88606         (longest_relative_suffix): New function.
88607         (path_concat): Use it.  Assume first argument is not NULL.
88608         Port to DOS.  Omit redundant separators.
88609         Report an error instead of returning NULL.
88610         Use mempcpy instead of memcpy.
88611         (xpath_concat): Remove: not declared or used.
88612
88613         * lib/same.h: Include <stdbool.h>
88614         (same_name): Return bool, not int.
88615         * lib/same.c (same_name): Likewise.
88616         (errno): Don't declare; we assume C89 or better now.
88617
88618         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
88619         if not already defined.
88620
88621         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
88622         * lib/dup-safer.c (errno): Likewise.
88623
88624 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
88625
88626         Merge from coreutils.
88627         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
88628         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
88629         * modules/path-concat: Don't depend on strdup.
88630
88631 2004-08-03  Simon Josefsson  <jas@extundo.com>
88632
88633         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
88634         * lib/progname.h: Don't include stdbool.h.
88635
88636 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88637
88638         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
88639         * MODULES.html.sh (func_all_modules): Remove fatal.
88640
88641 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88642
88643         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
88644
88645 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
88646
88647         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
88648         working.
88649
88650 2004-08-02  Simon Josefsson  <jas@extundo.com>
88651
88652         * lib/getsubopt.h: New file, with comments from Bruno Haible.
88653         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
88654         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
88655
88656 2004-08-01  Simon Josefsson  <jas@extundo.com>
88657
88658         * lib/xgetdomainname.c: Include stdlib.h, for free().
88659
88660 2004-07-19  Bruno Haible  <bruno@clisp.org>
88661
88662         * MODULES.html.sh (func_all_modules): Add dummy.
88663
88664 2004-07-16  Simon Josefsson  <jas@extundo.com>
88665
88666         * modules/dummy: New file.
88667
88668 2004-07-16  Simon Josefsson  <jas@extundo.com>
88669
88670         * lib/dummy.c: New file.
88671
88672 2004-07-16  Bruno Haible  <bruno@clisp.org>
88673
88674         * lib/backupfile.h: Add extern "C" for C++.
88675         * lib/closeout.h: Likewise.
88676         * lib/copy-file.h: Likewise.
88677         * lib/findprog.h: Likewise.
88678         * lib/full-write.h: Likewise.
88679         * lib/pathname.h: Likewise.
88680         * lib/progname.h: Likewise.
88681         * lib/stpcpy.h: Likewise.
88682         * lib/stpncpy.h: Likewise.
88683         * lib/strcase.h: Likewise.
88684         * lib/strstr.h: Likewise.
88685         * lib/xalloc.h: Likewise.
88686
88687         * lib/mbswidth.h: Add extern "C" for C++.
88688         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
88689
88690 2004-07-13  Robert Millan  <robertmh@gnu.org>
88691
88692         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
88693
88694 2004-07-09  Simon Josefsson  <jas@extundo.com>
88695
88696         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
88697         failed without this.)
88698
88699 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
88700
88701         * modules/chown (Files): Add lib/fchown-stub.c, since
88702         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
88703
88704 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
88705
88706         * lib/fchown-stub.c: New file.
88707
88708 2004-06-24  Jim Meyering  <jim@meyering.net>
88709
88710         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
88711
88712 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88713
88714         * modules/argz: Omit "#include".
88715
88716         * MODULES.html.sh (func_all_modules): Add calloc, to match
88717         2004-06-01 addition of calloc module.
88718
88719 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88720
88721         * m4/argz.m4: New file, which is autoupdated from libtool.
88722
88723 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88724
88725         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
88726         libtool.
88727
88728 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
88729
88730         * config/srclist-update: Don't insist on "USA." before the
88731         close-comment, as libtool omits the period and puts the */ on a
88732         separate line.
88733         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
88734         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
88735
88736 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
88737
88738         * modules/argz: New file.
88739         * MODULES.html.sh (func_all_modules): Add argz.
88740
88741 2004-06-12  Jim Meyering  <jim@meyering.net>
88742         and  Paul Eggert  <eggert@cs.ucla.edu>
88743
88744         * modules/hash (Files): Add lib/xalloc.h.
88745         * modules/pipe (Depends-on): Add wait-process.
88746         * modules/stat (Depends-on): Add xalloc.
88747         * modules/userspec (Files): Add lib/userspec.h.
88748         * modules/xstrto
88749
88750         Upgrade from gettext-0.13.
88751         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
88752         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
88753         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
88754
88755 2004-06-10  Jim Meyering  <jim@meyering.net>
88756
88757         * lib/calloc.c: New file.
88758
88759 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
88760
88761         * lib/getdate.y (yylex): Allow space between sign and number.
88762         Problem reported by Dan Jacobson.
88763
88764 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
88765
88766         Merge from coreutils CVS.
88767
88768         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
88769         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
88770         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
88771         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
88772         xstrtol.m4: Fix copyright date and/or serial number.
88773
88774         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
88775         See if we need an fchown replacement.
88776         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
88777         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
88778         and use the replacement function if we detect either defect.
88779
88780         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
88781         gl_UTIMECMP.
88782
88783 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
88784         and  Jim Meyering  <jim@meyering.net>
88785
88786         Merge from coreutils CVS.
88787
88788         * lib/stat-macros.h: New file, with contents from file-type.h
88789         and coreutils' system.h.
88790         * lib/file-type.c: Include "stat-macros.h".
88791         * lib/file-type.h (file_type): Move all macro definitions to new file,
88792         stat-macros.h.
88793
88794         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
88795         Wrap old code with this conditional.
88796         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
88797         function that does not dereference symlinks.
88798         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
88799
88800         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
88801         dependency problems.
88802         (xreadlink): Accept new arg SIZE, for efficiency.
88803         All decls and uses changed.
88804         * lib/xreadlink.h: Include <stddef.h>, for size_t.
88805
88806         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
88807         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
88808
88809         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
88810         sysexits.h.
88811
88812 2004-06-01  Jim Meyering  <jim@meyering.net>
88813
88814         * m4/calloc.m4: New file.
88815
88816 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
88817
88818         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
88819         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
88820         Also, fix a typo in a diagnostic.
88821
88822 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
88823
88824         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
88825         or AC_FUNC_REALLOC.
88826
88827 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
88828
88829         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
88830         macros to be defined.
88831         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
88832         the allocator returns NULL because the requested size is zero.
88833
88834 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
88835
88836         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
88837         var.  Add comment explaining why libc still defines it.  This
88838         merges the following patch from glibc:
88839         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
88840
88841 2004-05-20  Andreas Schwab  <schwab@suse.de>
88842
88843         * m4/free.m4: Replace free if it not known to work, not the other
88844         way round.
88845
88846 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
88847
88848         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
88849         present in glibc since revision 1.1 of this file.
88850         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
88851         obstack_alignment_mask, obstack_alloc, obstack_base,
88852         obstack_blank, obstack_blank_fast, obstack_chunk_size,
88853         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
88854         obstack_grow0, obstack_init, obstack_int_grow,
88855         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
88856         obstack_next_free, obstack_object_size, obstack_ptr_grow,
88857         obstack_ptr_grow_fast, obstack_room): Remove declarations of
88858         nonexistent functions.
88859
88860 2004-05-18  Karl Berry  <karl@gnu.org>
88861
88862         * config/srclist.txt: break link for vasnprintf.c.
88863
88864 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
88865
88866         Port obstack to the AS/400, where pointers are 16 bytes wide and
88867         you cannot cast an integer to a valid pointer.  This patch is
88868         currently waiting to be integrated into glibc; see
88869         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
88870
88871         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
88872         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
88873         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
88874         (struct obstack): temp member is now a union of a pointer and
88875         an integer, instead of an integer.  All integer uses changed.
88876         This does not affect the physical layout of struct obstack,
88877         except on hosts (like the AS/400) where the size or alignment of
88878         void * is greater than that of ptrdiff_t.
88879         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
88880         __STDC__)]: Store temporary in pointer member of union, not
88881         integer member.
88882         * lib/obstack.c: Include <stddef.h>, for offsetof.
88883         (struct fooalign): Remove; it doesn't need a name.
88884         (union fooround): Change double to long double, and add void *.
88885         (DEFAULT_ALIGNMENT): Use offsetof to compute.
88886         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
88887         not a macro.  Hence the values are always int; so remove all
88888         casts-to-int in uses.
88889
88890 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
88891
88892         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
88893         we can get this patch merged into glibc.
88894
88895 2004-05-17  Derek R. Price  <derek@ximbiot.com>
88896             Paul Eggert  <eggert@cs.ucla.edu>
88897
88898         * m4/argp: Depend on alloca.
88899
88900 2004-05-17  Derek R. Price  <derek@ximbiot.com>
88901             Paul Eggert  <eggert@cs.ucla.edu>
88902
88903         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
88904         freecoding.
88905
88906 2004-05-17  Bruno Haible  <bruno@clisp.org>
88907
88908         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
88909         precision that consists of a '.' followed by an empty digit string.
88910         Patch by Tor Lillqvist <tml@iki.fi>.
88911
88912 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
88913
88914         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
88915         for backward compatibility with older code.  We need our own
88916         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
88917         it under some other name, and our alloca.h will define it.
88918
88919 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
88920             Derek Price  <derek@ximbiot.com>
88921
88922         * lib/alloca.c: Include <alloca.h>, to get our interface.
88923         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
88924         include <alloca.h> first.  Use C89 prototype for alloca; this
88925         requires including <stddef.h> for size_t.  Use extern "C" if C++.
88926         Use #elif for simplicity, since we can assume C89 now.
88927         Don't try to source the system alloca.h since it will not be found
88928         and to prevent recursively including its replacement.
88929         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
88930         * lib/regex.c: Likewise.
88931
88932 2004-05-16  Derek Price  <derek@ximbiot.com>
88933             Paul Eggert  <eggert@cs.ucla.edu>
88934
88935         getline cleanup.  This changes the getndelim2 API: both order of
88936         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
88937         no delimiter).
88938
88939         * lib/getline.c: Don't include stddef.h or stdio.h, since our
88940         interface does that.
88941         (getline): Always use getdelim, so that we don't have two
88942         copies of this code.
88943         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
88944         if available.
88945         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
88946         (GETNDELIM2_MAXIMUM): New macro.
88947         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
88948         instead of the old practice of delim2==0.  All callers changed.
88949         Return -1 on overflow, instead of returning junk.
88950         Do not set *linesize unless allocation succeeds.
88951         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
88952         that we include sys/types.h.
88953         * lib/getnline.h: Likewise.
88954         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
88955         (getndelim2): Reorder arguments.
88956         * lib/getnline.c (getnline, getndelim):
88957         Don't discard the NMAX argument.
88958         (getnline): Invoke getndelim, to avoid code duplication.
88959         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
88960         of (size_t) -1 by callers of the getnline family.
88961
88962 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88963
88964         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
88965         Check for gettimeofday.
88966         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
88967         Check for settimeofday, stime.
88968
88969 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
88970
88971         * lib/nanosleep.c (suspended): Change its type from int to
88972         sig_atomic_t volatile.
88973         (first_call): Make it private to rpl_nanosleep, and have it
88974         be zero initially as that's a bit faster.
88975         (my_usleep): Round up fractional times instead of truncating them,
88976         as this is the usual meaning for 'sleep'.
88977
88978         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
88979         doesn't work.
88980         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
88981         (ENOSYS): Define if not defined.
88982         (settime): Fall back on stime if it exists and settimeofday fails.
88983         But don't bother with fallbacks if a method fails with errno == EPERM.
88984
88985 2004-05-11  Jim Meyering  <jim@meyering.net>
88986
88987         Prior to this change, the save_cwd caller required read access to the
88988         current directory on most systems (ones with the fchdir function).
88989
88990         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
88991         fails, try write-only, and finally, resort to using xgetcwd.
88992
88993 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
88994
88995         * lib/obstack.c, obstack.h: Import changes from libc.
88996
88997 2004-04-28  Bruno Haible  <bruno@clisp.org>
88998
88999         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
89000         also implicitly appends .exe to executables.
89001         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
89002         accepts Windows pathnames.
89003         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
89004         Treat Cygwin like Windows, since it now accepts Windows pathnames.
89005         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
89006         Treat Cygwin like Windows, since it now accepts Windows pathnames.
89007         Reported by Derek Robert Price <derek@ximbiot.com>.
89008
89009 2004-04-21  Karl Berry  <karl@gnu.org>
89010
89011         * config/srclist.txt (localcharset.c): break sync.
89012
89013 2004-04-20  Paul Eggert  <eggert@twinsun.com>
89014
89015         * m4/host-os.m4: Add a copyright notice.
89016
89017 2004-04-20  Jim Meyering  <jim@meyering.net>
89018
89019         Change UTILS_ to gl_ in AC_DEFINE'd names.
89020         Change utils_- and jm_-prefixed variables, too.
89021         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
89022         UTILS_FUNC_MKDIR_TRAILING_SLASH.
89023         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
89024
89025         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
89026         Don't emit trailing blanks.
89027         Also rename jm_-prefixed variables to have gl_ prefix.
89028
89029         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
89030         Also rename jm_-prefixed variables to have gl_ prefix.
89031
89032         * m4/jm-macros.m4: Reflect the renamings.
89033         * m4/prereq.m4: Likewise.
89034
89035 2004-04-20  Jim Meyering  <jim@meyering.net>
89036
89037         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
89038         memory.
89039
89040 2004-04-20  Jim Meyering  <jim@meyering.net>
89041             Bruno Haible  <bruno@clisp.org>
89042
89043         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
89044         memory when realloc fails.
89045
89046 2004-04-19  Jim Meyering  <jim@meyering.net>
89047
89048         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
89049         now that readutmp.c may call `free (0)'.
89050
89051 2004-04-19  Bruno Haible  <bruno@clisp.org>
89052
89053         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
89054         * m4/inttypes_h.m4: Likewise.
89055         * m4/stdint_h.m4: Likewise.
89056         * m4/intmax_t.m4: Likewise.
89057         * m4/uintmax_t.m4: Likewise.
89058
89059 2004-04-18  Jim Meyering  <jim@meyering.net>
89060
89061         * m4/prereq.m4: Don't forbid jm_ prefix.
89062
89063         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
89064         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
89065         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
89066         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
89067         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
89068         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
89069         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
89070         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
89071         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
89072         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
89073         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
89074         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
89075         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
89076         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
89077         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
89078         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
89079         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
89080         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
89081         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
89082
89083 2004-04-18  Jim Meyering  <jim@meyering.net>
89084
89085         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
89086         failure, don't leak memory and do call END_UTMP_ENT.
89087
89088 2004-04-16  Jim Meyering  <jim@meyering.net>
89089
89090         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
89091         coreutils' stat program.
89092         (gl_PREREQ): Don't require jm_PREREQ_STAT.
89093
89094 2004-04-11  Paul Eggert  <eggert@twinsun.com>
89095
89096         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
89097         C89.
89098         (CHAR_BIT): Remove, since we assume C89.
89099         Include <stdint.h> if available, as per current Autoconf CVS advice.
89100
89101 2004-03-31  Jim Meyering  <jim@meyering.net>
89102
89103         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
89104         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
89105         * m4/xalloc.m4: Likewise.
89106
89107 2004-03-30  Paul Eggert  <eggert@twinsun.com>
89108
89109         Merge from coreutils.
89110
89111         * m4/inttostr.m4: New file.
89112         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
89113         Require AM_STDBOOL_H and gl_TIMESPEC instead.
89114         Require gl_CLOCK_TIME.
89115         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
89116
89117 2004-03-30  Paul Eggert  <eggert@twinsun.com>
89118
89119         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
89120         not bool, to be more consistent with Unix conventions.
89121         Suggested by Bruno Haible.
89122
89123         Merge from coreutils.
89124
89125         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
89126         * lib/umaxtostr.c: New files.
89127
89128         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
89129         the usual <time.h> dance.
89130         (get_date): Change signature to support fractional time stamps.
89131         All callers changed.
89132         * lib/getdate.y: Include "getdate.h" first, as we can now
89133         assume C89 and don't need to worry about 'const'.
89134         Similarly, include "unlocked-io.h" near start, not in middle.
89135         Include <limits.h>.
89136         (textint.value): Use long int rather than int.
89137         (textint.digits): Use size_t rather than int.
89138         (BILLION, LOG10_BILLION): New constants.
89139         (parser_control): New member rel_ns.  Members day_ordinal,
89140         time_zone, month, day, hour, minutes, rel_year, rel_month,
89141         rel_day, rel_hour, rel_minutes, rel_seconds
89142         are now long int, not int.  Member seconds is now struct timespec,
89143         not int.  New member timespec_seen.  Members dates_seen, days_seen,
89144         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
89145         not int.
89146         (%union.intval): Now long int, not int.
89147         New member timespec.
89148         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
89149         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
89150         (spec): Now is a timespec or an item list.
89151         (timespec, items): New nonterminals.
89152         (time, rel, relunit, number, get_date):
89153         Add support for fractional seconds.
89154         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
89155         (gmtime, localtime, mktime): Remove decls; not needed with C89.
89156         (to_hour): First arg is now long int, not int.
89157         (to_year): Returns long int, not int.
89158         Don't treat year -70 like 70.
89159         (tm_diff): Returns long int, not int.
89160         (lookup_word): Use bool instead of int when appropriate.
89161         (yylex): Use size_t for count, not int.
89162         Detect overflow when parsing large integer constants.
89163         Add support for fractions.
89164         (get_date): Make pointers 'const' if possible.
89165         Use more-portable code to detect integer overflow.
89166         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
89167         Don't use ctime; it's not reliable if the year has >4 digits.
89168
89169         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
89170         This is for compatibility with BSD.
89171
89172         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
89173         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
89174         From coreutils' system.h.
89175
89176         * lib/userspec.c: Don't include "posixver.h".
89177         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
89178         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
89179         compatible extension.  Simplify code by removing a boolean int
89180         that was always nonzero if a string was nonnull.
89181
89182 2004-03-30  Jim Meyering  <jim@meyering.net>
89183
89184         Merge from coreutils.
89185
89186         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
89187         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
89188         on some systems one must include <grp.h> before it.
89189         Reported by Christian Krackowizer.
89190
89191 2004-03-30  Jim Meyering  <jim@meyering.net>
89192
89193         Merge from coreutils.
89194
89195         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
89196
89197         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
89198         an empty input stream.
89199
89200         * lib/readtokens.c: Include <stdbool.h>.
89201         (readtoken): Use `size_t' rather than int/long.
89202         All callers adjusted.
89203         Use `bool' rather than `int' where appropriate.
89204         Use memset rather than an explicit loop.
89205         Use x2nrealloc rather than xrealloc.
89206         Allow the use of `\0' as a delimiter.
89207         (readtokens): Likewise.
89208         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
89209
89210 2004-03-30  Jim Meyering  <jim@meyering.net>
89211
89212         * m4/realloc.m4: Remove file, since now it does no more than
89213         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
89214         the `configure.ac' section of module/realloc.
89215         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
89216
89217 2004-03-30  Bruno Haible  <bruno@clisp.org>
89218
89219         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
89220         nonnull.
89221
89222 2004-03-29  Paul Eggert  <eggert@twinsun.com>
89223
89224         Merge changes to getloadavg.c from coreutils and Emacs.
89225
89226         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
89227         Define to an expression, not to the empty string.
89228         Include cloexec.h and xalloc.h.
89229         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
89230         Use set_cloexec_flag rather than rolling our own.
89231         * lib/cloexec.c, lib/cloexec.h: New files.
89232
89233 2004-03-29  Paul Eggert  <eggert@twinsun.com>
89234
89235         * m4/cloexec.m4: New file.
89236
89237 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89238
89239         * lib/getopt.h: Sync with libc CVS.
89240
89241 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89242             Bruno Haible  <bruno@clisp.org>
89243
89244         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
89245         mbswidth.
89246
89247 2004-03-18  Paul Eggert  <eggert@twinsun.com>
89248             Bruno Haible  <bruno@clisp.org>
89249
89250         * lib/mbswidth.h: Include <wchar.h> only if
89251         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
89252         <wchar.h>.
89253         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
89254
89255 2004-03-09  Paul Eggert  <eggert@twinsun.com>
89256
89257         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
89258         Sync with libc CVS.
89259         * lib/getopt_int.h: New file, also synced from libc.
89260
89261 2004-03-09  Paul Eggert  <eggert@twinsun.com>
89262
89263         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
89264         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
89265         Bring back getopt.c, getopt.h, getopt1.c.
89266
89267 2004-03-07  Paul Eggert  <eggert@twinsun.com>
89268
89269         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
89270         All uses changed.  Check for sa_sigaction member; this fixes
89271         a bug first reported by Jason Andrade in
89272         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
89273
89274 2004-03-07  Paul Eggert  <eggert@twinsun.com>
89275
89276         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
89277         '#if' expressions.  Unlike the code it replaces, it does not
89278         depend on (defined _SC_PAGESIZE).  However, it does depend on
89279         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
89280         first reported by Jason Andrade in
89281         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
89282
89283 2004-02-25  Simon Josefsson  <jas@extundo.com>
89284
89285         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
89286
89287 2004-02-25  Simon Josefsson  <jas@extundo.com>
89288
89289         * lib/strdup.h: New file.
89290         * lib/strdup.c: Include it.
89291         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
89292         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
89293
89294 2004-02-23  Karl Berry  <karl@gnu.org>
89295
89296         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
89297         (from fencepost.gnu.org:/gd/gnuorg).
89298
89299 2004-02-23  Karl Berry  <karl@gnu.org>
89300
89301         * config/srclistvars.sh (GNUORG) [karl]: redefine.
89302         * config/srclist.txt: add maintain/standards documents.
89303
89304 2004-02-18  Bruno Haible  <bruno@clisp.org>
89305
89306         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
89307         Reported by Derek Robert Price <derek@ximbiot.com>.
89308
89309 2004-02-16  Karl Berry  <karl@gnu.org>
89310
89311         * config/mkinstalldirs, install-sh: update from automake.
89312
89313 2004-02-06  Karl Berry  <karl@gnu.org>
89314
89315         * m4/po.m4: update from gettext 0.14.1.
89316
89317 2004-02-06  Karl Berry  <karl@gnu.org>
89318
89319         * lib/config.charset: update from gettext 0.14.1.
89320
89321 2004-02-05  Paul Eggert  <eggert@twinsun.com>
89322
89323         Add comments and code, prompted by suggestions from Bruno Haible
89324         for sh-quote.
89325         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
89326         describing the enum quoting_style values.
89327         * lib/quotearg.c (quotearg_alloc): New function.
89328         (quotearg_buffer_restyled): Treat lone { and } as special.
89329         Treat = as special.  Work around bug with older shells
89330         that "see" a '\' that is really the 2nd byte of a multibyte char.
89331         Quote empty string with shell_quoting_style.
89332
89333 2004-02-03  Bruno Haible  <bruno@clisp.org>
89334
89335         * m4/pipe.m4: New file, from GNU gettext.
89336
89337 2004-02-03  Bruno Haible  <bruno@clisp.org>
89338
89339         * lib/pipe.h: New file, from GNU gettext.
89340         * lib/pipe.c: New file, from GNU gettext.
89341
89342 2004-01-27  Bruno Haible  <bruno@clisp.org>
89343
89344         * m4/execute.m4: New file, from GNU gettext.
89345
89346 2004-01-27  Bruno Haible  <bruno@clisp.org>
89347
89348         * lib/execute.h: New file, from GNU gettext.
89349         * lib/execute.c: New file, from GNU gettext.
89350         * lib/w32spawn.h: New file, from GNU gettext.
89351
89352 2004-01-24  Paul Eggert  <eggert@twinsun.com>
89353
89354         Merge from diffutils.
89355
89356         * lib/file-type.c (file_type): Add typed memory objects.
89357         * lib/file-type.h (S_TYPEISTMO): New macro.
89358
89359         * lib/c-stack.h (c_stack_action): Remove argv argument.
89360         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
89361         (die): Don't calculate message unless segv_action returns.
89362         (get_stack_location, min_address_from_argv, max_address_from_argv,
89363         volatile stack_base, volatile_stack_size): Remove.
89364         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
89365         that every segmentation violation is a stack overflow.  (Ouch!)
89366         See Debian bug 136249 (still outstanding) for more info about why
89367         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
89368
89369 2004-01-24  Paul Eggert  <eggert@twinsun.com>
89370
89371         Exit-status fix from coreutils.
89372
89373         Use exit_failure consistently in place of EXIT_FAILURE,
89374         so that program exit statuses are consistent on failure.
89375
89376         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
89377         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
89378         * lib/argmatch.h: Comment fix to match the above.
89379         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
89380         Now a macro referring to exit_failure, instead of a separate
89381         variable.  Include "exitfail.h" to get it.
89382         * lib/xstrtol.h: Include "exitfail.h".
89383         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
89384
89385         * lib/long-options.c (parse_long_options): Use prototype
89386         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
89387         for clarity.
89388
89389 2004-01-21  Jim Meyering  <jim@meyering.net>
89390
89391         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
89392         so as not to conflict with a different-sized __mktime_internal
89393         function in GNU libc.
89394         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
89395         Problem building statically-linked `ls' reported by Michael Brunnbauer.
89396
89397 2004-01-20  Karl Berry  <karl@gnu.org>
89398
89399         * config/config.guess: update from config.
89400
89401         * config/srclistvars.sh: GNUWWWLICENSES for karl.
89402
89403 2004-01-20  Bruno Haible  <bruno@clisp.org>
89404
89405         Safer stack allocation.
89406         * lib/setenv.c: Include allocsa.h.
89407         (alloca): Remove fallback definition.
89408         (freea): Remove macro.
89409         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
89410         instead of freea.
89411
89412 2004-01-20  Bruno Haible  <bruno@clisp.org>
89413
89414         * m4/eealloc.m4: New file, from GNU gettext.
89415
89416 2004-01-20  Bruno Haible  <bruno@clisp.org>
89417
89418         * m4/allocsa.m4: New file, from GNU gettext.
89419
89420 2004-01-20  Bruno Haible  <bruno@clisp.org>
89421
89422         * lib/xallocsa.h: New file, from GNU gettext.
89423         * lib/xallocsa.c: New file, from GNU gettext.
89424
89425 2004-01-20  Bruno Haible  <bruno@clisp.org>
89426
89427         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
89428
89429 2004-01-20  Bruno Haible  <bruno@clisp.org>
89430
89431         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
89432         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
89433         specially.
89434
89435 2004-01-20  Bruno Haible  <bruno@clisp.org>
89436
89437         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
89438         patch.
89439
89440 2004-01-20  Bruno Haible  <bruno@clisp.org>
89441
89442         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
89443
89444 2004-01-20  Bruno Haible  <bruno@clisp.org>
89445
89446         * lib/eealloc.h: New file.
89447
89448 2004-01-20  Bruno Haible  <bruno@clisp.org>
89449
89450         * lib/binary-io.h: Avoid warnings on Cygwin.
89451
89452 2004-01-20  Bruno Haible  <bruno@clisp.org>
89453
89454         * lib/allocsa.h: New file, from GNU gettext.
89455         * lib/allocsa.c: New file, from GNU gettext.
89456
89457 2004-01-18  Karl Berry  <karl@gnu.org>
89458
89459         * doc/gpl.texi, doc/lgpl.texi: new files.
89460
89461 2004-01-18  Karl Berry  <karl@gnu.org>
89462
89463         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
89464         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
89465
89466 2004-01-15  Paul Eggert  <eggert@twinsun.com>
89467
89468         Merge from coreutils.
89469
89470         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
89471         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
89472         (gl_DEFAULT_POSIX2_VERSION): Move
89473         the documentation from 'configure' into 'config.hin',
89474         so that 'configure --help' isn't burdened by it and
89475         we don't have to worry about its formatting there.
89476         Reword the documentation so that it's more succinct
89477         and can be run together into a single paragraph.
89478         * m4/same.m4 (gl_SAME): Check for pathconf.
89479
89480 2004-01-15  Paul Eggert  <eggert@twinsun.com>
89481
89482         Merge from coreutils.
89483
89484         * lib/posixver.c: Include posixver.h.
89485
89486         * lib/same.c: Include <stdbool.h>, <limits.h>.
89487         (_POSIX_NAME_MAX): Define if not defined.
89488         (MIN): New macro.
89489         (same_name): If file names are silently truncated, report
89490         that the file names are the same if they are the same after
89491         the silent truncation.
89492
89493         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
89494         conversion function.
89495         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
89496         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
89497         longer needed.
89498
89499 2004-01-15  Jim Meyering  <jim@meyering.net>
89500
89501         Merge from coreutils.
89502
89503         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
89504         if no library is required.
89505         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
89506         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
89507         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
89508         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
89509         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
89510         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
89511         value, $ac_cv_search_crypt, if it's "none required".
89512         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
89513         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
89514         not gl_FUNC_GETLOADAVG.
89515         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
89516         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
89517
89518 2004-01-15  Jim Meyering  <jim@meyering.net>
89519
89520         Merge from coreutils.
89521
89522         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
89523         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
89524         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
89525
89526         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
89527         optional configure-time default.
89528
89529         * lib/version-etc.c (version_etc_copyright): Update copyright date.
89530
89531         * lib/xreadlink.c (xreadlink): Correct outdated comment.
89532
89533 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
89534
89535         Merge from coreutils.
89536
89537         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
89538         value, $ac_cv_search_nanosleep, if it's "none required".
89539
89540 2004-01-14  Paul Eggert  <eggert@twinsun.com>
89541
89542         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
89543         with like-named macro in fnmatch.c.
89544         (EXT): Use an internal constant instead.
89545
89546         Merge fnmatch patches from glibc.
89547         * lib/fnmatch.c (mbsinit): Remove define.
89548         Add libc_hidden_ver (__fnmatch, fnmatch).
89549         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
89550         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
89551
89552 2004-01-14  Karl Berry  <karl@gnu.org>
89553
89554         * config/install-sh: update from automake.
89555
89556 2004-01-13  Karl Berry  <karl@gnu.org>
89557
89558         * config/install-sh: update from automake.
89559
89560 2004-01-09  Karl Berry  <karl@gnu.org>
89561
89562         * config/install-sh: update from automake.
89563
89564 2004-01-05  Karl Berry  <karl@gnu.org>
89565
89566         * config/config.{sub,guess}: update from config.
89567
89568 2003-12-31  Karl Berry  <karl@gnu.org>
89569
89570         * config/depcomp: update from automake.
89571
89572 2003-12-14  Karl Berry  <karl@gnu.org>
89573
89574         * lib/config.charset: update from gettext-runtime.
89575
89576 2003-12-03  Paul Eggert  <eggert@twinsun.com>
89577
89578         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
89579         Bug reported by Alfred M. Szmidt.
89580
89581 2003-12-03  Bruno Haible  <bruno@clisp.org>
89582
89583         * m4/gettext.m4: Upgrade from gettext-0.13.
89584         * m4/po.m4: Upgrade from gettext-0.13.
89585         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
89586         * m4/intmax.m4: New file, from gettext-0.13.
89587         * m4/printf-posix.m4: New file, from gettext-0.13.
89588
89589 2003-11-29  Karl Berry  <karl@gnu.org>
89590
89591         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
89592
89593 2003-11-25  Paul Eggert  <eggert@twinsun.com>
89594             Bruno Haible  <bruno@clisp.org>
89595
89596         * lib/printf-parse.h: Don't include sys/types.h.
89597         (ARG_NONE): New macro.
89598         (char_directive): Change type of *arg_index fields to size_t.
89599         * lib/printf-parse.c: Don't include sys/types.h.
89600         (SSIZE_MAX): Remove macro.
89601         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
89602         Remove unnecessary overflow check.
89603         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
89604         fields.
89605
89606 2003-11-25  Bruno Haible  <bruno@clisp.org>
89607
89608         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
89609
89610 2003-11-25  Bruno Haible  <bruno@clisp.org>
89611
89612         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
89613         gt_TYPE_SSIZE_T.
89614
89615 2003-11-24  Paul Eggert  <eggert@twinsun.com>
89616
89617         * modules/alloca: Remove dependency on xalloc.
89618
89619 2003-11-24  Paul Eggert  <eggert@twinsun.com>
89620
89621         * lib/alloca.c: Remove dependency on xalloc module.
89622         (xalloc_die): Remove.
89623         (memory_full) [!defined emacs]: New macro.
89624         [!defined emacs]: Don't include xalloc.h.
89625         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
89626         address arithmetic overflows.  Change datatypes a bit to avoid
89627         unnecessary casts.
89628
89629 2003-11-22  Jim Meyering  <jim@meyering.net>
89630
89631         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
89632         s/size/size_t/.
89633
89634 2003-11-21  Karl Berry  <karl@gnu.org>
89635
89636         * config/config.{sub,guess}: update from config.
89637
89638 2003-11-18  Karl Berry  <karl@gnu.org>
89639
89640         * config/config.{sub,guess}: update from config.
89641
89642         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
89643
89644 2003-11-17  Paul Eggert  <eggert@twinsun.com>
89645
89646         * README: Mention that S+T cannot overflow if S is the size of
89647         an existing object and T is sufficiently small.
89648
89649 2003-11-17  Jim Meyering  <jim@meyering.net>
89650
89651         On systems without utime and without a utimes function capable of
89652         dealing with a NULL struct utimbuf* argument, this utime replacement
89653         could -- in unusual circumstances -- leak a file descriptor.
89654         * lib/utime.c: Include <unistd.h> and <errno.h>.
89655         (utime_null): Be sure to close `fd' and to preserve errno.
89656         Reported by Geoff Collyer via Arnold Robbins.
89657
89658 2003-11-17  Bruno Haible  <bruno@clisp.org>
89659
89660         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
89661         (Depends-on): Add xsize.
89662
89663 2003-11-17  Bruno Haible  <bruno@clisp.org>
89664
89665         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
89666
89667 2003-11-17  Bruno Haible  <bruno@clisp.org>
89668
89669         * lib/vasnprintf.c (alloca): Remove fallback definition.
89670         (freea): Remove definition.
89671         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
89672         Reported by Paul Eggert.
89673
89674 2003-11-16  Paul Eggert  <eggert@twinsun.com>
89675             Bruno Haible  <bruno@clisp.org>
89676
89677         Protect against address arithmetic overflow.
89678         * lib/printf-args.h: Include stddef.h.
89679         (arguments): Change type of field 'count' to size_t.
89680         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
89681         'unsigned int' where appropriate.
89682         * lib/printf-parse.h: Include sys/types.h.
89683         (char_directive): Change type of *arg_index fields to ssize_t.
89684         (char_directives): Change type of fields 'count', max_*_length to
89685         size_t.
89686         * lib/printf-parse.c: Include sys/types.h and xsize.h.
89687         (SSIZE_MAX): Define fallback value.
89688         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
89689         instead of 'int' where appropriate. Check a_allocated, d_allocated
89690         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
89691         * lib/vasnprintf.c: Include xsize.h.
89692         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
89693         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
89694         overflow. Avoid wraparound when converting a width or precision from
89695         decimal to binary.
89696
89697 2003-11-16  Bruno Haible  <bruno@clisp.org>
89698
89699         Update from GNU gettext.
89700         * lib/printf-parse.c: Generalize to it can be compiled for wide
89701         strings.
89702         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
89703         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
89704         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
89705         SNPRINTF): New macros.
89706         Don't include <alloca.h> if the file is used inside libintl.
89707         (local_wcslen): New function, for Solaris 2.5.1.
89708         (VASNPRINTF): Use it instead of wcslen.
89709
89710 2003-11-16  Bruno Haible  <bruno@clisp.org>
89711
89712         * lib/xsize.h (xmax): New function.
89713         (xsum, xsum3, xsum4): Declare as "pure" functions.
89714
89715 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89716
89717         * modules/xalloc (Files): Undo latest change, since xalloc.h
89718         no longer needs SIZE_MAX or PTRDIFF_MAX.
89719
89720 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89721
89722         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
89723         gl_PTRDIFF_MAX.
89724
89725 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89726
89727         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
89728         "return", to pacify some unknown compiler.  Problem reported
89729         by Joerg Schilling.
89730
89731 2003-11-12  Paul Eggert  <eggert@twinsun.com>
89732
89733         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
89734         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
89735         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
89736         heuristic is just as accurate as far as we know, and it removes a
89737         dependency on size_max.m4 and ptrdiff_max.m4.
89738
89739 2003-11-11  Bruno Haible  <bruno@clisp.org>
89740
89741         * modules/xsize (Files): Add m4/size_max.m4.
89742         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
89743
89744 2003-11-11  Bruno Haible  <bruno@clisp.org>
89745
89746         * m4/size_max.m4: New file.
89747         * m4/ptrdiff_max.m4: New file.
89748         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
89749         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
89750         (gl_XALLOC): Invoke it.
89751
89752 2003-11-11  Bruno Haible  <bruno@clisp.org>
89753
89754         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
89755         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
89756         defined.
89757
89758 2003-11-10  Paul Eggert  <eggert@twinsun.com>
89759
89760         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
89761         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
89762         rejected some allocations of exactly SIZE_MAX - 2 bytes.
89763         From Bruno Haible.
89764         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
89765         not (size_t) -1, since it's defined here.
89766
89767 2003-11-09  Karl Berry  <karl@gnu.org>
89768
89769         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
89770
89771 2003-11-06  Paul Eggert  <eggert@twinsun.com>
89772
89773         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
89774         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
89775         Reject sizes of exactly SIZE_MAX bytes.
89776         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
89777         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
89778
89779 2003-11-05  Bruno Haible  <bruno@clisp.org>
89780
89781         * lib/xsize.h: Include limits.h, to avoid a possible collision with
89782         SIZE_MAX defined in <limits.h> on Solaris.
89783
89784 2003-11-04  Jim Meyering  <jim@meyering.net>
89785
89786         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
89787         variable names, rather than @VAR@.
89788         * modules/poll: Likewise.
89789
89790 2003-11-04  Bruno Haible  <bruno@clisp.org>
89791
89792         * modules/xsize: New file.
89793         * modules/linebreak: Depend on xsize.
89794         * MODULES.html.sh (func_all_modules): Add xsize.
89795
89796 2003-11-04  Bruno Haible  <bruno@clisp.org>
89797
89798         * m4/xsize.m4: New file.
89799
89800 2003-11-04  Bruno Haible  <bruno@clisp.org>
89801
89802         * lib/xsize.h: New file.
89803         * lib/linebreak.c: Include xsize.h.
89804         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
89805         argument for overflow.
89806         Suggested by Paul Eggert.
89807
89808 2003-11-03  Karl Berry  <karl@gnu.org>
89809
89810         * config/config.{guess,sub}: update from config.
89811
89812 2003-11-03  Jim Meyering  <jim@meyering.net>
89813
89814         * modules/userspec (lib_SOURCES): Add userspec.h.
89815         (Include): Add "userspec.h".
89816         Improve description.
89817
89818 2003-11-03  Jim Meyering  <jim@meyering.net>
89819
89820         * lib/userspec.c: Include "userspec.h".
89821         * lib/userspec.h: New file.
89822
89823 2003-11-03  Bruno Haible  <bruno@clisp.org>
89824
89825         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
89826
89827 2003-11-03  Bruno Haible  <bruno@clisp.org>
89828
89829         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
89830         available, to avoid (extremely rare) race condition.
89831         Suggested by Paul Eggert.
89832
89833 2003-11-02  Karl Berry  <karl@gnu.org>
89834
89835         * config/srclist.txt (vasprintf.c): sync broken, sigh.
89836
89837 2003-10-31  Paul Eggert  <eggert@twinsun.com>
89838
89839         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
89840         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
89841         (read_filesystem_list): Set and use me_type_malloced.
89842         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
89843         whatever the type happens to be), for brevity and consistency.
89844         Check for size calculation overflow on Alphas running OSF/1.
89845
89846 2003-10-31  Jim Meyering  <jim@meyering.net>
89847
89848         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
89849
89850         * lib/linebuffer.c: Include <string.h> for declaration of memset.
89851
89852 2003-10-30  Paul Eggert  <eggert@twinsun.com>
89853             Bruno Haible  <bruno@clisp.org>
89854
89855         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
89856         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
89857
89858 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
89859
89860         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
89861         netbsd*-gnu*.  Suggested by Robert Millan.
89862
89863 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89864
89865         * modules/group-member: Depend on stdbool.
89866
89867 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89868
89869         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
89870
89871 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89872
89873         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
89874         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
89875         after the 'gnu' in these cases.  This fixes some bugs in the
89876         previous change, and is based on suggestions by Robert Millan.
89877
89878 2003-10-29  Paul Eggert  <eggert@twinsun.com>
89879
89880         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
89881         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
89882         no longer needed.
89883         * lib/quotearg.c (quotearg_n_options): Use it.
89884         * lib/group-member.c: Include <stdbool.h>.
89885         (free_group_info): Arg is now const *; don't free arg.
89886         (get_group_info): Now returns bool and accepts struct group_info *,
89887         rather than returning a malloc'ed struct group_info *.
89888         All uses changed.  Check for overflow in internal size calculation.
89889
89890         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
89891         rather than xmalloc/xrealloc.
89892         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
89893         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
89894         conformance bug: the old code used a pointer after freeing the
89895         storage that it addressed.
89896         * lib/hash.c (hash_initialize): Simplify the code by using
89897         xalloc_oversized rather than doing it by hand.
89898         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
89899         the buffer preserved.  Use free and xmalloc instead.
89900         * lib/quotearg.c (quotearg_n_options): Likewise.
89901         Use a simpler test for size overflow.  Don't use xalloc_oversized
89902         because unsigned int might be wider than size_t (!); this suggests
89903         that we should switch from unsigned int to size_t for slot numbers.
89904
89905 2003-10-28  Paul Eggert  <eggert@twinsun.com>
89906
89907         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
89908         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
89909         NetBSD kernels.  Requested by Richard Stallman.
89910
89911 2003-10-27  Paul Eggert  <eggert@twinsun.com>
89912
89913         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
89914         to allocate the returned structure.  Do not allocate a subarray,
89915         as x2nrealloc will do that.
89916         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
89917         instead of xnrealloc.
89918         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
89919
89920 2003-10-27  Bruno Haible  <bruno@clisp.org>
89921
89922         * lib/stdbool_.h: Better support for BeOS.
89923
89924 2003-10-26  Paul Eggert  <eggert@twinsun.com>
89925
89926         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
89927         now uses inline.
89928
89929 2003-10-26  Paul Eggert  <eggert@twinsun.com>
89930
89931         * lib/xalloc.h (xalloc_oversized): New static inline function, for
89932         callers that want to do their own size-overflow checking.  Include
89933         <stdbool.h>, since xalloc_oversized returns bool.
89934         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
89935         to use xalloc_oversized.
89936
89937         Add two functions x2realloc, x2nrealloc, for programs that grow
89938         arrays dynamically by doubling their sizes.
89939         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
89940         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
89941         New functions.
89942
89943         Port to C99 semantics for 'inline' of external functions.
89944         Bug reported by Bruno Haible.
89945         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
89946         with the old contents of xnmalloc.
89947         (xnmalloc, xmalloc): Use it.
89948         (xnrealloc_inline): New static inline function,
89949         with the old contents of xnrealloc.
89950         (xnrealloc, xrealloc): Use it.
89951
89952         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
89953         that.
89954
89955 2003-10-26  Karl Berry  <karl@gnu.org>
89956
89957         * config/srclist.txt (COPYING.DOC): no longer available from
89958         /gd/gnuorg; don't know where the ultimate source is.
89959
89960 2003-10-25  Paul Eggert  <eggert@twinsun.com>
89961
89962         Fix several address-calculation bugs in the hash modules,
89963         plus some minor code cleanup.
89964
89965         * lib/hash.h: Include <stdbool.h>, for bool.
89966         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
89967         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
89968         hash_get_n_entries, hash_get_max_bucket_length,
89969         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
89970         hash_rehash): Use size_t rather than unsigned.
89971         * lib/hash.c (struct hash_table, hash_get_n_buckets,
89972         hash_get_n_buckets_used, hash_get_n_entries,
89973         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
89974         hash_get_entries, hash_do_for_each, hash_string, is_prime,
89975         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
89976         Likewise.
89977         (SIZE_MAX): Define if not defined.
89978         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
89979         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
89980         hash_print):
89981         Use const * when possible.
89982         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
89983         (check_tuning): Fix bug: if tuning parameters were very close to
89984         0 or 1, rounding errors could have caused subscript violations.
89985         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
89986         (hash_initialize): Add 'fail:' label
89987         to free table and return NULL, and use it to simplify code.
89988         Use calloc rather than clearing the storage ourself.
89989         (hash_initialize, hash_rehash): Check for arithmetic overflow in
89990         buffer size calculations.
89991         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
89992         Include <stddef.h>, for size_t.
89993         * lib/hash-pjw.c (hash_pjw): Likewise.
89994         Switch to method described by Bruno Haible.
89995         Include <limits.h>, for CHAR_BIT.
89996         (SIZE_BITS): New macro.
89997
89998 2003-10-23  Paul Eggert  <eggert@twinsun.com>
89999
90000         * m4/getline.m4 (AM_FUNC_GETLINE):
90001         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
90002         hosts.  Problem reported by Derek Robert Price in
90003         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
90004         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
90005         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
90006
90007 2003-10-21  Paul Eggert  <eggert@twinsun.com>
90008
90009         * lib/getndelim2.c (getndelim2): When size calculation overflows,
90010         ceiling the allocation at NMAX bytes rather than silently
90011         discarding input bytes before NMAX is reached.  This makes
90012         a difference only if NMAX exceeds SIZE_MAX / 2.
90013
90014         * lib/obstack.c: Merge from glibc.
90015         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
90016         Add libc_hidden_def (_obstack_newchunk).
90017         (_obstack_free) [! defined _LIBC]: Remove.
90018         [defined _LIBC]: Make a strong alias from obstack_free, rather than
90019         a clone of the function body.
90020         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
90021         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
90022
90023         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
90024         glibc.
90025         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
90026         arg to memcpy.
90027
90028         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
90029         (obstack_ptr_grow_fast, obstack_int_grow_fast):
90030         Don't use lvalue casts, as GCC plans to remove support for them
90031         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
90032         was also present in the non-GCC version, indicating that this
90033         code had always been buggy and had never been widely used.
90034         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
90035         Use the fast variant of each macro, rather than copying the
90036         definiens of the fast variant; that way, we'll be more likely to
90037         catch future bugs in the fast variants.
90038
90039 2003-10-20  Bruno Haible  <bruno@clisp.org>
90040
90041         * modules/wait-process: New file.
90042         * MODULES.html.sh (func_all_modules): Add wait-process.
90043
90044 2003-10-20  Bruno Haible  <bruno@clisp.org>
90045
90046         * m4/wait-process.m4: New file.
90047
90048 2003-10-20  Bruno Haible  <bruno@clisp.org>
90049
90050         * lib/wait-process.h: New file, from GNU gettext.
90051         * lib/wait-process.c: New file, from GNU gettext.
90052
90053 2003-10-19  Jim Meyering  <jim@meyering.net>
90054
90055         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
90056         HPUX 10.20.
90057
90058 2003-10-18  Karl Berry  <karl@gnu.org>
90059
90060         * config/config.guess: update from config.
90061
90062 2003-10-16  Paul Eggert  <eggert@twinsun.com>
90063
90064         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
90065         (getgroups): First arg is int, not size_t.
90066         Don't let 'free' mangle errno.
90067
90068 2003-10-16  Paul Eggert  <eggert@twinsun.com>
90069
90070         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
90071
90072 2003-10-16  Karl Berry  <karl@gnu.org>
90073
90074         * config/config.{guess,sub}: update from config.
90075
90076 2003-10-16  Jim Meyering  <jim@meyering.net>
90077
90078         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
90079         memcpy.
90080
90081 2003-10-15  Paul Eggert  <eggert@twinsun.com>
90082
90083         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
90084         (SIZE_MAX): Remove.
90085         (new_exclude, add_exclude_file): Initial size no longer needs to
90086         be a power of 2.
90087         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
90088         our own address arithmetic overflow checking.
90089
90090         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
90091         (fnmatch): Do not alloca more than 2000 wide characters;
90092         instead, use malloc for large buffers.
90093         Check for address arithmetic overflow, and return -1
90094         with errno set to ENOMEM in that case.
90095         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
90096         (NEW_PATTERN): Do not alloca more than 8000 bytes;
90097         instead, return -1.  Check for address arithmetic overflow.
90098
90099 2003-10-14  Paul Eggert  <eggert@twinsun.com>
90100
90101         Handle invalid suffixes and overflow independently, so that
90102         callers can treat them independently as needed.  Fix some bugs in
90103         suffix handling, e.g., "100k@" was not diagnosed as an invalid
90104         suffix for a human-readable blocksize.  The major caller-visible
90105         change is the addition of a new
90106         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
90107         that both overflow and suffix chars were found.
90108
90109         * lib/human.c (humblock): Don't check separately for invalid suffix
90110         char; that is xstrtoumax's job (now that its bug is fixed).
90111         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
90112         INTMAX_MAX]: New macros.
90113         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
90114         TYPE_MAXIMUM): New macros.
90115         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
90116         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
90117         if overflow occurs, as it's what __strtol does and it's more useful
90118         in practice.
90119         (__xstrtol): If __strtol reports some error other than ERANGE,
90120         reflect it to the caller as LONGINT_INVALID.  If it reports
90121         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
90122         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
90123         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
90124         value.
90125         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
90126         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
90127         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
90128         [defined UINTMAX_MAX]: New macros.
90129
90130 2003-10-14  Bruno Haible  <bruno@clisp.org>
90131
90132         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
90133
90134 2003-10-14  Bruno Haible  <bruno@clisp.org>
90135
90136         * m4/sig_atomic_t: New file, from GNU gettext.
90137         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
90138
90139 2003-10-14  Bruno Haible  <bruno@clisp.org>
90140
90141         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
90142         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
90143         Also use volatile where needed.
90144
90145 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90146
90147         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
90148         Change maintainer from Bruno Haible to 'all'.
90149
90150 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90151
90152         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
90153
90154 2003-10-12  Paul Eggert  <eggert@twinsun.com>
90155
90156         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
90157         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
90158         and define in terms of the other primitives.
90159         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
90160         (SIZE_MAX): Define if not already defined.
90161         (array_size_overflow): New function.
90162         (xalloc_die): Abort instead of exiting if 'error' returns.
90163         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
90164         (xmalloc, xrealloc): Use them.
90165         (xcalloc): Check for address arithmetic overflow.
90166         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
90167         a bit faster than strcpy.
90168
90169 2003-10-10  Simon Josefsson  <jas@extundo.com>
90170
90171         * modules/argp (Depends-on): Add restrict and strcase.
90172
90173 2003-10-10  Simon Josefsson  <jas@extundo.com>
90174
90175         * m4/argp.m4: Add AC_C_INLINE.
90176
90177 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90178
90179         Merge getpass from libc, plus a few fixes.
90180
90181         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
90182         Include <stdbool.h>.
90183         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
90184         __fsetlocking to empty.
90185         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
90186         do include <bits/libc-lock.h>.
90187         Do not include <fcntl.h>; not needed.
90188         [_LIBC]: Include <wchar.h>.
90189         (NOTCANCEL_MODE): New macro.
90190         (flockfile, funlockfile) [_LIBC]: New macros.
90191         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
90192         [!_LIBC]: New macros.
90193         (call_fclose): New function.
90194         (getpass): Use it.  Save tty stream separately; this simplifies the
90195         code and makes it more reliable if stdin happens to equal stdout.
90196         Invoke __fsetlocking on tty.
90197         Handle thread cancellation if needed.
90198         Namespace cleanup (use __tcgetattr, __getline).
90199         Use bool for Booleans.
90200         [USE_IN_LIBIO]: Handle wide streams.
90201         [!_LIBC]: Unconditionally do the fseek, since we don't know what
90202         stream might go where.
90203
90204         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
90205         doesn't have to include <stdio.h> before us.
90206         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
90207         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
90208         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
90209         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
90210         if not declared, so that we can use getpass.c code from libc without
90211         rewriting it.
90212         (flockfile, ftrylockfile, funlockfile): New macros.
90213
90214 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90215
90216         * modules/getpass: Depend on stdbool.
90217
90218 2003-10-08  Paul Eggert  <eggert@twinsun.com>
90219
90220         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
90221
90222 2003-10-07  Karl Berry  <karl@gnu.org>
90223
90224         * config/config.{guess,sub}: update from config.
90225
90226 2003-10-06  Jim Meyering  <jim@meyering.net>
90227             Bruno Haible  <bruno@clisp.org>
90228
90229         This lets translators provide better translations for the
90230         "Written by ..." part of --version output.
90231         * lib/version-etc.h: Include stdarg.h.
90232         (version_etc_copyright): Declare as readonly.
90233         (version_etc): Make this function variadic with a NULL-terminated list
90234         of author name strings.
90235         (version_etc_va): New declaration.
90236         * lib/version-etc.c: Include stdarg.h, stdlib.h.
90237         (version_etc_copyright): Declare as readonly.
90238         (version_etc_va): New function. Provide a different translatable string
90239         for each possible number of authors < 10. Abbreviate when there are 10
90240         authors or more.
90241         (version_etc): Make this function variadic. Call version_etc_va.
90242         Suggestion from Gary V. Vaughan.
90243
90244         * lib/long-options.h (parse_long_options): Change prototype: the
90245         authors string is moved to the end and becomes variadic.
90246         * lib/long-options.c: Include stdarg.h.
90247         (parse_long_options): Make this function variadic, too.
90248         Call version_etc_va, not version_etc.
90249
90250 2003-10-06  Bruno Haible  <bruno@clisp.org>
90251
90252         * modules/version-etc-2: Remove file.
90253         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
90254
90255 2003-10-06  Bruno Haible  <bruno@clisp.org>
90256
90257         * modules/fatal-signal: New file.
90258         * MODULES.html.sh (func_all_modules): Add fatal-signal.
90259
90260 2003-10-06  Bruno Haible  <bruno@clisp.org>
90261
90262         * m4/fatal-signal.m4: New file.
90263         * m4/signalblocking.m4: New file, from GNU gettext.
90264
90265 2003-10-06  Bruno Haible  <bruno@clisp.org>
90266
90267         * lib/version-etc-2.h: Remove file.
90268         * lib/version-etc-2.c: Remove file.
90269
90270 2003-10-06  Bruno Haible  <bruno@clisp.org>
90271
90272         * lib/fatal-signal.h: New file, from GNU gettext.
90273         * lib/fatal-signal.c: New file, from GNU gettext.
90274
90275 2003-10-05  Paul Eggert  <eggert@twinsun.com>
90276
90277         * README: Rework advice for preventing empty .o files.
90278         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
90279         not <sys/types.h>.
90280
90281 2003-10-04  Karl Berry  <karl@gnu.org>
90282
90283         * lib/argp*: update from libc.
90284
90285 2003-10-04  Karl Berry  <karl@gnu.org>
90286
90287         * config/config.{guess,sub}: update from config.
90288
90289 2003-10-02  Bruno Haible  <bruno@clisp.org>
90290
90291         * modules/lchown (Include): Add lchown.h.
90292         * modules/time_r (Include): Use "..." syntax.
90293         * modules/xgetdomainname (Include): Add xgetdomainname.h.
90294
90295 2003-10-01  Simon Josefsson  <jas@extundo.com>
90296
90297         * MODULES.html.sh (func_all_modules): Move gethostname from section
90298         'based on' to section 'lacking' POSIX:2001.
90299
90300 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
90301
90302         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
90303         to output mode on the same stream.
90304
90305 2003-09-29  Paul Eggert  <eggert@twinsun.com>
90306
90307         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
90308         Fix arg typo in previous patch.
90309
90310 2003-09-28  Jim Meyering  <jim@meyering.net>
90311
90312         * lib/error.c: Correct cpp indentation.
90313
90314 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90315
90316         * modules/free: New file.
90317
90318 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90319
90320         * m4/free.m4: New file.
90321
90322 2003-09-27  Paul Eggert  <eggert@twinsun.com>
90323
90324         * lib/minmax.h (MIN, MAX)
90325         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
90326         Omit the special code that used __typeof__, since we worry that
90327         it could be more trouble than it's worth.  See:
90328         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
90329         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
90330
90331         * lib/free.c: New file.
90332
90333 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
90334
90335         Trivial fixes to Makefile.am parts of module listings.
90336         * modules/strstr: Append strstr.h to lib_SOURCES.
90337         * modules/strcase: Likewise, for strcase.h.
90338
90339 2003-09-27  Karl Berry  <karl@gnu.org>
90340
90341         * config/mkinstalldirs: update from automake.
90342
90343 2003-09-26  Paul Eggert  <eggert@twinsun.com>
90344
90345         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
90346         (error_tail): Do not loop, reallocating temporary buffer, since
90347         the output cannot contain more wide characters than the input
90348         contains bytes, the size must be big enough already.  This avoids
90349         one potential size overflow calculation.  Check for size overflow
90350         when calculating temporary buffer size.  Free temporary buffer
90351         when done, if it was allocated with malloc; this plugs a memory
90352         leak.  Remove casts from void * to pointers, that are no longer
90353         needed now that we're assuming C89 or better.
90354
90355         Merge error changes from glibc.
90356
90357         * lib/error.c, error.h: Update copyright notice header to match glibc.
90358         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
90359         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
90360         Disable cancellation while printing error.
90361         * lib/error.h: Prepend __ to parameter names.
90362
90363 2003-09-26  Jim Meyering  <jim@meyering.net>
90364
90365         * lib/error.c (error_tail): Move some declarations
90366         into inner scope where the local variables are used.
90367
90368 2003-09-26  Bruno Haible  <bruno@clisp.org>
90369
90370         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
90371         stpncpy().
90372         Don't define stpncpy through config.h; it's now done through stpncpy.h.
90373
90374 2003-09-26  Bruno Haible  <bruno@clisp.org>
90375
90376         * lib/stpncpy.h (gnu_stpncpy): New declaration.
90377         (stpncpy): Define as alias for gnu_stpncpy.
90378         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
90379
90380 2003-09-25  Simon Josefsson  <jas@extundo.com>
90381
90382         * lib/xgetdomainname.h: New file.
90383         * lib/xgetdomainname.c: New file.
90384
90385 2003-09-25  Simon Josefsson  <jas@extundo.com>
90386             Bruno Haible  <bruno@clisp.org>
90387
90388         * modules/getdomainname: New file.
90389         * modules/xgetdomainname: New file.
90390         * MODULES.html.sh (func_all_modules): Add getdomainname,
90391         xgetdomainname.
90392
90393 2003-09-25  Simon Josefsson  <jas@extundo.com>
90394             Bruno Haible  <bruno@clisp.org>
90395
90396         * m4/getdomainname.m4: New file.
90397
90398 2003-09-25  Simon Josefsson  <jas@extundo.com>
90399             Bruno Haible  <bruno@clisp.org>
90400
90401         * lib/getdomainname.h: New file.
90402         * lib/getdomainname.c: New file.
90403
90404 2003-09-25  Karl Berry  <karl@gnu.org>
90405
90406         * lib/argp-fmtstream.c, argp-help.c: update from libc.
90407
90408 2003-09-25  Karl Berry  <karl@gnu.org>
90409
90410         * config/install-sh: update from automake.
90411
90412 2003-09-25  Bruno Haible  <bruno@clisp.org>
90413
90414         * modules/version-etc-2: New file, from modules/version-etc with
90415         modifications.
90416         * MODULES.html.sh (func_all_modules): Add version-etc-2.
90417
90418 2003-09-25  Bruno Haible  <bruno@clisp.org>
90419
90420         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
90421         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
90422
90423 2003-09-24  Simon Josefsson  <jas@extundo.com>
90424
90425         * modules/xgethostname: Add xgethostname.h.
90426
90427 2003-09-24  Paul Eggert  <eggert@twinsun.com>
90428
90429         * lib/linebuffer.c (freebuffer): Don't free the argument, just
90430         the buffer associated with the argument.  Bug reported by
90431         Simon Josefsson.
90432
90433 2003-09-24  Paul Eggert  <eggert@twinsun.com>
90434
90435         * README: Document assumptions that 'int' is at least 32 bits
90436         wide, that integer arithmetic is 2's complement without overflow,
90437         that there are no holes in integer values, that adding sizes of
90438         two nonoverlapping objects can't overflow, and that all-bits-zero
90439         yields scalar zero.  Fix spelling and capitalization typos.
90440
90441 2003-09-19  Karl Berry  <karl@gnu.org>
90442
90443         * lib/argp.h: update from libc.
90444
90445 2003-09-17  Paul Eggert  <eggert@twinsun.com>
90446
90447         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
90448         to avoid spurious warnings like "AC_RUN_IFELSE was called before
90449         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
90450
90451 2003-09-17  Paul Eggert  <eggert@twinsun.com>
90452
90453         * gnulib-tool: Use "test -h", not "test -L", for portability
90454         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
90455         (tags_regexp): Remove, since \| doesn't conform to POSIX.
90456         (sed_extract_prog): Issue s commands one-by-one, rather than
90457         using \| in one s command.
90458
90459 2003-09-16  Paul Eggert  <eggert@twinsun.com>
90460
90461         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
90462         input error, instead of returning NULL the next time we are called
90463         (and therefore losing track of errno).
90464
90465 2003-09-16  Bruno Haible  <bruno@clisp.org>
90466
90467         * gnulib-tool (func_create_testdir): Warn about duplicated
90468         dependencies.
90469
90470 2003-09-15  Paul Eggert  <eggert@twinsun.com>
90471
90472         * modules/argmatch, modules/fatal, modules/obstack,
90473         modules/xalloc, modules/xgethostname: Sort dependencies by
90474         importance, not alphabetically.
90475
90476 2003-09-15  Paul Eggert  <eggert@twinsun.com>
90477
90478         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
90479         fails, so that the caller gets the proper errno.
90480
90481         * lib/readutmp.c (read_utmp): Likewise.
90482         Check for fstat error.  Close stream and free storage
90483         when failing.
90484
90485 2003-09-14  Karl Berry  <karl@gnu.org>
90486
90487         * config/srclist.txt (strdup.c): disable for c89 changes.
90488
90489 2003-09-14  Jim Meyering  <jim@meyering.net>
90490
90491         * lib/getloadavg.c: Correct cpp indentation.
90492         * lib/strdup.c: Likewise.
90493         * lib/vasnprintf.c: Likewise.
90494
90495 2003-09-14  Bruno Haible  <bruno@clisp.org>
90496
90497         * modules/fwriteerror: New file.
90498         * MODULES.html.sh (func_all_modules): Add fwriteerror.
90499
90500 2003-09-14  Bruno Haible  <bruno@clisp.org>
90501
90502         * lib/fwriteerror.h: New file.
90503         * lib/fwriteerror.c: New file.
90504
90505 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90506
90507         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
90508         modules/xgethostname, modules/xalloc: Depend on exit.
90509
90510 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90511
90512         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
90513
90514         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
90515         and AC_MINIX, too, so that their extensions are available.
90516
90517         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
90518         This macro has been superseded by gl_BACKUPFILE.
90519
90520         More patches to assume C89 or better.
90521
90522         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
90523
90524         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
90525         unconditionally.
90526         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
90527         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
90528         Include <string.h>, <stdlib.h> unconditionally.
90529         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
90530         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
90531         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
90532         headers or for string.h.
90533         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
90534         or strtoul.
90535
90536         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
90537         headers.
90538         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
90539         * m4/userspec.m4 (gl_USERSPEC): Likewise.
90540         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
90541         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
90542         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
90543         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
90544         memcpy, memset.
90545         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
90546         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
90547         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
90548         strtol.
90549         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
90550         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
90551         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
90552         strtoul.
90553
90554 2003-09-12  Paul Eggert  <eggert@twinsun.com>
90555
90556         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
90557         * lib/obstack.c [!defined _LIBC]: Likewise.
90558         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
90559         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
90560         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
90561
90562         More changes to assume C89 or better.
90563
90564         * lib/error.c (error_tail): Assume vprintf.
90565
90566         * lib/argmatch.c (getenv): Remove decl.
90567         * lib/progreloc.c (get_full_program_name): Define via prototype.
90568         * lib/setenv.c (clearenv): Likewise.
90569         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
90570         needed.
90571         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
90572         (malloc, memcpy): Remove decls.
90573         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
90574         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
90575         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
90576         (memcpy): Remove macro.
90577         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
90578         (__P): Remove.  All uses removed.
90579         (PTR): Remove.  All uses changed to void *.
90580         (CHAR_BIT, NULL): Remove.
90581         (spaces, zeros, memset_space, memset_zero)
90582         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
90583         Remove.
90584         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
90585         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
90586         Define with prototype.
90587         Remove now-unnecessary prototype decl.
90588         (extra_args_spec): Assume ANSI C.  All uses changed.
90589         (extra_args_spec_iso): Remove.
90590         (my_strftime, emacs_strftimeu): Define via prototype.
90591         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
90592         unconditionally.
90593         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
90594         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
90595         (strtoul, strtol): Remove decls.
90596         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
90597         LONG_MAX): Remove.
90598         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
90599         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
90600         (LOCALE_PARAM_PROTO): New macro.
90601         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
90602         (INTERNAL (strtol), strtol): Define with a prototype.
90603         (PARAMS): Remove.  All uses removed.
90604         * lib/tempname.c: Include <string.h> unconditionally.
90605         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
90606         * lib/xgethostname.c (main): Define with a prototype.
90607         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
90608         Include <stdlib.h> unconditionally.
90609         (calloc, malloc, realloc, free): Remove decls.
90610         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
90611         Include <stdlib.h> unconditionally.  Sort include file names.
90612         (strtod): Remove.
90613         (xstrtod): Define with a prototype.
90614         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
90615         (strtol, strtoul): Remove decls.
90616
90617 2003-09-11  Paul Eggert  <eggert@twinsun.com>
90618
90619         More patches to assume C89 or better.
90620         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
90621         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
90622         string.h, memchr, STDC_HEADERS.
90623
90624 2003-09-11  Paul Eggert  <eggert@twinsun.com>
90625
90626         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
90627         Include <stdlib.h>, <string.h> unconditionally.
90628         Remove now-unnecessary cast to char *.
90629         * lib/strnlen.c: Include <string.h> unconditionally.
90630         * lib/yesno.c (yesno): Define with a prototype.
90631
90632 2003-09-11  Bruno Haible  <bruno@clisp.org>
90633
90634         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
90635
90636 2003-09-10  Jim Meyering  <jim@meyering.net>
90637
90638         * lib/error.c: Correct indentation of cpp directives.
90639
90640 2003-09-10  Bruno Haible  <bruno@clisp.org>
90641
90642         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
90643         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
90644         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
90645         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
90646         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
90647         <stdlib.h> and <string.h> checks.
90648         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
90649         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
90650
90651 2003-09-10  Bruno Haible  <bruno@clisp.org>
90652
90653         * lib/strcspn.c: Include <string.h> unconditionally.
90654         * lib/strpbrk.c: Include <string.h> unconditionally.
90655         * lib/strstr.c: Include <string.h> unconditionally.
90656         * lib/unicodeio.c: Include <string.h> unconditionally.
90657         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
90658         * lib/unsetenv.c: Likewise.
90659         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
90660         * lib/yesno.c: Include <stdlib.h> unconditionally.
90661         (rpmatch): Add prototype.
90662
90663 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90664
90665         More patches to assume C89 or better.
90666         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
90667         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
90668         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
90669         or for string.h.
90670         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
90671         stdlib.h.
90672         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
90673         C headers.
90674         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
90675         string.h.
90676         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
90677         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
90678         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
90679         or for string.h.
90680         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
90681         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
90682         C headers.
90683         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
90684         memcpy.
90685         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
90686         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
90687         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
90688         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
90689         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
90690         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
90691         string.h, free.
90692         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
90693         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
90694         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
90695         C headers, or for string.h.
90696         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
90697         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
90698         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
90699         headers, memory.h, stdlib.h, string.h, strings.h.
90700         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
90701         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
90702         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
90703         strchr.
90704         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
90705         headers, memory.h, string.h.
90706         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
90707         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
90708         free.
90709         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
90710         headers.
90711         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
90712         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
90713         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
90714         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
90715         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
90716
90717 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90718
90719         More K&R removal.
90720
90721         * lib/acosl.c (main): Use a prototype.
90722         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
90723         tanl.c: Likewise.
90724
90725         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
90726
90727         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
90728         (getopt, etopt_long, getopt_long_only, _getopt_internal)
90729         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
90730         with a prototype.
90731         * lib/getopt.c (const): Remove macro.
90732         Include <string.h> unconditionally.
90733         (my_index): Remove; all uses changed to strchr.
90734         (strlen): Remove decl.
90735         (exchange): Remove forward decl; no longer needed.
90736         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
90737         Define with prototype.
90738         * lib/getopt1.c (const): Remove macro.
90739         (getopt_long, getopt_long_only, main): Define with prototype.
90740
90741         * lib/getugroups.c: Include <string.h> unconditionally.
90742
90743         * lib/getusershell.c: Include <stdlib.h> unconditionally.
90744         (getusershell, setusershell, endusershell, readname, main):
90745         Define with prototypes.
90746
90747         * lib/group-member.c: Include group-member.h first.
90748         Include <stdlib.h> unconditionally.
90749
90750         * lib/hard-locale.c: Include hard-locale.h first.
90751         Include <stdlib.h>, <string.h> unconditionally.
90752
90753         * lib/hash.c (free, malloc): Remove decls.
90754         Include <stdlib.h> unconditionally.
90755
90756         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
90757         (getenv): Do not declare.
90758
90759         * lib/idcache.c: Include <string.h> unconditionally.
90760
90761         * lib/long-options.c: Include long-options.h first, to test interface.
90762         Include <stdlib.h> unconditionally.
90763
90764         * lib/makepath.c: Include makepath.h first, to test interface.
90765         Include <stdlib.h> and <string.h> unconditionally.
90766
90767         * lib/linebuffer.c: Include <stdlib.h>.
90768         (free): Remove decl.
90769
90770         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
90771         stddef.h. rpl_malloc returns void *, not char *.
90772         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
90773         prototype.
90774
90775         * lib/md5.h: Include <limits.h> unconditionally.
90776         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
90777         (__P): Remove; all uses removed.
90778         * lib/md5.c: Include "md5.h" first.
90779         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
90780         md5_buffer, md5_process_bytes, md5_process_block):
90781         Define with prototypes.
90782         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
90783         * lib/sha.c: Include "sha.h" first.
90784         Include <stdlib.h>, <string.h> unconditionally.
90785
90786         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
90787         * lib/memcmp.c (__ptr_t): Likewise.
90788         * lib/memrchr.c (__ptr_t): Likewise.
90789         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
90790         Include <string.h> unconditionally.
90791         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
90792         * lib/memchr.c: Include <stdlib.h> unconditionally.
90793         * lib/memchr.c (LONG_MAX): Remove.
90794         * lib/memrchr.c (LONG_MAX): Likewise.
90795         * lib/memchr.c (__memchr): Define via a prototype.
90796         * lib/memrchr.c (__memrchr): Likewise.
90797         * lib/memcmp.c (__P): Remove, and remove all uses.
90798         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
90799         Remove forward decls; no longer needed.
90800         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
90801         Use types required by C89 in prototype.
90802
90803         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
90804         * lib/savedir.c: Likewise.
90805         * lib/mkdir.c (free): Remove decl.
90806         * lib/rmdir.c (rmdir): Define with a prototype.
90807         * lib/savedir.c: Include savedir.h first, to test interface.
90808
90809         * lib/mktime.c (STDC_HEADERS): Remove.
90810         Include <stdlib.h>, <string.h> unconditionally.
90811
90812         * lib/modechange.c: Include <stdlib.h> unconditionally.
90813         (malloc): Remove decl.
90814
90815         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
90816         (free): Remove decl.
90817
90818         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
90819         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
90820         (This type really should be intptr_t, but that's a C99ism.)
90821         (_obstack_memcpy): Remove: all uses changed to memcpy.
90822         Include <string.h> unconditionally.
90823         (struct obstack): Assume __STDC__ for types of members
90824         chunkfun, freefun, extra_arg.
90825         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
90826         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
90827         obstack_begin, obstack_specify_allocation,
90828         obstack_specify_allocation_with_arg, obstack_chunkfun,
90829         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
90830         Remove unprototyped decls and the macros that use them.
90831         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
90832         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
90833         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
90834         (defined __STDC__ && __STDC__)]:
90835         Remove nonprototyped code.
90836         Include <stdlib.h> unconditionally.
90837         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
90838         _obstack_allocated_p, _obstack_free, obstack_free,
90839         _obstack_memory_used, print_and_abort):
90840         Define using prototypes.
90841         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
90842         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
90843         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
90844         obstack_next_free, obstack_object_size, obstack_room) [0]:
90845         Remove unused, unprototyped code.
90846
90847         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
90848
90849         * lib/physmem.c (physmem_total, physmem_available, main): Define
90850         with prototypes.
90851
90852         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
90853         (main): Define with a prototype.
90854
90855         * lib/posixver.c (getenv): Remove decl.
90856
90857         * lib/putenv.c (malloc): Returns void *, not char *.
90858         Include <string.h> unconditionally.
90859         (strchr, memcpy, NULL): Do not define.
90860
90861         * lib/readtokens.c: Include readtokens.h first, to test interface.
90862         Include <stdlib.h>, <string.h> unconditionally.
90863         (init_tokenbuffer): Define with a prototype.
90864
90865         * lib/regex.c (PARAMS): Remove.  All uses removed.
90866         All uses of _RE_ARGS removed, too.
90867         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
90868         unconditionally.
90869         (bzero): Assume memset exists.
90870         (memcmp, memcpy, NULL): Remove.
90871         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
90872         char, or assignments to local vars of type signed char.
90873         (init_syntax_once, PREFIX(extract_number_and_incr),
90874         PREFIX(print_partial_compiled_pattern),
90875         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
90876         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
90877         PREFIX(regex_grow_registers), PREFIX(regex_compile),
90878         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
90879         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
90880         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
90881         wcs_compile_range, byte_compile_range, truncate_wchar,
90882         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
90883         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
90884         count_mbs_length, wcs_re_match_2_internal,
90885         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
90886         PREFIX(alt_match_null_string_p),
90887         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
90888         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
90889         regfree, PREFIX(extract_number)): Define with prototype.  Remove
90890         now-unnecessary declaration, if any.
90891         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
90892         regcomp, regexec):
90893         Remove now-unnecessary casts among pointer types.
90894         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
90895
90896         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
90897         (free): Remove decl.
90898
90899         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
90900
90901         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
90902         (free): Remove decl.
90903
90904         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
90905         * lib/xgetcwd.c: Likewise.
90906
90907         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
90908         (free): Remove decl.
90909
90910         * lib/strchrnul.c (strchrnul): Define with a prototype.
90911         Fix bug: c_in was not converted to char before searching.
90912
90913         The following changes are not K&R related:
90914
90915         * lib/group-member.h: Include <sys/types.h>, so that this file is
90916         self-contained.
90917         * lib/makepath.h: Likewise.
90918
90919         * lib/getusershell.c (readname, default_index, line_size, readname):
90920         Use size_t, not int, for sizes.
90921         (readname): If the size overflows, report an error instead of
90922         looping forever.
90923
90924 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90925
90926         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
90927         libc.
90928
90929 2003-09-09  Paul Eggert  <eggert@twinsun.com>
90930
90931         * README: New section: portability guidelines.
90932
90933 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
90934
90935         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
90936         C89 spec.
90937
90938 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
90939
90940         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
90941
90942 2003-09-08  Paul Eggert  <eggert@twinsun.com>
90943
90944         Assume C89 or better; remove K&R cruft.
90945         A few of these changes were first proposed by Derek Robert Price
90946         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
90947
90948         * lib/addext.c: Include <string.h> unconditionally.
90949         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
90950         Don't declare getenv or malloc.
90951
90952         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
90953         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
90954         (NULL): Remove.
90955         (find_stack_direction, alloca): Use prototypes.
90956
90957         * lib/atexit.c (atexit): Define using a prototype.
90958
90959         * lib/basename.c, dirname.c, stripslash.c:
90960         Include <string.h> unconditionally.
90961
90962         * lib/bcopy.c: Include <stddef.h>.
90963         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
90964
90965         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
90966
90967         * lib/error.h (error, error_at_line, error_print_progname)
90968         [! (defined (__STDC__) && __STDC__)]: Remove decls.
90969         * lib/error.c: Include error.h first, to check interface.
90970         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
90971         (VA_START): Remove; all uses changeed to va_start.
90972         (exit, strerror): Remove decls.
90973         (error_print_progname): Prototype uncondionally.
90974         Don't include <errno.h>; no longer needed.
90975         (private_strerror): Remove.
90976         (error_tail): Always define.
90977         (error, error_at_line): Assume C89 or better; always use prototypes.
90978         * lib/fatal.c: Include "fatal.h" first, to test interface.
90979         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
90980         (VA_START): Remove; all uses changed to va_start.
90981         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
90982         this case.
90983         (exit): Remove decl.
90984         (fatal): Prototype unconditionally.  Assume va_start works.
90985         Abort at end, to pacify gcc.
90986
90987         * lib/euidaccess.c (main): Define with a prototype.
90988
90989         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
90990
90991         * lib/exitfail.c: Include <stdlib.h> unconditionally.
90992
90993         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
90994         prototypes.
90995         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
90996         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
90997         (getenv): Remove decl.
90998         (fnmatch): Define using a prototype.
90999         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
91000         (FCT): Define using a prototype.
91001
91002         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
91003
91004         * lib/gethostname.c: Include <stddef.h>.
91005         (gethostname): Define with prototype.  Length is size_t, not int.
91006
91007 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91008
91009         Assume C89 or better; remove K&R cruft.
91010         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
91011         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
91012         string.h, getenv, malloc.
91013         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
91014         headers.
91015         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
91016         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
91017         do not check for strerror.
91018         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
91019         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
91020         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
91021         do not check for doprnt or vprintf.
91022         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
91023         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
91024
91025 2003-09-08  Paul Eggert  <eggert@twinsun.com>
91026
91027         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
91028         getversion.c should have been removed then, but was accidentally
91029         preserved.
91030
91031         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
91032         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
91033
91034 2003-09-08  Karl Berry  <karl@gnu.org>
91035
91036         * config/config.sub, config.guess, srclistvars.sh: update from savannah
91037                 config, forget about prep.
91038
91039         * config/depcomp, missing: update from automake.
91040
91041 2003-09-07  Paul Eggert  <eggert@twinsun.com>
91042
91043         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
91044         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
91045
91046 2003-09-07  Paul Eggert  <eggert@twinsun.com>
91047
91048         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
91049         copy_tm_result.  Bug reported by Simon Josefsson in
91050         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
91051
91052 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91053
91054         * m4/time_r.m4: New file.
91055         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
91056         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
91057         is. Check for timegm declaration.
91058         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
91059         Do not check for gmtime_r.
91060         Replace mktime if __mktime_internal does not exist and if mktime
91061         hasn't been replaced already.
91062
91063 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91064
91065         * lib/time_r.c, lib/time_r.h: New files.
91066
91067         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
91068         __localtime_r.
91069         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
91070         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
91071
91072         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
91073         __gmtime_r.
91074         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
91075         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
91076         Include <time_r.h>.
91077
91078         * lib/timegm.c: Switch to glibc implementation, with the following
91079         changes:
91080         [defined HAVE_CONFIG_H]: Include <config.h>.
91081         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
91082         (__mktime_internal) [!defined _LIBC]: New decl.
91083         (__gmtime_r) [!defined _LIBC]: New macro and function.
91084         (timegm): Use a prototype, since gnulib assumes C89.
91085         Do not bother declaring tmp to be const, as it's not really usefu.
91086         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
91087         (timegm): Declare only if HAVE_DECL_TIMEGM.
91088
91089 2003-09-06  Paul Eggert  <eggert@twinsun.com>
91090
91091         * MODULES.html.sh (func_all_modules): Add time_r.
91092         * modules/time_r: New file.
91093         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
91094         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
91095
91096 2003-09-03  Paul Eggert  <eggert@twinsun.com>
91097
91098         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
91099         Bug reported by Lute Kamstra in
91100         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
91101
91102         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
91103         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
91104         course with correspondingly smaller numbers for tomorrow and
91105         yesterday.  From Tadayoshi Funaba.  Originally installed into
91106         sh-utils on 1999-08-07, but the patch got lost (I guess during the
91107         coreutils merge?).
91108
91109 2003-08-31  Simon Josefsson  <jas@extundo.com>
91110
91111         * modules/timegm: New file.
91112         * MODULES.html.sh (func_all_modules): Add timegm.
91113
91114 2003-08-31  Simon Josefsson  <jas@extundo.com>
91115
91116         * m4/timegm.m4: New file.
91117
91118 2003-08-31  Simon Josefsson  <jas@extundo.com>
91119
91120         * lib/timegm.h: New file.
91121         * lib/timegm.c: New file.  Based on
91122         wget-1.8.2/src/http.c:mktime_from_utc.
91123
91124 2003-08-31  Karl Berry  <karl@gnu.org>
91125
91126         * lib/argp.h: update from libc.
91127
91128 2003-08-28  Bruno Haible  <bruno@clisp.org>
91129
91130         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
91131         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
91132         followed by '#define fnmatch fnmatch_posix' gives an error.
91133
91134 2003-08-28  Bruno Haible  <bruno@clisp.org>
91135
91136         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
91137         warning on QNX, which defines O_BINARY to 000000.
91138
91139 2003-08-27  Jim Meyering  <jim@meyering.net>
91140
91141         * m4/mkstemp.m4: Require that the system mkstemp be able to create
91142         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
91143         would fail after 32.  Reported by Danny Levinson.  Details here:
91144         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
91145
91146 2003-08-24  Bruno Haible  <bruno@clisp.org>
91147
91148         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
91149         MSVC7 <stdio.h> is included later.
91150
91151 2003-08-22  Simon Josefsson  <jas@extundo.com>
91152
91153         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
91154
91155 2003-08-20  Karl Berry  <karl@gnu.org>
91156
91157         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
91158
91159 2003-08-20  Bruno Haible  <bruno@clisp.org>
91160
91161         * modules/progname: New file.
91162         * MODULES.html.sh (func_all_modules): Add progname.
91163
91164 2003-08-20  Bruno Haible  <bruno@clisp.org>
91165
91166         * lib/progname.h: New file, from GNU gettext.
91167         * lib/progname.c: New file, from GNU gettext.
91168         * lib/progreloc.c: New file, from GNU gettext.
91169
91170 2003-08-19  Jim Meyering  <jim@meyering.net>
91171
91172         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
91173         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
91174
91175 2003-08-19  Bruno Haible  <bruno@clisp.org>
91176
91177         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
91178         more.
91179
91180 2003-08-19  Bruno Haible  <bruno@clisp.org>
91181
91182         * lib/xstrdup.c: Assume <string.h> exists.
91183
91184 2003-08-18  Paul Eggert  <eggert@twinsun.com>
91185
91186         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
91187         in makefile rules.
91188
91189 2003-08-18  Jim Meyering  <jim@meyering.net>
91190
91191         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
91192         * m4/lib-ld.m4: Likewise.
91193
91194 2003-08-18  Jim Meyering  <jim@meyering.net>
91195
91196         * lib/setenv.h: Indent nested cpp directive.
91197         * lib/vasnprintf.c: Remove trailing blanks.
91198
91199 2003-08-17  Simon Josefsson  <jas@extundo.com>
91200
91201         * modules/xstrndup: New file.
91202         * MODULES.html.sh (func_all_modules): Add xstrndup.
91203
91204 2003-08-17  Simon Josefsson  <jas@extundo.com>
91205
91206         * modules/argp: Fix autoconf macro name. Add more dependencies.
91207
91208 2003-08-17  Simon Josefsson  <jas@extundo.com>
91209
91210         * m4/xstrndup.m4: New file.
91211
91212 2003-08-17  Simon Josefsson  <jas@extundo.com>
91213
91214         * m4/argp.m4: New file.
91215
91216 2003-08-17  Simon Josefsson  <jas@extundo.com>
91217             Bruno Haible  <bruno@clisp.org>
91218
91219         * lib/xstrndup.h: New file.
91220         * lib/xstrndup.c: New file.
91221
91222 2003-08-17  Bruno Haible  <bruno@clisp.org>
91223
91224         * modules/strndup (Files, Include): Add lib/strndup.h.
91225
91226 2003-08-17  Bruno Haible  <bruno@clisp.org>
91227
91228         * modules/euidaccess (Files): Add lib/euidaccess.h.
91229
91230 2003-08-17  Bruno Haible  <bruno@clisp.org>
91231
91232         * lib/strndup.h: New file.
91233
91234 2003-08-17  Bruno Haible  <bruno@clisp.org>
91235
91236         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
91237         like AC_GNU_SOURCE.
91238         * modules/extensions (configure.ac): Comment out the invocation of
91239         gl_USE_SYSTEM_EXTENSIONS.
91240
91241 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91242
91243         Merges from coreutils, etc.
91244         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
91245         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
91246         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
91247         fixing a typo.
91248         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
91249         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
91250
91251 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91252
91253         Document merge from coreutils.
91254         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
91255         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
91256         * modules/utime: Add m4/utimes-null.m4.
91257
91258 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91259
91260         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
91261         space, undoing this 2003-08-12 change:
91262         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
91263
91264 2003-08-16  Paul Eggert  <eggert@twinsun.com>
91265
91266         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
91267         strtoul.c from libc, undoing this 2003-08-12 change:
91268         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
91269
91270 2003-08-16  Jim Meyering  <jim@meyering.net>
91271
91272         Merges from coreutils.
91273         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
91274         prefix.  Adjust cache variables similarly.  Create 500 rather than
91275         just 300 files, to exercise bug on Darwin6.5, too.
91276         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
91277         $missing_dir.
91278         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
91279         AM_SYS_POSIX_TERMIOS.
91280         Reported by mkc@mathdogs.com.
91281         Also change use of $am_cv_sys_posix_termios
91282         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
91283         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
91284         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
91285         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
91286         in /proc/mounts until it finds one with matching device number.  This
91287         is unnecessary when the FILE argument *is* a mount point.  No stat call
91288         is necessary in that case.  So, disable the statvfs-testing code on
91289         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
91290         as RedHat bug# 84846.
91291         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
91292         to 1MB, so as not to render systems with no stack size limit (e.g.,
91293         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
91294         Include <unistd.h>.  On some systems,
91295         it is required for the definition of _SC_PAGESIZE.
91296
91297 2003-08-16  Jim Meyering  <jim@meyering.net>
91298
91299         Merge from coreutils.
91300         * lib/xstrtoimax.c: #else #if -> #elif.
91301         * lib/xstrtoumax.c: Likewise.
91302
91303 2003-08-16  Jim Meyering  <jim@meyering.net>
91304
91305         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
91306         * m4/utimes.m4: Removed.
91307         * m4/utimes-null.m4: Renamed from utimes.m4.
91308
91309         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
91310         to 1MB, so as not to render systems with no stack size limit (e.g.,
91311         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
91312         Include <unistd.h>.  On some systems,
91313         it is required for the definition of _SC_PAGESIZE.
91314
91315 2003-08-16  Jim Meyering  <jim@meyering.net>
91316         and Paul Eggert  <eggert@cs.ucla.edu>
91317
91318         Merges from coreutils, etc.
91319
91320         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
91321         using the latest version from cvs.  This avoids problems with #line
91322         directives using a vendor (Sun) compiler.
91323         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
91324         Don't set GETGROUPS_LIB here; now it's
91325         done via getgroups.m4's wrapper function.
91326         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
91327         rather than just in sh-util/configure.in, so that the
91328         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
91329         same.
91330         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
91331         AC_FUNC_GETLOADAVG where to find getloadavg.c.
91332         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
91333         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
91334         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
91335         Remove code that is now done by the newly-required macros.
91336         Append $(EXEEXT) to DF_PROG.
91337         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
91338         Do not invoke or require the following here,
91339         since prereq.m4 or some gnulib .m4 now does this for us:
91340         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
91341         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
91342         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
91343         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
91344         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
91345         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
91346         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
91347         AC_FUNC_OBSTACK.
91348         Do not replace the following functions, as this is now the job
91349         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
91350         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
91351         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
91352         atexit getpass, strdup, getpagesize.
91353         Replace 'raise'.
91354         Do not check for the following functions, as this is now the job
91355         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
91356         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
91357         setregid.
91358         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
91359         Check for sys/sysctl.h.
91360         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
91361         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
91362         of checking for ssize_t ourselves.
91363
91364         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
91365         Require every macro that gnulib/modules/* suggests for us.
91366         (jm_PREREQ_ADDEXT): New macro.
91367         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
91368         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
91369
91370         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
91371         (gl_PHYSMEM): Use it.
91372         Also check for `table' function.
91373         Check for new headers and functions.
91374         Add check for sys/sysmp.h.
91375         With suggestions from Kaveh Ghazi.
91376         Ignore headers that are present but cannot be compiled.  This
91377         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
91378         C 5.4.
91379
91380 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91381
91382         Document merge from coreutils.
91383         * modules/userspec: Depend on posixver.
91384         * modules/strftime: Depend on tzset.
91385
91386 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91387
91388         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
91389         rather than tab, after '#' in shell-script copyright notices.
91390         Suggested by Bruno Haible.
91391
91392 2003-08-15  Paul Eggert  <eggert@twinsun.com>
91393
91394         * config/srclist-update: Use three spaces, rather than tab, after '#'
91395         in shell-script copyright notices.  Suggested by Bruno Haible.
91396         Remove unnecessary parenthesization in regular expression.
91397
91398 2003-08-15  Jim Meyering  <jim@meyering.net>
91399
91400         Merge from coreutils.
91401         * lib/xgethostname.c: Include <stdlib.h>.
91402         (xghostname): Don't exit for anything other than memory-related
91403         failure; just return NULL.
91404         * lib/userspec.c: Include "posixver.h".
91405         (parse_user_spec): Accept `.' as a separator only
91406         in pre-POSIX-200112 mode.
91407         * lib/strtoimax.c: Use #elif rather than #else #if.
91408         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
91409         Remove function, now that we can rely on a working tzset function.
91410         [!_LIBC]: Ensure that the required autoconf test has been run.
91411         [!defined _NL_CURRENT && HAVE_STRFTIME]:
91412         Use underlying_strftime for %r.
91413         * lib/sha.c: Merge in some clean-up and optimization changes from
91414         glibc.
91415         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
91416         Ensure that it is a multiple of 64.
91417         Rearrange loop exit tests so as to avoid performing an
91418         additional fread after encountering an error or EOF.
91419         * lib/realloc.c: Update copyright date.
91420
91421 2003-08-15  Jim Meyering  <jim@meyering.net>
91422         and Paul Eggert  <eggert@twinsun.com>
91423
91424         Merge from coreutils.
91425         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
91426         member but strut utmpx does not.  Needed for AIX 4.3.3.
91427         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
91428
91429 2003-08-15  Jim Meyering  <jim@meyering.net>
91430         and Paul Eggert  <eggert@cs.ucla.edu>
91431
91432         Merges from coreutils, etc.
91433         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
91434         Require gl_FUNC_TZSET_CLOBBER.
91435         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
91436         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
91437         members.
91438
91439 2003-08-14  Paul Eggert  <eggert@twinsun.com>
91440
91441         Help the merge from coreutils.
91442         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
91443         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
91444         * m4/tzset.m4: Use it too.
91445
91446 2003-08-14  Paul Eggert  <eggert@twinsun.com>
91447
91448         * modules/tzset: New file.
91449
91450 2003-08-14  Jim Meyering  <jim@meyering.net>
91451
91452         Merges from coreutils.
91453         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
91454         variable names, rather than @FNMATCH_H@.
91455         * modules/alloca: Likewise for $(ALLOCA_H).
91456
91457         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
91458         the three copies of the literal target, `fnmatch.h'.
91459         * modules/alloca (alloca.h): Likewise.
91460
91461 2003-08-14  Jim Meyering  <jim@meyering.net>
91462
91463         Merge from coreutils.
91464         * m4/tzset.m4: New file.
91465         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
91466         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
91467         otherwise, AIX 5.1 systems would end up using the latter.
91468         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
91469         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
91470         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
91471         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
91472
91473 2003-08-14  Jim Meyering  <jim@meyering.net>
91474
91475         Merge from coreutils.
91476         * lib/obstack.h: Whitespace changes.
91477         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
91478         and xcalloc return values.
91479         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
91480         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
91481         hang on OSF/1 5.1 for DIR on both local and remote file systems.
91482         Reported by (and fix confirmed by) Nelson H. F. Beebe.
91483         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
91484         error from mntctl.
91485         Use mntctl's return value to drive the entry-processing loop, since
91486         we can't rely on the value of the vmt_length member in the last
91487         entry.  On some systems doing so could result in exhausting
91488         virtual memory.  Based in part on a patch from Mike Jetzer.
91489
91490 2003-08-14  Jim Meyering  <jim@meyering.net>
91491         and Paul Eggert  <eggert@twinsun.com>
91492
91493         Merges from coreutils, plus other fixes.
91494         * lib/physmem.c: Merge in portability changes from gcc/libiberty
91495         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
91496         for credits and details.  Thanks to Kaveh Ghazi for helping
91497         to keep these files in sync.
91498         (ARRAY_SIZE): Define it.
91499         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
91500         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
91501         (memcasecmp): Don't assume size_t fits in unsigned int.
91502         Remove casts and duplicate code.
91503         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
91504         (memcpy): Remove definition.
91505         Merge in some clean-up and optimization changes from glibc.
91506         [BLOCKSIZE]: Move definition to top of file.
91507         Ensure that it is a multiple of 64.
91508         Rearrange loop exit tests so as to avoid performing an
91509         additional fread after encountering an error or EOF.
91510         * lib/md5.h (md5_uintptr): Define.
91511         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
91512         return to the initial working directory.  Preserve errno
91513         for caller.
91514         * lib/idcache.c: Include "xalloc.h".
91515         (xmalloc, xrealloc): Remove decls.
91516         (getuser): Remove casts no longer required in C89.
91517         * lib/human.c: Include stdio.h, for sprintf.
91518         * lib/group-member.c: Include "xalloc.h".
91519         (xmalloc, xrealloc): Remove decls.
91520         (get_group_info): Remove casts no longer required in C89.
91521         * lib/getusershell.c (readname): Remove casts no longer required in
91522         C89.
91523         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
91524         * lib/getline.c: Whitespace fix, from coreutils.
91525
91526 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91527
91528         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
91529         Check for isascii.
91530
91531         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
91532         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
91533         Undo previous (whitespace-only) change.
91534
91535 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91536
91537         * lib/exclude.c: Include <ctype.h>
91538         (IN_CTYPE_DOMAIN): New macro.
91539         (is_space): New fn.
91540         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
91541         and empty lines.
91542
91543         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
91544         Undo previous (whitespace-only) change.
91545
91546 2003-08-13  Paul Eggert  <eggert@twinsun.com>
91547
91548         * config/srclist-update: Change update back to the old behavior,
91549         leaving whitespace alone.  Use one 'sed' command rather than a
91550         pipeline.
91551         (fixlicense): Now a variable, not a function.
91552         (remove_trailing_blanks): Remove.
91553         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
91554         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
91555         Undo previous (whitespace-only) change.
91556
91557 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91558
91559         Merge from coreutils.
91560         * modules/euidaccess: Add lib_SOURCES, include for new
91561         file euidaccess.h
91562
91563 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91564
91565         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
91566         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
91567         Normalize leading white space and remove trailing white space.
91568
91569         Merge from coreutils
91570         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
91571
91572         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
91573         0.12.1.  These files are now being upgraded automatically by
91574         ../config/srclist-update.
91575
91576 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91577
91578         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
91579         Normalize leading white space and remove trailing white space.
91580         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
91581         notice, as per ../config/srclist-update.
91582
91583         Merge from coreutils.
91584         * lib/euidaccess.h: New file.
91585         * lib/euidaccess.c: Include it.
91586         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
91587         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
91588         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
91589
91590 2003-08-12  Paul Eggert  <eggert@twinsun.com>
91591
91592         * config/srclist-update: Add copyright notice.
91593         (remove_id_lines, remove_trailing_blanks): New constants.
91594         (fixfile): Use them to normalize spacing a bit in copied files.
91595         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
91596         Normalize leading white space and remove trailing white space.
91597
91598         * config/texinfo.tex: Sync with texinfo.
91599
91600         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
91601         strtoul.c from libc, to merge coreutils whitespace changes.
91602
91603         * config/srclist.txt: Get the following m4 files from gettext:
91604         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
91605         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
91606         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
91607         wint_t.m4.
91608
91609 2003-08-12  Karl Berry  <karl@gnu.org>
91610
91611         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
91612         been made.
91613
91614 2003-08-11  Paul Eggert  <eggert@twinsun.com>
91615
91616         * modules/gnu-source, m4/gnu-source.m4:
91617         Remove; we're assuming Autoconf 2.54 or later now.
91618         Suggested by Bruno Haible.
91619         * MODULES.html.sh (func_all_modules): Remove gnu-source.
91620
91621 2003-08-11  Bruno Haible  <bruno@clisp.org>
91622
91623         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
91624
91625 2003-08-11  Bruno Haible  <bruno@clisp.org>
91626
91627         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
91628         (vasnprintf): Use it instead of wcslen.
91629
91630 2003-08-11  Bruno Haible  <bruno@clisp.org>
91631
91632         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
91633         value to ensure that _Bool promotes to int. Use #define for _Bool when
91634         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
91635
91636 2003-08-10  Karl Berry  <karl@gnu.org>
91637
91638         * lib/regex.h: update from libc (whitespace fix).
91639
91640 2003-08-09  Paul Eggert  <eggert@twinsun.com>
91641
91642         Merge some files from coreutils.  These changes were
91643         originally made by Jim Meyering.
91644         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
91645         many older Unixes require this.
91646         * lib/alloca.c (alloca): Remove cast to argument of free;
91647         no longer needed in C89.
91648         * lib/alloca_.h, regex.h: Fix white space to match
91649         what GNU indent does.
91650
91651 2003-08-09  Paul Eggert  <eggert@twinsun.com>
91652
91653         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
91654         apparently Emacs's Unicode mode got confused before my 2003-08-05
91655         checkin.
91656
91657 2003-08-08  Paul Eggert  <eggert@twinsun.com>
91658
91659         * m4/extensions.m4: New file.
91660         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
91661         Require gl_USE_SYSTEM_EXTENSIONS.
91662         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
91663         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
91664
91665 2003-08-08  Paul Eggert  <eggert@twinsun.com>
91666
91667         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
91668         * modules/extensions, modules/gnu-source: New files.
91669         * modules/timespec, modules/unlocked-io: Depend on extensions.
91670
91671 2003-08-07  Paul Eggert  <eggert@twinsun.com>
91672
91673         * modules/restrict: New file.
91674         * MODULES.html.sh (func_all_modules): Add restrict.
91675         * modules/regex: Depend on restrict.
91676
91677 2003-08-07  Paul Eggert  <eggert@twinsun.com>
91678
91679         * m4/restrict.m4: New file.
91680         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
91681
91682 2003-08-07  Bruno Haible  <bruno@clisp.org>
91683
91684         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
91685         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
91686
91687 2003-08-07  Bruno Haible  <bruno@clisp.org>
91688
91689         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
91690         makes the module 'getndelim2' compatible with the module 'getline'.
91691
91692 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91693
91694         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
91695         byte with "\201" to avoid glitches when editing that source file
91696         with multi-gnome-terminal.
91697
91698 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91699
91700         * lib/bumpalloc.h: Remove.
91701
91702 2003-08-05  Paul Eggert  <eggert@twinsun.com>
91703
91704         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
91705         * modules/bumpalloc: Remove.
91706
91707 2003-08-04  Paul Eggert  <eggert@twinsun.com>
91708
91709         * lib/getloadavg.c: Change copyright notice and spacing to conform to
91710         GNU coding style.
91711
91712         Merge from coreutils.
91713         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
91714         1. From glibc.
91715         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
91716         from Karl Berry, implemented by Jim Meyering.
91717         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
91718         from Dmitry V. Levin.
91719         Remove anachronistic cast of xrealloc.
91720         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
91721         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
91722         type. Otherwise, it wouldn't compile with at least /bin/cc on
91723         ymp-cray-unicos9.0.2.X.
91724         Combine two mostly-identical uses of alloca into one.
91725         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
91726
91727 2003-08-04  Dave Love  <d.love@dl.ac.uk>
91728
91729         [From Emacs.]
91730
91731         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
91732         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
91733         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
91734         obsolete NLIST_NAME_UNION.
91735         [__GNU__]: Undef BSD and FSCALE.
91736         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
91737
91738 2003-08-03  Paul Eggert  <eggert@twinsun.com>
91739
91740         * lib/stdbool_.h (_Bool): Make it signed char, instead of
91741         an enum type, so that it's guaranteed to promote to int.  See:
91742         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
91743
91744 2003-08-03  Karl Berry  <karl@gnu.org>
91745
91746         * config/depcomp: update from automake.
91747
91748 2003-07-31  Paul Eggert  <eggert@twinsun.com>
91749
91750         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
91751         (strerror): Don't assume that a printable int fits in 14 bytes.
91752
91753 2003-07-31  Bruno Haible  <bruno@clisp.org>
91754
91755         * modules/getpass-gnu: New file.
91756         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
91757
91758 2003-07-31  Bruno Haible  <bruno@clisp.org>
91759
91760         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
91761
91762 2003-07-24  Karl Berry  <karl@gnu.org>
91763
91764         * config/missing: update from automake.
91765
91766 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
91767             Bruno Haible  <bruno@clisp.org>
91768
91769         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
91770         * lib/getline.c (getline, getdelim): Likewise.
91771         Remove _GNU_SOURCE define; now it's defined in config.h through
91772         m4/getline.m4.
91773
91774 2003-07-23  Karl Berry  <karl@gnu.org>
91775
91776         * config/config.sub: update from prep.
91777
91778 2003-07-22  Paul Eggert  <eggert@twinsun.com>
91779
91780         * modules/xalloc (Depends-on): Add exitfail.
91781         * modules/xmemcoll: Likewise.
91782
91783 2003-07-22  Paul Eggert  <eggert@twinsun.com>
91784
91785         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
91786         over-parenthesization in macros.
91787
91788         Sync with coreutils.
91789
91790         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
91791         required by C99.
91792
91793         Use `exit_failure' for xalloc and xmemcoll instead of their own
91794         private exit-failure variables.
91795         * lib/xalloc.h (xalloc_exit_failure): Remove.
91796         * lib/xmalloc.c: Likewise.  Include exitfail.h.
91797         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
91798         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
91799         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
91800         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
91801
91802 2003-07-20  Jim Meyering  <jim@meyering.net>
91803
91804         * modules/closeout (Depends-on): Add exitfail.
91805         Suggestion from Bruno Haible.
91806
91807 2003-07-19  Karl Berry  <karl@gnu.org>
91808
91809         * config/config.sub: update from prep.
91810
91811 2003-07-18  Paul Eggert  <eggert@twinsun.com>
91812
91813         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
91814         Remove.
91815         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
91816         to test that it can stand by itself.  Include "exitfail.h".
91817         Clients should set exit_failure instead.
91818         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
91819
91820 2003-07-18  Bruno Haible  <bruno@clisp.org>
91821
91822         * modules/getndelim2: New file.
91823         * modules/getline: Share files with module getndelim2.
91824         * modules/getnline: Depend on getndelim2 instead of sharing files with
91825         it. Add getnline.c to lib_SOURCES.
91826         * MODULES.html.sh (func_all_modules): Add getndelim2.
91827
91828 2003-07-18  Bruno Haible  <bruno@clisp.org>
91829
91830         * m4/getndelim2.m4: New file.
91831         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
91832         invoke gl_PREREQ_GETNDELIM2.
91833         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
91834         gl_PREREQ_GETNDELIM2.
91835         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
91836         gl_GETNDELIM2.
91837
91838 2003-07-18  Bruno Haible  <bruno@clisp.org>
91839
91840         * lib/getndelim2.h: New file.
91841         * lib/getndelim2.c: Make into a module of its own. Include config.h,
91842         getndelim2.h.
91843         (getndelim2): Make non-static. Change return type to ssize_t.
91844         * lib/getline.h: Change argument names.
91845         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
91846         * lib/getnline.c: Include getndelim2.h.
91847
91848 2003-07-18  Andreas Schwab  <schwab@suse.de>
91849
91850         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
91851
91852 2003-07-17  Karl Berry  <karl@gnu.org>
91853
91854         * config/config.sub: update from prep.
91855
91856 2003-07-17  Bruno Haible  <bruno@clisp.org>
91857
91858         * modules/getnline: New file.
91859         * modules/getline: Add lib/getndelim2.c to source file list.
91860         * MODULES.html.sh (func_all_modules): Add getnline.
91861
91862 2003-07-17  Bruno Haible  <bruno@clisp.org>
91863
91864         * m4/getnline.m4: New file.
91865
91866 2003-07-17  Bruno Haible  <bruno@clisp.org>
91867
91868         * m4/Makefile.am.in: Remove file.
91869         * m4/Makefile.am: Remove file.
91870         * m4/Makefile.in: Remove file.
91871
91872 2003-07-17  Bruno Haible  <bruno@clisp.org>
91873
91874         * lib/getnline.h: New file.
91875         * lib/getnline.c: New file.
91876         * lib/getndelim2.c: New file, extracted from getline.c.
91877         (getndelim2): Renamed from getdelim2, with added nmax argument.
91878         * lib/getline.c: Include getndelim2.c.
91879         (getdelim2): Moved out to getndelim2.c.
91880         (getline, getdelim): Update.
91881
91882 2003-07-17  Bruno Haible  <bruno@clisp.org>
91883
91884         * lib/Makefile.am: Remove file.
91885         * lib/Makefile.in: Remove file.
91886
91887 2003-07-17  Bruno Haible  <bruno@clisp.org>
91888
91889         * configure.in: Remove file.
91890         * Makefile.in: Remove file.
91891
91892 2003-07-17  Bruno Haible  <bruno@clisp.org>
91893
91894         * MODULES.html.sh: Put the </BODY> right before </HTML>.
91895
91896 2003-07-16  Karl Berry  <karl@gnu.org>
91897
91898         * config/srclist-update: was running fixlicense twice, which caused
91899                 texinfo.tex to be nullified for some reason.  Simplify,
91900                 $gplsrc is no longer needed as far as I can see?
91901
91902 2003-07-16  Jim Meyering  <jim@meyering.net>
91903
91904         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
91905
91906 2003-07-15  Paul Eggert  <eggert@twinsun.com>
91907
91908         * config/srclist.txt: Get the following files from gettext-runtime/intl
91909         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
91910         ref-del.sin.  From Bruno Haible.
91911         * config/srclist-update (fixfile): Change grep pattern again, since the
91912         previous fix didn't work (there was another trailing $).  Use
91913         '[$]' to escape the $s.
91914
91915 2003-07-15  Karl Berry  <karl@gnu.org>
91916
91917         * lib/vasnprintf.c: update from gettext.
91918
91919 2003-07-15  Karl Berry  <karl@gnu.org>
91920
91921         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
91922         gets expanded when surrounded by '$'.
91923
91924 2003-07-15  Jim Meyering  <jim@meyering.net>
91925
91926         * modules/save-cwd: Don't depend on error.  From Derek Price.
91927
91928 2003-07-15  Jim Meyering  <jim@meyering.net>
91929
91930         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
91931
91932 2003-07-14  Simon Josefsson  <jas@extundo.com>
91933
91934         * modules/mempcpy: New file.
91935         * MODULES.html.sh (func_all_modules): Add mempcpy.
91936
91937 2003-07-14  Simon Josefsson  <jas@extundo.com>
91938
91939         * m4/mempcpy.m4: New file.
91940
91941 2003-07-14  Simon Josefsson  <jas@extundo.com>
91942
91943         * lib/mempcpy.h: New file.
91944         * lib/mempcpy.c: New file.
91945
91946 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91947
91948         * modules/getdate, modules/posixtm: Depend on mktime.
91949
91950 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91951
91952         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
91953         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
91954         unicodeio.c, unicodeio.h, unlocked-io.h:
91955         Switch from LGPL to GPL.
91956
91957 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91958
91959         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
91960         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
91961         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
91962         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
91963         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
91964         updated automatically by ../config/srclist-update.  This changes
91965         their license from LPGL to GPL.
91966
91967 2003-07-14  Paul Eggert  <eggert@twinsun.com>
91968
91969         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
91970         assumed to refer to the root of the most recent stable gettext version.
91971         * config/srclistvars.sh: Add defaults for eggert.
91972         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
91973         Match "This program" as well as "The program".  This is needed
91974         for gettext.
91975
91976 2003-07-14  Jim Meyering  <jim@meyering.net>
91977
91978         Don't emit diagnostics.  Let callers do that.
91979         * lib/save-cwd.c: Don't include "error.h".
91980         (save_cwd): Don't call error.  Ensure that errno is valid
91981         when returning nonzero.
91982
91983         * lib/save-cwd.h (restore_cwd): Update prototype.
91984         * lib/save-cwd.c (restore_cwd): Remove two parameters.
91985         Simplify.  Don't call error upon failure.  Let callers do that.
91986         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
91987         when auditing is enabled.  But don't bother updating the #if.
91988
91989 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
91990
91991         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
91992         it breaks C++ compilation.
91993         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
91994
91995 2003-07-10  Simon Josefsson  <jas@extundo.com>
91996
91997         * modules/strchrnul (Makefile.am): Add strchrnul.h.
91998
91999 2003-07-10  Jim Meyering  <jim@meyering.net>
92000
92001         * m4/clock_time.m4: Remove trailing blank.
92002         * m4/intmax_t.m4: Likewise.
92003
92004 2003-07-10  Jim Meyering  <jim@meyering.net>
92005
92006         * lib/vasnprintf.c: Remove trailing blanks.
92007         Make cpp indentation consistent.
92008
92009 2003-07-09  Paul Eggert  <eggert@twinsun.com>
92010
92011         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
92012         posixver.c, strftime.c, strnlen.c, strverscmp.c:
92013         Switch from LGPL to GPL.
92014
92015 2003-07-09  Paul Eggert  <eggert@twinsun.com>
92016
92017         * config/srclist.txt: Sort sublists.  Add
92018         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
92019         that differ from gnulib for one reason or another; we'd like this list
92020         to be smaller but for now let's document what we have.
92021
92022 2003-07-08  Paul Eggert  <eggert@twinsun.com>
92023
92024         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
92025         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
92026         and sweeter "eval x=$x".
92027         * config/srclist.txt: Get lib/argp* from glibc.
92028
92029 2003-07-07  Paul Eggert  <eggert@twinsun.com>
92030
92031         * lib/mktime.c: Fix some boundary cases and remove need for floating
92032         point.
92033
92034         Issue a compile-time diagnostic if time_t is floating point, or if
92035         two's complement arithmetic is not in effect, or if arithmetic
92036         right shift does not propagate the sign.  These assumptions were
92037         all in the original code but they weren't checked.
92038
92039         (TIME_T_MIDPOINT, verify): New macros.
92040         (__isleap): Remove; it has integer overflow problems.
92041         (leapyear): New function, without those problems.
92042         (ydhms_tm_diff): Remove; splitting into two parts.
92043         (ydhms_diff): New function, containing the arithmetic part of
92044         the old ydhms_tm_diff function.  Issue a compile-time
92045         diagnostic if we are not using C99 integer division.
92046         Avoid casts when possible.
92047         (guess_time_tm): New function, containing the checking part of
92048         the old ydhms_tm_diff function.  Return the new value, rather than
92049         the difference between it and the old.  Accept a new argument T
92050         so that *T specifies the old value.  Check for overflow in the result.
92051
92052         (__mktime_internal): Use a time_t offset, not a long int offset.
92053         This undoes the 2003-06-04 change, which is no longer needed now
92054         that we have better overflow checking.
92055         (localtime_offset): Likewise.
92056
92057         (__mktime_internal): Avoid harmful overflow on hosts where time_t
92058         and long are 64-bit but int is only 32-bit.
92059         (ydhms_diff): Use long int to store year1 and yday1.
92060         Issue a compile-time diagnostic if long int is not wide enough.
92061
92062         (__mktime_internal): Use long int to store adjusted year and yday.
92063         Use plain C rather than preprocessor commands, if that doesn't
92064         affect efficiency.
92065         Check for overflow (and try to repair) after each probe
92066         rather than checking only at the very end.  This avoids some bugs
92067         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
92068         does not equal GMT offset at maximum time).
92069         Use integer to check for overflow rather than floating point; this
92070         is more portable to non-IEEE hosts, and is a tad faster.
92071         When we detect that we are oscillating between two values,
92072         don't check whether tm_isdst has the requested value, since
92073         we already know the answer.  When tm_isdst has the wrong value,
92074         use a different heuristic to find the right one, based on the
92075         extreme values actually observed in practice in tz2003a,
92076         rather than the (overly optimistic) "previous 3 calendar quarters".
92077
92078         (not_equal_tm, print_tm, check_result): Use "const T" rather than
92079         "T const" to accommodate glibc style.
92080         (check_result): Use less-confusing report format.  "long" -> "long int.
92081         (main): Likewise.
92082         Don't loop if the iteration overflows time_t.
92083         Allow a negative step in the iteration.
92084
92085 2003-07-06  Karl Berry  <karl@gnu.org>
92086
92087         * config/depcomp: update from automake.
92088         * config/config.sub: update from prep.
92089
92090 2003-07-03  Karl Berry  <karl@gnu.org>
92091
92092         * config/config.guess: update from prep.
92093
92094 2003-07-01  Paul Eggert  <eggert@twinsun.com>
92095
92096         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
92097         xreadlink.c now includes it unconditionally.
92098
92099 2003-07-01  Paul Eggert  <eggert@twinsun.com>
92100
92101         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
92102         having it depend on HAVE_SYS_TYPES_H.
92103
92104 2003-07-01  Bruno Haible  <bruno@clisp.org>
92105
92106         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
92107         <sys/types.h> should be sufficient.
92108         Reported by Paul Eggert.
92109
92110 2003-06-26  Karl Berry  <karl@gnu.org>
92111
92112         * config/depcomp: update from automake.
92113
92114 2003-06-26  Bruno Haible  <bruno@clisp.org>
92115
92116         * modules/human: Depend on module stdbool.
92117
92118 2003-06-25  Bruno Haible  <bruno@clisp.org>
92119
92120         * modules/readlink: New file.
92121         * modules/xreadlink: Depend on it.
92122         * MODULES.html.sh (func_all_modules): Add readlink.
92123
92124 2003-06-25  Bruno Haible  <bruno@clisp.org>
92125
92126         * m4/readlink.m4: New file.
92127
92128 2003-06-25  Bruno Haible  <bruno@clisp.org>
92129
92130         * lib/readlink.c: New file.
92131
92132 2003-06-22  Karl Berry  <karl@gnu.org>
92133
92134         * config/srclist.txt: update mkinstalldirs from automake.
92135         * config/mkinstalldirs: update.
92136
92137 2003-06-22  Bruno Haible  <bruno@clisp.org>
92138
92139         Portability to mingw32.
92140         * m4/ssize_t.m4: New file, from GNU gettext.
92141         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
92142         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
92143
92144 2003-06-22  Bruno Haible  <bruno@clisp.org>
92145
92146         * modules/safe-read: Add m4/ssize_t.m4.
92147         * modules/xreadlink: Add m4/ssize_t.m4.
92148
92149 2003-06-20  Bruno Haible  <bruno@clisp.org>
92150
92151         Assume C89, so PARAMS isn't needed.
92152         * lib/unicodeio.h (PARAMS): Remove.
92153         * lib/unicodeio.c: Don't use PARAMS.
92154
92155 2003-06-18  Karl Berry  <karl@gnu.org>
92156
92157         * config/config.{guess,sub}: update from prep.
92158
92159 2003-06-18  Jim Meyering  <jim@meyering.net>
92160
92161         Merge changes from coreutils.
92162         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
92163         Remove explicit declarations of xmalloc and realloc.
92164         Include xalloc.h.
92165         (read_utmp): Remove anachronistic cast of xmalloc.
92166
92167 2003-06-17  Paul Eggert  <eggert@twinsun.com>
92168
92169         Assume C89, so PARAMS isn't needed.
92170         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
92171         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
92172         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
92173         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
92174         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
92175         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
92176         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
92177         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
92178         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
92179         lib/xstrtod.h, lib/xstrtol.h: Likewise.
92180         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
92181         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
92182         no longer needed. Anyway, config.h should always be included before any
92183         other file.
92184
92185 2003-06-11  Simon Josefsson  <jas@extundo.com>
92186
92187         * modules/sysexits: New file.
92188         * MODULES.html.sh (func_all_modules): Add sysexits.
92189
92190 2003-06-11  Simon Josefsson  <jas@extundo.com>
92191
92192         * lib/sysexit_.h: New file.
92193
92194 2003-06-11  Derek Price  <derek@ximbiot.com>
92195
92196         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
92197         necessary.
92198
92199 2003-06-11  Bruno Haible  <bruno@clisp.org>
92200
92201         * m4/sysexits.m4: New file.
92202
92203 2003-06-10  Simon Josefsson  <jas@extundo.com>
92204
92205         * lib/argp.h: New file, from glibc.
92206         * lib/argp-ba.c: New file, from glibc.
92207         * lib/argp-eexst.c: New file, from glibc.
92208         * lib/argp-fmtstream.c: New file, from glibc.
92209         * lib/argp-fmtstream.h: New file, from glibc.
92210         * lib/argp-fs-xinl.c: New file, from glibc.
92211         * lib/argp-help.c: New file, from glibc.
92212         * lib/argp-namefrob.h: New file, from glibc.
92213         * lib/argp-parse.c: New file, from glibc.
92214         * lib/argp-pv.c: New file, from glibc.
92215         * lib/argp-pvh.c: New file, from glibc.
92216         * lib/argp-xinl.c: New file, from glibc.
92217
92218 2003-06-10  Simon Josefsson  <jas@extundo.com>
92219
92220         * modules/strchrnul: New file.
92221
92222 2003-06-10  Simon Josefsson  <jas@extundo.com>
92223
92224         * modules/argp: New file.
92225
92226 2003-06-10  Simon Josefsson  <jas@extundo.com>
92227
92228         * m4/strchrnul.m4: New file.
92229
92230 2003-06-10  Simon Josefsson  <jas@extundo.com>
92231
92232         * lib/strchrnul.h: New file.
92233         * lib/strchrnul.c: New file.
92234
92235 2003-06-10  Bruno Haible  <bruno@clisp.org>
92236
92237         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
92238
92239 2003-06-07  Karl Berry  <karl@gnu.org>
92240
92241         * config/config.{guess,sub}: update from prep.
92242
92243 2003-06-07  Jim Meyering  <jim@meyering.net>
92244
92245         * modules/strtod: Use $(...) notation, not @...@ for
92246         AC_REPLACE'd variables.
92247         * modules/localcharset: Likewise.
92248
92249 2003-06-07  Jim Meyering  <jim@meyering.net>
92250
92251         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
92252         in place of my name in the copyright comment.
92253         Remove definition and uses of __P.
92254
92255         From coreutils.
92256         * lib/stat.c: Don't declare xmalloc explicitly.
92257         Instead, include "xalloc.h".
92258         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
92259         xrealloc, and xcalloc return values.
92260         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
92261         Improve comment.
92262         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
92263
92264 2003-06-07  Bruno Haible  <bruno@clisp.org>
92265
92266         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
92267         avoid AC_CONFIG_LINKS.
92268         * modules/fnmatch (Makefile.am): Use explicit creation rule for
92269         fnmatch.h, to avoid AC_CONFIG_LINKS.
92270         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
92271
92272 2003-06-07  Bruno Haible  <bruno@clisp.org>
92273
92274         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
92275         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
92276         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
92277         directory.
92278         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
92279         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
92280         directory.
92281
92282 2003-06-06  Jim Meyering  <jim@meyering.net>
92283
92284         Merge from coreutils.
92285         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
92286         Consolidate declarations and initializations of *_base* locals.
92287
92288         Merge from coreutils.
92289         This avoids a core dump on systems without GNU putenv,
92290         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
92291         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
92292         (unsetenv): New static function, from GNU libc.
92293         (rpl_putenv): Use it.
92294
92295         * lib/modechange.c: Remove trailing blanks.
92296
92297         Merge from coreutils.
92298         * lib/fsusage.c: Remove declaration of statfs.
92299         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
92300
92301         * lib/posixtm.c: Include <stdbool.h> unconditionally.
92302
92303 2003-06-06  Jim Meyering  <jim@meyering.net>
92304
92305         * lib/stdbool_.h: Renamed from stdbool.h.in.
92306
92307 2003-06-06  Jim Meyering  <jim@meyering.net>
92308             Bruno Haible  <bruno@clisp.org>
92309
92310         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
92311         Adjust Makefile.am snippet not to redirect directly to target.
92312         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
92313
92314 2003-06-05  Paul Eggert  <eggert@twinsun.com>
92315
92316         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
92317         mismatch, look in future quarters as well as past.  This fixes a
92318         bug when processing fall-backwards gaps immediately after a long
92319         period of daylight-saving time.
92320
92321         * lib/mktime.c: Assume freestanding C89 or better.
92322         (HAVE_LIMITS_H): Remove.  Assume it's 1.
92323         (__P): Remove; not used.
92324         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
92325         (mktime, not_equal_tm, print_tm, check_result,
92326         main): Use prototypes.  Use const * where appropriate.
92327         (main): Fix typo in testing code that uncovered by above changes.
92328         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
92329
92330 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92331
92332         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
92333         locale.h, localeconv.  This merges changes from coreutils.
92334
92335         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
92336         It can be removed after the next Autoconf is released.
92337         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
92338         needed.
92339
92340 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92341
92342         * lib/mktime.c: Fix Debian bug 177940
92343         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
92344         (localtime_offset): Now long int, not time_t, because we want it
92345         to be guaranteed to be signed.  All uses changed.
92346         (__mktime_internal): If overflow would occur when adding offset,
92347         don't add it.
92348
92349         Merge 'human' changes from coreutils.  Rewrite to support
92350         locale-specific notations like thousands separators.
92351         * lib/human.c: Simplify authorship notice.
92352         Include human.h immediately after config.h.
92353         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
92354         <limits.h>: Do not include, since human.h does.
92355         (SIZE_MAX, UINTMAX_MAX): New macros.
92356         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
92357         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
92358         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
92359         (power_letter): Renamed from suffixes.
92360         (generate_suffix_backwards): Remove.
92361         (adjust_value): Now takes int style (because of human.h changes)
92362         and long double value (for greater precision on some platforms).
92363         (group_number): New function.
92364         (human_readable): Use it.  Use integer options, not enum.
92365         Put the options before the sizes in the arg list.
92366         Support all the new options.
92367         The old human_readable function has been removed;
92368         use inttostr.h instead.
92369         (human_readable, default_block_size, humblock):
92370         Use uintmax_t, not int, for block sizes.
92371         (human_readable_inexact, block_size_types): Remove.
92372         (block_size_opts): New constant.
92373         (human_options): Renamed from human_block_size, with new signature
92374         that allows block sizes up to UINTMAX_MAX.  All callers changed.
92375         * lib/human.h: Add copyright and authorship notice.
92376         Include <limits.h> and <stdbool.h> unconditionally.
92377         (PARAMS): Remove.  All uses removed.
92378         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
92379         (enum human_inexact_style): Remove tag; now a nameless enum.
92380         (human_floor, human_ceiling, human_round_to_even): Now have
92381         values 2, 0, 1 rather than -1, 1, 0.
92382         (human_group_digits, human_suppress_point_zero, human_autoscale,
92383         human_base_1024, human_SI, human_B): New constants.
92384         (human_readable_inexact, human_block_size): Remove.
92385         (human_readable): Size args are now uintmax_t, not int.
92386         (human_options): New decl.
92387
92388         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
92389         unnecessary now that we assume C89 or better.  This change
92390         imported from coreutils.
92391
92392         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
92393         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
92394         in the 2003-05-30 sync from glibc.
92395
92396         .h files should stand alone, but we shouldn't include <sys/types.h>
92397         if we can get away with just <stddef.h>.
92398
92399         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
92400         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
92401         rather than <sys/types.h>, as we merely need size_t.
92402         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
92403         to get size_t.
92404         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
92405         Include <stdio.h>, to get FILE.
92406         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
92407         memcasecmp.h has included <stddef.h> and all we need is size_t.
92408         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
92409         our interface, instead of including <sys/types.h>
92410
92411 2003-06-04  Paul Eggert  <eggert@twinsun.com>
92412
92413         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
92414         now, as glibc mktime is buggy on non-glibc systems.
92415
92416 2003-06-03  Karl Berry  <karl@gnu.org>
92417
92418         * config/config.sub: update from prep.
92419
92420 2003-06-02  Paul Eggert  <eggert@twinsun.com>
92421
92422         [from coreutils]
92423         Fix some minor time-related bugs with POSIX time arguments.
92424         Some valid time stamps were being rejected (notably -1, and
92425         time stamps before 1900 on 64-bit hosts).  And some invalid
92426         time stamps were being accepted, e.g. September 31.
92427
92428         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
92429         that we can return (time_t) -1 successfully.
92430         * lib/posixtm.c: Likewise.
92431         [HAVE_STDBOOL_H]: Include <stdbool.h>.
92432         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
92433         (t): Remove static var.
92434         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
92435         of static var.  All uses changed.
92436         (year): Do not reject years before 1900; they can occur with
92437         64-bit time_t.
92438         (posix_time_parse): Do not check for out-of-range components;
92439         that is now the caller's responsibility, since our checks were
92440         only approximations.
92441         (posixtime): Use mktime to check for out-of-range components,
92442         since it knows them exactly.
92443         If mktime returns (time_t) -1, check whether an error actually occurred
92444         by invoking localtime on -1.
92445         (main) [TEST_POSIXTIME]: Check for input data errors, and report
92446         posixtime failures better.
92447         Improve the test data (in comments only).
92448
92449 2003-06-02  Karl Berry  <karl@gnu.org>
92450
92451         * config/mkinstalldirs (version): new variable.
92452         (--version): new option.
92453         (usage): improve message.
92454
92455 2003-05-30  Karl Berry  <karl@gnu.org>
92456
92457         * lib/mktime.c: update from libc.
92458
92459 2003-05-30  Bruno Haible  <bruno@clisp.org>
92460
92461         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
92462         * config/config.rpath: Upgrade to gettext-0.12.1.
92463
92464 2003-05-30  Bruno Haible  <bruno@clisp.org>
92465
92466         * m4/gettext.m4: Upgrade to gettext-0.12.1.
92467         * m4/nls.m4: New file, from gettext-0.12.1.
92468         * m4/po.m4: New file, from gettext-0.12.1.
92469         * m4/progtest.m4: Upgrade to gettext-0.12.1.
92470
92471 2003-05-30  Bruno Haible  <bruno@clisp.org>
92472
92473         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
92474         * lib/localcharset.h: Likewise.
92475         * lib/localcharset.c: Likewise.
92476
92477 2003-05-29  Karl Berry  <karl@gnu.org>
92478
92479         * config/config.rpath: update from gettext.
92480
92481 2003-05-28  Paul Eggert  <eggert@twinsun.com>
92482
92483         Assume the headers required for C89 freestanding compilers.
92484         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
92485         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
92486         * m4/human.m4 (gl_HUMAN): Likewise.
92487         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
92488         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
92489         * m4/userspec.m4 (gl_USERSPEC): Likewise.
92490         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
92491         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
92492         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
92493
92494 2003-05-28  Paul Eggert  <eggert@twinsun.com>
92495
92496         Assume the headers required for C89 freestanding compilers.
92497         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
92498         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
92499         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
92500         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
92501         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
92502         define, since <limits.h> is guaranteed to do that.
92503         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
92504         * lib/exclude.c: Include <stdbool.h> unconditionally.
92505         * lib/tempname.c: Include <stddef.h> unconditionally.
92506         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
92507         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
92508         <stddef.h> does that.
92509         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
92510         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
92511         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
92512         needed.
92513         * lib/xstrtol.c: Likewise.
92514         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
92515         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
92516
92517         * lib/addext.c (addext): Use assignment rather than cast, to avoid
92518         warnings on some platforms.
92519
92520         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
92521         arbitrarily.
92522
92523 2003-05-26  Jim Meyering  <jim@meyering.net>
92524
92525         Merge in a change from coreutils:
92526         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
92527         that is guaranteed to be `no'.  Use `no_such_member' to indicate
92528         that condition, rather than `-1' which is slightly misleading.
92529         Change the name of the cache variable to have the gl_ prefix.
92530         Prompted by a patch from Richard Dawe for DJGPP.
92531
92532 2003-05-24  Karl Berry  <karl@gnu.org>
92533
92534         * config/config.guess: update from prep.
92535
92536 2003-05-22  Karl Berry  <karl@gnu.org>
92537
92538         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
92539
92540 2003-05-20  Karl Berry  <karl@gnu.org>
92541
92542         * config/config.guess: update from prep.
92543
92544 2003-05-18  Karl Berry  <karl@gnu.org>
92545
92546         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
92547         might actually be set by the user.
92548
92549         * config/depcomp, install-sh, mdate-sh: update from automake.
92550
92551 2003-05-17  Bruno Haible  <bruno@clisp.org>
92552
92553         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
92554         invalid expansion for AC_EGREP_CPP.
92555         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
92556         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
92557         Suggested by Akim Demaille <akim@epita.fr> in
92558         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
92559
92560 2003-05-12  Jim Meyering  <jim@meyering.net>
92561
92562         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
92563         the space-padded-by-default conversion specifiers, %e, %k, %l.
92564
92565 2003-05-12  Bruno Haible  <bruno@clisp.org>
92566
92567         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
92568         the string is longer than 4 KB.
92569
92570 2003-05-11  Karl Berry  <karl@gnu.org>
92571
92572         * config/config.{guess,sub}: update from prep.
92573
92574 2003-05-09  Bruno Haible  <bruno@clisp.org>
92575
92576         * modules/error: Add m4/strerror_r.m4 to file list.
92577
92578 2003-05-03  Bruno Haible  <bruno@clisp.org>
92579
92580         Upgrade to Unicode-4.0.
92581         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
92582         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
92583         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
92584         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
92585         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
92586         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
92587         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
92588         Change width of U+E0100..U+E01EF from 1 to 0.
92589
92590 2003-04-25  Jim Meyering  <jim@meyering.net>
92591
92592         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
92593         of type size_t, not int.
92594
92595 2003-04-25  Bruno Haible  <bruno@clisp.org>
92596
92597         * lib/copy-file.c: Include <stddef.h>, for size_t.
92598
92599 2003-04-21  Paul Eggert  <eggert@twinsun.com>
92600
92601         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
92602         code which expansion is under static control.  Patch imported from
92603         Akim Demaille's patch to Bison; see
92604         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
92605
92606 2003-04-14  Bruno Haible  <bruno@clisp.org>
92607
92608         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
92609
92610 2003-04-11  Jim Meyering  <jim@meyering.net>
92611
92612         Merge changes from Coreutils.
92613
92614         2003-03-22  Jim Meyering  <jim@meyering.net>
92615
92616         * lib/strftime.c (widen): Cast alloca return value to proper type.
92617
92618         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
92619
92620         From GNU libc.
92621         * lib/strftime.c (my_strftime): Handle very large width
92622         specifications for numeric values correctly.  Improve checks for
92623         overflow.
92624
92625         2003-01-19  Jim Meyering  <jim@meyering.net>
92626
92627         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
92628         definitions.
92629         (nl_get_alt_digit) [! defined my_strftime]: Define.
92630         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
92631         _nl_get_alt_digit and _nl_get_walt_digit.
92632
92633         * lib/strftime.c (my_strftime): Merge in locale-related changes from
92634         libc. These changes have no effect outside of _LIBC.
92635
92636 2003-04-10  Bruno Haible  <bruno@clisp.org>
92637
92638         * modules/findprog: New file.
92639         * MODULES.html.sh (func_all_modules): Add it.
92640
92641 2003-04-10  Bruno Haible  <bruno@clisp.org>
92642
92643         * m4/findprog.m4: New file.
92644         * m4/eaccess.m4: New file.
92645
92646 2003-04-10  Bruno Haible  <bruno@clisp.org>
92647
92648         * lib/findprog.h: New file, from GNU gettext.
92649         * lib/findprog.c: New file, from GNU gettext.
92650
92651 2003-04-05  Jim Meyering  <jim@meyering.net>
92652
92653         Merge changes from Coreutils.
92654
92655         * lib/exclude.h (PARAMS): Remove definition and uses.
92656         * lib/exclude.c: Remove uses of `PARAMS'.
92657
92658         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
92659         Add test-cases for DOS filenames. Declare program_name.
92660         (main): Set up program_name.  Patch by Rich Dawe.
92661
92662         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
92663         error from mntctl.
92664         Use mntctl's return value to drive the entry-processing loop, since
92665         we can't rely on the value of the vmt_length member in the last
92666         entry.  On some systems doing so could result in exhausting
92667         virtual memory.  Based in part on a patch from Mike Jetzer.
92668
92669 2003-04-04  Bruno Haible  <bruno@clisp.org>
92670
92671         * modules/linebreak: New file.
92672         * MODULES.html.sh (func_all_modules): Add it.
92673
92674 2003-04-04  Bruno Haible  <bruno@clisp.org>
92675
92676         * m4/linebreak.m4: New file.
92677
92678 2003-04-04  Bruno Haible  <bruno@clisp.org>
92679
92680         * lib/linebreak.h: New file, from GNU gettext.
92681         * lib/linebreak.c: New file, from GNU gettext with slight
92682         modifications.
92683         * lib/lbrkprop.h: New file, from GNU gettext.
92684
92685 2003-04-03  Bruno Haible  <bruno@clisp.org>
92686
92687         * modules/utf8-ucs4: New file.
92688         * modules/utf16-ucs4: New file.
92689         * modules/ucs4-utf8: New file.
92690         * modules/ucs4-utf16: New file.
92691         * MODULES.html.sh (func_all_modules): Add them.
92692
92693 2003-04-03  Bruno Haible  <bruno@clisp.org>
92694
92695         * m4/utf-ucs4.m4: New file.
92696         * m4/ucs4-utf.m4: New file.
92697
92698 2003-04-03  Bruno Haible  <bruno@clisp.org>
92699
92700         * lib/utf8-ucs4.h: New file, from GNU gettext.
92701         * lib/utf16-ucs4.h: New file, from GNU gettext.
92702         * lib/ucs4-utf8.h: New file, from GNU gettext.
92703         * lib/ucs4-utf16.h: New file, from GNU gettext.
92704
92705 2003-04-02  Bruno Haible  <bruno@clisp.org>
92706
92707         * modules/binary-io: New file.
92708         * MODULES.html.sh (func_all_modules): Add it.
92709
92710 2003-04-02  Bruno Haible  <bruno@clisp.org>
92711
92712         * lib/binary-io.h: New file, from GNU gettext.
92713
92714 2003-04-01  Bruno Haible  <bruno@clisp.org>
92715
92716         * modules/pathname: New file.
92717         * MODULES.html.sh (func_all_modules): Add it.
92718
92719 2003-04-01  Bruno Haible  <bruno@clisp.org>
92720
92721         * lib/pathname.h: New file, from GNU gettext.
92722         * lib/concatpath.c: New file, from GNU gettext.
92723
92724 2003-03-30  Bruno Haible  <bruno@clisp.org>
92725
92726         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
92727
92728 2003-03-30  Bruno Haible  <bruno@clisp.org>
92729
92730         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
92731         function chown() doesn't exist.
92732
92733 2003-03-28  Bruno Haible  <bruno@clisp.org>
92734
92735         * modules/copy-file: New file.
92736         * MODULES.html.sh (func_all_modules): Add it.
92737
92738 2003-03-28  Bruno Haible  <bruno@clisp.org>
92739
92740         * m4/copy-file.m4: New file.
92741
92742 2003-03-28  Bruno Haible  <bruno@clisp.org>
92743
92744         * lib/copy-file.h: New file, from GNU gettext.
92745         * lib/copy-file.c: New file, from GNU gettext.
92746
92747 2003-03-18  Jim Meyering  <jim@meyering.net>
92748
92749         * lib/quote.c (quote_n): Fix typo in comment.
92750
92751 2003-03-18  Bruno Haible  <bruno@clisp.org>
92752
92753         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
92754         checking.
92755         * m4/onceonly_2_57.m4: Likewise.
92756
92757 2003-03-17  Bruno Haible  <bruno@clisp.org>
92758
92759         * m4/onceonly.m4: Require autoconf 2.54 or newer.
92760         (m4_quote): Remove macro.
92761         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
92762
92763 2003-03-14  Jim Meyering  <jim@meyering.net>
92764
92765         Merge changes from Coreutils.
92766         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
92767         to be const, in order to avoid warnings.
92768         (obstack_room): Likewise.
92769         (obstack_empty_p): Likewise.
92770
92771 2003-03-14  Bruno Haible  <bruno@clisp.org>
92772
92773         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
92774         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
92775
92776 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92777
92778         Merge changes from Bison.
92779         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
92780         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
92781         when compiling Bison 1.875's `bitset bset = obstack_alloc
92782         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
92783         * lib/hash.c: Include <stdbool.h> unconditionally.
92784
92785 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92786
92787         * m4/onceonly.m4 (m4_quote): New macro.
92788         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
92789         Quote AC_FOREACH variable-expansions properly.
92790
92791 2003-03-13  Paul Eggert  <eggert@twinsun.com>
92792
92793         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
92794
92795 2003-03-09  Paul Eggert  <eggert@twinsun.com>
92796
92797         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
92798         Reported by Bruce Becker; see:
92799         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
92800
92801 2003-03-03  Paul Eggert  <eggert@twinsun.com>
92802             Bruno Haible  <bruno@clisp.org>
92803
92804         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
92805         Reported by John Hughes, see
92806         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
92807
92808 2003-02-20  Bruno Haible  <bruno@clisp.org>
92809
92810         * MODULES.html.sh (func_all_modules): Add poll.
92811
92812 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92813
92814         * modules/poll: New file.
92815
92816 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92817
92818         * lib/poll_.h: New file.
92819         * lib/poll.c: New file.
92820
92821 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
92822
92823         * m4/poll.m4: New file.
92824
92825 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
92826
92827         * modules/mathl: New file.
92828
92829 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
92830
92831         * lib/mathl.h: New file.
92832         * lib/acosl.c: New file.
92833         * lib/asinl.c: New file.
92834         * lib/atanl.c: New file.
92835         * lib/ceill.c: New file.
92836         * lib/cosl.c: New file.
92837         * lib/expl.c: New file.
92838         * lib/floorl.c: New file.
92839         * lib/frexpl.c: New file.
92840         * lib/ldexpl.c: New file.
92841         * lib/logl.c: New file.
92842         * lib/sincosl.c: New file.
92843         * lib/sinl.c: New file.
92844         * lib/sqrtl.c: New file.
92845         * lib/tanl.c: New file.
92846         * lib/trigl.c: New file.
92847         * lib/trigl.h: New file.
92848
92849 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
92850
92851         * m4/mathl.m4: New file.
92852
92853 2003-02-18  Bruno Haible  <bruno@clisp.org>
92854
92855         * MODULES.html.sh (func_all_modules): Add mathl.
92856
92857 2003-02-17  Bruno Haible  <bruno@clisp.org>
92858
92859         * modules/mkdtemp: New module.
92860         * MODULES.html.sh (func_all_modules): Add it.
92861
92862 2003-02-17  Bruno Haible  <bruno@clisp.org>
92863
92864         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
92865
92866 2003-02-17  Bruno Haible  <bruno@clisp.org>
92867
92868         * lib/mkdtemp.h: New file, from GNU gettext.
92869         * lib/mkdtemp.c: New file, from GNU gettext.
92870
92871 2003-02-02  Jim Meyering  <jim@meyering.net>
92872
92873         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
92874         e.g. glibc-2.2.93.
92875
92876 2003-01-31  Bruno Haible  <bruno@clisp.org>
92877
92878         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
92879         'rpl_rename'.
92880         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
92881         'rpl_strnlen'.
92882         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
92883         'rpl_strtod'.
92884         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
92885         'rpl_utime'.
92886
92887 2003-01-31  Bruno Haible  <bruno@clisp.org>
92888
92889         * lib/rename.c: #undef rename before defining rpl_rename.
92890         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
92891
92892 2003-01-30  Bruno Haible  <bruno@clisp.org>
92893
92894         * modules/vasnprintf, modules/vasprintf: New modules.
92895         * MODULES.html.sh (func_all_modules): Add them.
92896
92897 2003-01-30  Bruno Haible  <bruno@clisp.org>
92898
92899         * m4/signed.m4: New file, from GNU gettext.
92900         * m4/longdouble.m4: New file, from GNU gettext.
92901         * m4/wchar_t.m4: New file, from GNU gettext.
92902         * m4/wint_t.m4: New file, from GNU gettext.
92903         * m4/vasnprintf.m4: New file.
92904         * m4/vasprintf.m4: New file.
92905
92906 2003-01-30  Bruno Haible  <bruno@clisp.org>
92907
92908         * lib/printf-args.h: New file, from GNU gettext.
92909         * lib/printf-args.c: New file, from GNU gettext.
92910         * lib/printf-parse.h: New file, from GNU gettext.
92911         * lib/printf-parse.c: New file, from GNU gettext.
92912         * lib/vasnprintf.h: New file, from GNU gettext.
92913         * lib/vasnprintf.c: New file, from GNU gettext.
92914         * lib/asnprintf.c: New file, from GNU gettext.
92915         * lib/vasprintf.h: New file, from GNU gettext with modifications.
92916         * lib/vasprintf.c: New file, from GNU gettext.
92917         * lib/asprintf.c: New file, from GNU gettext.
92918
92919 2003-01-29  Bruno Haible  <bruno@clisp.org>
92920
92921         * modules/stpncpy: New module.
92922         * MODULES.html.sh (func_all_modules): Add it.
92923
92924 2003-01-29  Bruno Haible  <bruno@clisp.org>
92925
92926         * m4/stpncpy.m4: New file.
92927
92928 2003-01-29  Bruno Haible  <bruno@clisp.org>
92929
92930         * lib/stpncpy.h: New file, from GNU gettext with modifications.
92931         * lib/stpncpy.c: New file, from GNU gettext with modifications.
92932
92933 2003-01-28  Bruno Haible  <bruno@clisp.org>
92934
92935         * modules/c-ctype: New module.
92936         * MODULES.html.sh (func_all_modules): Add it.
92937
92938 2003-01-28  Bruno Haible  <bruno@clisp.org>
92939
92940         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
92941         Paul Eggert.
92942         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
92943         Paul Eggert.
92944
92945 2003-01-27  Bruno Haible  <bruno@clisp.org>
92946
92947         * modules/xsetenv: New module.
92948         * MODULES.html.sh (func_all_modules): Add it.
92949
92950 2003-01-27  Bruno Haible  <bruno@clisp.org>
92951
92952         * lib/xsetenv.h: New file, from GNU gettext.
92953         * lib/xsetenv.c: New file, from GNU gettext.
92954
92955 2003-01-23  Jim Meyering  <jim@meyering.net>
92956
92957         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
92958         from working on systems without dirfd (at least Irix and OSF1/Tru64).
92959
92960 2003-01-23  Bruno Haible  <bruno@clisp.org>
92961
92962         * modules/minmax: New module.
92963         * MODULES.html.sh (func_all_modules): Add it.
92964
92965 2003-01-23  Bruno Haible  <bruno@clisp.org>
92966
92967         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
92968         Eggert.
92969
92970 2003-01-22  Bruno Haible  <bruno@clisp.org>
92971
92972         * modules/exit: New module.
92973         * MODULES.html.sh (func_all_modules): Add it.
92974
92975 2003-01-22  Bruno Haible  <bruno@clisp.org>
92976
92977         * lib/exit.h: New file, from GNU gettext.
92978
92979 2003-01-19  Bruno Haible  <bruno@clisp.org>
92980
92981         * gnulib-tool: Recognize option --extract-maintainer.
92982         (func_get_maintainer): New function.
92983         * modules/*: Add Maintainer entry.
92984
92985 2003-01-16  Jim Meyering  <jim@meyering.net>
92986
92987         * m4/regex.m4: The `regex' struct is both input and output.
92988         Initialize it before each use.  Patch by Tim Waugh.
92989
92990 2003-01-16  Bruno Haible  <bruno@clisp.org>
92991
92992         * MODULES.html.sh: Add a table of contents. Add the module name as
92993         leftmost column. Add hyperlinks.
92994
92995 2003-01-15  Bruno Haible  <bruno@clisp.org>
92996
92997         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
92998
92999 2003-01-15  Bruno Haible  <bruno@clisp.org>
93000
93001         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
93002         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
93003         suffix.
93004
93005 2003-01-15  Bruno Haible  <bruno@clisp.org>
93006
93007         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
93008
93009 2003-01-15  Bruno Haible  <bruno@clisp.org>
93010
93011         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
93012         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
93013
93014 2003-01-14  Jim Meyering  <jim@meyering.net>
93015
93016         * lib/same.c (same_name): Tweak a comment.
93017
93018 2003-01-14  Bruno Haible  <bruno@clisp.org>
93019
93020         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
93021         when a string comparison is sufficient.
93022
93023 2003-01-14  Bruno Haible  <bruno@clisp.org>
93024
93025         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
93026         'unsigned int'.
93027
93028 2003-01-14  Bruno Haible  <bruno@clisp.org>
93029
93030         * lib/hash-pjw.c: Add comment about low quality of this function.
93031
93032 2003-01-13  Bruno Haible  <bruno@clisp.org>
93033
93034         * modules/stpcpy: Distribute lib/stpcpy.h.
93035         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
93036
93037 2003-01-13  Bruno Haible  <bruno@clisp.org>
93038
93039         * modules/*: Add a description.
93040         * modules/strpbrk: Fix Makefile.am snippet.
93041         * modules/strtoimax: Fix dependencies.
93042         * modules/strtoumax: Likewise.
93043
93044 2003-01-13  Bruno Haible  <bruno@clisp.org>
93045
93046         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
93047         * modules/alloca (Makefile.am): All object files depend on alloca.h.
93048         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
93049
93050 2003-01-13  Bruno Haible  <bruno@clisp.org>
93051
93052         * gnulib-tool (func_create_testdir): Store config/* files in the main
93053         directory.
93054         * config.rpath: Move to ...
93055         * config/config.rpath: ... here.
93056         * modules/gettext: Contains config/config.rpath, not config.rpath.
93057         * modules/iconv: Likewise.
93058
93059 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93060
93061         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93062         to avoid collisions with libcurses and libreadline.
93063
93064         * m4/getstr.m4: Remove.
93065         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
93066
93067 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93068
93069         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93070         to avoid collisions with libcurses and libreadline.
93071
93072         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
93073         * lib/getstr.h, getstr.c: Remove.
93074         * lib/getline.c: Include "getline.h", to check interface.
93075         Move body of old getstr.c here: this defines MIN_CHUNK and
93076         declares getdelim2, which is renamed from getstr.
93077         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
93078
93079         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
93080         All uses changed.
93081         * lib/linebuffer.h: Likewise.
93082         (readline): Remove backward-compatibility macro.
93083
93084 2003-01-12  Paul Eggert  <eggert@twinsun.com>
93085
93086         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
93087         to avoid collisions with libcurses and libreadline.
93088         * getstr: Remove.
93089         * MODULES.html.sh: Remove getstr.
93090         * modules/getline: Depend on unlocked-io, not getstr.
93091
93092 2003-01-12  Jim Meyering  <jim@meyering.net>
93093
93094         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
93095
93096 2003-01-10  Bruno Haible  <bruno@clisp.org>
93097
93098         * modules/alloca: Change Makefile.am requirements. Simplify Include
93099         requirements. Add lib/alloca_.h to file list.
93100
93101 2003-01-10  Bruno Haible  <bruno@clisp.org>
93102
93103         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
93104
93105 2003-01-10  Bruno Haible  <bruno@clisp.org>
93106
93107         * lib/alloca_.h: New file.
93108         * lib/getdate.y: Unconditionally include alloca.h.
93109         * lib/makepath.c: Likewise.
93110         * lib/setenv.c: Likewise.
93111         * lib/userspec.c: Likewise.
93112
93113 2003-01-09  Karl Berry  <karl@gnu.org>
93114
93115         * MODULES.html.sh: include `dirname $0` in PATH, to find
93116         gnulib-tool.
93117
93118 2003-01-09  Bruno Haible  <bruno@clisp.org>
93119
93120         * modules/stdbool: Change configure.ac, Makefile.am requirements.
93121         Simplify Include requirements. Add lib/stdbool.h.in to file list.
93122
93123 2003-01-09  Bruno Haible  <bruno@clisp.org>
93124
93125         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
93126
93127 2003-01-09  Bruno Haible  <bruno@clisp.org>
93128
93129         * lib/stdbool.h.in: New file.
93130
93131 2003-01-09  Bruno Haible  <bruno@clisp.org>
93132
93133         * gnulib-tool (func_all_modules): Ignore files ending in ~.
93134         * MODULES.html.sh: Likewise.
93135
93136 2003-01-08  Jim Meyering  <jim@meyering.net>
93137
93138         * lib/full-write.c: Undefine and define-away `const' after inclusion
93139         of errno.h, not before.  Suggestion from Bruno Haible.
93140
93141 2003-01-08  Bruno Haible  <bruno@clisp.org>
93142
93143         * modules/full-read: Depend on full-write.
93144
93145 2003-01-08  Bruno Haible  <bruno@clisp.org>
93146
93147         * lib/safe-read.c: Include specification header first, to ensure its
93148         selfcontainedness.
93149         * lib/full-write.c: Likewise.
93150
93151 2003-01-07  Jim Meyering  <jim@meyering.net>
93152
93153         * lib/full-write.c: Rework so that it may serve to define full_read,
93154         too.
93155         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
93156
93157 2003-01-07  Bruno Haible  <bruno@clisp.org>
93158
93159         * lib/strtoimax.c: Include <stdint.h> as an alternative to
93160         <inttypes.h>.
93161         * lib/xstrtol.h: Likewise.
93162         * lib/xstrtoimax.c: Likewise.
93163         * lib/xstrtoumax.c: Likewise.
93164         * lib/human.h: Likewise.
93165
93166         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
93167         on systems that have <inttypes.h> but not <stdint.h>.
93168
93169 2003-01-07  Bruno Haible  <bruno@clisp.org>
93170
93171         * MODULES.html.sh: Add copyright notice.
93172         (missed_files): Omit CVS directory entries.
93173         (func_module): Make it work with sed-3.02.
93174         * MODULES.txt: Remove file.
93175
93176 2003-01-06  Jim Meyering  <jim@meyering.net>
93177
93178         * lib/version-etc.c: Update year in translatable copyright string.
93179
93180 2003-01-03  Karl Berry  <karl@gnu.org>
93181
93182         * config/config.{guess,sub}: update from prep.
93183
93184 2003-01-02  Karl Berry  <karl@gnu.org>
93185
93186         * doc/COPYING.DOC: belatedly updated to 1.2.
93187
93188 2003-01-01  Karl Berry  <karl@gnu.org>
93189
93190         * gnulib-tool (func_verify_module): report module name $module in
93191         error message, not $1.
93192         * gnulib-tool (create-testdir): don't complain if destdir couldn't
93193         be created, only if it doesn't exist.
93194         * gnulib-tool (last_checkin_date): don't expand the $Date here.
93195
93196 2002-12-31  Paul Eggert  <eggert@twinsun.com>
93197
93198         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
93199
93200 2002-12-31  Paul Eggert  <eggert@twinsun.com>
93201
93202         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
93203         memcmp if strcoll doesn't work.
93204
93205 2002-12-31  Bruno Haible  <bruno@clisp.org>
93206
93207         * lib/utime.c (utime_null): No need to call ftruncate if the file was
93208         nonempty.
93209
93210 2002-12-31  Bruno Haible  <bruno@clisp.org>
93211
93212         * lib/memcoll.c (STRCOLL): New macro.
93213         (memcoll): Use it.
93214
93215 2002-12-31  Bruno Haible  <bruno@clisp.org>
93216
93217         * lib/localcharset.h: New file.
93218         * lib/localcharset.c: Include it.
93219         * lib/unicodeio.c: Likewise.
93220
93221 2002-12-31  Bruno Haible  <bruno@clisp.org>
93222
93223         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
93224         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
93225
93226 2002-12-31  Bruno Haible  <bruno@clisp.org>
93227
93228         * lib/getline.h: Include <stddef.h>, for size_t.
93229
93230         * lib/unicodeio.h: Include <stddef.h>, for size_t.
93231         * lib/unicodeio.c: Don't include <stddef.h>.
93232
93233 2002-12-31  Bruno Haible  <bruno@clisp.org>
93234
93235         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
93236         HAVE_TM_ZONE.
93237
93238 2002-12-24  Karl Berry  <karl@gnu.org>
93239
93240         * config/config.guess: update from prep.
93241
93242 2002-12-24  Bruno Haible  <bruno@clisp.org>
93243
93244         General infrasructure.
93245         * m4/README: Rewritten.
93246         * m4/onceonly.m4: New file.
93247         * m4/onceonly_2_57.m4: New file.
93248
93249         Module atexit.
93250         * m4/atexit.m4: New file.
93251
93252         Module strtod.
93253         * m4/strtod.m4: New file.
93254
93255         Module strtol.
93256         * m4/strtol.m4: New file.
93257
93258         Module strtoul.
93259         * m4/strtoul.m4: New file.
93260
93261         Module memchr.
93262         * m4/memchr.m4: New file.
93263
93264         Module memcmp.
93265         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
93266         (jm_FUNC_MEMCMP): Invoke it.
93267
93268         Module memcpy.
93269         * m4/memcpy.m4: New file.
93270
93271         Module memmove.
93272         * m4/memmove.m4: New file.
93273
93274         Module memset.
93275         * m4/memset.m4: New file.
93276
93277         Module strcspn.
93278         * m4/strcspn.m4: New file.
93279
93280         Module strpbrk.
93281         * m4/strpbrk.m4: New file.
93282
93283         Module strstr.
93284         * m4/strstr.m4: New file.
93285
93286         Module strerror.
93287         * m4/strerror.m4: New file.
93288
93289         Module mktime.
93290         * m4/mktime.m4: Renamed from jm-mktime.m4.
93291         (gl_PREREQ_MKTIME): New macro.
93292         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
93293
93294         Module malloc.
93295         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
93296         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
93297         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
93298
93299         Module realloc.
93300         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
93301         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
93302         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
93303
93304         Module strftime.
93305         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
93306         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
93307         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
93308         gl_TM_GMTOFF.
93309         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
93310
93311         Module xalloc.
93312         * m4/xalloc.m4: New file.
93313
93314         Module alloca.
93315         * m4/alloca.m4: New file.
93316
93317         Module putenv.
93318         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
93319         (jm_FUNC_PUTENV): Invoke it.
93320
93321         Module setenv.
93322         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
93323         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
93324         when invoked twice.
93325         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
93326         gt_FUNC_SETENV.
93327
93328         Module memrchr.
93329         * m4/memrchr.m4: New file.
93330
93331         Module stpcpy.
93332         * m4/stpcpy.m4: New file.
93333
93334         Module strcase.
93335         * m4/strcase.m4: New file.
93336
93337         Module strdup.
93338         * m4/strdup.m4: New file.
93339
93340         Module strnlen.
93341         * m4/strnlen.m4: New file.
93342
93343         Module strndup.
93344         * m4/strndup.m4: New file.
93345
93346         Module xstrtod.
93347         * m4/xstrtod.m4: New file.
93348
93349         Module xstrtol.
93350         * m4/xstrtol.m4: New file.
93351
93352         Module getdate.
93353         * m4/getdate.m4: New file.
93354
93355         Module unlocked-io.
93356         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
93357         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
93358         * m4/jm-glibc-io.m4n: Remove file.
93359
93360         Module long-options.
93361         * m4/long-options.m4: New file.
93362
93363         Module md5.
93364         * m4/md5.m4: New file.
93365
93366         Module sha.
93367         * m4/sha.m4: New file.
93368
93369         Module getstr.
93370         * m4/getstr.m4: New file.
93371
93372         Module getline.
93373         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
93374         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
93375         <sys/types.h>, for size_t. Use the function name gnu_getline, not
93376         simply getline. Infoke gl_PREREQ_GETLINE.
93377
93378         Module obstack.
93379         * m4/obstack.m4: New file.
93380
93381         Module hash.
93382         * m4/hash.m4: New file.
93383
93384         Module readtokens.
93385         * m4/readtokens.m4: New file.
93386
93387         Module strverscmp.
93388         * m4/strverscmp.m4: New file.
93389
93390         Module stdbool.
93391         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
93392         OSF/1.
93393
93394         Module strtoll.
93395         * m4/strtoll.m4: New file.
93396
93397         Module strtoull.
93398         * m4/strtoull.m4: New file.
93399
93400         Module strtoimax.
93401         * m4/strtoimax.m4: New file.
93402
93403         Module strtoumax.
93404         * m4/strtoumax.m4: New file.
93405
93406         Module xstrtoimax.
93407         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
93408         jm_AC_PREREQ_XSTRTOIMAX.
93409         Moved the strtol prerequisites to strtol.m4.
93410         Moved the strtoll prerequisites to strtoll.m4.
93411         Moved the strtoimax prerequisites to strtoimax.m4.
93412
93413         Module xstrtoumax.
93414         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
93415         jm_AC_PREREQ_XSTRTOUMAX.
93416         Moved the strtoul prerequisites to strtoul.m4.
93417         Moved the strtoull prerequisites to strtoull.m4.
93418         Moved the strtoumax prerequisites to strtoumax.m4.
93419
93420         Module chown.
93421         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
93422         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
93423
93424         Module dup2.
93425         * m4/dup2.m4: New file.
93426
93427         Module ftruncate.
93428         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
93429         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
93430
93431         Module getgroups.
93432         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
93433         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
93434
93435         Module gettimeofday.
93436         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
93437         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
93438         gl_PREREQ_GETTIMEOFDAY.
93439
93440         Module mkdir.
93441         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
93442         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
93443
93444         Module mkstemp.
93445         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
93446         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
93447         jm_AC_TYPE_UINTMAX_T.
93448         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
93449
93450         Module stat.
93451         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
93452         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
93453
93454         Module lstat.
93455         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
93456         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
93457
93458         Module timespec.
93459         * m4/timespec.m4 (gl_TIMESPEC): New macro.
93460         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
93461         * m4/st_mtim.m4: Indentation.
93462
93463         Module nanosleep.
93464         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
93465         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
93466         gl_PREREQ_NANOSLEEP.
93467
93468         Module regex.
93469         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
93470         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
93471         (gl_REGEX): New macro.
93472
93473         Module rename.
93474         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
93475         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
93476
93477         Module rmdir.
93478         * m4/rmdir.m4: New file.
93479
93480         Module utime.
93481         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
93482         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
93483         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
93484
93485         Module dirname.
93486         * m4/dirname.m4: New file.
93487
93488         Module getopt.
93489         * m4/getopt.m4: New file.
93490
93491         Module unistd-safer.
93492         * m4/unistd-safer.m4: New file.
93493
93494         Module fnmatch.
93495         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
93496         declaration.
93497         (gl_PREREQ_FNMATCH_EXTRA): New macro.
93498         (gl_FUNC_FNMATCH_POSIX): New macro.
93499         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
93500         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
93501         simply fnmatch.
93502
93503         Module exclude.
93504         * m4/exclude.m4: New file.
93505
93506         Module human.
93507         * m4/human.m4: New file.
93508
93509         Module acl.
93510         * m4/acl.m4: Nop.
93511
93512         Module backupfile.
93513         * m4/backupfile.m4: New file.
93514         * m4/d-ino.m4: Indentation.
93515
93516         Module fsusage.
93517         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
93518         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
93519         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
93520
93521         Module dirfd.
93522         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
93523         requirements.
93524
93525         Module euidaccess.
93526         * m4/euidaccess.m4: New file.
93527
93528         Module file-type.
93529         * m4/file-type.m4: New file.
93530
93531         Module fileblocks.
93532         * m4/fileblocks.m4: New file.
93533
93534         Module filemode.
93535         * m4/filemode.m4: New file.
93536
93537         Module isdir.
93538         * m4/isdir.m4: New file.
93539
93540         Module lchown.
93541         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
93542         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
93543
93544         Module makepath.
93545         * m4/makepath.m4: New file.
93546
93547         Module modechange.
93548         * m4/modechange.m4: New file.
93549
93550         Module mountlist.
93551         * m4/mountlist.m4: New file.
93552         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
93553         Indentation.
93554
93555         Module path-concat.
93556         * m4/path-concat.m4: New file.
93557
93558         Module pathmax.
93559         * m4/pathmax.m4: New file.
93560
93561         Module same.
93562         * m4/same.m4: New file.
93563
93564         Module save-cwd.
93565         * m4/save-cwd.m4: New file.
93566
93567         Module savedir.
93568         * m4/savedir.m4: New file.
93569
93570         Module xgetcwd.
93571         * m4/xgetcwd.m4: New file.
93572         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
93573
93574         Module xreadlink.
93575         * m4/xreadlink.m4: New file.
93576
93577         Module safe-read.
93578         * m4/safe-read.m4: New file.
93579
93580         Module safe-write.
93581         * m4/safe-write.m4: New file.
93582
93583         Module closeout.
93584         * m4/closeout.m4: New file.
93585
93586         Module stdio-safer.
93587         * m4/stdio-safer.m4: New file.
93588
93589         Module getpass.
93590         * m4/getpass.m4: New file.
93591
93592         Module getugroups.
93593         * m4/getugroups.m4: New file.
93594
93595         Module group-member.
93596         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
93597         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
93598
93599         Module idcache.
93600         * m4/idcache.m4: New file.
93601
93602         Module userspec.
93603         * m4/userspec.m4: New file.
93604
93605         Module gettime.
93606         * m4/clock_time.m4: New file.
93607         * m4/gettime.m4: New file.
93608
93609         Module settime.
93610         * m4/settime.m4: New file.
93611
93612         Module posixtm.
93613         * m4/posixtm.m4: New file.
93614
93615         Module gethostname.
93616         * m4/gethostname.m4: New file.
93617
93618         Module canon-host.
93619         * m4/canon-host.m4: New file.
93620
93621         Module gettext.
93622         * m4/codeset.m4: New file, from gettext-0.11.5.
93623         * m4/gettext.m4: New file, from gettext-0.11.5.
93624         * m4/glibc21.m4: New file, from gettext-0.11.5.
93625         * m4/iconv.m4: New file, from gettext-0.11.5.
93626         * m4/intdiv0.m4: New file, from gettext-0.11.5.
93627         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
93628         * m4/inttypes.m4: New file, from gettext-0.11.5.
93629         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
93630         * m4/isc-posix.m4: New file, from gettext-0.11.5.
93631         * m4/lcmessage.m4: New file, from gettext-0.11.5.
93632         * m4/lib-ld.m4: New file, from gettext-0.11.5.
93633         * m4/lib-link.m4: New file, from gettext-0.11.5.
93634         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
93635         * m4/progtest.m4: New file, from gettext-0.11.5.
93636         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
93637         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
93638         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
93639
93640         Module localcharset.
93641         * m4/localcharset.m4: New file.
93642
93643         Module hard-locale.
93644         * m4/hard-locale.m4: New file.
93645
93646         Module mbswidth.
93647         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
93648         onceonly macros.
93649         * m4/mbrtowc.m4: Add comment.
93650
93651         Module memcasecmp.
93652         * m4/memcasecmp.m4: New file.
93653
93654         Module memcoll.
93655         * m4/memcoll.m4: New file.
93656
93657         Module unicodeio.
93658         * m4/unicodeio.m4: New file.
93659
93660         Module rpmatch.
93661         * m4/rpmatch.m4: New file.
93662
93663         Module yesno.
93664         * m4/yesno.m4: New file.
93665
93666         Module exitfail.
93667         * m4/exitfail.m4: New file.
93668
93669         Module c-stack.
93670         * m4/c-stack.m4 (gl_C_STACK): New macro.
93671         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
93672
93673         Module error.
93674         * m4/error.m4 (gl_ERROR): New macro.
93675         (jm_PREREQ_ERROR): Use onceonly macros.
93676
93677         Module fatal.
93678         * m4/fatal.m4: New file.
93679
93680         Module getloadavg.
93681         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
93682         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
93683
93684         Module getpagesize.
93685         * m4/getpagesize.m4: New file.
93686
93687         Module getusershell.
93688         * m4/getusershell.m4: New file.
93689
93690         Module physmem.
93691         * m4/physmem.m4: New file.
93692
93693         Module posixver.
93694         * m4/posixver.m4: New file.
93695
93696         Module quotearg.
93697         * m4/quotearg.m4: New file.
93698
93699         Module quote.
93700         * m4/quote.m4: New file.
93701
93702         Module readutmp.
93703         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
93704
93705         Module sig2str.
93706         * m4/sig2str.m4: New file.
93707
93708         Other.
93709         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
93710         ulonglong.m4.
93711         * m4/intmax_t.m4: New file.
93712         * m4/d-type.m4: Indentation.
93713         * m4/jm-macros.m4: Update.
93714         * m4/prereq.m4 (jm_PREREQ): Update.
93715         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
93716         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
93717         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
93718         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
93719         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
93720         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
93721         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
93722         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
93723         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
93724         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
93725         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
93726         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
93727         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
93728         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
93729         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
93730         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
93731         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
93732         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
93733         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
93734
93735 2002-12-24  Bruno Haible  <bruno@clisp.org>
93736
93737         * MODULES.txt: Update according to m4/ changes.
93738
93739         Module gettext.
93740         * config.rpath: New file, from gettext-0.11.5.
93741
93742         * modules/*: New module descriptions.
93743         * gnulib-tool: New file.
93744         * MODULES.html.sh: New file.
93745
93746 2002-12-21  Karl Berry  <karl@gnu.org>
93747
93748         * doc/fdl.texi: update to version 1.2.
93749
93750 2002-12-19  Karl Berry  <karl@gnu.org>
93751
93752         * config/config.guess: update from prep.
93753
93754 2002-12-18  Bruno Haible  <bruno@clisp.org>
93755
93756         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
93757         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
93758
93759 2002-12-17  Bruno Haible  <bruno@clisp.org>
93760
93761         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
93762         stdlib.h, string.h.
93763
93764 2002-12-17  Bruno Haible  <bruno@clisp.org>
93765
93766         * lib/canon-host.c (strdup): Remove unused declaration.
93767
93768         * lib/fsusage.c: Include full_read.h.
93769         (get_fs_usage): Use full_read instead of safe_read.
93770
93771         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
93772
93773 2002-12-12  Karl Berry  <karl@gnu.org>
93774
93775         * config/config.guess: update from prep.
93776
93777 2002-12-11  Bruno Haible  <bruno@clisp.org>
93778
93779         * m4/setenv.m4: New file, from gettext-0.11.5.
93780
93781 2002-12-11  Bruno Haible  <bruno@clisp.org>
93782
93783         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
93784         not unsetenv().
93785         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
93786         modifications:
93787
93788         2002-12-11  Bruno Haible  <bruno@clisp.org>
93789
93790                 * setenv.c (alloca): Fall back to malloc.
93791                 (freea): New macro.
93792                 (setenv): Use freea() to free memory allocated with alloca().
93793
93794         2002-11-13  Bruno Haible  <bruno@clisp.org>
93795
93796                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
93797                 function declarations.
93798                 * unsetenv.c (unsetenv): Likewise.
93799
93800         2002-03-04  Bruno Haible  <bruno@clisp.org>
93801
93802                 Portability to AIX 4.3.3.
93803                 * unsetenv.c: New file, extracted from setenv.c.
93804                 * setenv.c: Move the unsetenv() function to unsetenv.c.
93805
93806         2001-12-20  Bruno Haible  <bruno@clisp.org>
93807
93808                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
93809                 use malloc instead. For SunOS 4.
93810
93811         2001-12-11  Bruno Haible  <bruno@clisp.org>
93812
93813                 * setenv.c: Declare alloca.
93814                 (compar_fn_t): New typedef.
93815                 (KNOWN_VALUE, STORE_VALUE): Use it.
93816
93817         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
93818         setenv.h.
93819
93820 2002-12-10  Paul Eggert  <eggert@twinsun.com>
93821
93822         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
93823         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
93824         Choose values that are less likely to collide with system fnmatch
93825         options.
93826         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
93827         defined (e.g., a pure POSIX system).
93828         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
93829         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
93830
93831 2002-12-06  Paul Eggert  <eggert@twinsun.com>
93832
93833         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
93834         a pain in practice to deal with generated m4 files.  This change
93835         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
93836
93837         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
93838         and jm-glibc-io.m4, as they are no longer a special case.
93839         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
93840         kludge and the auto-generation stuff.  Check only whether the
93841         functions are declared, not whether they exist, since older hosts
93842         that don't declare the functions can't use the optimization anyway.
93843
93844 2002-12-06  Jim Meyering  <jim@meyering.net>
93845
93846         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
93847
93848         Merge in changes from libc's misc/error.c, in preparation
93849         for the merge of gnulib's changes back into libc.
93850
93851         * lib/error.c (_): Define only if not already defined.
93852         Move definition to follow all #include directives.
93853         Include unlocked-io.h only if !_LIBC.
93854         [_LIBC]: Include <libio/libioP.h>.
93855         [USE_IN_LIBIO]: Include <libio/iolibio.h>
93856         (fflush): Tweak definition to use INTUSE.
93857         (putc): Define.
93858
93859 2002-12-05  Paul Eggert  <eggert@twinsun.com>
93860
93861         * lib/alloca.c [defined emacs]: Include "lisp.h".
93862         (xalloc_die) [defined emacs]: New macro.
93863         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
93864         [! defined emacs]: Include <xalloc.h>.
93865         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
93866         (pointer): Typedef to POINTER_TYPE *.
93867         (malloc): Remove decl; we now always use xmalloc.
93868         (alloca): Use old-style definition, since Emacs needs this.
93869         Check for arithmetic overflow when computing combined size.
93870
93871 2002-12-04  Paul Eggert  <eggert@twinsun.com>
93872
93873         Do not generate unlocked-io.h automatically, since it's easier to
93874         maintain it by hand.
93875
93876         * lib/unlocked-io.h: New file, from GNU diffutils,
93877         but with proper copyright notice and attribution.
93878         * lib/gen-uio: Remove.
93879         * lib/Makefile.am: Add copyright notice.
93880         (libfetish_a_SOURCES): Add unlocked-io.h.
93881         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
93882         (DISTCLEANFILES, io_functions): Remove macros.
93883         (EXTRA_DIST): Remove gen_uio.
93884         (unlocked-io.h): Remove rule.
93885
93886 2002-12-04  Jim Meyering  <jim@meyering.net>
93887
93888         Reflect the fact that stat.c and lstat.c are no longer generated.
93889         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
93890         (DISTCLEANFILES): Likewise.
93891         (EXTRA_DIST): Likewise.
93892         (all_local): Don't depend on stat.c or lstat.c.
93893         (stat.c, lstat.c): Remove rules.
93894         (EXTRA_DIST): Remove xstat.in.
93895
93896         * lib/xstat.in: Remove file.  Contents moved into stat.c.
93897         * lib/stat.c: New file.  Contents mostly from xstat.in.
93898         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
93899         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
93900
93901         * lib/safe-read.c: Rework so that it may serve to define safe_write,
93902         too.
93903         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
93904
93905 2002-12-03  Jim Meyering  <jim@meyering.net>
93906
93907         * lib/safe-read.c, safe-write.c: Change variable names and comments,
93908         but not semantics, to minimize the differences between these two files.
93909         (safe_read): Change comment to mention SAFE_READ_ERROR.
93910
93911         * lib/safe-read.c (IS_EINTR): Define.
93912         (safe_read): Use IS_EINTR in place of in-function cpp directives.
93913
93914 2002-12-02  Jim Meyering  <jim@meyering.net>
93915
93916         * lib/safe-read.c (EINTR): Define.
93917         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
93918         (INT_MAX): Provide fallback.
93919         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
93920
93921         * lib/safe-read.h (SAFE_READ_ERROR): Define.
93922
93923 2002-12-02  Bruno Haible  <bruno@clisp.org>
93924
93925         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
93926         Define, taken from safe-read.c.
93927         (INT_MAX): Provide fallback.
93928         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
93929         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
93930
93931         * lib/safe-read.c (EINTR): Remove definition.
93932         (safe_read): Don't use EINTR if it is absent.
93933
93934 2002-12-01  Jim Meyering  <jim@meyering.net>
93935
93936         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
93937         zero.
93938         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
93939
93940 2002-11-27  Paul Eggert  <eggert@twinsun.com>
93941
93942         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
93943         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
93944         with `if (! (value < limit)) abort ();', for readability.
93945
93946 2002-11-26  Karl Berry  <karl@gnu.org>
93947
93948         * lib/strdup.c: copy from libc again, with jim's ok.
93949         * lib/.cppi-disable: re-add strdup.c
93950
93951 2002-11-25  Karl Berry  <karl@gnu.org>
93952
93953         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
93954         instead of "strtol.c".
93955
93956 2002-11-25  Karl Berry  <karl@gnu.org>
93957
93958         * config/install-sh: update from automake for variable quoting, $0 in
93959         error msgs, etc.
93960
93961         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
93962         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
93963         entry.
93964
93965 2002-11-25  Jim Meyering  <jim@meyering.net>
93966
93967         * lib/mktime.c: Sync from libc, now that it has the latest fix.
93968
93969 2002-11-24  Karl Berry  <karl@gnu.org>
93970
93971         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
93972         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
93973
93974 2002-11-24  Jim Meyering  <jim@meyering.net>
93975
93976         Update from coreutils:
93977
93978         * lib/mktime.c: Merge in changes from libc.
93979
93980         Avoid a link-time failure on some Linux systems.
93981         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
93982         (otherwise).
93983         (__mon_yday): Declare with the STATIC attribute.
93984         (__mktime_internal): Likewise.
93985         Based on a report from Greg Schafer.
93986
93987 2002-11-23  Jim Meyering  <jim@meyering.net>
93988
93989         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
93990         Use `unsigned', not `int', as type of index.
93991
93992         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
93993
93994         * lib/fsusage.c: Remove unneeded parentheses around operands of
93995         `defined'.
93996
93997 2002-11-22  Paul Eggert  <eggert@twinsun.com>
93998
93999         * lib/quotearg.h: Allow multiple inclusion by surrounding with
94000         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
94001         so that we can be included first.
94002         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
94003         * lib/quotearg.c: Include quotearg.h immediately after config.h.
94004         No need to include stddef.h or sys/types.h any more.
94005         Surround local include files with "", not "<>".
94006         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
94007         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
94008         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
94009         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
94010         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
94011         (ISPRINT): Remove; no longer needed now that we assume C89.
94012
94013         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
94014         Preserve errno.
94015
94016         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
94017         quotearg_char): Use SIZE_MAX rather than
94018         (size_t) -1 when we are talking about "infinity".
94019
94020         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
94021
94022 2002-11-22  Paul Eggert  <eggert@twinsun.com>
94023
94024         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
94025         hint that one should use `if (! x) abort ();' rather than `assert
94026         (x);', and anyway it's one less thing to worry about configuring.
94027         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
94028         hash_rehash, hash_insert): Use abort rather than assert.
94029
94030 2002-11-22  Bruno Haible  <bruno@clisp.org>
94031
94032         * lib/safe-read.h: Assume C89. Add comments.
94033         (safe_read): Change return type to size_t.
94034         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
94035         byte counts > SSIZE_MAX correctly.
94036         * lib/safe-write.h: New file.
94037         * lib/safe-write.c: New file.
94038         * lib/full-read.h: New file.
94039         * lib/full-read.c: New file.
94040         * lib/full-write.h: Assume C89. Add comments.
94041         * lib/full-write.c: Include safe-write.h.
94042         (full_write): Rewritten to use safe_write.
94043         Suggested by Jim Meyering and Paul Eggert.
94044
94045 2002-11-21  Jim Meyering  <jim@meyering.net>
94046
94047         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
94048
94049         Merge in changes from the coreutils.
94050
94051         2002-09-25  Paul Eggert  <eggert@twinsun.com>
94052         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
94053         <stdint.h>.
94054         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
94055         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
94056         int.  Work more efficiently if X is the same width as uintmax_t.
94057         Do not compare X to -1, to avoid bogus compiler warning.
94058         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
94059         Don't assume that f_frsize and f_bsize are the same type.
94060
94061         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
94062         warning on FreeBSD.
94063
94064         * lib/makepath.c (make_path): Restore umask *before* creating the final
94065         component.
94066         (make_path): Minor reformatting.
94067
94068         * lib/xmalloc.c: Adjust to work with new autoconf macros,
94069         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
94070         HAVE_MALLOC/HAVE_REALLOC.
94071
94072         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
94073         dummy ones.  At least on GNU/Linux systems, `auto' means something
94074         else.
94075         From Michael Stone.
94076
94077 2002-11-21  Bruno Haible  <bruno@clisp.org>
94078
94079         Remove case insensitive option matching.
94080         * lib/argmatch.h (argcasematch): Remove declaration.
94081         (ARGCASEMATCH): Remove macro.
94082         (__xargmatch_internal): Remove case_sensitive argument.
94083         (XARGMATCH): Update.
94084         (XARGCASEMATCH): Remove macro.
94085         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
94086         case_sensitive argument.
94087         (argcasematch): Remove function.
94088         (__xargmatch_internal): Remove case_sensitive argument.
94089         (main): Use XARGMATCH instead of XARGCASEMATCH.
94090
94091         * lib/xmalloc.c: Change compile-time error message. Add comment about
94092         required autoconf version.
94093
94094 2002-11-20  Paul Eggert  <eggert@twinsun.com>
94095
94096         Merge argmatch cleanups from Bison.  Assume C89.
94097
94098         * lib/argmatch.c: Include config.h here, not in argmatch.h.
94099         Include stdlib.h, for EXIT_FAILURE.
94100         Always include <string.h>, since we assume C89.
94101         (EXIT_FAILURE): Remove pre-C89 bug workaround.
94102         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
94103         Include <stddef.h> instead, since it's all we need for size_t.
94104         (PARAMS): Remove.  All uses removed.
94105         (ARRAY_CARDINALITY): Do not bother to #undef.
94106         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
94107         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
94108         Remove unnecessary parentheses.
94109         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
94110         Insert necessary parentheses.
94111         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
94112         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
94113
94114 2002-11-19  Bruno Haible  <bruno@clisp.org>
94115
94116         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
94117         * lib/mbswidth.h: Include <stddef.h>, for size_t.
94118
94119         * lib/mbswidth.h (PARAMS): Remove macro.
94120         (mbswidth, mbsnwidth): Use ANSI C function declarations.
94121         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
94122
94123         * lib/gcd.h (PARAMS): Remove macro.
94124         (gcd): Use ANSI C function declarations.
94125         * lib/gcd.c (gcd): Likewise.
94126
94127 2002-11-15  Bruno Haible  <bruno@clisp.org>
94128
94129         * lib/strcspn.c: Include <stddef.h>.
94130         (strcspn): Use ANSI C function declaration. Change return type to
94131         size_t. Use NULL.
94132         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
94133         (strpbrk): Use NULL.
94134         * lib/strpbrk.h (PARAMS): Remove macro.
94135         (strpbrk): Use ANSI C function declaration.
94136         * lib/strstr.c: Don't include <sys/types.h>.
94137         * lib/strstr.h (PARAMS): Remove macro.
94138         (strstr): Use ANSI C function declarations.
94139
94140 2002-11-14  Karl Berry  <karl@gnu.org>
94141
94142         * config/mkinstalldirs: `do' on separate line, instead of
94143         `for var; do'.
94144
94145 2002-11-06  Bruno Haible  <bruno@clisp.org>
94146
94147         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
94148         * lib/gcd.c (gcd): Likewise.
94149
94150 2002-11-05  Bruno Haible  <bruno@clisp.org>
94151
94152         * lib/gcd.h: New file, from gettext-0.11.5.
94153         * lib/gcd.c: New file, from gettext-0.11.5.
94154
94155 2002-11-05  Bruno Haible  <bruno@clisp.org>
94156
94157         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94158         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94159         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94160         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
94161
94162         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
94163         <libintl.h>.
94164         * lib/makepath.c: Include gettext.h instead of <locale.h> and
94165         <libintl.h>.
94166
94167         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
94168         * lib/human.c: Include gettext.h instead of <libintl.h>.
94169         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
94170         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
94171         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
94172         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
94173         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
94174         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
94175         (textdomain): Remove definition.
94176         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
94177
94178         * lib/long-options.c: Remove include of <libintl.h> and definition of
94179         _.
94180         * lib/same.c: Remove include of <libintl.h> and definition of _.
94181
94182 2002-11-04  Owen Taylor  <otaylor@redhat.com>
94183
94184         * lib/config.charset: A few additions for Solaris.
94185
94186 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
94187
94188         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
94189         * lib/localcharset.c (locale_charset): Declare as extern "C".
94190
94191 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
94192
94193         * lib/config.charset: msdos in uk_UA uses CP1125.
94194
94195 2002-11-04  Bruno Haible  <bruno@clisp.org>
94196
94197         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
94198         * lib/strcase.h: New file, from GNU gettext-0.11.5.
94199         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
94200         * lib/strstr.h: New file, from GNU gettext-0.11.5.
94201         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
94202
94203 2002-11-04  Bruno Haible  <bruno@clisp.org>
94204
94205         * lib/localcharset.c (locale_charset): Don't return an empty string.
94206
94207 2002-11-04  Bruno Haible  <bruno@clisp.org>
94208
94209         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
94210         aliases.
94211
94212 2002-11-04  Bruno Haible  <bruno@clisp.org>
94213
94214         * lib/config.charset: Update for newest glibc. Add canonical names
94215         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
94216
94217 2002-11-04  Bruno Haible  <bruno@clisp.org>
94218
94219         * lib/config.charset: Add support for NetBSD.
94220
94221 2002-11-04  Bruno Haible  <bruno@clisp.org>
94222
94223         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
94224
94225 2002-11-01  Bruno Haible  <bruno@clisp.org>
94226
94227         * configure.in: Add AC_CONFIG_AUX_DIR call.
94228         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
94229         test/Makefile.
94230         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
94231
94232 2002-09-28  Karl Berry  <karl@gnu.org>
94233
94234         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
94235         installed automake until the next release, since changes have been
94236         made.
94237
94238 2002-09-25  Karl Berry  <karl@gnu.org>
94239
94240         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
94241         * lib/getopt*: copy from libc/posix.
94242         * lib/gettext.h: copy from gettext.
94243         * lib/.cppi-disable: add strdup.c, gettext.h.
94244
94245 2002-09-25  Karl Berry  <karl@gnu.org>
94246
94247         * config/srclist.txt: enable gettext.h check.
94248         * config/config.{guess,sub}: update from prep.
94249         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
94250                 from automake 1.6.3.
94251         See srclist*.
94252
94253 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
94254
94255         * regex.c (PATFETCH): Remove the translating fetch.
94256         (PATFETCH_RAW): Rename to PATFETCH.
94257         (set_image_of_range): New fun.
94258         (SET_RANGE_TABLE_WORK_AREA): Use it.
94259         (regex_compile): Don't translate the pattern chars so eagerly.
94260         Only do it when inserting an `exactn' bytecode or when handling
94261         a char-range.
94262         (mutually_exclusive_p): Avoid empty statement.
94263
94264 2002-07-06  Jim Meyering  <meyering@lucent.com>
94265
94266         * m4/README: Don't mention Makefile.am.in.
94267         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
94268
94269 2002-07-01  Jim Meyering  <meyering@lucent.com>
94270
94271         * lib/c-stack.c: Include sys/time.h.
94272         From Volker Borchert.
94273
94274 2002-06-26  Paul Eggert  <eggert@twinsun.com>
94275
94276         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
94277
94278 2002-06-26  Paul Eggert  <eggert@twinsun.com>
94279
94280         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
94281         New macro.  Use it uniformly instead of
94282         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
94283         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
94284         reported by Vin Shelton.
94285
94286 2002-06-22  Paul Eggert  <eggert@twinsun.com>
94287
94288         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
94289         Do not assume SA_SIGINFO behavior.
94290         Bug reported by Jim Meyering on NetBSD 1.5.2.
94291
94292 2002-06-22  Jim Meyering  <meyering@lucent.com>
94293
94294         * m4/c-stack.m4: New file, from diffutils-2.8.2.
94295         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
94296
94297         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
94298         now that configure.ac uses AC_GNU_SOURCE.
94299         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
94300         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
94301
94302         Update to latest tools.  Suggestions from Paul Eggert.
94303         * m4/stdbool.m4: New file, from diffutils-2.8.2.
94304         * m4/gnu-source.m4: Update from diffutils-2.8.2.
94305         * m4/fnmatch.m4: Likewise.
94306         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
94307         to AC_HEADER_STDBOOL
94308
94309 2002-06-22  Jim Meyering  <meyering@lucent.com>
94310
94311         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
94312         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
94313
94314 2002-06-22  Jim Meyering  <meyering@lucent.com>
94315
94316         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
94317
94318         * lib/exitfail.c, exitfail.h: Likewise.
94319         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
94320
94321         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
94322         of fnmatch.h.
94323         (EXTRA_DIST): Add fnmatch_loop.c.
94324         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
94325
94326         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
94327         * lib/fnmatch.c: Update from diffutils-2.8.2.
94328         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
94329         * lib/fnmatch.h: Remove file.
94330
94331 2002-06-21  Jim Meyering  <meyering@lucent.com>
94332
94333         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
94334         * m4/mbrtowc.m4: Likewise.
94335
94336         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
94337         * m4/mbswidth.m4: Reflect name change:
94338         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
94339         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
94340
94341         * m4/lib-link.m4: Update from gettext-0.11.2.
94342         * m4/gettext.m4: Likewise.
94343
94344         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
94345         From Alfred M. Szmidt.
94346
94347 2002-06-18  Paul Eggert  <eggert@twinsun.com>
94348
94349         * lib/file-type.h: Report an error if neither S_ISREG nor
94350         S_IFREG is defined, instead of using a test specific to glibc
94351         2.2.  This should be safe, since POSIX requires S_ISREG and
94352         Unix Version 7 had S_IFREG.  We don't need to check for
94353         <sys/types.h> since we don't use any symbols that it defines.
94354
94355 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
94356
94357         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
94358         $@-t, so that each temporary file name is unique and valid in the first
94359         8 characters, for operation under DOS.
94360
94361 2002-06-15  Paul Eggert  <eggert@twinsun.com>
94362
94363         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
94364
94365 2002-06-15  Jim Meyering  <meyering@lucent.com>
94366
94367         Work even with DJGPP 2.03, which lacks support for symlinks.
94368         From Richard Dawe.
94369         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
94370         is defined.
94371         * lib/lchown.c (S_ISLNK): Likewise.
94372
94373 2002-06-15  Jim Meyering  <meyering@lucent.com>
94374
94375         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
94376         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
94377         have been included before this file.
94378
94379 2002-06-14  Jim Meyering  <meyering@lucent.com>
94380
94381         * lib/file-type.h: Use the version from diffutils-2.8.2.
94382         * lib/file-type.c: Likewise.
94383
94384 2002-06-07  Jim Meyering  <meyering@lucent.com>
94385
94386         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
94387         They're needed at least for NetBSD 1.5.2.
94388         ($statxfs_includes): Include those same headers.
94389         ($statxfs_includes): Include sys/vfs.h if available.
94390         ($statxfs_includes): Likewise for sys/statvfs.h.
94391         Check for the following members in both structs statfs and statvfs:
94392         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
94393
94394 2002-06-01  Jim Meyering  <meyering@lucent.com>
94395
94396         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
94397         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
94398
94399 2002-05-28  Jim Meyering  <meyering@lucent.com>
94400
94401         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
94402         Reported by Volker Borchert.
94403
94404 2002-05-27  Jim Meyering  <meyering@lucent.com>
94405
94406         Fix a problem seen only on nonconforming systems whereby ls.c's
94407         use of localtime, and then of gettimeofday would cause trouble:
94408         the localtime call used to initialize rpl_gettimeofday's save
94409         mechanism would clobber ls's current local time information so
94410         that in any long listing the first file would always be listed
94411         with date 1970-01-01.  Analysis by Volker Borchert.
94412
94413         * lib/gettimeofday.c (localtime): Undefine.
94414         (rpl_localtime): New function.
94415
94416 2002-05-27  Jim Meyering  <meyering@lucent.com>
94417
94418         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
94419         localtime.
94420
94421         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
94422         use the replacement function; it wouldn't resolve at link time.
94423         Reported by Volker Borchert.
94424
94425 2002-05-22  Jim Meyering  <meyering@lucent.com>
94426
94427         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
94428         file-type.h.
94429         * lib/file-type.h: New file.
94430         * lib/file-type.c (file_type): New file/function.  Extracted from
94431         diffutils.
94432
94433 2002-04-30  Jim Meyering  <meyering@lucent.com>
94434
94435         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
94436
94437 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94438
94439         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
94440
94441 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94442
94443         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
94444         Do not check for alloca.h (no longer used) or stdbool.h (was never
94445         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
94446
94447 2002-04-29  Paul Eggert  <eggert@twinsun.com>
94448
94449         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
94450
94451 2002-04-29  Jim Meyering  <meyering@lucent.com>
94452
94453         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
94454         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
94455         Use AC_FUNC_STRNLEN here instead.
94456
94457         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
94458         With autoconf-2.53a, it's part of AC_PROG_CC.
94459
94460 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94461
94462         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
94463         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
94464
94465 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94466
94467         * lib/sig2str.h, lib/sig2str.c: New files.
94468         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
94469
94470 2002-04-28  Paul Eggert  <eggert@twinsun.com>
94471
94472         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
94473         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
94474         of 127, since 64 is the largest conceivable number for ancient
94475         nonstandard hosts.
94476         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
94477
94478 2002-04-28  Jim Meyering  <meyering@lucent.com>
94479
94480         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
94481
94482 2002-04-24  Jim Meyering  <meyering@lucent.com>
94483
94484         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
94485         (jm_PREREQ): Use it.
94486
94487         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
94488         mach/mach.h fcntl.h.
94489         Check for this function: setlocale.
94490
94491 2002-04-24  Jim Meyering  <meyering@lucent.com>
94492
94493         * lib/gettext.h: New file, from Gettext.
94494         * lib/Makefile.am (INCLUDES): Remove -I../intl.
94495         (libfetish_a_SOURCES): Add gettext.h.
94496
94497 2002-04-16  Jim Meyering  <meyering@lucent.com>
94498
94499         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
94500         ut_pid, ut_id, ut_exit.
94501
94502 2002-04-16  Jim Meyering  <meyering@lucent.com>
94503
94504         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
94505         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
94506         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
94507
94508 2002-04-12  Jim Meyering  <meyering@lucent.com>
94509
94510         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
94511         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
94512         existence of the getmntinfo function.  Needed for Darwin 5.3.
94513
94514         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
94515         This is necessary at least on Darwin 5.3.
94516
94517         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
94518         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
94519         strnlen.o in the library, and that makes some versions of ranlib
94520         object.
94521
94522 2002-04-12  Jim Meyering  <meyering@lucent.com>
94523
94524         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
94525
94526 2002-04-09  Jim Meyering  <meyering@lucent.com>
94527
94528         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
94529         to be more precise.  Rather than saying we're checking whether the
94530         function `works', say what we're testing.
94531         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
94532         Reported by Bruno Haible.
94533
94534 2002-03-10  Jim Meyering  <meyering@lucent.com>
94535
94536         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
94537         Suggestion from Santiago Vila.
94538
94539 2002-03-08  Jim Meyering  <meyering@lucent.com>
94540
94541         * lib/rename.c: Mention that this wrapper is needed also on
94542         mips-dec-ultrix4.4 systems.
94543
94544 2002-03-02  Jim Meyering  <meyering@lucent.com>
94545
94546         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
94547         not HAVE_CLOCK_SETTIME.
94548
94549 2002-02-27  Paul Eggert  <eggert@twinsun.com>
94550
94551         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
94552         Check for clock_settime.
94553
94554 2002-02-27  Paul Eggert  <eggert@twinsun.com>
94555
94556         * lib/nanosleep.h: Rename to....
94557         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
94558
94559         * lib/gettime.c: New file.
94560         * lib/settime.c: New file.
94561         * lib/stime.c: Remove.
94562
94563         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
94564         timespec.h.  Remove nanosleep.h.
94565
94566 2002-02-25  Paul Eggert  <eggert@twinsun.com>
94567
94568         * m4/acl.m4: New file.
94569         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
94570         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
94571
94572 2002-02-25  Paul Eggert  <eggert@twinsun.com>
94573
94574         * lib/acl.c, lib/acl.h: New files.
94575         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
94576
94577 2002-02-24  Jim Meyering  <meyering@lucent.com>
94578
94579         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
94580         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
94581         cause trouble.  Reported by Nelson Beebe.
94582
94583 2002-02-23  Paul Eggert  <eggert@twinsun.com>
94584
94585         * lib/path-concat.c (xpath_concat): Reorder code to pacify
94586         compilers that don't know that xalloc_die never returns.
94587
94588 2002-02-20  Jim Meyering  <meyering@lucent.com>
94589
94590         * lib/getdate.c: Regenerate using bison-1.33.
94591
94592 2002-02-17  Jim Meyering  <meyering@lucent.com>
94593
94594         * config/config.guess (main): Don't use `head -1'; it's no longer
94595         portable. Use `sed 1q' instead.
94596
94597 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
94598
94599         * m4/codeset.m4: Upgrade to gettext-0.11.
94600         * m4/gettext.m4: Upgrade to gettext-0.11.
94601         * m4/glibc21.m4: Upgrade to gettext-0.11.
94602         * m4/iconv.m4: Upgrade to gettext-0.11.
94603         * m4/isc-posix.m4: Upgrade to gettext-0.11.
94604         * m4/lcmessage.m4: Upgrade to gettext-0.11.
94605         * m4/lib-ld.m4: New file, from gettext-0.11.
94606         * m4/lib-link.m4: New file, from gettext-0.11.
94607         * m4/lib-prefix.m4: New file, from gettext-0.11.
94608         * m4/progtest.m4: Upgrade to gettext-0.11.
94609
94610 2002-02-15  Paul Eggert  <eggert@twinsun.com>
94611
94612         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
94613         (jm_PREREQ): Use it.
94614
94615 2002-02-15  Paul Eggert  <eggert@twinsun.com>
94616
94617         * lib/posixver.c, lib/posixver.h: New files.
94618         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
94619
94620 2002-02-02  Paul Eggert  <eggert@twinsun.com>
94621             Bruno Haible  <bruno@clisp.org>
94622
94623         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
94624         (fwrite_success_callback): New declaration.
94625         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
94626         print_unicode_char. Call failure callback instead of error.
94627         (fwrite_success_callback): New function.
94628         (exit_failure_callback): New function.
94629         (fallback_failure_callback): New function.
94630         (print_unicode_char): Call unicode_to_mb.
94631
94632 2002-01-26  Jim Meyering  <meyering@lucent.com>
94633
94634         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
94635         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
94636
94637 2002-01-26  Jim Meyering  <meyering@lucent.com>
94638
94639         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
94640
94641 2002-01-22  Paul Eggert  <eggert@twinsun.com>
94642
94643         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
94644
94645 2002-01-22  Jim Meyering  <meyering@lucent.com>
94646
94647         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
94648         Otherwise, some versions of automake would omit the rule that makes
94649         Makefile from Makefile.in.
94650
94651 2002-01-21  Paul Eggert  <eggert@twinsun.com>
94652
94653         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
94654         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
94655         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
94656         (memcoll): Set errno to zero if there is no error.
94657
94658         * lib/quotearg.c (quotearg_buffer_restyled):
94659         Fix bug with quoting buffers containing NUL when backslashing escapes.
94660         This bug was exposed by the other changes in this patch.
94661         (quotearg_n_options): New arg ARGSIZE.
94662         All callers changed.
94663         (quoting_options_from_style): New function.
94664         (quotearg_n_style): Use it.
94665         (quotearg_n_style_mem): New function.
94666
94667         * lib/quotearg.h (quotearg_n_style_mem): New function.
94668
94669 2002-01-19  Jim Meyering  <meyering@lucent.com>
94670
94671         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
94672         Remove useless quotes: DF_PROG="df".
94673         * m4/strnlen.m4: New file.
94674
94675 2002-01-16  Paul Eggert  <eggert@twinsun.com>
94676
94677         * lib/backupfile.c (ISDIGIT): Comment fix.
94678         * lib/getdate.y (ISDIGIT): Likewise.
94679         * lib/posixtm.c (ISDIGIT, year): Likewise.
94680         * lib/strverscmp.c (ISDIGIT): Likewise.
94681         * lib/userspec.c (ISDIGIT): Likewise.
94682
94683 2002-01-16  Jim Meyering  <meyering@lucent.com>
94684
94685         * lib/getdate.y: Add three semicolons, each just before a closing
94686         brace. Bison (as of version 1.31) no longer papers over that mistake.
94687
94688 2002-01-05  Jim Meyering  <meyering@lucent.com>
94689
94690         * lib/version-etc.c (version_etc_copyright): Update copyright year.
94691
94692 2001-12-19  Paul Eggert  <eggert@twinsun.com>
94693
94694         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
94695         not silently exit merely because the output buffer happens to
94696         have nothing pending.
94697
94698 2001-12-18  Paul Eggert  <eggert@twinsun.com>
94699
94700         See the big note in ../ChangeLog.
94701         * lib/human.c (suffixes): Prefer K to k for 1024.
94702         (generate_suffix_backwards): New function.
94703         (human_readable_inexact): Use it.
94704         * lib/xstrtol.c (__xstrtol): If there is no number but there
94705         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
94706         Accept 'K' as well as 'k'.
94707
94708 2001-12-15  Jim Meyering  <meyering@lucent.com>
94709
94710         * lib/regex.h (__restrict_arr): Update from libc.
94711
94712         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
94713         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
94714         (STREQ): Define.
94715
94716 2001-12-14  Jim Meyering  <meyering@lucent.com>
94717
94718         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
94719         Suggestion from Bruno Haible.
94720
94721 2001-12-10  Jim Meyering  <meyering@lucent.com>
94722
94723         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
94724         xrealloc, Instead, include "xalloc.h".
94725         (initbuffer): Don't cast xmalloc return value to char*.
94726         (readline): Reword comment.
94727         Don't cast xrealloc return value to char*
94728         Return NULL, not 0.
94729
94730 2001-12-09  Jim Meyering  <meyering@lucent.com>
94731
94732         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
94733         about `signed and unsigned type in conditional expression'.
94734         * lib/posixtm.c (posix_time_parse): Likewise.
94735
94736         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
94737
94738         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
94739         to avoid a pedantic warning.
94740
94741         * lib/getstr.c: Don't include assert.h.
94742         (getstr): Remove warning-evoking assertions.
94743         Return -1 if offset parameter is out of bounds.
94744         Change the type of a local from int to size_t.
94745
94746         * lib/strftime.c (my_strftime_localtime_r): Include this function
94747         definition in the `#if ! HAVE_TM_GMTOFF' block.
94748
94749         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
94750         Include xalloc.h instead.
94751
94752 2001-12-02  Jim Meyering  <meyering@lucent.com>
94753
94754         * lib/tempname.c: Don't declare getenv, thus reverting the change of
94755         2001-11-18.  It's no longer necessary, now that stdlib.h is always
94756         included.
94757
94758         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
94759         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
94760
94761 2001-11-30  Akim Demaille  <akim@epita.fr>
94762
94763         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
94764         before being defined.
94765
94766 2001-11-27  Paul Eggert  <eggert@twinsun.com>
94767
94768         * lib/quotearg.h (quotearg_n, quotearg_n_style):
94769         First arg is int, not unsigned.
94770         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
94771         (SIZE_MAX, UINT_MAX): New macros.
94772         (quotearg_n_options): Abort if N is negative.
94773         Avoid overflow check on hosts where size_t is 64 bits and int
94774         is 32 bits, as overflow is impossible there.
94775         Fix off-by-one typo that caused unnecessary reallocation.
94776
94777 2001-11-27  Jim Meyering  <meyering@lucent.com>
94778
94779         * lib/tempname.c: Merge with version from libc.
94780         * lib/regex.c: Likewise.
94781
94782         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
94783         systems for which STDC_HEADERS is 0, it was not included, resulting in
94784         a warning about an integer-to-pointer conversion problem with getenv.
94785         Reported by Volker Borchert.
94786
94787 2001-11-26  Jim Meyering  <meyering@lucent.com>
94788
94789         * lib/gtod.h: Remove file.
94790         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
94791         * lib/gettimeofday.c: Don't include gtod.h.
94792         (GTOD_init): Remove function.
94793         (rpl_gettimeofday): Do its job here instead, rather than aborting.
94794         Suggestion from Volker Borchert.
94795
94796 2001-11-23  Jim Meyering  <meyering@lucent.com>
94797
94798         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
94799         it.
94800         * lib/hash.c (struct hash_table): Define it here instead.
94801
94802 2001-11-22  Jim Meyering  <meyering@lucent.com>
94803
94804         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
94805
94806 2001-11-20  Jim Meyering  <meyering@lucent.com>
94807
94808         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
94809         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
94810
94811 2001-11-19  Jim Meyering  <meyering@lucent.com>
94812
94813         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
94814         directory.  Use "conftestXXXXXX" as the template.
94815         Suggestion from Paul Eggert.
94816
94817         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
94818         immediately, so the test doesn't mistakenly hit the max-open-files
94819         limit.
94820
94821 2001-11-18  Paul Eggert  <eggert@twinsun.com>
94822
94823         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
94824         (TEMPORARIES): New macro.
94825         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
94826         removes an artificial limitation (e.g. HP-UX 10.20, where
94827         TMP_MAX is 17576).
94828
94829 2001-11-18  Jim Meyering  <meyering@lucent.com>
94830
94831         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
94832
94833 2001-11-18  Jim Meyering  <meyering@lucent.com>
94834
94835         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
94836         on SunOS 4.
94837
94838         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
94839         files will be created before anything else.
94840
94841 2001-11-17  Paul Eggert  <eggert@twinsun.com>
94842
94843         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
94844         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
94845
94846 2001-11-17  Jim Meyering  <meyering@lucent.com>
94847
94848         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
94849         Prompted by a report from Bob Proulx.
94850
94851         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
94852         Instead, require UTILS_FUNC_MKSTEMP.
94853
94854 2001-11-17  Jim Meyering  <meyering@lucent.com>
94855
94856         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
94857         Now, that's done as part of AC_FUNC_STRTOD.
94858
94859 2001-11-17  Jim Meyering  <meyering@lucent.com>
94860
94861         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
94862         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
94863         rather than group writable.  Patch by Juan F. Codagnone.
94864
94865         * lib/readtokens.c: Remove explicit declarations of xmalloc and
94866         xrealloc, Instead, include "xalloc.h".
94867
94868         * lib/mountlist.c: Include unlocked-io.h after all system headers.
94869         Remove explicit declarations of xmalloc, xrealloc,
94870         and xstrdup.  Instead, include "xalloc.h".
94871
94872         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
94873         unlocked-io.h.
94874         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
94875         Likewise.
94876         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
94877
94878         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
94879         Reported by Padraig Brady.
94880
94881         * lib/mkstemp.c: #undef mkstemp.
94882         Include config.h.
94883         (rpl_mkstemp): Rename from mkstemp.
94884         Protoize.
94885
94886 2001-11-16  Jim Meyering  <meyering@lucent.com>
94887
94888         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
94889         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
94890         determine the amount of total physical memory, use pstat_getstatic.
94891         HPUX-11 doesn't define _SC_PHYS_PAGES.
94892         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
94893         If sysconf couldn't be used to determine the amount of available
94894         physical memory, use both pstat_getstatic and pstat_getdynamic.
94895         Based on a patch from Bob Proulx.
94896
94897 2001-11-10  Jim Meyering  <meyering@lucent.com>
94898
94899         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
94900         (jm_PREREQ): Use it.
94901
94902 2001-11-09  Jim Meyering  <meyering@lucent.com>
94903
94904         * m4/jm-macros.m4: Require autoconf-2.52f.
94905         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
94906         Use these AC_-prefixed names, not the AM_-prefixed ones.
94907
94908         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
94909
94910 2001-11-05  Jim Meyering  <meyering@lucent.com>
94911
94912         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
94913
94914 2001-11-04  Jim Meyering  <meyering@lucent.com>
94915
94916         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
94917         $DEFS.
94918
94919 2001-11-03  Jim Meyering  <meyering@lucent.com>
94920
94921         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
94922         of AC_DEFUN.
94923
94924         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
94925         know the name of the variable in the macro definition.
94926
94927 2001-11-03  Jim Meyering  <meyering@lucent.com>
94928
94929         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
94930         in argmatch_to_argument call.
94931
94932         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
94933         argument.
94934
94935         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
94936         e.g., a fault due to an attempt to free a NULL pointer.
94937
94938 2001-11-01  Jim Meyering  <meyering@lucent.com>
94939
94940         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
94941         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
94942
94943 2001-11-01  Jim Meyering  <meyering@lucent.com>
94944
94945         * lib/dirfd.c, lib/dirfd.h: New files.
94946         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
94947
94948         * lib/hash.c (hash_print) [TESTING]: Clean up.
94949
94950 2001-10-22  Paul Eggert  <eggert@twinsun.com>
94951
94952         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
94953         to avoid a warning if -Wall.
94954
94955 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
94956
94957         * README: New file
94958         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
94959         (per RMS's instructions, this is now the canonical source)
94960         * lgpl/, gpl/: New directories.
94961
94962 2001-10-21  Paul Eggert  <eggert@twinsun.com>
94963
94964         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
94965
94966 2001-10-21  Jim Meyering  <meyering@lucent.com>
94967
94968         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
94969         this code would end up calling gettext even in packages built
94970         with --disable-nls.
94971         * lib/getopt.c (_): Likewise.
94972         * lib/regex.c (_): Likewise.
94973
94974 2001-10-20  Paul Eggert  <eggert@twinsun.com>
94975
94976         * m4/error.m4 (jm_PREREQ_ERROR):
94977         Do not invoke AC_CHECK_FUNCS with strerror_r, as
94978         AC_FUNC_STRERROR_R does that.
94979         Check for strerror declaration.
94980
94981         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
94982         are supposed to have them these days.
94983         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
94984         Merge changes from latest Autoconf CVS.
94985         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
94986         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
94987         POSIX decided to standardize on the int flavor of strerror_r.
94988
94989 2001-10-20  Paul Eggert  <eggert@twinsun.com>
94990
94991         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
94992         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
94993         Use strerror_r that is only a macro, even if it is not a function.
94994         (strerror): Check for HAVE_DECL_STRERROR before declaring.
94995         (private_strerror): Use prototypes, not old-style function definition.
94996         (print_errno_message): New function.
94997         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
94998         char*-flavored one.
94999         (error_tail, error, error_at_line): Use it.
95000
95001 2001-10-11  Jim Meyering  <meyering@lucent.com>
95002
95003         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
95004         and quote_n (1, ... to avoid clobbering a buffer.
95005
95006 2001-10-05  Jim Meyering  <meyering@lucent.com>
95007
95008         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
95009         hash-pjw.h.
95010         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
95011         * lib/hash-pjw.h: New file.
95012
95013 2001-09-30  Jim Meyering  <meyering@lucent.com>
95014
95015         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
95016         `struct fsstat' has the `f_fstypename' member.
95017         Use that to define FS_TYPE, which is now used to make
95018         the getfsstat link test tighter.
95019
95020 2001-09-30  Jim Meyering  <meyering@lucent.com>
95021
95022         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
95023         Include <sys/ucred.h>, for Apple Darwin.
95024         Include sys/mount.h and sys/fs_types.h only if available.
95025         (FS_TYPE): Define.
95026         (read_filesystem_list): Use FS_TYPE.
95027
95028 2001-09-29  Paul Eggert  <eggert@twinsun.com>
95029
95030         * lib/exclude.c (excluded_filename): 0 -> false, since it's
95031         a boolean context.
95032
95033 2001-09-29  Jim Meyering  <meyering@lucent.com>
95034
95035         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
95036         [one-argument getmntent function]): Include stdio.h before mntent.h.
95037         SunOS 4.1.x needs it for the declaration of `FILE'.
95038         Patch by Volker Borchert.
95039
95040         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
95041         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
95042         sys/fs_types.h, and make the link-test for getfsstat guard #include
95043         directives with appropriate #if HAVE_*_H tests so that we can
95044         detect getfsstat on Apple Darwin1.3.7 systems.
95045         Reported by Nelson Beebe.
95046         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
95047
95048 2001-09-28  Paul Eggert  <eggert@twinsun.com>
95049
95050         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
95051         #defines strtoimax.  Also treat the other strto* functions
95052         like strtoimax.
95053
95054         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
95055         Check for strtoul and strtoumax,
95056         as those declarations are made even in the signed case.
95057         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
95058         Likewise, for strtol and strtoimax.
95059
95060 2001-09-28  Paul Eggert  <eggert@twinsun.com>
95061
95062         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
95063         #defines strtoimax.  Also treat the other strto* functions
95064         like strtoimax.
95065
95066         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
95067         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
95068         (strtoimax, strtoumax): Do not declare if already defined as a macro.
95069
95070 2001-09-26  Jim Meyering  <meyering@lucent.com>
95071
95072         Most macros in unlocked-io.h had the wrong number of arguments.
95073         * lib/gen-uio: New script.
95074         (USE_UNLOCKED_IO): Define to 1 if not already defined.
95075         * lib/unlocked-io.hin: Remove file.
95076         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
95077         rather than trying to embed it here.
95078         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
95079         Reported by Padraig Brady.
95080
95081 2001-09-25  Volker Borchert  <bt@teknon.de>
95082
95083         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
95084         `result'.
95085
95086 2001-09-24  Jim Meyering  <meyering@lucent.com>
95087
95088         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
95089
95090 2001-09-23  Jim Meyering  <meyering@lucent.com>
95091
95092         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
95093         instead of the mere test for existence of mntent.h.  The latter
95094         would get a false-positive on AIX 3.4 systems.
95095         In the outer getmntent if-block, don't die if neither of the getmntent
95096         tests succeeds.  Instead, just fall through and continue with the
95097         remaining tests.
95098
95099 2001-09-23  Jim Meyering  <meyering@lucent.com>
95100
95101         * lib/mountlist.c: Remove useless parentheses in #if directives.
95102         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
95103         the deprecated MOUNTED symbol is no longer defined in mntent.h.
95104
95105 2001-09-22  Jim Meyering  <meyering@lucent.com>
95106
95107         * m4/gettext.m4: New file.  From gettext.
95108         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
95109         * m4/progtest.m4: Likewise
95110         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
95111         * m4/glibc21.m4: Likewise.
95112
95113         * m4/libintl.m4: Remove.  No longer used.
95114
95115 2001-09-22  Jim Meyering  <meyering@lucent.com>
95116
95117         * lib/localcharset.c: Update from latest gettext.
95118         * lib/config.charset: Likewise.
95119
95120 2001-09-20  Jim Meyering  <meyering@lucent.com>
95121
95122         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
95123         strtoimax.
95124         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
95125         strtoumax.
95126
95127 2001-09-20  Jim Meyering  <meyering@lucent.com>
95128
95129         * lib/xstrtol.c (strtoimax): Guard declaration with
95130         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
95131         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
95132         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
95133         (strtoumax): Likewise, for completeness (it wasn't necessary).
95134
95135 2001-09-17  Paul Eggert  <eggert@twinsun.com>
95136
95137         * lib/strtoimax.c (HAVE_LONG_LONG):
95138         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
95139         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
95140         to work around bug in IBM C compiler.
95141
95142 2001-09-17  Jim Meyering  <meyering@lucent.com>
95143
95144         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
95145         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
95146         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
95147         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
95148         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
95149         whenever the right hand side need not be expanded by the shell.
95150
95151 2001-09-16  Paul Eggert  <eggert@twinsun.com>
95152
95153         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
95154         library.  It's not correct, as some older glibcs are buggy.
95155         fnmatch wasn't fixed until glibc 2.2.
95156
95157         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
95158         special shell magic here.
95159
95160 2001-09-16  Jim Meyering  <meyering@lucent.com>
95161
95162         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
95163         * m4/jm-macros.m4: Require it.
95164
95165 2001-09-16  Jim Meyering  <meyering@lucent.com>
95166
95167         * lib/mkdir.c: New file.
95168
95169 2001-09-15  Jim Meyering  <meyering@lucent.com>
95170
95171         * m4/jm-macros.m4: Check for help2man.
95172
95173 2001-09-11  Jim Meyering  <meyering@lucent.com>
95174
95175         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
95176         The body, by Paul Eggert, was moved here from configure.in.
95177         * m4/jm-macros.m4: Require UTILS_HOST_OS.
95178
95179 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95180
95181         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
95182         (jm_PREREQ): Use it.
95183
95184 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95185
95186         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
95187         Use ssize_t, not int, to store result of readlink.
95188         Check for ssize_t overflow as well as size_t overflow,
95189         as POSIX says the result of readlink is implementation-defined
95190         when ssize_t overflows.
95191         Remove unnecessary cast to char*.
95192         Use free+malloc instead of realloc, as the storage doesn't need
95193         to be preserved and it's clearer and can be more efficient that way.
95194         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
95195         * lib/xreadlink.h (xreadlink): Update prototype.
95196
95197 2001-09-04  Paul Eggert  <eggert@twinsun.com>
95198
95199         * lib/xgetcwd.c: Revert some of the previous change; intead,
95200         fix the HAVE_GETCWD_NULL code to behave more like the
95201         !HAVE_GETCWD_NULL code used to.
95202
95203         Include "xalloc.h".
95204         (xgetcwd): Do not return NULL when memory is exhausted; instead,
95205         invoke xalloc_die.
95206
95207 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95208
95209         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
95210         sys/param.h, as pathmax.h includes them.
95211
95212 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95213
95214         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
95215         (jm_PREREQ_XGETCWD): New macro.
95216
95217         * m4/getcwd.m4: New file.
95218
95219 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95220
95221         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
95222         like the HAVE_GETCWD_NULL code.
95223         Include pathmax.h if not HAVE_GETCWD.
95224         Do not include xalloc.h.
95225         (INITIAL_BUFFER_SIZE): New symbol.
95226         Do not use xmalloc / xrealloc, since the caller is responsible for
95227         handling errors.  Preserve errno around `free' during failure.
95228         Do not overrun buffer when using getwd.
95229
95230 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95231
95232         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
95233         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
95234         getcwd (NULL, 0).
95235
95236 2001-09-03  Paul Eggert  <eggert@twinsun.com>
95237
95238         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
95239         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
95240         spotted by Jim Meyering.
95241
95242 2001-09-03  Jim Meyering  <meyering@lucent.com>
95243
95244         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
95245         failure.
95246
95247 2001-09-02  Jim Meyering  <meyering@lucent.com>
95248
95249         * lib/error.c: Update from GNU libc.
95250
95251 2001-09-01  Jim Meyering  <meyering@lucent.com>
95252
95253         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
95254         Used by df.
95255
95256 2001-09-01  Jim Meyering  <meyering@lucent.com>
95257
95258         * lib/xreadlink.c: New file.
95259         * lib/xreadlink.h: New file.
95260         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
95261         xreadlink.h.
95262
95263         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
95264         doesn't conflict with sparc Solaris 7's definition in
95265         /usr/include/sys/int_types.h.
95266
95267         * lib/exclude.c: Use `""', not `<>' to #include non-system header
95268         files.
95269         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
95270         and strncasecmp as r-values.  Unixware didn't have declarations.
95271
95272 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95273
95274         * lib/xstrtol.h: Add copyright notice.
95275         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
95276         LONGINT_INVALID_SUFFIX_CHAR.
95277
95278 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95279
95280         * lib/xstrtol.c (strtoimax): New decl.
95281
95282 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95283
95284         * lib/xgetcwd.c: Don't include pathmax.h.
95285         Include stdlib.h and unistd.h if available.
95286         Include xalloc.h.
95287         (xmalloc, xstrdup, free): Remove decls.
95288         (xgetcwd): Don't assume sizes fit in unsigned.
95289         Check for overflow when computing sizes.
95290         Simplify reallocation code.
95291
95292 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95293
95294         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
95295         a directory's st_size can have an arbitrary value, so the old
95296         usage could waste an arbitrary amount of memory.  All uses
95297         changed.
95298         * lib/savedir.h: Update prototype.
95299
95300 2001-08-31  Paul Eggert  <eggert@twinsun.com>
95301
95302         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
95303
95304         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
95305         old strtoimax.c.
95306
95307         Also, make the following further changes to make this file's
95308         configuration more similar to that of strtol.c:
95309         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
95310         (strtoumax, uintmax_t, strtoull, strtol): Remove.
95311         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
95312         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
95313         changed to signed values.
95314
95315         And make the following changes as well:
95316         Fix copyright notice, as 1999 was missing.
95317         (verify): New macro.
95318         (strtoimax): Check sizes at compile-time, not run-time.
95319         Prefer strtol to strtoll if both work.
95320         (main): Remove; it was not that useful and was a pain to maintain.
95321
95322         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
95323
95324 2001-08-31  Jim Meyering  <meyering@lucent.com>
95325
95326         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
95327         Use an initial, malloc'd, buffer of length 128 rather than
95328         a statically allocated one of length 1024.
95329
95330 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95331
95332         Simplify code, partly by assuming autoconf 2.52 semantics.
95333
95334         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
95335
95336         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
95337         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
95338         All uses removed.
95339         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
95340         Move AC_REQUIRE to next-to-top level, to avoid confusion.
95341         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
95342         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
95343         jm_AC_HEADER_INTTYPES_H.
95344         * m4/jm-macros.m4 (jm_MACROS): Likewise.
95345
95346         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
95347
95348         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
95349         Quote first arg of AC_DEFUN.
95350         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
95351         since they are needed to parse the include file even if we need
95352         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
95353         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
95354         but with opposite signedness.
95355
95356 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95357
95358         Merge 'exclude' changes from tar 1.13.22.
95359         This fixes one or two unlikely storage allocation overflow bugs,
95360         but doesn't change user-visible behavior otherwise.
95361
95362 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95363
95364         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
95365         (jm_PREREQ_EXCLUDE): New macro.
95366
95367 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95368
95369         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
95370         tm to be declared.
95371
95372 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95373
95374         * lib/hash.c: Remove '2001' from copyright notice.
95375
95376 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95377
95378         * lib/full-write.h: New file.
95379         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
95380         * lib/full-write.c: Correct credits, as cccp.c no longer
95381         exists and anyway it was so heavily changed from the old cccp
95382         code as to be unrecognizable.  Include full-write.h.
95383         (full_write): Return size_t, with short writes meaning failure.
95384         All callers changed.  This fixes a bug with large buffers
95385         on 64-bit hosts.
95386         * lib/utime.c: Include full-write.h.
95387
95388 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95389
95390         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
95391         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
95392         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
95393         Include if available.
95394         (<xalloc.h>): Include
95395         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
95396         (verify): New macro.  Use it to verify that EXCLUDE macros do not
95397         collide with FNM macros.
95398         (struct patopts): New struct.
95399         (struct exclude): Use it, as exclude patterns now come with options.
95400         (new_exclude): Support above changes.
95401         (new_exclude, add_exclude_file):
95402         Initial size must now be a power of two to simplify overflow checking.
95403         (free_exclude, fnmatch_no_wildcards): New function.
95404         (excluded_filename): No longer requires options arg, as the options
95405         are determined by add_exclude.  Now returns bool, not int.
95406         (excluded_filename, add_exclude):
95407         Add support for the fancy new exclusion options.
95408         (add_exclude, add_exclude_file): Now takes int options arg.
95409         Check for arithmetic overflow when computing sizes.
95410         (add_exclude_file): xrealloc might modify errno, so don't
95411         realloc until after errno might be used.
95412
95413         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
95414         New macros.
95415         (free_exclude): New decl.
95416         (add_exclude, add_exclude_file): Now takes int options arg.
95417         (excluded_filename): No longer requires options arg, as the options
95418         are determined by add_exclude.  Now returns bool, not int.
95419
95420 2001-08-30  Paul Eggert  <eggert@twinsun.com>
95421
95422         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
95423
95424 2001-08-27  Jim Meyering  <meyering@lucent.com>
95425
95426         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
95427
95428         * lib/version-etc.c (N_): Remove definition.
95429         Revert most of last change.
95430         Instead, simply don't mark the `Copyright...' string for translation.
95431         Based on advice from Paul Eggert.
95432
95433         * lib/strtoxmax.c: Tweak comment.
95434
95435 2001-08-26  Jim Meyering  <meyering@lucent.com>
95436
95437         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
95438
95439         * m4/xstrtoimax.m4: New file.
95440         * m4/xstrtoumax.m4: Add comments explaining why we
95441         AC_REPLACE_FUNCS(strtol).
95442
95443 2001-08-26  Jim Meyering  <meyering@lucent.com>
95444
95445         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
95446         of copyright with `%s' so translators don't get an untranslated
95447         message in 2002.
95448         (COPYRIGHT_YEAR): Define.
95449         (version_etc): Use fprintf rather than fputs.
95450         Suggestion from Ulrich Drepper.
95451
95452         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
95453
95454         * lib/strtoll.c: New file, from GNU libc.
95455         * lib/xstrtoimax.c: New file.
95456
95457         * lib/xstrtol.h: Add xstrtoimax.
95458         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
95459         * lib/strtoimax.c: New file.  Likewise, but first define
95460         STRTOUXMAX_SIGNED.
95461
95462         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
95463         ...
95464         * lib/strtoxmax.c: ... then renamed to this.
95465
95466 2001-08-18  Paul Eggert  <eggert@twinsun.com>
95467
95468         * m4/inttypes.m4: Add AC_PREREQ(2.13).
95469         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
95470         (jm_AC_TYPE_INTMAX_T): New macro.
95471         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
95472
95473         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
95474
95475         * m4/longlong.m4: Renamed from ulonglong.m4.
95476         * m4/inttypes.m4: Renamed from inttypes_h.m4.
95477         * m4/uintmax_t.m4: Removed.
95478
95479 2001-08-13  Paul Eggert  <eggert@twinsun.com>
95480
95481         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
95482         Port to Solaris 8, where 'sed' requires a space after the 'r'
95483         command, and where sh dislikes "$/".  Clean up the spacing a bit.
95484         Redirect output to $tmp just once.
95485
95486 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
95487
95488         * lib/addext.c (<errno.h>): Include.
95489         (errno): Declare if not defined.
95490         (addext): Work correctly when pathconf returns -1 and leaves
95491         errno alone because there is no limit.  Also, work even if
95492         pathconf returns a value greater than SIZE_MAX.
95493
95494 2001-08-12  Jim Meyering  <meyering@lucent.com>
95495
95496         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
95497         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
95498         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
95499         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
95500         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
95501         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
95502         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
95503         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
95504         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
95505         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
95506         utime.m4, utimes.m4, xstrtoumax.m4:
95507         Quote the first argument in each use of AC_DEFUN.
95508
95509 2001-08-12  Jim Meyering  <meyering@lucent.com>
95510
95511         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
95512         Simply `return getcwd (NULL, 0);'.
95513         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
95514         Use 1300 as initial value for length, not PATH_MAX.
95515
95516         * lib/pathmax.h: Clean up cpp syntax.
95517
95518 2001-08-12  Jim Meyering  <meyering@lucent.com>
95519
95520         * lib/gettimeofday.c: New file.
95521         * lib/gtod.h: New file.
95522         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
95523
95524 2001-08-05  Jim Meyering  <meyering@lucent.com>
95525
95526         * m4/jm-macros.m4: Require autoconf-2.52.
95527
95528 2001-08-04  Jim Meyering  <meyering@lucent.com>
95529
95530         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
95531         stmt, to get in sync with glibc.
95532
95533 2001-08-03  Paul Eggert  <eggert@twinsun.com>
95534
95535         The following changes are from gettext 0.10.39 as maintained by
95536         Bruno Haible.
95537
95538         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
95539         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
95540         with inverted sense.  All uses changed.
95541
95542         * lib/mbswidth.c: Don't include <limits.h>.
95543         Include <stdlib.h> and <string.h> unconditionally.
95544         (iswcntrl, mbsinit, ISCNTRL): New macros.
95545         (mbsnwidth): Use K&R style function declarations.
95546         Don't bother checking for MB_LEN_MAX == 1, since the compiler
95547         can optimize it when MB_CUR_MAX == 1.
95548         The width of control characters is zero, not 1.
95549
95550 2001-08-03  Paul Eggert  <eggert@twinsun.com>
95551
95552         The following changes are from gettext 0.10.39 as maintained by
95553         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
95554
95555         * m4/codeset.m4: Upgrade to serial AM1.
95556         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
95557         all uses changed.  Quote first arg of AC_DEFUN.
95558         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
95559
95560         * m4/iconv.m4: Upgrade to serial AM2.
95561         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
95562         Add --with-libconv-prefix.
95563         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
95564         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
95565         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
95566         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
95567         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
95568
95569         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
95570         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
95571         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
95572         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
95573         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
95574         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
95575         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
95576         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
95577         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
95578
95579         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
95580         string.h any more.
95581
95582         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
95583         not the default value.
95584
95585         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
95586         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
95587         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
95588         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
95589         Also check for iswcntrl, used for wcwidth fallback.
95590         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
95591         to Autoconf 2.13.
95592
95593 2001-08-03  Jim Meyering  <meyering@lucent.com>
95594
95595         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
95596         as it was in the original.  Reported by Paul Eggert.
95597
95598 2001-07-16  Jim Meyering  <meyering@lucent.com>
95599
95600         * m4/gettimeofday.m4: New file.
95601         Prompted by a report from Bernhard Baehr.
95602
95603 2001-07-15  Jim Meyering  <meyering@lucent.com>
95604
95605         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
95606         stuff. Now it's in ../Makefile.cfg.
95607
95608 2001-07-15  Jim Meyering  <meyering@lucent.com>
95609
95610         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
95611         (BUILT_SOURCES): Add unlocked-io.h.
95612         (io_functions): Define.
95613         (unlocked-io.h): New rule.
95614         (DISTCLEANFILES): Add unlocked-io.h.
95615         (all-local): Depend on unlocked-io.h, to ensure it is created.
95616
95617         * lib/unlocked-io.hin: New file
95618
95619         * lib/regex.c: Update from glibc.
95620
95621 2001-07-05  Jim Meyering  <meyering@lucent.com>
95622
95623         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
95624         recommendation.
95625         (libfetish_a_SOURCES): Put all .h files here instead.
95626         Remove a thus-exposed (better checks in automake) duplicate and
95627         two unnecessary .h files.
95628
95629 2001-07-04  Jim Meyering  <meyering@lucent.com>
95630
95631         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
95632         that generates jm-glibc-io.m4 so that it doesn't trigger any make
95633         distcheck failure.
95634
95635 2001-07-02  Jim Meyering  <meyering@lucent.com>
95636
95637         The following changes were prompted by suggestions from Bruno Haible.
95638
95639         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
95640         is now generated.
95641         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
95642         definition of EXTRA_DIST.
95643         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
95644         ensure that the generated file is created/updated whenever the list
95645         of $(unlocked_functions) is changed.
95646         (jm-glibc-io.m4): New rule.
95647         (unlocked-io.h): New rule -- currently unused.
95648
95649 2001-06-24  Jim Meyering  <meyering@lucent.com>
95650
95651         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
95652         unmatched right bracket, rather than kludging it with an extra,
95653         falsely-matching quote in a comment.  Patch by Akim Demaille.
95654
95655 2001-06-11  Jim Meyering  <meyering@lucent.com>
95656
95657         * lib/regex.c: Update from GNU libc.
95658
95659 2001-05-27  Jim Meyering  <meyering@lucent.com>
95660
95661         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
95662         Check for ut_type in struct utmp.
95663
95664 2001-05-27  Jim Meyering  <meyering@lucent.com>
95665
95666         * lib/readutmp.h (UT_TYPE): Define.
95667
95668 2001-05-24  Jim Meyering  <meyering@lucent.com>
95669
95670         * lib/argmatch.c: Include "quote.h".
95671         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
95672         quote function.  Reported by Göran Uddeborg.
95673
95674 2001-05-22  Jim Meyering  <meyering@lucent.com>
95675
95676         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
95677         now that we use the package-supplied version unconditionally.
95678         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
95679
95680 2001-05-21  Jim Meyering  <meyering@lucent.com>
95681
95682         * m4/regex.m4: Change a couple backticks to single quotes to avoid
95683         shell syntax errors.
95684
95685 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
95686
95687         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
95688
95689 2001-05-20  Paul Eggert  <eggert@twinsun.com>
95690
95691         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
95692         Don't bother to check library strftime, since
95693         we'll be using our own my_strftime function anyway.
95694         Define my_strftime instead of strftime.
95695
95696 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
95697
95698         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
95699         which is not yet declared.
95700
95701 2001-05-15  Jim Meyering  <meyering@lucent.com>
95702
95703         * m4/regex.m4: Use proper quoting so brackets appear in the test
95704         program.
95705         Reported by, and with help from, Bruno Haible.
95706
95707 2001-05-13  Jim Meyering  <meyering@lucent.com>
95708
95709         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
95710         undefined.
95711
95712 2001-05-11  Paul Eggert  <eggert@twinsun.com>
95713
95714         dirname code cleanup.  base_name now behaves more compatibly
95715         with POSIX basename when given file names that have trailing
95716         slashes, and similarly for dir_name.  Add new primitives
95717         base_len and dir_len.  Put the directory-name-related decls
95718         into dirname.h.
95719
95720         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
95721         * lib/backupfile.c (base_name): Likewise.
95722         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
95723         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
95724         * lib/makepath.c (strip_trailing_slashes): Likewise.
95725         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
95726         ISSLASH): Likewise.
95727         * lib/rename.c (strip_trailing_slashes): Likewise.
95728         * lib/same.c (base_name): Likewise.
95729         * lib/stripslash.c (ISSLASH): Likewise.
95730
95731         * lib/addext.c: Include <dirname.h> after size_t is defined.
95732         * lib/backupfile.c: Likewise.
95733
95734         * lib/addext.c (addext): Use base_len to trim redundant
95735         trailing slashes instead of doing it ourselves.
95736         But do not trim the last slash if it is not redundant.
95737
95738         * lib/backupfile.c (find_backup_file_name,
95739         max_backup_version): Use base_len instead of rolling it ourselves.
95740         Handle the case of "" and (on DOS) "C:" correctly.
95741
95742         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
95743         needed. Include <string.h>, <dirname.h>.
95744         (base_name): Allow file names ending in slashes, other than names
95745         that are all slashes.  In this case, return the basename followed
95746         by the slashes.  This is more general, and can be used in places
95747         where the original base_name purposely had an assertion failure.
95748         (base_len): New function.
95749
95750         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
95751         Do not include <assert.h>; no longer needed.
95752         Include xalloc.h.
95753         (memrchr): Remove decl.
95754         (dir_name_r): Remove.
95755         (dir_len): Renamed from dirlen.  All callers changed.
95756         Rewrite in terms of base_name, for simplicity and consistency.
95757         (dir_name): Never return NULL.  All callers changed.
95758         Do not include <stdlib.h> in test program; no longer needed.
95759         return 0; is fine for test program.
95760
95761         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
95762         New macros.
95763         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
95764
95765         * lib/path-concat.c (path_concat): Use base_len to compute
95766         base length, not strlen; this means we cannot rely on memcpy
95767         to null-terminate.
95768
95769         * lib/same.c (STREQ): Remove.
95770         (same_name): Handle the case where the basename ends in trailing '/'.
95771
95772         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
95773         a slash was stripped.  Do not strip the last slash after a
95774         file system prefix.
95775
95776 2001-05-11  Paul Eggert  <eggert@twinsun.com>
95777
95778         * lib/Makefile.am (libfetish_a_SOURCES):
95779         Add strftime.c, since we now compile it on all hosts.
95780
95781         * lib/strftime.c (my_strftime):
95782         Define to nstrftime if emacs, but only if my_strftime is not defined.
95783         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
95784         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
95785         Add one more extra argument: a nanoseconds value.
95786         All uses changed.
95787         (ns): New macro.
95788         (my_strftime function): Add %N format.
95789         (emacs_strftimeu): Renamed from emacs_strftime,
95790         with extra ut argument.
95791
95792 2001-05-09  Paul Eggert  <eggert@twinsun.com>
95793
95794         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
95795
95796 2001-04-21  Jim Meyering  <meyering@lucent.com>
95797
95798         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
95799         doesn't interfere.
95800
95801 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
95802
95803         * m4/ftruncate.m4: Check for chsize.
95804         Link with ftruncate.o unconditionally if ftruncate is missing.
95805         This was required when cross-compiling to i586-mingw32msvc.
95806
95807 2001-04-08  Jim Meyering  <meyering@lucent.com>
95808
95809         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
95810         recomputed; that's necessary when the offset spans a DST transition.
95811         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
95812
95813 2001-04-02  Jim Meyering  <meyering@lucent.com>
95814
95815         * lib/regex.h, regex.c: Update from GNU libc.
95816
95817 2001-03-24  Jim Meyering  <meyering@lucent.com>
95818
95819         * m4/jm-macros.m4: Require autoconf-2.49d.
95820
95821 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
95822
95823         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
95824
95825 2001-03-19  Paul Eggert  <eggert@twinsun.com>
95826
95827         * lib/version-etc.c (version_etc_copyright): Update to 2001.
95828
95829 2001-03-17  Jim Meyering  <meyering@lucent.com>
95830
95831         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
95832         now that the version in autoconf is equivalent.
95833         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
95834
95835         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
95836         Suggestion from Akim Demaille.
95837
95838         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
95839         (jm_PREREQ_TEMPNAME): New function.
95840
95841 2001-03-16  Paul Eggert  <eggert@twinsun.com>
95842
95843         * lib/tempname.c (uint64_t): Define to uintmax_t if
95844         not defined, and if UINT64_MAX is not defined.
95845         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
95846         Reported by John David Anglin.
95847
95848 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
95849
95850         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
95851         resolve alias if codeset is empty.
95852         * lib/config.charset (BeOS): Use wildcard syntax.
95853
95854 2001-03-13  Jim Meyering  <meyering@lucent.com>
95855
95856         * lib/path-concat.c (path_concat)
95857         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
95858         concatenating e.g., `C:' and `foo'.
95859         From Bruno Haible.
95860
95861 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
95862
95863         * lib/localcharset.c (locale_charset): Don't use
95864         setlocale(LC_CTYPE,NULL). Don't return NULL.
95865         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
95866
95867 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
95868
95869         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
95870         support for DOS/DJGPP.
95871
95872 2001-03-01  Paul Eggert  <eggert@twinsun.com>
95873
95874         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
95875         lacks mkstemp.  Compile our own tempname.c if we compile our own
95876         mkstemp.c, as mkstemp relies on tempname.
95877
95878 2001-03-01  Jim Meyering  <meyering@lucent.com>
95879
95880         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
95881         AH_VERBATIM really does output its argument verbatim.
95882
95883 2001-02-28  Paul Eggert  <eggert@twinsun.com>
95884
95885         * lib/Makefile.am (libfetish_a_SOURCES):
95886         Add dup-safer.c, fopen-safer.c.
95887         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
95888
95889         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
95890         * lib/unistd-safer.h: New files.
95891
95892 2001-02-25  Paul Eggert  <eggert@twinsun.com>
95893
95894         The mkstemp replacement is taken from glibc 2.2.2, with some
95895         portability fixes for use outside glibc, as follows:
95896
95897         * lib/tempname.c (struct_stat64): New macro.
95898         (direxists, __gen_tempname): Use it.
95899         This avoids a portability problem with Solaris 8.
95900
95901         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
95902         (<stddef.h>, <stdint.h>, <string.h>):
95903         Include only if STDC_HEADERS || _LIBC.
95904         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
95905         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
95906         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
95907         (__set_errno): Define this macro if <errno.h> doesn't.
95908         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
95909         Define these macros if <stdio.h> doesn't.
95910         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
95911         Define these macros if <sys/stat.h>
95912         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
95913         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
95914         __xstat64): Define if not _LIBC.
95915         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
95916         (__gen_tempname): Invoke gettimeofday only if
95917         HAVE_GETTIMEOFDAY || _LIBC;
95918         otherwise, fall back on plain "time".
95919         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
95920
95921         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
95922
95923         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
95924
95925 2001-02-18  Paul Eggert  <eggert@twinsun.com>
95926
95927         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
95928
95929 2001-02-17  Paul Eggert  <eggert@twinsun.com>
95930
95931         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
95932         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
95933         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
95934         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
95935
95936 2001-02-17  Paul Eggert  <eggert@twinsun.com>
95937
95938         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
95939         Remove workaround macros for hosts that have mbrtowc but not
95940         mbstate_t, as we now insist on proper declarations for both
95941         before using mbrtowc.
95942
95943 2001-02-17  Jim Meyering  <meyering@lucent.com>
95944
95945         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
95946         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
95947         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
95948         UnixWare 7.1.1.
95949
95950         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
95951         rather than AC_CACHE_VAL.
95952
95953 2001-02-17  Jim Meyering  <meyering@lucent.com>
95954
95955         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
95956         around included file name.
95957
95958         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
95959
95960         * lib/strftime.c: Update from GNU libc (the only changes were to
95961         comments).
95962
95963 2001-02-17  Jim Meyering  <meyering@lucent.com>
95964
95965         * lib/regex.c: Update from libc.
95966
95967 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
95968
95969         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
95970         clash.
95971
95972 2001-02-16  Paul Eggert  <eggert@twinsun.com>
95973
95974         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
95975         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
95976         Reported by Mark Hounschell via Paul Eggert.
95977
95978 2001-02-07  Jim Meyering  <meyering@lucent.com>
95979
95980         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
95981
95982 2001-02-05  Jim Meyering  <meyering@lucent.com>
95983
95984         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
95985         it includes the patch required for `large file' support with at least
95986         HP-UX's 10.20 /bin/cc.
95987
95988 2001-02-03  Jim Meyering  <meyering@lucent.com>
95989
95990         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
95991         AS_IF, now that it works once again (mysteriously).
95992         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
95993
95994 2001-01-30  Jim Meyering  <meyering@lucent.com>
95995
95996         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
95997         * m4/chown.m4: Rename conftestchown to conftest.chown.
95998         * m4/rename.m4: s/conftestdir/conftest.d1/ and
95999         s/conftestdir2/conftest.d2/.
96000         * m4/utimes.m4: s/conftestdata/conftest.data/
96001         Inspired by Pavel Roskin's change in autoconf.
96002
96003 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
96004
96005         * lib/config.charset: Update for FreeBSD 4.2.
96006
96007 2001-01-27  Jim Meyering  <meyering@lucent.com>
96008
96009         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
96010         a use of AS_IF.
96011         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
96012
96013 2001-01-26  Jim Meyering  <meyering@lucent.com>
96014
96015         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
96016         quotearg.c includes it.
96017
96018 2001-01-26  Jim Meyering  <meyering@lucent.com>
96019
96020         * lib/quotearg.c: Include stddef.h.
96021         * lib/quote.c: Include stddef.h.
96022         Reported by Axel Kittenberger.
96023
96024         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
96025         line in double quotes so that it evokes a better diagnostic.
96026         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
96027         Reported by Axel Kittenberger.
96028
96029 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
96030
96031         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
96032         as if it was a `charset'.
96033
96034 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
96035
96036         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
96037         has const.
96038
96039 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
96040
96041         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
96042         to avoid a warning.  Add back 'const' to inptr.
96043
96044 2001-01-20  Jim Meyering  <meyering@lucent.com>
96045
96046         Be sure that headers are checked before used in code compiled
96047         for the type checks.
96048         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
96049         In place of that, invoke jm_CHECK_ALL_TYPES.
96050         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
96051         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
96052         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
96053         The check for ssize_t was mistakenly run before the test for unistd.h.
96054
96055         The configure-time check for stdbool.h was missing.
96056         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
96057         (jm_PREREQ_HASH): New function.
96058
96059 2001-01-17  Jim Meyering  <meyering@lucent.com>
96060
96061         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
96062         for autoconf-2.49c.
96063         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
96064
96065 2001-01-16  Jim Meyering  <meyering@lucent.com>
96066
96067         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
96068         From Bruno Haible.
96069
96070 2001-01-14  Jim Meyering  <meyering@lucent.com>
96071
96072         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
96073         foo and bar.  Create conftestdir/ in the script, not in the C code.
96074         Remove directories in the script, not in the C code.
96075         Remove conftestdir{,2} before trying to create the directory.
96076         Make the entire configure script fail if the mkdir fails.
96077
96078 2001-01-14  Jim Meyering  <meyering@lucent.com>
96079
96080         * lib/rename.c: New file.  From Volker Borchert.
96081         Include stdlib.h, string.h or strings.h, and xalloc.h.
96082         Use strip_trailing_slashes rather than open-coding it.
96083
96084 2001-01-03  Paul Eggert  <eggert@twinsun.com>
96085
96086         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
96087
96088 2001-01-03  Jim Meyering  <meyering@lucent.com>
96089
96090         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
96091         of local `inptr' to avoid warning with some system declarations of
96092         iconv.
96093
96094 2001-01-02  Volker Borchert  <bt@teknon.de>
96095
96096         * m4/rename.m4: New file.
96097         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
96098
96099 2001-01-01  Jim Meyering  <meyering@lucent.com>
96100
96101         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
96102         even on systems with utmpx.h.  It's necessary for the declaration of
96103         utmp's ut_user member.  Reported by Andreas Jaeger.
96104
96105         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
96106         available. They are required for the declarations of getgrgid and
96107         getpwuid resp.
96108         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
96109         Reported by Andreas Jaeger.
96110
96111 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
96112
96113         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
96114         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
96115         so `make install' also works in VPATH builds.
96116
96117 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
96118
96119         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
96120         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
96121         can be used in subdirectories.
96122
96123 2000-12-29  Paul Eggert  <eggert@twinsun.com>
96124
96125         * lib/modechange.c: Do not assume that mode_t uses the
96126         traditional octal encoding.  E.g. "chmod 1 FOO" should set
96127         the other-execute bit of FOO even if S_IXOTH != 1.
96128
96129         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
96130         WOTH, XOTH, ALLM): New macros.
96131         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
96132          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
96133         Use them.
96134         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
96135         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
96136         (mode_compile):
96137         No need to use uintmax_t; unsigned long is long enough.
96138         Don't bother to get suffix since we don't use it.
96139
96140 2000-12-26  Jim Meyering  <meyering@lucent.com>
96141
96142         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
96143         better with autoheader.
96144
96145 2000-12-24  Jim Meyering  <meyering@lucent.com>
96146
96147         * lib/hash.c (is_prime): Return explicit boolean values.
96148         (hash_get_first): Return NULL to appease Irix5.6's 89.
96149         Reported by Nelson Beebe.
96150
96151 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
96152
96153         * lib/localcharset.c (locale_charset): Add support for Win32.
96154
96155 2000-12-18  Paul Eggert  <eggert@twinsun.com>
96156
96157         * lib/physmem.h, lib/physmem.c: New files.
96158
96159         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
96160         (noinst_HEADERS): Add physmem.h.
96161
96162         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
96163         't' for compatibility with Solaris 8 sort.
96164
96165 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
96166
96167         * lib/config.charset: Add support for BeOS.
96168
96169 2000-12-17  Jim Meyering  <meyering@lucent.com>
96170
96171         * m4/dos.m4 (jm_AC_DOS): New file and macro.
96172         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
96173
96174 2000-12-16  Jim Meyering  <meyering@lucent.com>
96175
96176         This bug had a serious impact on chown: `chown N:M FILE' (for integer
96177         N and M) would have treated it like `chown N:N FILE'.
96178
96179         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
96180
96181 2000-12-16  Jim Meyering  <meyering@lucent.com>
96182
96183         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
96184         SHELLS_FILE to a file name that's useful on djgpp systems.
96185         Include stdlib.h.
96186         (ADDITIONAL_DEFAULT_SHELLS): Define.
96187         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
96188         Based mostly on a patch from Prashant TR.
96189
96190 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
96191
96192         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
96193         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
96194         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
96195
96196 2000-12-08  Andreas Schwab  <schwab@suse.de>
96197
96198         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
96199         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
96200
96201 2000-12-07  Jim Meyering  <meyering@lucent.com>
96202
96203         * lib/stripslash.c (ISSLASH): Define.
96204         (strip_trailing_slashes): Use ISSLASH rather than comparing against
96205         `/'.
96206         From Prashant TR.
96207
96208         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
96209         (dir_name_r): Declare this function as static.
96210         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
96211         manifest itself on a name containing a mix of slashes and
96212         backslashes.
96213         Make this function work with names starting with a DOS-style
96214         drive letter and colon prefix.
96215         (dir_name): Append `.' if necessary.
96216         Based mostly on patches from Prashant TR and Eli Zaretskii.
96217
96218         * lib/dirname.h (dir_name_r): Remove prototype.
96219
96220 2000-12-06  Paul Eggert  <eggert@twinsun.com>
96221
96222         * m4/off_t-format.m4: Remove this file.
96223         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
96224
96225 2000-12-06  Jim Meyering  <meyering@lucent.com>
96226
96227         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
96228         replacement strtoull, we may well need the replacement strtoul, too.
96229         Check for declarations of strtoul and strtoull.
96230         Check for strtol.  Mainly as a cue to cause automake to include
96231         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
96232         Check for limits.h -- strtol.c needs it.
96233
96234 2000-12-05  Jim Meyering  <meyering@lucent.com>
96235
96236         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
96237
96238 2000-12-04  Jim Meyering  <meyering@lucent.com>
96239
96240         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
96241         Also include memory.h, stdlib.h, unistd.h if appropriate.
96242         Reported by Andreas Jaeger (conflicting declaration of malloc).
96243
96244 2000-12-02  Jim Meyering  <meyering@lucent.com>
96245
96246         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
96247         * m4/jm-macros.m4 (jm_MACROS): require it.
96248
96249 2000-12-02  Jim Meyering  <meyering@lucent.com>
96250
96251         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
96252
96253 2000-12-01  Paul Eggert  <eggert@twinsun.com>
96254
96255         * lib/memrchr.c: Include <config.h> before any system include file.
96256
96257 2000-11-30  Jim Meyering  <meyering@lucent.com>
96258
96259         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
96260
96261 2000-11-30  Jim Meyering  <meyering@lucent.com>
96262
96263         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
96264
96265 2000-11-29  Paul Eggert  <eggert@twinsun.com>
96266
96267         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
96268
96269 2000-11-26  Jim Meyering  <meyering@lucent.com>
96270
96271         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
96272
96273 2000-11-22  Paul Eggert  <eggert@twinsun.com>
96274
96275         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
96276         size of (size_t) -1; it's not portable.
96277
96278 2000-11-17  Jim Meyering  <meyering@lucent.com>
96279
96280         * lib/strstr.c: Update from GNU libc.
96281
96282 2000-11-17  Akim Demaille  <akim@epita.fr>
96283
96284         * lib/obstack.h: Formatting changes.
96285         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
96286         prevent type checking.
96287         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
96288         cast the value to (void *): assigning a `foo *' to a `void *'
96289         variable is valid.
96290         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
96291
96292 2000-11-16  Jim Meyering  <meyering@lucent.com>
96293
96294         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
96295
96296 2000-11-11  Jim Meyering  <meyering@lucent.com>
96297
96298         * lib/error.c: Add a couple #includes, merging from GNU libc version.
96299
96300 2000-11-10  Jim Meyering  <meyering@lucent.com>
96301
96302         * lib/obstack.h: Update from GNU libc.
96303         * lib/obstack.c: Likewise.
96304
96305 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
96306
96307         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
96308
96309 2000-11-06  Paul Eggert  <eggert@twinsun.com>
96310
96311         * lib/getusershell.c (setusershell): Use rewind rather than
96312         fseek/fseeko, to avoid configuration hassles with fseeko.
96313         Don't bother opening SHELLS_FILE if shellstream is NULL;
96314         it's not necessary.
96315
96316 2000-11-05  Jim Meyering  <meyering@lucent.com>
96317
96318         * lib/makepath.h (make_dir): Declare.
96319         * lib/makepath.c (make_dir): Remove `static' attribute.
96320         Tweak a comment.
96321
96322 2000-11-04  Jim Meyering  <meyering@lucent.com>
96323
96324         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
96325
96326 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
96327
96328         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
96329         last one in a bucket, advance to the next bucket.
96330
96331 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
96332
96333         * lib/fnmatch.c: Do not comment out all the code if we are using
96334         the GNU C library, because in some cases we are replacing buggy
96335         code in the GNU C library itself.
96336
96337 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
96338
96339         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
96340         (regex_compile): Catch bogus \(\1\).
96341
96342 2000-10-30  Paul Eggert  <eggert@twinsun.com>
96343
96344         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
96345         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
96346         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
96347
96348 2000-10-30  Paul Eggert  <eggert@twinsun.com>
96349
96350         * lib/error.h, getline.h, modechange.h:
96351         Remove "2000" from Copyright line, as the file hasn't been
96352         changed this year other than in the copyright notice.
96353
96354         * lib/xalloc.h: Add "2000" to Copyright line, as this file
96355         was changed this year.
96356
96357 2000-10-29  Jim Meyering  <meyering@lucent.com>
96358
96359         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
96360         renaming.
96361         * m4/ls-mntd-fs.m4: Likewise
96362
96363 2000-10-29  Jim Meyering  <meyering@lucent.com>
96364
96365         * lib/xstat.in: Fix grammar in comment.
96366
96367 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
96368
96369         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
96370         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
96371         doesn't define __restrict_arr.
96372
96373 2000-10-28  Jim Meyering  <meyering@lucent.com>
96374
96375         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
96376         (jm_PREREQ_MEMCHR): New function.
96377
96378 2000-10-28  Jim Meyering  <meyering@lucent.com>
96379
96380         * lib/memchr.c: Update from libc.
96381         Adjust for portability:
96382         [HAVE_STDLIB_H]: Include stdlib.h.
96383         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
96384         Undef __memchr, too.
96385         [!weak_alias]: Define __memchr to memchr.
96386
96387         * lib/regex.c: Update from libc.
96388         * lib/regex.h: Likewise.
96389         * lib/getopt1.c: Likewise.
96390         * lib/memcmp.c: Likewise.
96391
96392         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
96393         Avoid using fseek, when possible -- it's broken by design.
96394         Patch by Ulrich Drepper.
96395
96396 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
96397
96398         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
96399         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
96400         Giving in to popular pressure to shut up the compiler with casts.
96401
96402 2000-10-26  Jim Meyering  <meyering@lucent.com>
96403
96404         * lib/strftime.c: Update from libc.
96405
96406 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
96407
96408         * regex.c: More `unsigned char' -> `re_char' changes.
96409         Also change several `int' into `re_wchar_t'.
96410         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
96411         (PUSH_FAILURE_POINTER): Don't cast any more.
96412         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
96413         We want GCC to complain, since this piece of code makes
96414         re_match non-reentrant, which *should* be fixed.
96415         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
96416         (EXTEND_BUFFER): Use RETALLOC.
96417         (SET_LIST_BIT): Don't cast.
96418         (re_wchar_t): New type.
96419         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
96420         that those two functions will always properly return.
96421         (IMMEDIATE_QUIT_CHECK): Cast to void.
96422         (analyse_first): Use recursion rather than an explicit stack.
96423         (re_compile_fastmap): Can't fail anymore.
96424         (re_search_2): Don't check re_compile_fastmap for failure.
96425         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
96426         Now also sets the new value (passed in a new argument).
96427         (re_match_2_internal): Use it.
96428         Also, use a new var `reg' of type size_t when looping through regs
96429         rather than reuse the inappropriate `mcnt'.
96430
96431 2000-10-25  Jim Meyering  <meyering@lucent.com>
96432
96433         * lib/obstack.c: Update from libc.
96434
96435 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
96436
96437         * regex.c (regex_compile): Change the way of handling a range from
96438         a char less than 256 to a char not less than 256.
96439
96440 2000-10-24  Andrew Innes  <andrewi@gnu.org>
96441
96442         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
96443         NT-Emacs only.
96444         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
96445         so that re_search functions only quit when callers expect them to.
96446
96447 2000-10-23  Jim Meyering  <meyering@lucent.com>
96448
96449         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
96450         wrong.  That set_locale call must not have any side effects.
96451         From Paul Eggert.
96452
96453 2000-10-22  Jim Meyering  <meyering@lucent.com>
96454
96455         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
96456         [CYCLIC]: Remove now-unused definition.
96457
96458         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
96459         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
96460         Suggestion from Ulrich Drepper.
96461
96462 2000-10-21  Jim Meyering  <meyering@lucent.com>
96463
96464         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
96465         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
96466         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
96467
96468 2000-10-21  Jim Meyering  <meyering@lucent.com>
96469
96470         * lib/dirname.c (memrchr): Declare if necessary.
96471         (dir_name): Remove the restriction that there be no
96472         trailing slashes.  Now, this code skips past them, effectively
96473         ignoring them.
96474         [TEST_DIRNAME] (main): New unit tests.
96475
96476         * lib/memrchr.c: New file from GNU libc.
96477         Undef __memrchr, too.
96478         [!weak_alias]: Define __memrchr to memrchr.
96479         Guard weak_alias use with `#ifdef weak_alias'.
96480
96481 2000-10-21  Jim Meyering  <meyering@lucent.com>
96482
96483         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
96484         (dir_name): Use dir_name_r.
96485         * lib/dirname.h (dir_name_r): Declare it.
96486
96487 2000-10-17  Jim Meyering  <meyering@lucent.com>
96488
96489         * lib/quote.h (PARAMS): Define and use.
96490         Reported by Akim Demaille.
96491
96492         * lib/getopt.c: Update from libc.
96493
96494 2000-10-16  Jim Meyering  <meyering@lucent.com>
96495
96496         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
96497         setlocale.
96498         From Jan Fedak.
96499
96500 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
96501
96502         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
96503
96504 2000-09-25  Jim Meyering  <meyering@lucent.com>
96505
96506         * lib/md5.h (rol): Define (from GnuPG).
96507
96508         * lib/sha.c: Give credit (GnuPG) where due.
96509         (M): Use rol rather than open-coding it.
96510         Add a FIXME comment.
96511
96512 2000-09-21  Jim Meyering  <meyering@lucent.com>
96513
96514         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
96515         Reported by Michael Stone.
96516
96517 2000-09-20  Jim Meyering  <meyering@lucent.com>
96518
96519         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
96520         (noinst_HEADERS): Add sha.h.
96521         Based on code from Scott G. Miller and from GnuPG.
96522
96523 2000-09-18  Jim Meyering  <meyering@lucent.com>
96524
96525         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
96526         LIBS. Otherwise, everyone ends up linking with -lelf for some
96527         configurations.
96528         Reported by Mike Stone.
96529
96530 2000-09-15  Jim Meyering  <meyering@lucent.com>
96531
96532         * lib/regex.c: Update from libc.
96533
96534 2000-09-10  Jim Meyering  <meyering@lucent.com>
96535
96536         * lib/getopt.c (_getopt_internal): Update from glibc.
96537
96538 2000-09-09  Jim Meyering  <meyering@lucent.com>
96539
96540         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
96541         think it should be used as a general replacement for isascii.
96542         * lib/fnmatch.c: Likewise.
96543         * lib/mbswidth.c: Likewise
96544         * lib/regex.c: Likewise.
96545
96546         Don't use atoi.
96547         * lib/userspec.c: Include sys/param.h and limits.h.
96548         Include xstrtol.h.
96549         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
96550         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
96551         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
96552         UID, GID.  Check range.
96553
96554 2000-09-06  Jim Meyering  <meyering@lucent.com>
96555
96556         * lib/getopt.c (_getopt_internal): Update from glibc.
96557
96558 2000-08-30  Jim Meyering  <meyering@lucent.com>
96559
96560         * lib/strftime.c: Merge in changes from GNU libc.
96561
96562 2000-08-26  Jim Meyering  <meyering@lucent.com>
96563
96564         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
96565         * m4/fpending.m4: New file.
96566
96567 2000-08-26  Jim Meyering  <meyering@lucent.com>
96568
96569         * lib/closeout.c: Include "__fpending.h".
96570         (close_stdout_status): Return right away if there's nothing to flush.
96571
96572         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
96573         * lib/__fpending.c: New file.
96574         * lib/__fpending.h: New file.
96575
96576 2000-08-20  Jim Meyering  <meyering@lucent.com>
96577
96578         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
96579         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
96580         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
96581
96582 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
96583
96584         Improve fileutils installation on systems where running
96585         programs (like install) can't be unlinked.
96586         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
96587         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
96588
96589 2000-08-07  Paul Eggert  <eggert@twinsun.com>
96590
96591         Standardize on "memory exhausted" instead of "Memory exhausted"
96592         or "virtual memory exhausted".
96593         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
96594         "virtual memory exhausted".
96595         * lib/same.c (same_name): Invoke xalloc_die instead of printing
96596         our own message.
96597         * lib/userspec.c (parse_user_spec): Likewise.
96598         * lib/bumpalloc.h: comment fix
96599         * lib/same.c, userspec.c: Include xalloc.h.
96600
96601         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
96602         not char *const and pointing to a constant array.
96603         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
96604         (xrealloc): Comment fix.
96605
96606         * lib/userspec.c (parse_user_spec):
96607         Don't translate a message until just before returning,
96608         to avoid unnecessary translation.
96609
96610 2000-08-07  Jim Meyering  <meyering@lucent.com>
96611
96612         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
96613         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
96614         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
96615         getgroups.c, gethostname.c, getopt.h, group-member.c,
96616         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
96617         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
96618         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
96619         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
96620         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
96621         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
96622         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
96623         yesno.c: Back out Copyright date changes for each file with no change
96624         this year.  This eases coordination with other programs using the same
96625         source code modules.  From Paul Eggert.
96626
96627 2000-08-06  Paul Eggert  <eggert@twinsun.com>
96628
96629         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
96630         not char, for compatibility with glibc 2.1.3 strftime.c.
96631
96632 2000-08-03  Greg McGary  <greg@mcgary.org>
96633
96634         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
96635         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
96636         (EXTEND_BUFFER): Use them.
96637
96638 2000-08-01  Jim Meyering  <meyering@lucent.com>
96639
96640         * lib/dirname.c (ISSLASH): Define.
96641         (BACKSLASH_IS_PATH_SEPARATOR): Define.
96642         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
96643         both `\' and `/' may be use as path separators.
96644         Based on a patch from Prashant TR.
96645
96646 2000-07-31  Paul Eggert  <eggert@twinsun.com>
96647
96648         * lib/quotearg.c (quotearg_n_options): Don't make the initial
96649         slot vector a constant, since it might get modified.
96650
96651 2000-07-31  Jim Meyering  <meyering@lucent.com>
96652
96653         * lib/xmalloc.c: Use `virtual memory exhausted', not
96654         `Memory exhausted'.
96655         * lib/obstack.c (print_and_abort): Likewise.
96656
96657 2000-07-30  Paul Eggert  <eggert@twinsun.com>
96658
96659         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
96660         buffer, so that the caller can always quote one small
96661         component of a "memory exhausted" message in slot 0.
96662         From a suggestion by Jim Meyering.
96663
96664 2000-07-30  Jim Meyering  <meyering@lucent.com>
96665
96666         * lib/makepath.c (make_path): Quote the other instance, too.
96667
96668         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
96669         (STATIC_BUF_SIZE): Define.
96670         (quotearg_n_options): Use only statically allocated storage when
96671         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
96672         than STATIC_BUF_SIZE.
96673
96674 2000-07-29  Jim Meyering  <meyering@lucent.com>
96675
96676         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
96677         * lib/dirname.c (dir_name): Likewise.
96678
96679         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
96680         `/'.
96681
96682         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
96683         (dir_name): Assert that there are no trailing slashes.
96684
96685 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
96686
96687         * lib/mbswidth.h (mbswidth): Add a flags argument.
96688         (mbswidth): New declaration.
96689         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
96690         * lib/mbswidth.c (mbswidth): Add a flags argument.
96691         (mbsnwidth): New function.
96692
96693 2000-07-24  Jim Meyering  <meyering@lucent.com>
96694
96695         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
96696
96697 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96698
96699         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
96700
96701 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96702
96703         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
96704         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
96705         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
96706         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
96707         invoke multibyte primitives.
96708
96709 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96710
96711         * lib/quotearg.c:
96712         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
96713         so that mbstate_t is always defined.
96714
96715         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
96716         be 1 in at least one GCC installation, and this configuration
96717         error is likely to be common.  Ignoring MB_LEN_MAX hurts
96718         performance on hosts that have mbrtowc but have only unibyte
96719         locales, but I assume these hosts are rare.
96720
96721 2000-07-23  Paul Eggert  <eggert@twinsun.com>
96722
96723         * lib/mbswidth.c (_XOPEN_SOURCE):
96724         Don't define; this causes problems on Solaris 7.
96725         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
96726
96727 2000-07-23  Jim Meyering  <meyering@lucent.com>
96728
96729         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
96730         too: getgrgid, getpwuid, getuid.
96731
96732 2000-07-23  Jim Meyering  <meyering@lucent.com>
96733
96734         * lib/basename.c (base_name): Add an assertion.
96735
96736 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
96737
96738         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
96739         shadow its mbsinit function.
96740
96741 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
96742
96743         * lib/mbswidth.h: New file.
96744         * lib/mbswidth.c: New file.
96745         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
96746         (noinst_HEADERS): Add mbswidth.h.
96747
96748 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
96749
96750         * lib/config.charset: Add support for FreeBSD. Improve support for
96751         HP-UX and IRIX 6.
96752
96753 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
96754
96755         * m4/mbswidth.m4: New file.
96756         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
96757
96758 2000-07-15  Jim Meyering  <meyering@lucent.com>
96759
96760         * lib/makepath.c: Include quote.h.
96761         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
96762         corresponding argument in a `quote (...)' call.
96763         Give better diagnostics.
96764
96765         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
96766         (noinst_HEADERS): Add quote.h.
96767
96768         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
96769         from tar's src/misc.c.
96770         * lib/quote.h: New file.  Prototypes for same.
96771
96772 2000-07-14  Paul Eggert  <eggert@twinsun.com>
96773
96774         From a suggestion by Bruno Haible.
96775         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
96776         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
96777         to decide whether to define the BeOS workaround macro;
96778         this adjusts to the change to AC_MBSTATE_T.
96779
96780 2000-07-14  Jim Meyering  <meyering@lucent.com>
96781
96782         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
96783         jm_AC_TYPE_UINTMAX_T.
96784
96785 2000-07-13  Paul Eggert  <eggert@twinsun.com>
96786
96787         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
96788
96789         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
96790         quotearg_buffer_restyled): Add support for
96791         clocale_quoting_style.  Undo previous change to
96792         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
96793         and "{RIGHT QUOTATION MARK}" msgids.
96794
96795 2000-07-10  Paul Eggert  <eggert@twinsun.com>
96796
96797         From a suggestion by Bruno Haible.
96798         * m4/mbstate_t.m4 (AC_MBSTATE_T):
96799         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
96800         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
96801         and mbstate_t, to a single-part test that simply defines mbstate_t.
96802         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
96803         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
96804
96805 2000-07-10  Jim Meyering  <meyering@lucent.com>
96806
96807         * m4/strerror_r.m4: Mirror the correction made in autoconf.
96808
96809         * m4/gnu-source.m4: Output to confdefs.h directly.
96810         Suggestion from Akim Demaille.
96811
96812 2000-07-09  Paul Eggert  <eggert@twinsun.com>
96813
96814         The old behavior of quoting `like this' doesn't look good with
96815         newer, ISO-style fonts.  See:
96816         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
96817
96818         Instead, quote "like this" by default.  Let the translator
96819         tailor the locale-specific quoting behavior by providing
96820         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
96821
96822         * lib/quotearg.c (N_): New macro.
96823         (gettext_default): New function.
96824         (quotearg_buffer_restyled): Use
96825         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
96826         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
96827
96828 2000-07-09  Jim Meyering  <meyering@lucent.com>
96829
96830         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
96831         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
96832
96833         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
96834         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
96835
96836 2000-07-09  Jim Meyering  <meyering@lucent.com>
96837
96838         * lib/Most files: Update copyright dates to include 2000.
96839
96840 2000-07-08  Jim Meyering  <meyering@lucent.com>
96841
96842         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
96843         if not defined.
96844         (xgethostname): Remove now-unnecessary #ifdef.
96845         Move declaration of `err' into loop where it's used.
96846
96847 2000-07-05  Paul Eggert  <eggert@twinsun.com>
96848         and Bruno Haible  <haible@clisp.cons.org>
96849
96850         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
96851         only if the test for an object-type mbstate_t fails.  This
96852         prevents us from mistakenly reporting that mbstate_t is a
96853         system object type after we "#define mbstate_t int" to work
96854         around its lack.
96855
96856 2000-07-05  Paul Eggert  <eggert@twinsun.com>
96857         and Bruno Haible  <haible@clisp.cons.org>
96858
96859         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
96860
96861 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
96862
96863         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
96864         to strerror_r.
96865         Include <ctype.h> for use of isalpha.
96866
96867 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
96868
96869         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
96870         by allocating a larger buffer. Test the gethostname return value for
96871         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
96872         returns an error and ENAMETOOLONG isn't defined.
96873
96874 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
96875
96876         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
96877         dimension.
96878
96879 2000-07-04  Jim Meyering  <meyering@lucent.com>
96880
96881         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
96882         of the deprecated AC_CHECKING.
96883
96884 2000-07-04  Jim Meyering  <meyering@lucent.com>
96885
96886         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
96887         Reported by Bruno Haible.
96888
96889 2000-07-04  Jim Meyering  <meyering@lucent.com>
96890
96891         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
96892         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
96893         lacks mbrtowc.
96894
96895 2000-07-03  Paul Eggert  <eggert@twinsun.com>
96896
96897         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
96898         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
96899
96900 2000-07-03  Paul Eggert  <eggert@twinsun.com>
96901         and Bruno Haible  <haible@clisp.cons.org>
96902
96903         * lib/quotearg.c (mbrtowc):
96904         Assign to *pwc, and return 1 only if result is nonzero.
96905         (iswprint): Use ISPRINT when substituting our own mbrtowc.
96906
96907 2000-07-03  Jim Meyering  <meyering@lucent.com>
96908
96909         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
96910
96911 2000-07-03  Jim Meyering  <meyering@lucent.com>
96912
96913         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
96914         This is necessary to get a definition of e.g., UTMP_FILE on
96915         HP-UX 10.20.
96916         From Bob Proulx.
96917
96918 2000-07-02  Jim Meyering  <meyering@lucent.com>
96919
96920         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
96921
96922         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
96923         AC_LIBOBJ(function_name).
96924         * m4/chown.m4: Likewise.
96925         * m4/fnmatch.m4: Likewise.
96926         * m4/ftruncate.m4: Likewise.
96927         * m4/getgroups.m4: Likewise.
96928         * m4/getline.m4: Likewise.
96929         * m4/group-member.m4: Likewise.
96930         * m4/jm-macros.m4: Likewise.
96931         * m4/lstat.m4: Likewise.
96932         * m4/malloc.m4: Likewise.
96933         * m4/memcmp.m4: Likewise.
96934         * m4/nanosleep.m4: Likewise.
96935         * m4/putenv.m4: Likewise.
96936         * m4/realloc.m4: Likewise.
96937         * m4/regex.m4: Likewise.
96938         * m4/stat.m4: Likewise.
96939         * m4/strftime.m4: Likewise.
96940
96941 2000-07-02  Jim Meyering  <meyering@lucent.com>
96942
96943         * lib/quotearg.c (mbstate_t): Don't define here.
96944
96945 2000-07-02  Jim Meyering  <meyering@lucent.com>
96946
96947         * lib/nanosleep.c (SIGCONT): Define if not already defined.
96948
96949 2000-07-01  Jim Meyering  <meyering@lucent.com>
96950
96951         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
96952
96953 2000-07-01  Jim Meyering  <meyering@lucent.com>
96954
96955         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
96956         problem.
96957
96958 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
96959
96960         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
96961         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
96962
96963 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
96964
96965         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
96966         per change in ../m4/ls-mntd-fs.m4.
96967         (read_filesystem_list): Ignore symbolic links.
96968
96969 2000-06-29  Jim Meyering  <meyering@lucent.com>
96970
96971         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
96972         for declaration of strcmp.
96973
96974         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
96975
96976         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
96977         Avoid warning by casting result to `char *' to remove `const'.
96978
96979 2000-06-28  Jim Meyering  <meyering@lucent.com>
96980
96981         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
96982         included by quotearg.c, for which we perform this test.  From
96983         Bruno Haible.
96984
96985 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
96986
96987         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
96988         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
96989         <utmpx.h> exists, put readutmp.o into LIBOBJS.
96990
96991 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
96992
96993         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
96994
96995 2000-06-26  Paul Eggert  <eggert@twinsun.com>
96996
96997         savedir now sets errno on failure and invokes xmalloc to get memory.
96998         Fix a couple of other minor bugs while we're at it.
96999
97000         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
97001         (NAMLEN): Remove macro.
97002         (malloc, realloc): Remove decls.
97003         (stpcpy): Likewise.
97004         ("xalloc.h"): Include.
97005         (NAME_SIZE_DEFAULT): New macro.
97006         (savedir): Use xmalloc / xrealloc to allocate memory.
97007         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
97008         Skip "" directory entries.
97009         Use strlen to calculate directory entry length, since the old method
97010         is rarely used these days and isn't worth supporting.
97011         Don't use a pointer after freeing it.
97012         Check for integer overflow when calculating allocation size.
97013         Use memcpy to copy entries, instead of stpcpy.
97014         Set errno properly when returning NULL.
97015         Check for readdir error.
97016
97017 2000-06-26  Jim Meyering  <meyering@lucent.com>
97018
97019         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
97020
97021 2000-06-25  Jim Meyering  <meyering@lucent.com>
97022
97023         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
97024         Linux header bug when _XOPEN_SOURCE is defined to 500.
97025
97026 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
97027
97028         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
97029         deficiency.
97030
97031 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
97032
97033         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
97034         Include xalloc.h.
97035         Don't include <stdlib.h>.  Don't declare malloc, realloc.
97036
97037 2000-06-24  Jim Meyering  <meyering@lucent.com>
97038
97039         * m4/strerror_r.m4: Revive this file -- to try out an experimental
97040         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
97041         for which strerror does return char*, but which lacks a conveniently
97042         accessible declaration of the function.  If the compile-test says
97043         strerror_r doesn't work, then resort to a `run'-test that works on
97044         BeOS and segfaults on DEC Unix.
97045
97046 2000-06-24  Jim Meyering  <meyering@lucent.com>
97047
97048         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
97049
97050 2000-06-23  Paul Eggert  <eggert@twinsun.com>
97051
97052         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
97053         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
97054
97055 2000-06-23  Paul Eggert  <eggert@twinsun.com>
97056
97057         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
97058         (mbrtowc, mbstate_t): Define substitutes if
97059         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
97060         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
97061         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
97062
97063 2000-06-23  Jim Meyering  <meyering@lucent.com>
97064
97065         * m4/afs.m4: Add missing AC_MSG_RESULT.
97066         Reported by Bruno Haible.
97067
97068         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
97069         Suggestion from Bruno Haible.
97070
97071 2000-06-23  Jim Meyering  <meyering@lucent.com>
97072
97073         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
97074
97075 2000-06-21  Jim Meyering  <meyering@lucent.com>
97076
97077         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
97078
97079 2000-06-21  Jim Meyering  <meyering@lucent.com>
97080
97081         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
97082         (noinst_HEADERS): Add getstr.h.
97083
97084         * lib/getline.c (getstr): Move into a separate file.
97085         * lib/getstr.c (getstr): New file, extracted from getline.c, with
97086         the following changes: new parameter, delim2; both delim[12]
97087         parameters have type `int', not `char'.  The latter would lose
97088         with 8-bit delimiters.
97089         * lib/getstr.h: New file.
97090
97091 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97092
97093         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
97094         than 1024, return a memory chunk of least possible size, instead
97095         of size PATH_MAX + 2. In the loop, increment the size proportionally.
97096         Use free/xmalloc instead of xrealloc to avoid copying for very long
97097         paths.
97098
97099 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97100
97101         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
97102         the empty string.
97103
97104 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
97105
97106         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
97107         address, not strdup.  Include <stdlib.h> and don't declare free().
97108
97109 2000-06-19  Jim Meyering  <meyering@lucent.com>
97110
97111         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
97112
97113 2000-06-18  Jim Meyering  <meyering@lucent.com>
97114
97115         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
97116
97117         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
97118         `checking whether...' message to be consistent with that of the
97119         lstat test.
97120
97121 2000-06-18  Jim Meyering  <meyering@lucent.com>
97122
97123         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
97124         Besides, these days every porting target provides a mkdir function.
97125
97126         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
97127         needed. (this snippet comes from src/system.h).
97128
97129 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
97130
97131         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
97132
97133 2000-06-15  Paul Eggert  <eggert@twinsun.com>
97134
97135         * lib/human.c (adjust_value): New function.
97136         (human_readable_inexact): Apply rounding style even when
97137         printing approximate values.
97138
97139 2000-06-14  Paul Eggert  <eggert@twinsun.com>
97140
97141         * lib/human.c (human_readable_inexact): Allow an input block
97142         size that is not a multiple of the output block size, and vice versa.
97143         Reported by Piergiorgio Sartor.
97144
97145 2000-06-14  Paul Eggert  <eggert@twinsun.com>
97146
97147         * lib/getdate.y (get_date): Apply relative times after time
97148         zone indicator, not before.  Reported by Todd A. Jacobs.
97149
97150 2000-06-13  Jim Meyering  <meyering@lucent.com>
97151
97152         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
97153
97154         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
97155
97156 2000-06-12  Paul Eggert  <eggert@twinsun.com>
97157
97158         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
97159
97160 2000-06-12  Jim Meyering  <meyering@lucent.com>
97161
97162         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
97163         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
97164         optional argument.
97165         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
97166         the optional argument, `lib'.
97167
97168 2000-06-08  Jim Meyering  <meyering@lucent.com>
97169
97170         * m4/largefile.m4: Remove file (now that it's part of autoconf).
97171
97172 2000-06-04  Paul Eggert  <eggert@twinsun.com>
97173
97174         Rewrite largefile configuration so that we don't need to run
97175         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
97176         AC_CANONICAL_HOST in configure.in -- jmm]
97177
97178         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
97179         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
97180         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
97181         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
97182         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
97183         All uses changed.
97184         Instead of inspecting the output of getconf, try to compile the
97185         test program without and with the macro definition.
97186         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
97187         for getconf.  Instead, check for the needed flags by compiling
97188         test programs.
97189
97190 2000-06-04  Paul Eggert  <eggert@twinsun.com>
97191
97192         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
97193
97194 2000-06-04  Jim Meyering  <meyering@lucent.com>
97195
97196         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
97197         SunOS 4.1.4 for which gid_t is an unsigned type.
97198
97199 2000-06-03  Jim Meyering  <meyering@lucent.com>
97200
97201         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
97202         now that autoconf requires that.
97203
97204         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
97205         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
97206         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
97207
97208 2000-06-03  Jim Meyering  <meyering@lucent.com>
97209
97210         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
97211
97212 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
97213
97214         * m4/glibc21.m4: New file.
97215         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
97216
97217 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
97218
97219         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
97220         newer, don't install charset.alias.
97221         * lib/config.charset: Change the Linux/glibc rules so they become empty
97222         on glibc-2.1 or newer.
97223
97224 2000-06-02  Jim Meyering  <meyering@lucent.com>
97225
97226         * lib/mountlist.c: Back out last change.  Instead, do this...
97227         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
97228         me_dummy member using the same `ignore'-testing code.
97229         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
97230         fs_type strings.
97231         From Mark D. Roth.
97232
97233 2000-05-29  Jim Meyering  <meyering@lucent.com>
97234
97235         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
97236         mounts with the `ignore' attribute.  Based on a patch from
97237         Mark D. Roth.
97238
97239 2000-05-28  Jim Meyering  <meyering@lucent.com>
97240
97241         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
97242         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97243         * m4/stat.m4: Likewise.
97244         * m4/lstat.m4: Likewise.
97245         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
97246
97247         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
97248         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
97249
97250 2000-05-26  Jim Meyering  <meyering@lucent.com>
97251
97252         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
97253
97254 2000-05-24  Jim Meyering  <meyering@lucent.com>
97255
97256         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
97257         autoconf requires that.
97258         * m4/lib-check.m4: Likewise.
97259         * m4/jm-macros.m4: Likewise.
97260         * m4/strftime.m4: Likewise.
97261
97262         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
97263         AC_CHECK_DECLS, now that autoconf requires that.
97264
97265 2000-05-22  Jim Meyering  <meyering@lucent.com>
97266
97267         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
97268         * m4/lstat.m4: Likewise.
97269
97270 2000-05-22  Jim Meyering  <meyering@lucent.com>
97271
97272         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
97273
97274 2000-05-20  Jim Meyering  <meyering@lucent.com>
97275
97276         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
97277         (jm_PREREQ): Use it.
97278
97279 2000-05-18  Jim Meyering  <meyering@lucent.com>
97280
97281         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
97282         back, too, since it may have been modified by allocate_entry.
97283         (hash_delete): Rewrite to use neither the assignment operator
97284         nor the comma operator in an if-expression.
97285
97286 2000-05-15  Paul Eggert  <eggert@twinsun.com>
97287
97288         * lib/closeout.c:
97289         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
97290         Remove; no longer needed.
97291         "quotearg.h": Add include.
97292         (file_name): Do not bother to explicitly initialize to NULL; it's less
97293         efficient on some hosts.
97294         (close_stdout_status): Remove test as to whether stdout was already
97295         closed; it breaks for the case "echo x | sort >&-".
97296         Quote file name colons.
97297         Do not assume that _("write error") lacks format strings.
97298
97299 2000-05-15  Jim Meyering  <meyering@lucent.com>
97300
97301         * lib/version-etc.c (version_etc_copyright): Update the copyright
97302         string used in all --version output.
97303
97304 2000-05-14  Jim Meyering  <meyering@lucent.com>
97305
97306         * lib/closeout.c (close_stdout_set_file_name): New function.
97307         (close_stdout_status): Use new file-scoped global.
97308         Return right away if fstat says the stdout file descriptor is invalid.
97309         * lib/closeout.h (close_stdout_set_file_name): Declare.
97310
97311 2000-05-10  Jim Meyering  <meyering@lucent.com>
97312
97313         * lib/closeout.c [default_exit_status]: New file-scoped variable.
97314         (close_stdout_set_status): New function.
97315         * lib/closeout.h (close_stdout_set_status): Declare.
97316
97317 2000-05-09  Jim Meyering  <meyering@lucent.com>
97318
97319         * m4/gettext.m4: Rename this...
97320         * m4/libintl.m4: ...to this.
97321
97322 2000-05-08  Jim Meyering  <meyering@lucent.com>
97323
97324         * lib/long-options.c: Don't include closeout.h.
97325         (parse_long_options): Don't call close_stdout for --version.
97326
97327 2000-05-06  Paul Eggert  <eggert@twinsun.com>
97328
97329         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
97330         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
97331         2.1.3 bug.  This avoids a clash when files like regex.c define
97332         _GNU_SOURCE.
97333
97334 2000-05-06  Jim Meyering  <meyering@lucent.com>
97335
97336         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
97337         (AC_REPLACE_FUNCS): Add strnlen.
97338
97339         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
97340         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
97341
97342         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
97343         AC_SEARCH_LIBS call for nanosleep.
97344         (LIB_NANOSLEEP): Set and AC_SUBST.
97345
97346 2000-05-06  Jim Meyering  <meyering@lucent.com>
97347
97348         * lib/strnlen.c: Undefine __strnlen and strnlen.
97349         [!weak_alias]: Define __strnlen to strnlen.
97350
97351         * lib/atexit.c: New file, from libiberty.
97352
97353 2000-05-06  Jim Meyering  <meyering@lucent.com>
97354
97355         * lib/closeout.c (close_stdout_status): Also check for errors on the
97356         stderr stream.
97357
97358 2000-05-05  Jim Meyering  <meyering@lucent.com>
97359
97360         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
97361         AC_SEARCH_LIBS call for clock_gettime.
97362         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
97363
97364         * m4/search-libs.m4: Update from autoconf.
97365
97366         su doesn't work on Solaris 2.6.
97367         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
97368         <shadow.h>.  Reported by Dragos Harabor.
97369
97370 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
97371
97372         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
97373         memcpy instead of xmalloc, xrealloc, path_concat.
97374         (locale_charset): Treat empty environment variables as absent.
97375         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
97376
97377 2000-05-04  Jim Meyering  <meyering@lucent.com>
97378
97379         * lib/getopt.c: Update from glibc.
97380         * lib/obstack.c: Likewise.
97381         * lib/obstack.h: Likewise.
97382         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
97383         file
97384
97385         * lib/regex.h: Likewise.
97386         * lib/strndup.c: Likewise.
97387         * lib/strnlen.c: New file, from glibc.
97388
97389 2000-05-03  Jim Meyering  <meyering@lucent.com>
97390
97391         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
97392
97393 2000-05-02  Paul Eggert  <eggert@twinsun.com>
97394
97395         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
97396         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
97397         compile-time test, rather than inspecting host and OS, to
97398         decide whether to define _LARGEFILE_SOURCE.
97399
97400 2000-05-01  Jim Meyering  <meyering@lucent.com>
97401
97402         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
97403
97404         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
97405         Based on a patch from Bruno Haible.
97406
97407 2000-05-01  Jim Meyering  <meyering@lucent.com>
97408
97409         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
97410
97411 2000-04-29  Jim Meyering  <meyering@lucent.com>
97412
97413         * lib/path-concat.c: Declare strdup only if it's not defined.
97414         * lib/canon-host.c: Likewise.
97415
97416 2000-04-28  Jim Meyering  <meyering@lucent.com>
97417
97418         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
97419         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
97420         is included first, then limits.h is included by locale.h by libintl.h.
97421         From John David Anglin.
97422
97423 2000-04-25  Jim Meyering  <meyering@lucent.com>
97424
97425         * lib/makepath.c (S_IRWXUGO): Define.
97426         (make_path): Always perform explicit chmod if MODE specifies any
97427         of the `special' permission bits.  Prompted by a bug report against
97428         install from Mate Wierdl and Joost van Baal.
97429
97430 2000-04-18  Jim Meyering  <meyering@lucent.com>
97431
97432         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
97433         (jm_PREREQ): Use it.
97434
97435 2000-04-18  Jim Meyering  <meyering@lucent.com>
97436
97437         * lib/README: New file.
97438
97439         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
97440         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
97441
97442 2000-04-17  Jim Meyering  <meyering@lucent.com>
97443
97444         Get it right :-)
97445         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
97446         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
97447         Suggestion from Akim Demaille.
97448
97449 2000-04-17  Jim Meyering  <meyering@lucent.com>
97450
97451         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
97452         the definition of it to rpl_strftime also defined-away the system's
97453         declaration.
97454
97455 2000-04-15  Jim Meyering  <meyering@lucent.com>
97456
97457         Use `C' to denote so-called `contiguous' files, the same way
97458         that tar does.
97459         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
97460         (ftypelet): Use S_ISCTG.
97461         From Michael Deutschmann.
97462
97463 2000-04-14  Jim Meyering  <meyering@lucent.com>
97464
97465         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
97466         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
97467         clobbered.
97468
97469 2000-04-14  Jim Meyering  <meyering@lucent.com>
97470
97471         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
97472
97473 2000-04-13  Jim Meyering  <meyering@lucent.com>
97474
97475         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
97476         AH_VERBATIM to insert required #ifndef into config.h.in.
97477         Suggestion from Akim Demaille.
97478
97479 2000-04-12  Jim Meyering  <meyering@lucent.com>
97480
97481         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
97482         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
97483         Christian Krackowizer.
97484
97485         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
97486         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
97487         (AC_SYS_LARGEFILE): Require.
97488         (AM_C_PROTOTYPES): Require.
97489
97490 2000-04-08  Jim Meyering  <meyering@lucent.com>
97491
97492         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
97493         names don't conflict.  Reported by Eli Zaretskii.
97494
97495 2000-04-07  Jim Meyering  <meyering@lucent.com>
97496
97497         * lib/putenv.c: Move inclusion of errno.h so it follows that of
97498         sys/types.h, to work around system header problems on AIX 3.2.5.
97499         From Bruno Haible.
97500
97501 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
97502
97503         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
97504         bug.  Deal with the different error behavior of Irix iconv.
97505
97506 2000-04-05  Paul Eggert  <eggert@twinsun.com>
97507
97508         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
97509         IRIX if the installer said otherwise.
97510
97511 2000-04-05  Jim Meyering  <meyering@lucent.com>
97512
97513         Portability tweaks required for ultrix4.3.
97514         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
97515         (jm_CHECK_DECLS): Add getutent to the list of functions.
97516         (_jm_DECL_HEADERS): Add utmpx.h.
97517         From John David Anglin.
97518
97519         * m4/strftime.m4: Back out the 2000-04-02 change.
97520         Instead of that change, simply undefine putenv in the test program.
97521
97522 2000-04-05  Jim Meyering  <meyering@lucent.com>
97523
97524         Portability tweaks required for ultrix4.3.
97525         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
97526         getutent.
97527         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
97528         * lib/canon-host.c: Declare strdup.
97529         * lib/path-concat.c: Likewise.
97530         From John David Anglin.
97531
97532 2000-04-04  Jim Meyering  <meyering@lucent.com>
97533
97534         Be more DOS 8.3-friendly.
97535         * lib/ref-add.sin: Renamed from ref-add.sed.in.
97536         * lib/ref-del.sin: Renamed from ref-del.sed.in.
97537         * lib/Makefile.am: Reflect renaming.
97538         Reported by Eli Zaretskii.
97539
97540         Use a temporary file name that won't clash with `charset.alias'
97541         in the DOS 8.3 name space.
97542         * lib/Makefile.am (charset_tmp): Define.
97543         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
97544         (uninstall-local): Likewise.
97545         Reported by Eli Zaretskii.
97546
97547 2000-04-03  Jim Meyering  <meyering@lucent.com>
97548
97549         * m4/gettext.m4: Fix typo in comment.
97550
97551         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
97552         textutils/configure.in).  Suggestion from Paul Eggert.
97553         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
97554
97555 2000-04-02  Paul Eggert  <eggert@twinsun.com>
97556
97557         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
97558         variable in the shell rather than using putenv, which isn't
97559         portable.  This avoids the configure-time inter-test dependency
97560         on the potentially-renamed putenv function.
97561
97562 2000-03-30  Paul Eggert  <eggert@twinsun.com>
97563
97564         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
97565         before checking struct stat.st_blksize, so that
97566         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
97567
97568 2000-03-29  Paul Eggert  <eggert@twinsun.com>
97569
97570         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
97571         since strftime.c uses HAVE_STRFTIME to decide whether to use
97572         the underlying strftime.
97573
97574 2000-03-29  Paul Eggert  <eggert@twinsun.com>
97575
97576         * lib/time/strftime.c (my_strftime): Make sure we call the system
97577         strftime, not ourselves, when invoking the underlying strftime.
97578
97579 2000-03-24  Jim Meyering  <meyering@lucent.com>
97580
97581         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
97582         (charset_alias): Define.
97583         (install-exec-local): Factor out common code.
97584         (uninstall-local): Split lines longer than 80.
97585         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
97586         (SUFFIXES): Define.
97587         (.sed.in.sed): New rule.  Don't redirect directly to $@.
97588         (CLEANFILES): Add ref-add.sed and ref-del.sed.
97589
97590 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
97591
97592         * lib/config.charset: Output a line containing "Packages using this
97593         file".
97594         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
97595         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
97596         ref-del.sed): New rules.
97597
97598 2000-03-17  Jim Meyering  <meyering@lucent.com>
97599
97600         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
97601         Otherwise, include <strings.h>
97602
97603 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
97604
97605         * lib/unicodeio.c (utf8_wctomb): New function.
97606         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
97607         format instead of in UCS-4 with platform dependent endianness.
97608
97609 2000-03-10  Jim Meyering  <meyering@lucent.com>
97610
97611         * m4/lib-check.m4: Look for getspnam in -lgen, too.
97612         From Marco Franzen.
97613
97614 2000-03-07  Paul Eggert  <eggert@twinsun.com>
97615
97616         * lib/savedir.c (savedir): Work even if directory size is
97617         negative; this can happen with some screwy NFS configurations.
97618
97619 2000-03-06  Jim Meyering  <meyering@lucent.com>
97620
97621         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
97622         if it's NULL (because we ran out of memory).  From Bruno Haible.
97623
97624 2000-03-05  Jim Meyering  <meyering@lucent.com>
97625
97626         * lib/localcharset.c ("path-concat.h"): Include.
97627         (get_charset_aliases): Use path_concat instead of ANSI string
97628         concatenation.
97629
97630         * lib/unicodeio.h (PARAMS): Define.
97631         Use it to guard prototype.
97632
97633 2000-03-04  Jim Meyering  <meyering@lucent.com>
97634
97635         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
97636         for lib/localcharset.c.
97637
97638 2000-03-04  Jim Meyering  <meyering@lucent.com>
97639
97640         * lib/Makefile.am (install-exec-local): Create $(libdir) before
97641         installing into it.
97642         (uninstall-local): Uncomment this rule so `make distcheck' works
97643         once again.
97644
97645         * lib/unicodeio.c (<errno.h>): Include it.
97646         (errno): Declare if not defined.
97647
97648         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
97649
97650         * lib/config.charset: New version, incorporating remarks from a linux
97651         i18n mailing list.  From Bruno Haible.
97652
97653 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
97654
97655         * m4/codeset.m4: New file.
97656         * m4/iconv.m4: New file.
97657         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
97658
97659 2000-03-03  Jim Meyering  <meyering@lucent.com>
97660
97661         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
97662
97663 2000-03-02  Jim Meyering  <meyering@lucent.com>
97664
97665         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
97666         the messages come out on separate lines.
97667
97668         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
97669         rather than jm_CHECK_DECLARATIONS.
97670         * m4/decl.m4: Remove now-unused file.
97671
97672         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
97673         geteuid.
97674
97675 2000-03-02  Jim Meyering  <meyering@lucent.com>
97676
97677         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
97678
97679 2000-03-01  Jim Meyering  <meyering@lucent.com>
97680
97681         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
97682         * lib/unicodeio.c: Likewise.
97683
97684 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
97685
97686         * lib/config.charset: New file.
97687         * lib/localcharset.c: New file.
97688         * lib/unicodeio.h, lib/unicodeio.c: New files.
97689         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
97690         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
97691         (noinst_HEADERS): Add unicodeio.h.
97692         (all-local, install-exec-local, charset.alias): New targets.
97693
97694 2000-02-28  Paul Eggert  <eggert@twinsun.com>
97695
97696         * lib/quotearg.c (ALERT_CHAR): New macro.
97697         (quotearg_buffer_restyled): Use it.
97698
97699 2000-02-27  Jim Meyering  <meyering@lucent.com>
97700
97701         * m4/check-decl.m4: Add getenv to the list.
97702
97703 2000-02-27  Jim Meyering  <meyering@lucent.com>
97704
97705         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
97706         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
97707
97708         * lib/backupfile.c: Guard inclusion of stdlib.h with
97709         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
97710         Declare malloc if needed.
97711
97712         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
97713         `#ifndef HAVE_DECL..'
97714         now that autoconf always defines the HAVE_DECL_ symbols.
97715         * lib/human.c: Likewise.
97716         * lib/same.c: Likewise.
97717         * lib/strtoumax.c: Likewise.
97718
97719         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
97720         declaration check was not run.
97721         * lib/hash.c: Likewise.
97722         * lib/human.c: Likewise.
97723         * lib/same.c: Likewise.
97724         * lib/strtoumax.c: Likewise.
97725
97726         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
97727         `.', then first look up the entire `.'-containing string as a login
97728         name.
97729
97730 2000-02-23  Jim Meyering  <meyering@lucent.com>
97731
97732         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
97733         in place of my hack.
97734
97735 2000-02-18  Paul Eggert  <eggert@twinsun.com>
97736
97737         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
97738         (textint): New typedef.
97739         (parser_control): Member year changed from int to textint.
97740         All uses changed.
97741         (YYSTYPE): Removed; replaced by %union with int and textint members.
97742         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
97743         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
97744         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
97745         (tSNUMBER, tUNUMBER): Now of type <textintval>.
97746         (date, number, to_year): Use width of number in digits, not its value,
97747         to determine whether it's a 2-digit year, or a 2-digit time.
97748         (yylex): Store number of digits of numeric tokens.
97749         Reported by John Kendall.
97750
97751         (parser_control): Changed from struct parser_control to typedef (for
97752         consistency).  All uses changed.
97753
97754         (tID): Removed; not used.
97755         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
97756
97757 2000-02-14  Paul Eggert  <eggert@twinsun.com>
97758
97759         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
97760         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
97761
97762 2000-02-12  Jim Meyering  <meyering@lucent.com>
97763
97764         * lib/userspec.c (ISDIGIT): Define it.
97765         (isdigit): Remove definition.
97766         (is_number): Use ISDIGIT, not isdigit.
97767         <libintl.h>: Include.
97768         (_ and N_): Define.
97769         (parse_user_spec): Mark translatable strings.
97770
97771 2000-02-10  Jim Meyering  <meyering@lucent.com>
97772
97773         With these changes, nanosleep.[ch] are finally enough like the other
97774         lib/* replacement files to compile on a few more losing systems.
97775
97776         * lib/nanosleep.h: Don't include config.h.
97777         Remove prototype from declaration of nanosleep.
97778         (PARAMS): Remove now-unneeded definition.
97779         * lib/nanosleep.c: #undef nanosleep.
97780         (rpl_nanosleep): Rename from nanosleep.
97781
97782 2000-02-10  Jim Meyering  <meyering@lucent.com>
97783
97784         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
97785         gnu_nanosleep to rpl_nanosleep.
97786
97787 2000-02-09  Jim Meyering  <meyering@lucent.com>
97788
97789         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
97790         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
97791
97792 2000-02-08  Akim Demaille  <akim@epita.fr>
97793
97794         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
97795         `[' and `]' and remove uses of `changequote'.
97796         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
97797         (AC_SYS_LARGEFILE): Likewise.
97798         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
97799         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
97800         of changequote.
97801         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
97802         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
97803         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
97804         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
97805
97806 2000-02-05  Jim Meyering  <meyering@lucent.com>
97807
97808         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
97809         Remove explicit use of AC_HEADER_TIME.  It is required by
97810         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
97811         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
97812         in autoconf whereby the expansion of the latter ended up preceding
97813         the expansion of its prerequisite, AC_HEADER_TIME.
97814         Reported by Volker Borchert.
97815
97816 2000-02-03  Jim Meyering  <meyering@lucent.com>
97817
97818         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
97819
97820 2000-02-03  Jim Meyering  <meyering@lucent.com>
97821
97822         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
97823         rather than with `#if HAVE_UTMPNAME'.
97824
97825 2000-02-02  Jim Meyering  <meyering@lucent.com>
97826
97827         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
97828         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
97829         Reported by Eli Zaretskii.
97830
97831 2000-02-01  Jim Meyering  <meyering@lucent.com>
97832
97833         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
97834
97835 2000-01-31  Jim Meyering  <meyering@lucent.com>
97836
97837         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
97838         functions.  Add the time.h and sys/time.h headers along with the
97839         AC_REQUIRE'ment of AC_HEADER_TIME.
97840
97841 2000-01-31  Jim Meyering  <meyering@lucent.com>
97842
97843         * lib/nanosleep.h (nanosleep): Guard declaration with
97844         `#if ! HAVE_DECL_NANOSLEEP'.
97845         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
97846         the declaration in that vendor's sys/timers.h.
97847         Reported by Christian Krackowizer.
97848
97849         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
97850         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
97851         (ISPRINT): Likewise.
97852         Reported by Tom Tromey.
97853
97854 2000-01-30  Jim Meyering  <meyering@lucent.com>
97855
97856         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
97857
97858         * m4/prereq.m4 (utmp_includes): Define.
97859         Check for ut_user and ut_name members in both struct utmpx
97860         and struct utmp.
97861
97862 2000-01-30  Jim Meyering  <meyering@lucent.com>
97863
97864         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
97865         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
97866         header files where only utmpx.ut_user is declared.
97867
97868         * lib/readutmp.h (UT_USER): Define.
97869
97870 2000-01-29  Jim Meyering  <meyering@lucent.com>
97871
97872         * m4/lib-check.m4: New file containing library-related checks from
97873         fileutils and sh-utils (textutils had none).
97874
97875 2000-01-28  Jim Meyering  <meyering@lucent.com>
97876
97877         * m4/perl.m4: Change format of warning message to look more like that
97878         from the missing script.  Suggestion from François Pinard.
97879
97880 2000-01-25  Jim Meyering  <meyering@lucent.com>
97881
97882         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
97883         well as time.h in the compile check.
97884         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
97885         Fix typo in cross-compiling case: s/yes/no/.
97886
97887 2000-01-23  Jim Meyering  <meyering@lucent.com>
97888
97889         * m4/jm-macros.m4: Move df-related tests here from
97890         fileutils/configure.in
97891
97892         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
97893         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
97894
97895         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
97896         s/space/ac_fsusage_space/.
97897         (jm_FILE_SYSTEM_USAGE): Take two parameters.
97898
97899         * m4/ftruncate.m4: New file (derived from part of
97900         fileutils/configure.in).
97901         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
97902         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
97903
97904         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
97905         AC_SUBST these here, rather than just in sh-util/configure.in, so
97906         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
97907         all the same.
97908         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
97909         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
97910         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
97911         (AC_SUBST(POW_LIBM)): Likewise.
97912         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
97913
97914 2000-01-23  Jim Meyering  <meyering@lucent.com>
97915
97916         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
97917         obstack.c.
97918
97919 2000-01-22  Jim Meyering  <meyering@lucent.com>
97920
97921         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
97922
97923         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
97924
97925         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
97926         configure.in
97927         (AC_CHECK_HEADERS): Likewise for sh-utils.
97928         (AC_CHECK_HEADERS): Likewise for textutils.
97929         Merge the three lists of headers.
97930
97931         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
97932         from fileutils' configure.in.
97933
97934         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
97935         code. Moved tests into their own function (_jm_DECL_HEADERS) in
97936         check-decl.m4.
97937
97938         * m4/check-decl.m4: Use #if rather than #ifdef.
97939         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
97940         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
97941         (_jm_DECL_HEADERS): Define new function.
97942         (jm_CHECK_DECLARATIONS): Require it.
97943
97944 2000-01-22  Jim Meyering  <meyering@lucent.com>
97945
97946         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
97947         [! HAVE_DECL_STRTOULL]: Declare strtoull.
97948         Required for some AIX systems.  Reported by Christian Krackowizer.
97949         [TESTING] (main): New function.
97950
97951         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
97952         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
97953         letters.
97954
97955         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
97956         iswprint.
97957
97958         * lib/strverscmp.c (ISDIGIT): Define.
97959         (strverscmp): Use ISDIGIT, not isdigit.
97960
97961 2000-01-19  Jim Meyering  <meyering@lucent.com>
97962
97963         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
97964         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
97965         defines `struct timespec' in <sys/time.h>
97966
97967         * m4/c-bs-a.m4: Remove uses of changequote altogether.
97968         Thanks to Akim for explaining.
97969
97970 2000-01-17  Paul Eggert  <eggert@twinsun.com>
97971
97972         * lib/nanosleep.c (nanosleep):
97973         Don't use SA_INTERRUPT to decide whether to call sigaction, as
97974         POSIX.1 doesn't require SA_INTERRUPT and some systems
97975         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
97976         it's been part of POSIX.1 since day 1 (in 1988).
97977
97978 2000-01-17  Jim Meyering  <meyering@lucent.com>
97979
97980         * lib/interlock: Remove unused file.  Reported by François Pinard.
97981
97982 2000-01-16  Paul Eggert  <eggert@twinsun.com>
97983
97984         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
97985         alert, backslash, formfeed, and vertical tab unnecessarily in
97986         shell quoting style.
97987
97988 2000-01-16  Jim Meyering  <meyering@lucent.com>
97989
97990         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
97991         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
97992         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
97993         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
97994
97995 2000-01-16  Jim Meyering  <meyering@lucent.com>
97996
97997         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
97998         because the latter didn't work.
97999
98000 2000-01-15  Jim Meyering  <meyering@lucent.com>
98001
98002         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
98003         (AC_REPLACE_FUNCS): Add memcpy and memset.
98004         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
98005         Add strpbrk.
98006         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
98007
98008 2000-01-12  Jim Meyering  <meyering@lucent.com>
98009
98010         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
98011         (jm_PREREQ): Use it.
98012         (jm_PREREQ_READUTMP): New macro.
98013         (jm_PREREQ): Use it.
98014
98015 2000-01-11  Paul Eggert  <eggert@twinsun.com>
98016
98017         Quote multibyte characters correctly.
98018         * m4/c-bs-a.m4: New file.
98019         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
98020         (jm_PREREQ): Use it.
98021
98022 2000-01-11  Paul Eggert  <eggert@twinsun.com>
98023
98024         * m4/uintmax_t.m4: Port to autoconf 2.13.
98025
98026 2000-01-08  Jim Meyering  <meyering@ascend.com>
98027
98028         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
98029         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
98030
98031 2000-01-04  Jim Meyering  <meyering@ascend.com>
98032
98033         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
98034         jm_STRUCT_DIRENT_D_TYPE.
98035         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
98036         jm_STRUCT_DIRENT_D_INO.
98037         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
98038         jm_STRUCT_UTIMBUF.
98039         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
98040         renamings.
98041         * m4/utime.m4: Likewise.
98042
98043         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
98044         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
98045
98046 2000-01-03  Paul Eggert  <eggert@twinsun.com>
98047
98048         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
98049         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
98050
98051 2000-01-02  Jim Meyering  <meyering@ascend.com>
98052
98053         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
98054         remember if this is necessary.
98055
98056 1999-12-26  Jim Meyering  <meyering@ascend.com>
98057
98058         * m4/jm-macros.m4: Use it here.
98059         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
98060
98061 1999-12-23  Jim Meyering  <meyering@ascend.com>
98062
98063         * m4/jm-macros.m4: Check for clock_gettime (moved from
98064         fileutils/configure.in)
98065         Check for gettimeofday.
98066
98067 1999-12-20  Jim Meyering  <meyering@ascend.com>
98068
98069         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
98070         autoconf-2.14a-1999-12-20.
98071
98072 1999-12-19  Jim Meyering  <meyering@ascend.com>
98073
98074         * m4/lstat-slash.m4: New file.
98075         * m4/jm-macros.m4: Use the new macro:
98076         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
98077
98078 1999-12-07  Jim Meyering  <meyering@ascend.com>
98079
98080         * m4/perl.m4: Require that File::Compare be available, too.
98081         Too many systems seem to lack it.
98082
98083         * m4/strftime.m4: Add checks for most of the cpp macros tested in
98084         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
98085
98086 1999-11-18  Paul Eggert  <eggert@twinsun.com>
98087
98088         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
98089         problem with the QNX 4.25 shell, which doesn't propagate exit
98090         status of failed commands inside shell assignments.
98091
98092 1999-11-17  Jim Meyering  <meyering@ascend.com>
98093
98094         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
98095
98096 1999-11-07  Jim Meyering  <meyering@ascend.com>
98097
98098         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
98099
98100 1999-11-06  Jim Meyering  <meyering@ascend.com>
98101
98102         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
98103         * m4/jm-macros.m4 (jm_MACROS): Use it here.
98104
98105 1999-11-05  Jim Meyering  <meyering@ascend.com>
98106
98107         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
98108         configure.in of textutils, fileutils, and sh-utils into this one
98109         (shared between those packages) file.
98110         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
98111         AC_STRUCT_ST_BLKSIZE.
98112
98113 1999-11-03  Jim Meyering  <meyering@ascend.com>
98114
98115         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
98116         of AC_CHECK_TYPE checks includes unistd.h.
98117         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
98118         Suggestion from Akim Demaille.
98119
98120 1999-10-30  Jim Meyering  <meyering@ascend.com>
98121
98122         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
98123         m4-quoted string.
98124         * m4/ls-mntd-fs.m4: Likewise.
98125         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
98126         * m4/jm-winsz1.m4: Likewise.
98127
98128         * m4/const.m4: Remove file, since the fix made it into the experimental
98129         version of autoconf.
98130         * m4/mktime.m4: Likewise.
98131
98132         * m4/check-type.m4: Remove file, now that the latest version of
98133         AC_CHECK_TYPE takes a third arg to specify additional #includes.
98134
98135         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
98136         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
98137         AC_CHECK_TYPE.
98138
98139 1999-10-04  Jim Meyering  <meyering@ascend.com>
98140
98141         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
98142
98143 1999-09-22  Paul Eggert  <eggert@twinsun.com>
98144
98145         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
98146         2.95.1 bug with HP-UX 10.20.
98147
98148 1999-09-17  Jim Meyering  <meyering@ascend.com>
98149
98150         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
98151         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
98152         due to missing strdup (against sh-utils-2.0).
98153
98154 1999-08-29  Jim Meyering  <meyering@ascend.com>
98155
98156         * m4/jm-macros.m4: Require jm_BISON.
98157         * m4/bison.m4: New file.
98158
98159 1999-08-17  Paul Eggert  <eggert@twinsun.com>
98160
98161         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
98162         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
98163
98164 1999-08-05  Jim Meyering  <meyering@ascend.com>
98165
98166         * m4/getline.m4: Rename test file from conftestdata to conftest.data
98167         to avoid conflicts with `conftest' on 8+3 filesystems.
98168         Suggestion from Eli Zaretskii.
98169
98170 1999-08-04  Jim Meyering  <meyering@ascend.com>
98171
98172         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
98173         fileutils and sh-utils (textutils's getline test was inadequate).
98174         (AM_FUNC_GETLINE): Run this test.
98175         (AC_CHECK_FUNCS): Check for getdelim.
98176         Reported by Bob Proulx.
98177
98178 1999-08-02  Jim Meyering  <meyering@ascend.com>
98179
98180         * m4/jm-macros.m4: Add a comment.
98181
98182 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98183
98184         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
98185         <inttypes.h> defines strtoumax as a macro (and not as a
98186         function).
98187
98188 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98189
98190         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
98191         that we can shift, multiply and divide unsigned long long
98192         values; Ultrix cc can't do it.
98193
98194 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98195
98196         * m4/mktime.m4: New file, which is a preview of what should appear
98197         in the next public autoconf release.
98198
98199 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98200
98201         * m4/lfs.m4: Remove this file.
98202         * m4/largefile.m4: New file.  It contains the old contents of
98203         lfs.m4, except that all names with prefix AC_LFS have been
98204         changed to use the prefix AC_SYS_LARGEFILE instead, to be
98205         compatible with future autoconf versions.  Also, some minor m4
98206         quoting problems have been fixed.
98207
98208 1999-08-01  Paul Eggert  <eggert@twinsun.com>
98209
98210         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
98211         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
98212         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
98213         and simplify the shell code.
98214
98215 1999-08-01  Jim Meyering  <meyering@ascend.com>
98216
98217         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
98218         m4.
98219
98220 1999-07-20  Jim Meyering  <meyering@ascend.com>
98221
98222         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
98223
98224 1999-07-15  Jim Meyering  <meyering@ascend.com>
98225
98226         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
98227
98228 1999-05-22  Jim Meyering  <meyering@ascend.com>
98229
98230         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
98231
98232 1999-05-20  Jim Meyering  <meyering@ascend.com>
98233
98234         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
98235         Add a colon after each `then' in case $4 is empty.
98236
98237 1999-05-16  Jim Meyering  <meyering@ascend.com>
98238
98239         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
98240
98241 1999-05-10  Jim Meyering  <meyering@ascend.com>
98242
98243         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
98244
98245         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
98246         AC_FUNC_MKTIME.
98247
98248 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
98249
98250         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
98251
98252 1999-05-04  Paul Eggert  <eggert@twinsun.com>
98253
98254         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
98255         not CPPFLAGS, so that linking works correctly in IRIX.
98256
98257 1999-04-30  Paul Eggert  <eggert@twinsun.com>
98258
98259         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
98260
98261 1999-04-20  Paul Eggert  <eggert@twinsun.com>
98262
98263         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
98264         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
98265         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
98266         jm_AC_TYPE_UNSIGNED_LONG_LONG.
98267         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
98268
98269         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
98270
98271 1999-04-20  Jim Meyering  <meyering@ascend.com>
98272
98273         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
98274         AC_REPLACE xstroull if necessary.  From Paul Eggert.
98275         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
98276
98277 1999-04-18  Jim Meyering  <meyering@ascend.com>
98278
98279         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
98280         * m4/jm-macros.m4: Use it.
98281
98282 1999-04-06  Jim Meyering  <meyering@ascend.com>
98283
98284         * m4/strftime.m4: Remove test for %f.
98285
98286 1999-03-29  Jim Meyering  <meyering@ascend.com>
98287
98288         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
98289         superset of the AC_TYPE_* checks in the textutils, fileutils,
98290         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
98291         AC_TYPE_PID_T.
98292
98293 1999-03-28  Jim Meyering  <meyering@ascend.com>
98294
98295         * m4/jm-macros.m4: Define GNU_PACKAGE here.
98296         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
98297         replaced e.g., in the *.sh files of the sh-utils.
98298
98299 1999-03-20  Jim Meyering  <meyering@ascend.com>
98300
98301         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
98302         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
98303         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
98304
98305 1999-03-19  Jim Meyering  <meyering@ascend.com>
98306
98307         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
98308
98309 1999-03-12  Jim Meyering  <meyering@ascend.com>
98310
98311         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
98312
98313 1999-03-07  Jim Meyering  <meyering@ascend.com>
98314
98315         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
98316         declared.
98317
98318 1999-02-17  Jim Meyering  <meyering@ascend.com>
98319
98320         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
98321         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
98322
98323 1999-02-07  Jim Meyering  <meyering@ascend.com>
98324
98325         * m4/group-member.m4: New file -- extracted from sh-utils'
98326         configure.in.
98327
98328         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
98329         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
98330
98331 1999-02-06  Jim Meyering  <meyering@ascend.com>
98332
98333         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
98334         * m4/fnmatch.m4: Likewise.
98335         * m4/getgroups.m4: Likewise.
98336         * m4/lstat.m4: Likewise.
98337         * m4/malloc.m4: Likewise.
98338         * m4/putenv.m4: Likewise.
98339         * m4/realloc.m4: Likewise.
98340         * m4/regex.m4: Likewise.
98341         * m4/stat.m4: Likewise.
98342         * m4/strftime.m4: Likewise.
98343         Suggestion from Alain Magloire.
98344
98345         * m4/chown.m4: Use `.$ac_objext', not `.o'.
98346         * m4/fnmatch.m4: Likewise.
98347         * m4/getgroups.m4: Likewise.
98348         * m4/getline.m4: Likewise.
98349         * m4/lstat.m4: Likewise.
98350         * m4/malloc.m4: Likewise.
98351         * m4/memcmp.m4: Likewise.
98352         * m4/putenv.m4: Likewise.
98353         * m4/realloc.m4: Likewise.
98354         * m4/regex.m4: Likewise.
98355         * m4/stat.m4: Likewise.
98356         * m4/strftime.m4: Likewise.
98357         Suggestion from Alain Magloire.
98358
98359         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
98360         an argument.
98361
98362         * m4/regex.m4: Add a run-time Test for proper operation of
98363         re_compile_pattern.
98364
98365 1999-01-31  Jim Meyering  <meyering@ascend.com>
98366
98367         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
98368
98369 1999-01-30  Jim Meyering  <meyering@ascend.com>
98370
98371         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
98372
98373         * m4/jm-mktime.m4: Make this a wrapper around the official
98374         AM_FUNC_MKTIME rather than my private copy, now that the official one
98375         is up to date.
98376         * m4/mktime.m4: Remove file.
98377
98378         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
98379         * m4/uptime.m4: Likewise.
98380         * m4/uintmax_t.m4: Likewise.
98381
98382 1999-01-28  Jim Meyering  <meyering@ascend.com>
98383
98384         * m4/jm-macros.m4: Use jm_AFS.
98385         * m4/afs.m4: New file (from fileutils' configure.in).
98386
98387         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
98388         * m4/chown.m4: Likewise.
98389         * m4/d-ino.m4: Likewise.
98390         * m4/d-type.m4: Likewise.
98391         * m4/fnmatch.m4: Likewise.
98392         * m4/getgroups.m4: Likewise.
98393         * m4/gettext.m4: Likewise.
98394         * m4/jm-mktime.m4: Likewise.
98395         * m4/jm-winsz2.m4: Likewise.
98396         * m4/lcmessage.m4: Likewise.
98397         * m4/ls-mntd-fs.m4: Likewise.
98398         * m4/malloc.m4: Likewise.
98399         * m4/memcmp.m4: Likewise.
98400         * m4/putenv.m4: Likewise.
98401         * m4/realloc.m4: Likewise.
98402         * m4/st_mtim.m4: Likewise.
98403         * m4/strftime.m4: Likewise.
98404
98405 1999-01-16  Jim Meyering  <meyering@ascend.com>
98406
98407         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
98408         (ARGMATCH_DIE_DECL): Define.
98409
98410 1999-01-12  Jim Meyering  <meyering@ascend.com>
98411
98412         * m4/Makefile.am.in: Rewrite to avoid using fmt.
98413         Reported by Lars Hecking.
98414
98415 1999-01-10  Jim Meyering  <meyering@ascend.com>
98416
98417         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
98418         gross kludge.
98419         * m4/inttypes_h.m4: Likewise.
98420         * m4/lstat.m4: Likewise.
98421         * m4/malloc.m4: Likewise.
98422         * m4/readdir.m4: Likewise.
98423         * m4/realloc.m4: Likewise.
98424         * m4/st_dm_mode.m4: Likewise.
98425         * m4/stat.m4: Likewise.
98426         * m4/utimbuf.m4: Likewise.
98427         * m4/utimes.m4: Likewise.
98428
98429         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
98430         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
98431         comments in config.h.in are meaningful.
98432
98433         * m4/jm-macros.m4: Require autoconf-2.13 here.
98434
98435         * m4/regex.m4: By default, don't use the included regex.c on systems
98436         with glibc 2.  Suggestion from Uli Drepper.
98437
98438 1999-01-02  Jim Meyering  <meyering@ascend.com>
98439
98440         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
98441
98442 1998-12-18  Jim Meyering  <meyering@ascend.com>
98443
98444         * m4/Makefile.am.in (Makefile.am): Simplify rule.
98445         Based on a suggestion from Lars Hecking.
98446
98447 1998-11-16  Paul Eggert  <eggert@twinsun.com>
98448
98449         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
98450
98451 1998-11-16  Jim Meyering  <meyering@ascend.com>
98452
98453         * m4/lfs.m4: Double-quote the `uname...` expression.
98454
98455 1998-11-14  Jim Meyering  <meyering@ascend.com>
98456
98457         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
98458         * m4/stat.m4: Likewise.
98459
98460 1998-11-03  Jim Meyering  <meyering@ascend.com>
98461
98462         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
98463         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
98464
98465 1998-10-18  Jim Meyering  <meyering@ascend.com>
98466
98467         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
98468
98469 1998-10-17  Jim Meyering  <meyering@ascend.com>
98470
98471         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
98472         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
98473         calls for those previously hard-coded headers.  Instead, take a new
98474         parameter.
98475         (jm_CHECK_DECLARATIONS): Reflect interface change.
98476         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
98477         (jm_CHECK_DECL_LOCALTIME_R): New macro.
98478
98479         * m4/mktime.m4: Test for spring-forward gap before long-running test.
98480
98481 1998-10-14  Jim Meyering  <meyering@ascend.com>
98482
98483         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
98484         instead of "TZ=America/Vancouver".  From Paul Eggert.
98485
98486 1998-10-11  Jim Meyering  <meyering@ascend.com>
98487
98488         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
98489         This adds a test for a recently added compatibility fix for mktime.c.
98490         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
98491
98492 1998-09-27  Jim Meyering  <meyering@ascend.com>
98493
98494         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
98495
98496         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
98497         ../configure.in, including a change from Gordon Matzigkeit to allow
98498         cross-compiling for the Hurd.
98499
98500         * m4/glibc.m4: New file/macro to test for the GNU C Library
98501         versions 1 and 2.  From Gordon Matzigkeit.
98502         Indent.
98503
98504 1998-09-21  Jim Meyering  <meyering@ascend.com>
98505
98506         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
98507
98508 1998-08-18  Paul Eggert  <eggert@twinsun.com>
98509
98510         Port nanosecond-resolution times to UnixWare 2.1.2 and
98511         pedantic Solaris 2.6.
98512
98513         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
98514         AC_STRUCT_ST_MTIM.
98515         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
98516         Generate name of ns member, instead of just 1 or undef.
98517         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
98518
98519 1998-08-15  Jim Meyering  <meyering@ascend.com>
98520
98521         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
98522         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
98523         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
98524         instead of jm_TYPE_SSIZE_T.
98525
98526 1998-08-12  Jim Meyering  <meyering@ascend.com>
98527
98528         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
98529
98530 1998-08-02  Jim Meyering  <meyering@ascend.com>
98531
98532         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
98533         in acconfig.h manually.
98534
98535 1998-07-31  Paul Eggert  <eggert@twinsun.com>
98536
98537         * m4/st_mtim.m4: New file.
98538
98539 1998-07-28  Jim Meyering  <meyering@ascend.com>
98540
98541         * m4/utimes.m4: Undef stat.
98542
98543 1998-07-25  Jim Meyering  <meyering@ascend.com>
98544
98545         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
98546         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
98547
98548 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
98549
98550         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
98551         uid and gid actually remain unchanged.
98552
98553 1998-07-07  Jim Meyering  <meyering@ascend.com>
98554
98555         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
98556
98557 1998-07-04  Jim Meyering  <meyering@ascend.com>
98558
98559         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
98560         to prove that this macro can be used in packages without regex.c.
98561
98562 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
98563
98564         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
98565         is to be used.
98566
98567 1998-07-03  Jim Meyering  <meyering@ascend.com>
98568
98569         * m4/gettext.m4: Add -lintl if it's found to be necessary.
98570
98571         * m4/gettext.m4: New file -- from gettext-0.10.35.
98572         * m4/lcmessage.m4: Likewise.
98573         * m4/progtest.m4: Likewise.
98574
98575         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
98576         * m4/jm-macros.m4: Require the new macro.
98577
98578 1998-06-29  Jim Meyering  <meyering@ascend.com>
98579
98580         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
98581         for the definition of NGROUPS (used in a system header included
98582         by sys/mount.h).
98583
98584 1998-06-28  Jim Meyering  <meyering@ascend.com>
98585
98586         * m4/ls-mntd-fs.m4: New file.
98587         * m4/fstypename.m4: New file.
98588
98589         * m4/jm-macros.m4: Require the new macro.
98590         * m4/jm-glibc-io.m4: New file.
98591
98592 1998-05-19  Jim Meyering  <meyering@ascend.com>
98593
98594         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
98595         * m4/lchown.m4: New file.
98596
98597         * m4/Makefile.am.in: New file.
98598         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
98599
98600 1998-05-14  Jim Meyering  <meyering@ascend.com>
98601
98602         * m4/Makefile.am (EXTRA_DIST): Add them.
98603         * m4/jm-macros.m4: New file.
98604         * m4/utimbuf.m4: New file.
98605
98606 1998-05-12  Jim Meyering  <meyering@ascend.com>
98607
98608         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
98609
98610 1998-05-11  Jim Meyering  <meyering@ascend.com>
98611
98612         * m4/isc-posix.m4: New file.
98613
98614 1998-05-10  Jim Meyering  <meyering@ascend.com>
98615
98616         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
98617
98618 1998-05-09  Jim Meyering  <meyering@ascend.com>
98619
98620         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
98621         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
98622         with automake.
98623
98624         * m4/ssize_t.m4: New file.
98625         * m4/mktime.m4: Remove file -- the new automake has this now.
98626
98627 1998-04-26  Jim Meyering  <meyering@ascend.com>
98628
98629         * m4/assert.m4: New file.
98630         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
98631
98632 1998-04-05  Jim Meyering  <meyering@ascend.com>
98633
98634         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
98635         (jm_PREREQ): Use it here.
98636
98637 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
98638
98639         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
98640         in acconfig.h.
98641
98642 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
98643
98644         * m4/prereq.m4: New file.
98645         * m4/error.m4: New file.
98646         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
98647
98648 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
98649
98650         * m4/getline.m4: Don't set am_cv_func_working_getline before the
98651         cache-check for the same variable -- that defeated the purpose of
98652         the test; the test program was never run.  This was a problem only
98653         on systems with losing getline functions -- HP-UX 10.20 is one.
98654         Reported by Bjorn Helgaas.
98655
98656 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
98657
98658         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
98659
98660 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
98661
98662         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
98663
98664         * m4/const.m4: New file.  Use an initializer in this declaration
98665         typedef int charset[2]; const charset x;
98666         Reported by Bob Glickstein.
98667
98668 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
98669
98670         * m4/chown.m4: Fix reversed types on -1 args to chown.
98671         From Kaveh Ghazi.
98672
98673 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
98674
98675         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
98676         Add lseek and memchr.
98677
98678         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
98679         T.E.Dickey <dickey@clark.net> said that some older preprocessors
98680         have a 20-character limit on names.
98681
98682 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
98683
98684         * m4/inttypes_h.m4: New file.
98685         * m4/uintmax_t.m4: New file.
98686         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
98687
98688
98689         -----
98690
98691         Local Variables:
98692         coding: utf-8
98693         End:
98694
98695         Copyright (C) 1997-2012 Free Software Foundation, Inc.
98696
98697         Copying and distribution of this file, with or without
98698         modification, are permitted provided the copyright notice
98699         and this notice are preserved.